SMF Support > SMF 2.0.x Support

Adding a menu button

<< < (2/3) > >>

H:
It should work. Try adding the http:// :)

Atheo:
Works fine but now when I am in the forum the Home button stays highlighted...any fix? 

I have found a similar fix but it is not for smf2.X

H:
Do you have more than one button called home?


--- Code: ---'home' => array(
--- End code ---

Atheo:
No I do not.  I did fix it by changing:

--- Code: ---// Default to home.
$current_action = 'home';
--- End code ---
to:

--- Code: ---// Default to home.
$current_action = 'forum';
--- End code ---

But now, when I am on the HOME page the FORUM button remains highlighted   ?

This is what I have:


--- Code: ---$buttons = array(
'home' => array(
'title' =>'home',
'href' => 'http://fit-hub.com/index.php?action=index',
'show' => true,
'sub_buttons' => array(
),
),

                        'forum' => array(
'title' => 'forum',
'href' => 'http://fit-hub.com/index.php',
'show' => true,
'sub_buttons' => array(
),
),
                       

//Switched home and forum--^


'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),

...etc

--- End code ---

Atheo:
I really wish someone could answer this...it is getting very annoying.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version