Change the nav menu a lil bit

Started by marinesct, December 16, 2008, 11:19:24 PM

Previous topic - Next topic

marinesct

I'm looking at doing two things with my forums.

1) redirect the 'Home' menu item to our sites static page and then also
2) rename the 'Forum' menu item to something else.

Which files would I have to modify for the changes to take affect properly?

sherpa サイバー侍


marinesct


deFain



marinesct

#4
The mod wasn't what I was looking for.  What I should have mentioned was that I was using the Simple Portal mod, which changed the menu up a bit to add a 'Forum' menu item.  I had to go into the mods SPortal.english.php file and change the name of the menu item there.

The thread here helped out a little bit.

To change the 'Home' redirect, in the subs.php, I searched for:


'home' => array(
'title' => $txt['home'],
'href' => $scripturl,


and replaced with:


'home' => array(
'title' => $txt['home'],
'href' => 'http://www.usmcg.org/test',


I also replaced a few instances of 'Forum' with 'Squadbay' throughout the file, just for a cosmetic effect.

For renaming the menu 'Forum,' I had to refer to 'sp-forum' in the SPortal.english.php file:

Find:


$txt['sp-forum'] = 'Forum';


and replaced with:


$txt['sp-forum'] = 'Squadbay';

sherpa サイバー侍

That mod only adds new tab but he want Home tab to redirect to his website

$buttons = array(
         'home' => array(
            'title' => $txt['home'],
            'href' => something.com
            'show' => true,
            'sub_buttons' => array(
            ),
$buttons = array(
         'Forum' => array(
            'title' => $txt['Forum'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
In index.english.php add
$txt['Forum'] = 'Forum';

JimM

If this is solved feel free to mark it as solved otherwise reply with some details of what isn't working.
Jim "JimM" Moore
Former Support Specialist

Advertisement: