PDA

View Full Version : Modules order (News, Editors,...)


polo
05-01-2006, 06:04 PM
I'm working on a new directory (pro version) using the ColorBurst theme. I'd like to change the orders of the modules.
The default order now is Editors, Sponsored, Recommended, News...
I want to place the Editors module on the last place.
Please can you tell how can I do this?

Greg
05-01-2006, 07:30 PM
Hi polo Welcome :)

Open footer.tpl and find:
{if $config.editors}
<div class="box">
<div class="editors-caption"><h3>{$lang.editors_area}</h3></div>
<div class="box-content">
{if $editor}
{$lang.welcome}, {$editor.username}!
<ul class="editor-menu">
{if $category.id > 0}
{$lang.suggest_category} (suggest-category.php?id={$category.id})
{$lang.suggest_link} (suggest-link.php?id={$category.id})
{/if}
{$lang.approval_links} (approval-links.php)
{$lang.view_my_categories} (editor-categories.php)
{$lang.view_my_links} (editor-links.php)
{$lang.edit_account} (editor-account.php)
{$lang.logout} (logout.php?action=logout)
[/list]
{else}
<form action="{$config.base}{$config.dir}login.php" method="post">
<table class="no" cellpadding="2" cellspacing="0">
<tr>
<td>{$lang.username}:
<input type="text" tabindex="1" name="username" size="26" value="" /></td>
</tr>
<tr>
<td>{$lang.password}:
<input type="password" tabindex="2" name="password" size="26" value="" /></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" tabindex="3" name="login" value="{$lang.login}" />
{if $category.id > 0}
{$lang.register} ({$config.base}{$config.dir}register.php?id={$cate gory.id})
{/if}
</td>
</tr>
</table>
</form>
{/if}</div>
</div>
{/if}

Take that chunk of code and place it just below:
{if $news && $config.news}
<div class="box">
<div class="box-caption"><h3>{$lang.news}</h3></div>
<div class="box-content">
<div class="links">
{foreach from=$news item=one_news}
<div class="news-title">{$one_news.title} ({$config.base}{$config.dir}news/{convert_str string=$one_news.title}-n{$one_news.id}.html)</div>
<div class="news-body">{$one_news.body}</div>
<div class="news-date">{$one_news.date|date_format:$config.date_forma t}</div>
{/foreach}
</div>
</div>
</div>
{/if}

polo
05-01-2006, 10:50 PM
Thanks for info Greg! :)

Nick Collins
05-02-2006, 07:54 AM
Hi polo, did you make it?

polo
05-04-2006, 01:57 AM
Yes Nick and thanks again...

Nick Collins
05-08-2006, 08:41 AM
You are welcome, polo!