MyBB Community Forums

Full Version: Add a menu button (top menu button)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Can anyone tell me how to add a menubutton to the header menu. So were you have forum, help, etc... .

I have also seen that i should edit the header file in my template but i can't find the header in myBB 1.6.8.

I would like to add a new menu button for a gallery.

Thanks for your help

Joeri.
ACP -> Templates and Styles -> Templates -> YourTemplate -> Header Templates -> "Header, or Header_welcomblock_member"



Now you will see:

<li><a href="{$mybb->settings['bburl']}">Home</a></li>

<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>

<li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>

========================
For image add this:
<li><img src="http://www.htmldog.com/images/logo.gif" width="30" height="30" alt="HTML Dog logo" /></li>

For text:
<li><a href="http://google.com">GooGle</a></li>
Go to: Admin CP > Templates > Your theme's templates > Header templates > header > and find;
</ul>
and add the following code just before that,
<li><a href="{$mybb->settings['bburl']}/gallery.php" title="Gallery" alt="Gallery">Gallery</a></li>

You probably need to add image in front of Portal name, for this Replace above code with the following;
<li><a href="{$mybb->settings['bburl']}/gallery.php" title="Gallery" alt="Gallery"><img src="IMAGE_LINK"> Gallery</a></li>

Edit: ninja'd
(2012-06-15, 04:55 PM)feastboy Wrote: [ -> ]ACP -> Templates and Styles -> Templates -> YourTemplate -> Header Templates -> "Header, or Header_welcomblock_member"



Now you will see:

<li><a href="{$mybb->settings['bburl']}">Home</a></li>

<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>

<li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>

========================
For image add this:
<li><img src="http://www.htmldog.com/images/logo.gif" width="30" height="30" alt="HTML Dog logo" /></li>

For text:
<li><a href="http://google.com">GooGle</a></li>

I can not see Header templates under my template.
You have to select your theme's template set first. Then you will see the Header Templates group.
(2012-06-15, 05:17 PM)Fábio Maia Wrote: [ -> ]You have to select your theme's template set first. Then you will see the Header Templates group.

I see only the following screen, see the attachment.
You need to click on "Sjablonen" on the left side. You will need to pick your theme's template set and then you'll see the header templates.
Click on "Sjablonen" showing on left side menu. These are "templates" in your admincp language. Then do the edits as mentioned above.
(2012-06-15, 05:31 PM)Yaldaram Wrote: [ -> ]Click on "Sjablonen" showing on left side menu. These are "templates" in your admincp language. Then do the edits as mentioned above.

Ok, i found it. I did not searched enough Toungue Thanks for the help!

Joeri.