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 |
#42
|
||||
|
||||
Thanksssss!
exactly what i needed. I have a little problem here. It seems doesn't work for me. I edited the index_tab.php PHP Code:
HTML Code:
<!-- main --> <!-- Tabbed Forum Home Tabs Layout --> <ul id="forumtabs" class="shadetabs"> <li><a href="#" rel="tcontent1" class="selected">Tab 1 Name</a></li> <li><a href="#" rel="tcontent2">Tab 2 Name</a></li> <li><a href="#" rel="tcontent3">Tab 3 Name</a></li> <li><a href="#" rel="tcontent4">Tab 4 Name</a></li> </ul> <!-- /Tabbed Forum Home Tabs Layout --> <!-- Tabbed Forum Home – START Tab 1 Content Layout --> <div id="tcontent1" class="tabcontent"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> </thead> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_1111')"><img id="collapseimg_forumbit_1111" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=1">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_1111" style=""> $forumbits1a </tbody> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_4242')"><img id="collapseimg_forumbit_4242" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=42">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_4242" style=""> $forumbits1b </tbody> <tbody> <tr> <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong> <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> <if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if> </strong></div></td> </tr> </tbody> </table> $forumhome_markread_script </div> <!-- /Tabbed Forum Home – END Tab 1 Content Layout --> <!-- Tabbed Forum Home – START Tab 2 Content Layout --> <div id="tcontent2" class="tabcontent"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> </thead> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_6666')"><img id="collapseimg_forumbit_6666" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=66">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_6666" style=""> $forumbits2a </tbody> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_6161')"><img id="collapseimg_forumbit_6161" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=61">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_6161" style=""> $forumbits2b </tbody> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_2626')"><img id="collapseimg_forumbit_2626" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=26">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_2626" style=""> $forumbits2c </tbody> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_555')"><img id="collapseimg_forumbit_555" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=5">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_555" style=""> $forumbits2d </tbody> <tbody> <tr> <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong> <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> <if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if> </strong></div></td> </tr> </tbody> </table> $forumhome_markread_script </div> <!-- /Tabbed Forum Home – END Tab 3 Content Layout --> <!-- Tabbed Forum Home – START Tab 3 Content Layout --> <div id="tcontent3" class="tabcontent"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> </thead> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_99')"><img id="collapseimg_forumbit_99" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=6">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_99" style=""> $forumbits3a </tbody> <tbody> <tr> <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong> <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> <if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if> </strong></div></td> </tr> </tbody> </table> $forumhome_markread_script </div> <!-- /Tabbed Forum Home – END Tab 3 Content Layout --> <!-- Tabbed Forum Home – START Tab 4 Content Layout --> <div id="tcontent4" class="tabcontent"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> </thead> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_3636')"><img id="collapseimg_forumbit_3636" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=36">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_3636" style=""> $forumbits4a </tbody> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_4040')"><img id="collapseimg_forumbit_4040" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a><a href="forumdisplay.php?f=40">CATEGORY NAME</a></td> </tr> </tbody> <tbody id="collapseobj_forumbit_4040" style=""> $forumbits4b </tbody> <tbody> <tr> <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong> <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> <if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if> </strong></div></td> </tr> </tbody> </table> $forumhome_markread_script </div> <!-- /Tabbed Forum Home – END Tab 4 Content Layout --> <!-- /main --> <!-- Tabbed Forums switch tab script --> <script type="text/javascript"> var myforumtabs=new ddtabcontent("forumtabs") myforumtabs.setpersist(true) myforumtabs.setselectedClassTarget("link") myforumtabs.init() </script> <!-- /end Tabbed Forums switch tab script --> Edited: I fixed it. Thanks for a cool hack. |
#43
|
|||
|
|||
My tab 1 is working, but tab 2 and tab 3 just display white under neath the tabs, no forums show up at all.
I used your code first, then modified it to my categories and names, but still just white. Any idea what I may be missing? |
#44
|
||||
|
||||
Hey Matt, can you post your Code so I can take a look at it (You can PM me if you wish)..
|
#45
|
||||
|
||||
Quote:
To answer your first question, the instance is the var name in this chunk of script that you added in Step 16: (Bold Red) Code:
<!-- Tabbed Forums switch tab script --> <script type="text/javascript"> var myforumtabs=new ddtabcontent("forumtabs") myforumtabs.setpersist(true) myforumtabs.setselectedClassTarget("link") myforumtabs.init() </script> <!-- /end Tabbed Forums switch tab script --> So to further expand on this function: instance.expandit(tabid_or_position) This method lets you dynamically select any tab based on either its ID attribute (you need to first assign one to that tab), or position relative to its peer tab links. The method can be called anywhere on the page, such as inside a link on the page. Parameter: tabid or position: Either a string representing the tab link's ID, or an integer corresponding to that tab's position relative to its peers, to select. For the later, the counting starts at 0 (ie: 0=Tab 1, 1=Tab 2, 2=Tab 3 and so on). So to answer your question, 0=the first tab. tcontent1=the content of the tab itself, not the ID of the tab. Example: Based on the following sample tabs layout, I added a tab ID to Tab 2. You don't need to do this as you can also just call the position as well. Code:
<ul id="forumtabs" class="shadetabs"> <li><a href="#" rel="tcontent1" class="selected">Tab 1</a></li> <li><a href="#" rel="tcontent2" id="roses">Tab 2</a></li> <li><a href="#" rel="tcontent3">Tab 3</a></li> <li><a href="#" rel="tcontent4">Tab 4</a></li> </ul> Here are some examples of how the links can be used: This one uses the position parameter: Code:
<!--Selects 4TH tab within instance "myforumtabs" --> <a href="javascript:myforumtabs.expandit(3)">Tab 4</a> this one uses the tabid parameter: Code:
<!--Selects tab with ID="roses" within instance "myforumtabs" --> <a href="javascript:myforumtabs.expandit('roses')">Select "Roses" tab</a> Hope that helped out and answered your questions.. Bobster |
#46
|
||||
|
||||
Oh my God! I was looking for this mod as I've seen it on vBSEO and it's finally here. Thanks a lot for the release!
Any plans on porting this over to 3.7.x as well? |
#47
|
||||
|
||||
Works fine with 3.7.x just not going to create a thread in the 3.7 forum until it goes gold
|
#48
|
|||
|
|||
i'm fixed i'm not much into editing could you have a look and help me : www.indianprofits.com
|
#49
|
|||
|
|||
Yo!
Is there any way to make the forum remember the collapse position? Doesnt work now... |
#50
|
||||
|
||||
you are correct.. I didn't even notice that (don't use the collapse feature much).. I'll have to look into it when I get time. Should be an easy fix tho. Thank you for pointing it out and its added to the list of "needs"
|
#51
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|