Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Arrange Sub-Forums in columns Details »
Arrange Sub-Forums in columns
Mod Version: 1.00, by tamarian (Member) tamarian is offline
Developer Last Online: Mar 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (2 votes - 5.00 average) Installs: 138
Released: 05 Apr 2004 Last Update: Never Downloads: 11
Not Supported  

There's also a vB 3.5 version here: http://www.vbulletin.org/forum/showt...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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Place this code above it:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2. Find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To put them in 3 columns, instead of t2, just edit this line "if ($cols==3)" to "if ($cols==4)" and change this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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"

Change (this is the whole template)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	subs-before.jpg
Views:	658
Size:	160.6 KB
ID:	26932   Click image for larger version

Name:	subs-after.jpg
Views:	743
Size:	164.3 KB
ID:	26933  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Arrange Sub-Forums in columns tamarian vBulletin 3.5 Add-ons 101 08 Feb 2007 05:15

Comments
  #2  
Old 05 Apr 2004, 22:36
diettalk's Avatar
diettalk diettalk is offline
 
Join Date: Jan 2002
Works great.. thanks.
__________________
John
diet support at diettalk.com
Reply With Quote
  #3  
Old 05 Apr 2004, 23:10
Tradjick Tradjick is offline
 
Join Date: Jan 2004
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.
Reply With Quote
  #4  
Old 06 Apr 2004, 00:19
Vb-Hispano's Avatar
Vb-Hispano Vb-Hispano is offline
 
Join Date: Feb 2003
nice idea

thanks good job

INSTALLED
Reply With Quote
  #5  
Old 06 Apr 2004, 00:40
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
screenshot?
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
  #6  
Old 06 Apr 2004, 00:47
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
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?

Last edited by Fi_InCogNiTo; 06 Apr 2004 at 00:56.
Reply With Quote
  #7  
Old 06 Apr 2004, 00:51
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by sabret00the
screenshot?
http://forum.lowcarber.org/
Reply With Quote
  #8  
Old 06 Apr 2004, 00:55
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Fi_InCogNiTo
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.
Hmm, that's weird. Are you sure you saved your changes? Refreshed the page?
Reply With Quote
  #9  
Old 06 Apr 2004, 00:56
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
Sorry, edited the post... look again =D

Here is what that hack changed.. (attached)
Attached Files
File Type: txt Forums arranged in Columns on Forumhome.txt (12.1 KB, 202 views)
Reply With Quote
  #10  
Old 06 Apr 2004, 01:01
Itworx4me's Avatar
Itworx4me Itworx4me is offline
 
Join Date: Feb 2002
Originally Posted by Fi_InCogNiTo
Sorry, edited the post... look again =D

Here is what that hack changed.. (attached)
Just an FYI

This hack that you have here isn't for this one in this thread. They are two separate hacks.
Reply With Quote
  #11  
Old 06 Apr 2004, 01:03
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
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
Reply With Quote
  #12  
Old 06 Apr 2004, 01:09
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Fi_InCogNiTo
Sorry, edited the post... look again =D

Here is what that hack changed.. (attached)
That might be it, I don't have those other hacks installed.

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
Reply With Quote
  #13  
Old 06 Apr 2004, 01:12
Fi_InCogNiTo Fi_InCogNiTo is offline
 
Join Date: Jan 2003
OK, thanks for the reply =D

Nice hack btw

/me wishes he could install
Reply With Quote
  #14  
Old 06 Apr 2004, 01:21
Buczilla Buczilla is offline
 
Join Date: Jun 2003
Nice work
Reply With Quote
  #15  
Old 06 Apr 2004, 01:22
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Real name: sabe
Originally Posted by tamarian
ooooh good thing i saw that, i thought this was xenons hack but for forumdisplay rather than forumhome
__________________
UNDER CONSTRUCTION: Confessionary Hack

Make me a Hack of The Month author: GRPS: Groups Commune
make my hacks, they'll make you famous

unless it's a security concern, please do not pm/im me for support unless you're willing to pay.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:04.

Layout Options | Width: Wide Color: