News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Adding to the menubar?

Started by tX, March 02, 2006, 08:15:50 PM

Previous topic - Next topic

tX

How can i add to the menu bar? I'm useing the default RC2 theme, but i chanegd the colors and such. I would also like it to work with the ssi menubar function if possible. I basicly juast want to add a few links up there to otehr places on my website.


Also if there a way i can change the color of just the copyright? Mine is currently black on black which im sure smf staff doesn't like, not to mention it looked retarted being blank down there anyways.


RyanJones

RyanJ (Ryan Jones)

Support Web Standards!

Currently working On: Additions to the Karma system.

tX

That is really confussing to me, Do we REPLACE
   

// Show the [home] button.



echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '

<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">




<a href="', $scripturl, '">' , $txt[103] , '</a>


</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


With


// Show the [chat] button.

echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '


<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">

<a href="', $scripturl, '?action=chat">Chat</a>


</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Or do we made a new entery with the second one?

are there any step by stepposts about how to do this?

Also Is there a way i can change what "Home" links to? I want to make Home link to my main website home, and then make a Forum button that links to the Forum Home,

Harelin

If you want to direct the Home link to your main website, understand this part of the code from your first selection:

<a href="', $scripturl, '">' , $txt[103] , '</a>

$scripturl = inserts the url to your forum script.  Alone, without a page specificed (as seen above), it'll direct you to the forum index.  Therefore, you want to remove $scripturl and replace it with the url to the desired main page of your site:

<a href="http://www.yourdomain.com/">' , $txt[103] , '</a>

$txt[103] is configured in your language file.  If you want the Home link to read differently, find $txt[103] in your /languages/index.english.php file.

Knowing these two elements, you can easily go into the code and copy and paste to create additional links in the menu bar.

Advertisement: