Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: sykic on December 07, 2006, 10:57:34 AM

Title: Home hihglighted when it shouldn't be ?
Post by: sykic on December 07, 2006, 10:57:34 AM

I noticed this because I am using ssi_menubar();

and Home item is always highlighted

this is also true in the forum ie home is highlighted when nothing should be highlighted
ie you are not at the home page

any ideas how to get nothing hihlighted in the menu

Sykic
Title: Re: Home hihglighted when it shouldn't be ?
Post by: B Patterson on December 07, 2006, 01:00:43 PM
I'm pretty sure it defaults to "home" if there is nothing selected, since theoretically that's where you should be ;)

But to change that (using SMF 1.1 default template) just go into Themes/default/index.template.php and open it up.  Look for the following line:
function template_menu()
Inside that function, look for:
$current_action = 'home';
Just make it an empty string:
$current_action = '';
Now, nothing should be highlighted if the action isn't recognized.
Title: Re: Home hihglighted when it shouldn't be ?
Post by: sykic on December 08, 2006, 05:11:39 AM
Thanks a lot will try that



sykic