The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Tabbed Forum Home Details »» | |||||||||||||||||||||||||||||||
Tabbed Forum Home version 1.01
[AJAX] Tabbed Forum Home version 1.5.0 (BETA) NOTE: Works with both 3.7x and 3.6x Description: This MOD is for creating a "Tabbed" Forum Home Page to have Categories displayed within Tab containers (similar to what the new Profile System looks like on vb3.7). Please do not confuse this with the Tab Menu System here at vbulletin.org. They are totally different systems. These Tabs actually switch the content without leaving the main forums page. I wrote the initial Non AJAX version based on reading many requests from members asking about how namepros created their custom tabbed forum home page. The first implementation I did was a request by bbwforums.net (which you can visit to see a working example). I have shared this version with many members already and decided to release it since it seems to be something that a lot of members are interested in. UPDATE: I have released a BETA [AJAX] version for those that what something a little more robust and easier to install/configure. This Beta version will never go into production tho as version 2.0 will utilize the YUI AJAX Tabview Toolset. It IS stable tho and is currently running on a few live sites. NOTE: Keep in mind, I wrote this with the assumption that you are fairly well versed and comfortable with editing files/templates and following the flow of things. If there is something you don't understand, PLEASE let me know so that I can help you understand it. This IS NOT a product that a novice can just plug and play and it takes a little bit of time to setup, but its well worth it in the end (if you want a custom unique look to your forum home page)... the next version (Don't ask when, cause its just on the drawing board) will be a product with ACP controls for easy setup The attached Zip File(s) contain the Files and Instructions necessary to install each version. DEMO: www.bbwforums.net or www.namepros.com [Moderator Edit: The first URL has been un-linked as there has been reported malware on that domain. The mod author may edit this notice once the situation has been cleaned.] Screen Shots: None, visit one or both of the above links as seeing them in action is better than some static image(s).. Bobster Change Log version 1.01 - tabcontent.js ver 2.2 to support remote links updated install instructions (both in txt and rtf format) version 1.5.0 - BETA [AJAX] version July 8, 2008 - Added xml file for WOL Sep 2, 2008 - Updated xml file for WOL Download Now
Supporters / CoAuthors Show Your Support
|
Comments |
#752
|
||||
|
||||
Quote:
Quote:
|
#753
|
|||
|
|||
Wait...is the AJAX version still crawlable?
|
#754
|
||||
|
||||
Yes. Its been tested more than once is completely search engine unobtrusive. If you need to make yourself comfortable, simple create a child style and make the child style tabbed and the parent style the default..
|
#756
|
||||
|
||||
Quote:
HERE is the solution that I posted ... Quote:
I am going to assume you already installed this and am only going to give you the changes you need to make for this to work with TFH .. FIND THIS in (includes/functions_forumlist.php ) File Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH)) { $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']); } else if ($subsonly) { $childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly); } else if ($depth < MAXFORUMDEPTH) { $childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly); } else { $childforumbits = ''; } REPLACE with THIS (NOTE: New Code is highlighted in red ... ) Code:
if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH)) { $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']); } else if (THIS_SCRIPT == 'tabforumhome' or 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH)) { $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']); } else if ($subsonly) { $childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly); } else if ($depth < MAXFORUMDEPTH) { $childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly); } else { $childforumbits = ''; } THEN CHECK/EDIT your forumhome_forumbit_level1_nopost Template NOTE: You should have this step already done if you installed both properly.. NOTE: Red Highlite = TFH Code Green Highlite= Forums arranged in columns on forumhome Code Black Code = Default vB (yours might be slightly different if you have a custom style, however, the colored stuff HAS to be exact) .. Code:
<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'"> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> <if condition="$childforumbits"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a> </if> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> </tbody> <if condition="$childforumbits"> <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> <if condition="$forum['subforumcolumns'] > 1"> <tr> <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> <table style="border: none; width: 100%;"> $childforumbits </table> </td> </tr> <else /> $childforumbits </if> </tbody> </if> </if> This works fine on both default vB and with Custom styles (I tested both this AM) |
#757
|
|||
|
|||
Hi,
great, thanks for this fast support, will try this tomorrow, need some sleep now! Regards, Tobias |
#758
|
|||
|
|||
Just installed the mod, how do i add new forums under the new tab.
My site is www.dogforum.com.au Thanks |
#759
|
||||
|
||||
Quote:
Quote:
|
#760
|
|||
|
|||
Great mod... i love it... i look but i didn't find it... how can i hide my staff tab, but make is visible to the staff only..
thanks.. |
#761
|
||||
|
||||
Quote:
Code:
<if condition="is_member_of($vbulletin->userinfo, 5,6)"> CODE HERE </if> So for example if you had 3 Tabs and wanted to hide one for Staff Only it would look like this.. Code:
<div id="ajaxTFH" class="TFHmenu2"> <ul> <li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li> <li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=2" rel="ajaxTFHcontentarea">TAB 2 NAME</a></li> <if condition="is_member_of($vbulletin->userinfo, 5,6)"> <li><a href="tabforumhome.php?tabcat[]=100" rel="ajaxTFHcontentarea">STAFF</a></li> </if> </ul> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|