MyBB Central
Tabbed Menu - Printable Version

+- MyBB Central (
+-- Forum: Archives (
+--- Forum: Mybb 1.4x Series Topics (
+---- Forum: Mybb 1.4x Plugins and Hacks (
+---- Thread: Tabbed Menu (/thread-2439.html)

Tabbed Menu - labrocca - Feb 12, 2009

License is attached inside extras folder by using this software you agree to the terms of that license.

Plugin Name: Tabbed Menu
Plugin Author: Jesse Labrocca
Plugin Website:
Plugin Version: 1.1a
Plugin Mybb Compatibility: 1.4x
Plugin File Edits: None
Plugin File Uploads: 4
Plugin Description: Creates a tabbed menu on the index page to help organize forums.


1. Upload the file from the zip to your forum directory.
/admin/modules/forum/tabmenu.php (if you have renamed your admin directory make sure to upload this properly)

2. Login to your admincp and ACTIVATE the plugin (Tabbed Menu) in the plugin manager.

3. You will see a new option in the admin under "Forums & Posts" for "Tab Menu". Be aware you cannot use a category in more than one tab else this will not work. Also be sure to assign all categories to a tab.

The rest is self explanatory and instructions are on the page.

Screenshots are all available inside the extras folder.

If after install you have issues with your index page template please check to make sure these changes were made:

1. After {$header} add {$tabmenu}
2. After {$forums} add

<script type="text/javascript">
var myflowers=new ddtabcontent("menutabs")

1. Start the template with this line:
<div id="tabmenu_{$forum['fid']}">

2. Add to the very end </div>

Also check the index page source code. In the header you should see the tabbed.css listed:
<link type="text/css" rel="stylesheet" href="" />
If it's not there see the next section on customizing.

For members the tabs work but for guests they do not.
If you have tabs with hidden fid's they cannot be the first sorted forum.

What does that mean you ask?

fid 1 (staff hidden)
fid 2 (member only)
fid 3
fid 4

You have 2 tabs...

Tab1 = fid 1, fid 3
Tab2 = fid 2, fid 4

Staff can see the tabs normally because they have access to all forums.

Member will have a problem because they can't see fid 1 and Tab1 has fid1 sorted first. To correct you alter the sort order of fid 1 to be last so that fid 3 is the first sorted.

This adds a CSS to your database called tabbed.css. It should be in your theme listing for css in admincp. You can alter that css for custom changes. Currently the css uses the images/thead_bg.gif as the background image. Alter to suit your needs. You can run multiple templates and have a different menu for each by altering the tabbed.css. If your theme does not have the tabbed.css installed please take the text out of the file inside the extras folder and paste it.
extras/tabbed.css is the file just in case you need it.

.shadetabs li a.selected is the selected tab...the one that's active.
.shadetabs li a are the other tabs.


This plugin currently offers full language support.

I have upgrade 1.1 to fix issues with hidden forums. To upgrade simply overwrite your inc/plugins/tabbed_menu.php file.

Thank you

RE: Tabbed Menu - Rare - Feb 12, 2009

Snap! nice plugin. I won't be needing it though Smile

RE: Tabbed Menu - Bey Brad - Feb 12, 2009

Congrats Smile

RE: Tabbed Menu - viet4777 - Feb 12, 2009

Very nice!


RE: Tabbed Menu - x-Treme - Feb 13, 2009

It's installed and working.
Now I just have to figure a way to get the tabs css to match the custom thead that I'm using.

Once you enter a thread, and return to the forum index, I love the way it remembers which tab was the active tab

RE: Tabbed Menu - viet4777 - Feb 13, 2009

Small Bug:
Line 139. find_replace_templatesets("index", '#'.preg_quote('{$tabmenu').'#', '',0);

It should be
Quote:Line 139. find_replace_templatesets("index", '#'.preg_quote('{$tabmenu}').'#', '',0);

Because, each time this plugin is deactive, a } will be presented on the index page.

RE: Tabbed Menu - MattR - Feb 13, 2009

Woo!! Installed and now going to set up, this is cool.

RE: Tabbed Menu - Hapatio - Feb 13, 2009

Great Plugin!

RE: Tabbed Menu - MattR - Feb 13, 2009

Just a note, I had to just save the tabbed.css sheet to get it to appear in the source. The tabs still showed fine without it in the source, and it was listed in the theme settings, but if anyone wonders why it isn't in the source, just open tabbed.css in the ACP and click Save.

Either that or IE was being stupid (FF's been removed from these college computers Sad)

RE: Tabbed Menu - labrocca - Feb 13, 2009

Yeah this plugin is going to need more beta testing and tweaking. It's complex.

I will update with some fixes as we go along.