![]() |
Arrange Sub-Forums in columns
Better alternatives to this hack:
Quote:
What it does This hack arranges sub-forums on the forum home into 2 columns, makeing large lists of sub-forums more presentable. You can see the before/after in the screenshots attached 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 includes/functions_forumlist.php 1. Find (there are two slightly different lines, differing by a space, the one in question is around line 552) 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. handling of sub-forums. |
Good work. I might play with it later.
|
very nice idea and end product but I didnt found the codes you mentioned in this template ?! May be it is for VB3.0.5 only since I am running 3.0.7 ? I dont know but i wish i could install that hack in any event
|
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=63498 |
Good job. :)
|
Nice!
This is a great mod for vb, any version. Thanks :) |
** Aman Clicks Installed **
Excellent !! :) This will, perhaps, be the first modification in my forums, once the stable vB 3.5.0 is released. :) This mod should always have been a default option in vBulletin... makes the look of the forum so much professional and presentable. Kudos, for sharing it first thing up !! |
That is sweet. Thank you.
|
Hi,
Thanks for sharing this hack :) One question about it though, how do I get the subforum list to show on 3 lines instead of two? taffy |
Quote:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 03:22 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:
|