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:
// define max depth for forums display based on $vbulletin->options[forumhomedepth]
define('MAXFORUMDEPTH', $vbulletin->options['forumhomedepth']);
$forumbits = construct_forum_bit($forumid);
// Construct Tabbed Forum Home forumbits
// Category for Tab 2, pulls forum and sub form data from Category (Forum ID 1)
// Category 1 for Tab 1
$forumbits1a = construct_forum_bit(1,1,0);
// Category 2 for Tab 1
$forumbits1b = construct_forum_bit(42,1,0);
// Category 1 for Tab 2
$forumbits2a = construct_forum_bit(66,1,0);
// Category 2 for Tab 2
$forumbits2b = construct_forum_bit(61,1,0);
// Category 3 for Tab 2
$forumbits2c = construct_forum_bit(26,1,0);
// Category 4 for Tab 2
$forumbits2d = construct_forum_bit(5,1,0);
// Category 1 for Tab 3
$forumbits3a = construct_forum_bit(9,1,0);
// Category 1 for Tab 4
$forumbits4a = construct_forum_bit(36,1,0);
// Category 2 for Tab 4
$forumbits4b = construct_forum_bit(40,1,0);
eval('$forumhome_markread_script = "' . fetch_template('forumhome_markread_script') . '";');
// ### BOARD STATISTICS #################################################
and here is my <!-- main --> <!-- /main-->
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 -->
What did i do wrong?
Edited: I fixed it. Thanks for a cool hack.