News:

Wondering if this will always be free?  See why free is better.

Main Menu

Help with menu tabs

Started by Gummo, March 25, 2007, 07:50:47 PM

Previous topic - Next topic

Gummo

I've made a new menu tab, pointing to a news page. However, when at the news page the Home button is highlighted, rather than the News button. Is there a simple way to fix this? Please help.  
Could some kind person please solve my problem?
http://www.simplemachines.org/community/index.php?topic=160310.0

Gummo

Here is the code, in index.template.php:

Quote if ($context['current_action'] == 'news')
$current_action 'news';


And here is the second part:


Quote // Show the [news] button.
echo ($current_action=='news' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'news' 'active_back' 'back' '">
<a href="http://10.16.196.15/index.php">news/index</a>
</td>' 
$current_action == 'news' '<td class="maintab_active_' $last '">&nbsp;</td>' '';
Could some kind person please solve my problem?
http://www.simplemachines.org/community/index.php?topic=160310.0

Advertisement: