![]() |
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. |
I know they are 2 seperate hacks. Im asking if it will conflict with this hack because I have both installed and this is not working for me ;)
|
Quote:
I haven't checked in details the code for the other hack, but they do seem incompatible, as one lists the forums as columns, and this one lists the sub-forums as columns. Having both working together may make it look quite confusing, as it would be hard to tell, which is a forum, and which is a sub-forum :) |
OK, thanks for the reply =D
Nice hack btw /me wishes he could install |
Nice work :)
|
Quote:
|
anyway to make this hack selectable in the forum setup? I don' t want all my sub forums showing on the forumhome. Would be nice to have a option to choose if you can select which forums this will work in.
|
I honestly see no changes and I don't have that hack Fi_InCogNiTo has. Am I missing something?
|
Quote:
|
Do you mean this only affects forum home (index page)? If that's the case then I don't really need this. lol
But a good one for those that do have subs in forum home. :) |
Quote:
|
Once we apply the update further on this year on vbulletin.nl THIS will be one of the few hacks we WILL install most likely. It helps us organize quite a lot!! This looks amazing.
My absolute goal is to have a icon that reads subs.. and when pressed on has a drop down like in the postbit for username, for subforums (if any). |
did do anything!!!!!!
Im lost. Im sre I did as you instructed -- I have attached the file you said to edit, maybe you can see something I cant, im still very new at this... |
yup I tried this as well and did not work for me either.
|
any ideas on what the problem is?
|
Quote:
There seem to be a misunderstanding that this hack is for forum display, but it is for forum home. If you do not display sub-forums on the forum home, then this hack won't work. I'll add a comment to the first post, to make this clear. |
Are you saying it not working cause I have a VBA homepage?
-- If so, isnt there a simple way to alter it? |
Quote:
You just need to enable it, to see the sub-forums in columns on the forum homepage. :) |
OK -- cool, now how do I do that? Im a newbie remember... :)
|
Quote:
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 Save, and you should be set. |
Hey, once I changed the options like you said, it works now. Thanks a bunch ;)
|
Awesome. Works great for me. Thanks for this one.
|
@tamarian:
Okay, for some or other reason the subforums don't align nicely when the forum description doesn't fill a whole line (it seems to work on your site, though.) What could the issue be? Do you have a fix for this? |
Awesome hack I love it!
|
Quote:
|
I just added a little note on how to fix the font size for sub-forums. A minor template edit.
|
thanks
/me installed |
Whats the easiest way to remove the "Sub-Forums:" text. I am trying to remove some of the vertical space that each forum takes up and that is unnecessary in my opinion. I can not seem to find where it comes from though :)
|
Quote:
Remove "<strong>$vbphrase[subforums]</strong>:" from the "forumhome_forumbit_level2_post" template |
Great hack....Thanks for the help
|
Hi!
I was in the middle of installing it when I came across a problem. For some reason CuteHTML cannot find this code: PHP Code:
Thanks :) |
All times are GMT. The time now is 05:56 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:
|