View Full Version : [3.0.3] Category Splitting


Floris
16th July 2004, 11:36 PM
Category Splitting

How to split the categories up from eachother, template modification, for vBulletin version 3.0.3

Author: Floris - http://www.vbulletin.nl/

Installation Instructions:

# Open the Admin Control Panel > Styles & Templates > Style Manager > Forum Home Template Group > FORUMHOME template, and find this code:


<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<if condition="$show['guest']">
<!-- guest welcome message -->
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
<!-- / guest welcome message -->
</if>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
<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">$vbphrase[mark_forums_read]</a>
&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
</tr>
</tbody>
</table>
<!-- /main -->


# and replace it with this code:


<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</thead>
</table>
</if>
<!-- / guest welcome message -->
<!-- main -->
$forumbits
<!-- /main -->


# now find this code:


</table>
<br />
<!-- end what's going on box -->


# and replace that with this code:


<tbody>
<tr>
<td class="thead" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
</tr>
</tbody>
</table>
<br />
<!-- end what's going on box -->


# Save the FORUMHOME template

# Open the template forumhome_forumbit_level1_nopost and replace the full content with this code:


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<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>
<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}">
<tr align="center">
<td class="thead" width="35">&nbsp;</td>
<td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="200">$vbphrase[last_post]</td>
<td class="thead" width="65">$vbphrase[threads]</td>
<td class="thead" width="65">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="120">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>
</tbody>
</if>
</table>
<div style="padding:0px 0px 16px 0px;"></div>


# Note: You can change the split height of 16px to any number you want.

# Save the forumhome_forumbit_level1_nopost template

# Open the forumhome_forumbit_level2_post template and replace the full content with this code:


<tr align="center">
<td class="alt2" width="35"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" width="200" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1" width="65">$forum[threadcount]</td>
<td class="alt2" width="65">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="120"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
$childforumbits



# Save the forumhome_forumbit_level2_post template.

## Done Enjoy.


// Can I distribute this source code mod? NO.
// Why is this better then the other mods? Becuz.

Admiral Spock
17th July 2004, 12:59 AM
Thanks for this hack, floris. :)

Floris
17th July 2004, 01:17 AM
Just make sure the welcome guest code is in its own table, and $forumbits isn't in a table.

Admiral Spock
17th July 2004, 01:26 AM
Just make sure the welcome guest code is in its own table, and $forumbits isn't in a table.
I like this hack a lot, but it doesn't look right with the default settings you provided. I'm going to play with this on my localhost to get it right.

Lord Brar
15th October 2004, 05:10 PM
Simply Awesome!!!!!! :*( I am using it on PulseToday.com....

Thanks for sharing it Floris!

tokebuzz
19th November 2004, 04:31 AM
Lovely floris i didnt even know there was a mod section of this site :D Now I know where to look thanks alot :p

SilverDennis
18th February 2005, 11:09 PM
Does this one also work in 3.0.5? and 3.0.6?

Floris
18th February 2005, 11:40 PM
Yes, I think it does. I don't think those templates changed drasticly to stop working.

DarkWarriorXII
19th February 2005, 02:06 AM
This is a great hack, Floris! Thanks for the tip :D.

Virtex-II
9th March 2005, 07:32 AM
Have this hack been removed? Cause I can't see the code on the very first post :(:*(

philosophyweb
10th March 2005, 03:19 AM
it is still on
http://www.vbulletintemplates.com/mods/showthread.php?t=6003&page=1&pp=14

philosophyweb
10th March 2005, 11:39 AM
http://www.vBulletin-Fans.com/showthread.php?t=1745
for floris' rc2 ver

Virtex-II
10th March 2005, 04:39 PM
http://www.vBulletin-Fans.com/showthread.php?t=1745
for floris' rc2 ver


Thanks a lot couldn't find it ;)