![]() |
Arrange Sub-Forums in columns
There's also a vB 3.5 version here: https://vborg.vbsupport.ru/showthrea...threadid=82845
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: Demo http://forum.lowcarber.org 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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
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" Change (this is the whole template) Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span class="smallfont">$forum[title]</span></a> 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 |
Works great.. thanks.
|
Excellent superb idea! :)
Would it be possible to determine the screen resolution from the visitor? Depending on whether to display the subforums the default or your hacked way??? I could need this because I have 7 subforums including 70 sub-sub forums. |
nice idea ;)
thanks good job INSTALLED |
screenshot?
|
I made the changes, but nothing happens. It doesn't arrange my forums in sub-columns like on your site=\
It just looks the same as standard vB3 subforums. I'm 100% sure I made the changes correctly. EDIT: Maybe this conflicts with the category image or the Forums arranged in columns on forumhome hacks? |
Quote:
|
Quote:
|
Sorry, edited the post... look again =D
Here is what that hack changed.. (attached) |
Quote:
This hack that you have here isn't for this one in this thread. They are two separate hacks. |
All times are GMT. The time now is 02:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|