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 |
#362
|
||||
|
||||
The instructions to make it work on forumdisplay are in the zip.
|
#363
|
|||
|
|||
please help i tried to uninstall the product but i get this error
Invalid SQL: ALTER TABLE forum DROP subforumcolumns; MySQL Error : Can't DROP 'subforumcolumns'; check that column/key exists Error Number : 1091 i check the database, and it doesn't have table "subforumcolumns" what can i do to uninstall this product ? |
#364
|
|||
|
|||
Thanks, works fine on 3.7.
I did all the edits but could only get it to display on forumdisplay when i added this to forumdisplay.php Code:
if ($foruminfo['subforumcolumns'] > 1) { $forumbits = construct_forum_columns($foruminfo['forumid'], $foruminfo['subforumcolumns']); } else { $forumbits = construct_forum_bit($foruminfo['forumid']); } Code:
$forumbits = construct_forum_bit($foruminfo['forumid'] |
#365
|
||||
|
||||
Got this to work, but it won't stretch 100%...it stops at the threads and replies count. On 3.7.1. Help?
|
#366
|
||||
|
||||
Remove the thread and reply column.
|
#367
|
||||
|
||||
I figured it out now...but new question. I can't get the "catagory icons" mod in forums that have this on. How would I get about doing that? It works on normal forums but not the ones in columns.
|
#368
|
|||
|
|||
I'm confused, what do I need to do with the file 'product-xenon_forumcols' that comes in the zipped folder? I didn't see anything in the instructions about this?
|
#369
|
|||
|
|||
Import it through the product manager.
|
#370
|
|||
|
|||
|
#371
|
|||
|
|||
Thanks, I guess that was supposed to be obvious but I think it should be mentioned somewhere in the instructions to avoid confusion!
|
#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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|