MyBB Hacks

Full Version: Global Menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Actually, I create this plugin just to make it easier to manage my menu in my header template. So, probably it's useless for other people. But I hope it's OK to share it.

This simple plugin will add a menu in our forum header. We need to put this code in our header template:

Code:
<!-- mn_gmenu -->


By default, it uses .menu class. If we want to use other class, edit the template provided by this plugin. If we want the menu use a specified class when selected, probably we need to add a selected class in our global.css, depends on the class we used. Example:

Code:
.menu ul .selected a


I've "ported" the header menu on the demo forum using this plugin to see it in action.

Looks pretty handy actually.
Personally, I've used a simple template replacement plugin to manage custom menu entries across multiple themes.  Considering how many themes like to change the header template, it's handy to have.

Thanks for posting Smile
Thanks RateU, it looks cool. Smile
Thanks Biggrin
Reference URL's