![]() |
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:
|
excellent mod sir :)
thank you . |
It seems includes/functions_forumlist.php has changed in Beta 4... could anyone please help update this useful modification? ;)
|
Quote:
|
Quote:
Quote:
|
Quote:
If you're using the editor's search function, try looking for the first line, some times the tabs and white space effect the results for mult-line search. |
Quote:
|
am gonna do this right now, had it for 3.0.7 and loved it, now will try it out on 3.5.4 :) cheers
|
Very nice. This should definately be in vBulletin as default.
Thanks |
Please make a text file for this so others can download and have it in case of an upgrade or re-install.
And is there any way to set it to how many subforum columns you want? I tried this mod and it looked really bad as I had some long subforum names and it went to 3 columns that were not spaced apart evenly. |
To change the number of columns, you should be able to just change this line:
if ($cols==3) Change it to 2 for 1 column. 3 for 1 columns. 4 for 3 columns. Etc. |
Hello,
Is it possible for us to make the <td> larger than what it is? I have 2 rows set, but it is cutting some of the names and starting a new line. I would prefer it didn't do that. How can this be modified so that it will allow larger forum names? |
You can try a nowrap attribute.
Find this: PHP Code:
PHP Code:
|
Hello,
I new it was a simple edit. Thanks, it worked like a charm. |
Again, please make a text file for this. ;)
|
Quote:
|
Hello,
Not sure if that was a joke or not, so I figured I would respond. When i downloaded it, there wasn't anything that informed to use a "noWrap" function. (I was over-thinking this to the extreme and was looking for a way to set widths. lol) |
Quote:
|
Hey, was there a plug in for this?
I thought I saw another version of this, but I may be wrong. Not that I'm implying anything, I'm just trying to figure out if there's another one, so I can make a choice. |
Quote:
I have 2 instances of that exact code. Replace them both?!?!? |
Hi,
I applied this hack to RC2 and came out with this: I don't know if it has anything to do with haveing multiple instnaces of that code or not, but I only replaced the first one. :) |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=91299 |
Quote:
|
Quote:
|
Neat.
|
Thank You!
I did all your adjustments and had no trouble at all. http://www.cecilcountyx.com/forums/index.php |
Quote:
|
Quote:
|
nice, i needed this.
|
looking nice... installed
|
Quote:
|
All times are GMT. The time now is 04:50 PM. |
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:
|