Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: swampy - maaliskuu 07, 2006, 06:44:04 AP

Otsikko: Is there a way to add a simple hyperlink to the menu bar?
Kirjoitti: swampy - maaliskuu 07, 2006, 06:44:04 AP
Is there a way to add a simple hyperlink to the menu bar?  See below



thanks in advance for any assistance
Otsikko: Re: Is there a way to add a simple hyperlink to the menu bar?
Kirjoitti: Aitsukai - maaliskuu 07, 2006, 06:48:30 AP
Open /Themes/default/index.template.php. Find this:
// Show the start of the tab section.


Then just insert it like you would any hyperlink. It's probably a good idea to mimic how the existing links are though. For example, the help button:
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Otsikko: Re: Is there a way to add a simple hyperlink to the menu bar?
Kirjoitti: Dannii - maaliskuu 07, 2006, 06:53:50 AP
How to add tabs to Core (NDT)? (http://www.simplemachines.org/community/index.php?topic=63203.0)
Otsikko: Re: Is there a way to add a simple hyperlink to the menu bar?
Kirjoitti: swampy - maaliskuu 07, 2006, 07:43:38 AP
thanks much, worked lik a charm!