News:

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

Main Menu

removing the help tab to add in sub menu drop down

Started by dkharp, November 30, 2009, 09:56:50 AM

Previous topic - Next topic

dkharp

Hello, I can I remove the help tab? I want to put this in a sub menu.

hadesflames

Read the following tutorial. After reading it, you should be able to configure Core's navbar the way you want it.

How do you add custom tabs to the Core (default) theme menu?

dkharp

Thanks, I know how to add tabs and drop down menus. What I want is to remove the help tab. Seems there is more to it than meets the eye...

JimM

What specifically are you having the issue with?  Sure you can remove the help tab.
Jim "JimM" Moore
Former Support Specialist

dkharp

If you look at my site you can see I have done modified it a hole bunch. I looked at the index and can not see where I can remove the help tab. Is it in a sub folder or something?

Antechinus

It will be in index.template.php. If you have already modified the menu you should be able to find the help tab code.

dkharp

Thank you kindly for your reply,

I have been looking at the index. Please see attached. The only think I can think of is that it's in some sub menu file some where.

Antechinus

Line 433:                  <li class="level1"><a href="http://36thid.info/index.php?action=help" class="level1"><span><span class="title">Help</span></span></a></li>';


dkharp

Thank you, I tried that earlier today. But I get this error when I do it.

QuoteParse error: syntax error, unexpected T_CLASS, expecting ',' or ';' in .../Themes/default/index.template.php on line 438

I think that to display help tab is in some sub file.

JimM

What theme are you using?  It's possible that you have already removed part of the code for the Help tab.  Can you provide a copy of the unedited index.template.php file for that theme?
Jim "JimM" Moore
Former Support Specialist

dkharp

I am using smf default theme 1.1.11

Is there a sub menu file?

www.36thid.info

JimM

No, there is no sub menu file in 1.1.11.  It appears that you have already edited this template file and removed a portion of the code for the help button.  Here is what you would find in an unedited /Themes/default/index.template.php file concerning 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>' : '';


To remove it, you would simply comment it out or delete it.
Jim "JimM" Moore
Former Support Specialist

Advertisement: