What it does
This hack arranges sub-forums on the forum home into 2 (or more) columns, makeing large lists of sub-forums more presentable. You can see it in action on my forums here:
Note:
1. You need to enable sub-forum display on the forum home from your vB admin panel
2. This hack is for the forum home page, not forum display.
To enable sub-forums on the forum home page
1. Go to your forum Admin panel
2. Click vBulletin Options
3. Select "Forum Listings Display Options" from the drop down list
4. In "Depth of Sub-Forums" replace 0 with 1
Installation
To install, edit the file functions_forumlist.php (in the includes directory)
1. Find
PHP Code:
foreach($vbulletin->iforumcache["$parentid"] AS $forumid)
Template modification (optional)
As this hack will list the sub-forums in a table, the font used is not effected by the <div> tag for subforums, which will cause the default font to be used instead of smallfont.
To use smallfont for sub-forum names, edit the "forumhome_subforumbit_post"
And for those who want to edit or remove the "Sub-forum" word, just remove (or edit, if you just want to change it) "<strong>$vbphrase[subforums]</strong>:" from the "forumhome_forumbit_level2_post" template
Screen shots, before/after
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You mean display the sub-forums, and then a number next to them, indicating how many sub-sub-forums that sub-forum contain?
Might help if you draw the hierarchy as a tree, then the forum listing output using the names from the hierarchy. (make sure the counts match what's in the tree, otherwise it can get really complicated with all the possibilities)
I havent looked through the thread, but I figure I'll ask anyways :P
Is there a way to set it so members can choose to turn this feature on/off in their CP? I think this'd be good for the most part, but a lot of our devout members don't like how it looks.
I havent looked through the thread, but I figure I'll ask anyways :P
Is there a way to set it so members can choose to turn this feature on/off in their CP? I think this'd be good for the most part, but a lot of our devout members don't like how it looks.
No. It would require more hacking to do this, especially since it's not per usergroup, but per user.
I still can not get ride of the Sub-Forums word I removed
<strong>$vbphrase[subforums]</strong>:
and it is still there.
ok bro...i got this to work--->>>>forumhome_forumbit_level2_post
that should do ya bro!...if not, you might want to clerar your cache and check again, otherwise edit all the templates that are forum bit level 2 post, level 1 no post and level 2 no post