The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forums arranged in columns on forumhome Details »» | |||||||||||||||||||||||||
As requested several times, this hack allows you to arrange forums on forumhome in xx columns instead of just one per row as it is in standart vb3. It is a plain port of my 3.0 version you can find here.
Look at the screenshot to know what i mean The design is changeable in the templates of course I've tested it, and it should work, but as i don't use it myself, i cannot do a longtime test, so if you find any bugs, report them Right now, it's just working on forumhome. I'll add changes for forumdisplay later Show Your Support
|
Comments |
#372
|
|||
|
|||
I don't understand this sentence in the instructions, can someone please explain? :
Quote:
|
#373
|
|||
|
|||
K got this all working but one problem.
http://www.zambonitime.com how do i get the latest thread or topic to show up in the boxes? |
#374
|
|||
|
|||
Quote:
|
#375
|
||||
|
||||
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) |
#376
|
|||
|
|||
Quote:
Also thanks for this great mod. |
#377
|
|||
|
|||
whenever I try this I get just a white screen when I reload my board....What am I doing wrong!?
|
#378
|
|||
|
|||
wow nice mod...
please upgrade to 3.7x sir... |
#379
|
|||
|
|||
Quote:
Working for me on 3.7.2. |
#380
|
|||
|
|||
Yeah, unless I'm not editing the last step properly :erm:
|
#381
|
|||
|
|||
Have posted on your other thread.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|