REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 42 Vote(s) - 4.31 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tabbed Menu
#1
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: http://www.MybbCentral.com
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.

Installation

1. Upload the file from the zip to your forum directory.
/inc/plugins/tab_menu.php
/inc/languages/english/admin/forum_tabmenu.lang.php
/admin/modules/forum/tabmenu.php (if you have renamed your admin directory make sure to upload this properly)
/jscripts/tabcontent.js


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.

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

"index"
-----------------
1. After {$header} add {$tabmenu}
2. After {$forums} add

<script type="text/javascript">
<!--//
var myflowers=new ddtabcontent("menutabs")
myflowers.setpersist(true)
myflowers.init()
-->
</script>

"forumbit_depth1_cat"
------------------------
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="http://domain.com/cache/themes/theme2/tabbed.css" />
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.


CUSTOMIZING
===================================
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.


Demo http://www.hackforums.net

This plugin currently offers full language support.

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

Thank you


Attached Files Thumbnail(s)
               

.zip   Tabbed_Menu_v1.1a.zip (Size: 69.27 KB / Downloads: 2,462)
#2
Snap! nice plugin. I won't be needing it though Smile
#3
Congrats Smile
#4
Very nice!

Thanks
#5
Yes..finally.
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
#6
Small Bug:
Code:
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.
#7
Woo!! Installed and now going to set up, this is cool.
#8
Great Plugin!
#9
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)
#10
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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Tabbed Menu ~ Mega Guide / FAQ Elite Dash 36 30,734 Sep 22, 2010, 09:47 PM
Last Post: Wabbit
  Tabbed Menu Ordering Oliver Evans 1 3,746 Sep 17, 2010, 05:15 PM
Last Post: Elite Dash
  Tabbed Menu Problems Filthy 23 11,572 Jul 30, 2010, 12:30 PM
Last Post: Filthy
  Tabbed menu problem. eXPerience 5 3,739 Jul 24, 2010, 08:28 AM
Last Post: Elite Dash
  Tab Menu problems racerking 12 6,596 Jul 13, 2010, 10:26 PM
Last Post: racerking

Forum Jump:


Users browsing this thread: 1 Guest(s)