The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Separate forums on forumhome, category spacing Details »» | |||||||||||||||||||||||||||
Separate forums on forumhome, category spacing
Developer Last Online: Jun 2011
This modification will separate the forum tables on your forumhome, a screenshot is attached.
To fully understand this modification, basic HTML knowledge is required. You can download the complete XML file from the right if you would like to install this right away (upload the XML file in the Styles & Templates section of your Admin CP). Notice: This modification will not work properly if you use subcategories (category with parent category) or stand-alone forums (forum with no parent category, on forumhome). Subforums will work fine, ofcourse. Modified templates
Forum Home Overview Open the 'Forum Home Templates > FORUMHOME' template, we only need to edit the area between the <!-- main --> tags. Here's the default code: HTML 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_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase> </td> </tr> <!-- / guest welcome message --> </if> <tr align="center"> <td class="thead"> </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" 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 <!-- /main --> The above code contains:
Forum Home Changes What has to be changed:
Forum Home Result Here's the final code: HTML Code:
<!-- main --> <if condition="$show['guest']"> <!-- guest welcome message --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <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_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase> </td> </tr> </table> <br /> <!-- / guest welcome message --> </if> $forumbits <div class="tborder" style="padding: $stylevar[cellspacing]px;"> <div class="tfoot smallfont" style="text-align: center; font-weight: bold; padding: $stylevar[cellpadding]px;"> <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> </div></div> $forumhome_markread_script <!-- /main --> Forum Bit Overview Now, open the 'Forum Home Templates > forumhome_forumbit_level1_nopost' template. This is the default code: HTML Code:
<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}"> $childforumbits </tbody> </if> Forum Bit Changes What has to be changed:
Forum Bit Result This is the final code: HTML 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"> </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> $childforumbits </tbody> </if> </table> <br /> Are you using this modification? Press INSTALL.
Show Your Support
|
Comments |
#22
|
||||
|
||||
Thank's - Installed and working fine.
|
#23
|
||||
|
||||
Actually i did unistall because of some problems in display.
Sorry. |
#24
|
|||
|
|||
Hi,
I'm really wana put this in my forum. Can this work under vBulletin 3.6.7 PL1? Thank you Ahmed |
#25
|
|||
|
|||
Hello,
Can someone please upgrade this to 3.6.8 and make sure the subforum display correctly? Thanks! |
#26
|
||||
|
||||
Hi! I just think that this Mod is GREAT!!! :up:
The problem is that I can't import in my vb (v 3.6.10) Is there a way to import this Mod in vb 3.6.10??? Is there any kind of update to this Mod? Thank you very much! :up: |
#27
|
||||
|
||||
Hi again everybody!
Is there any news for this mod? How does it works on vB 7.7.x? Thank you! :up: :up: |
#28
|
|||
|
|||
hello, i have followed the instructions to make category spacing for forums, and also backed up both the forum home templates (text copy and paste), and no forums are appearing! they are still in the forum manager, but the can't see them on the webpage!
and tried to refer back to original text in template, but still no forums! they are gone! but again, i found out this is a mod for 3.6 and i have found 3.7 please help, my forum has no forums categories now! no forum at all! Tim |
#29
|
|||
|
|||
run on 3.8?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|