Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 07-25-2007, 11:55 AM   #1
vBulletin Owner
 
Ville's Avatar
 
Join Date: Jul 2007
Location: North Texas
Posts: 33
Ville will become famous soon enough
Lightbulb Removing threads display from a forum to create a hybrid "sub-forum container"

I was asking if there is a way to remove thread display from a forum without converting it into a category. I then answered my own question. Here's the tip:

I made initially a dirty hack for this; I added a few conditionals to FORUMDISPLAY to exclude thread listing, icon key, and forum rules from the one forum where I don't want them to be displayed. But then I discovered that changing just one line in forumdisplay.php would do the trick, mostly. I changed the line
Code:
if ($foruminfo['cancontainthreads'])
around line 438 to
Code:
if (($foruminfo['cancontainthreads']) AND ($foruminfo['forumid'] != 13))
This turns thread display, and the legend off for the forum that I want to only display the sub-forums (the number "13" represents the forum ID that you would see when viewing the forum normally, in my example it is "13", like so: http://community.zjournal.com/forumdisplay.php?f=13).

The $foruminfo['cancontainthreads'] variable that controls the thread display is set in the Forum Manager by "Act as Forum", but turning it off turns the forum into a category which won't list the total number of posts in the sub-forums, or show the most recent message title in the sub-forums like a regular forum does.

After the above addition the key for "Forum Contains New Posts", "Forum Contains No New Posts", and "Forum is Closed for Posting" is still displayed. Since I have replaced the sub-forum graphics with custom graphics in the "sub-forum container forum" that key is now irrelevant, and I took it out in FORUMDISPLAY template around lines 468..489 by locating "<!-- icon key -->"; it has an opening conditional "<if condition="$show['threadslist']">" and the corresponding "<else />" little ways down in the code. I then added the following immediately after the "<else />":
Code:
<if condition="$foruminfo[title] != 'Columnists'">
.. and closed the conditional by placing "</if>" immediately before "<!-- / icon key -->".

"Columnists" is the name of the sub-forum container forum in my example, i.e. z/Journal Mainframe Community > Mainframe Forums > Columnists, and it's forum ID is "13".

The end-result is a category-like forum, or a forum-like category which is works well as a container for sub-forums.

My example can be seen here (it's the forum I created this hack for).
__________________
rapidshare downloads

Last edited by Ville; 07-26-2007 at 10:49 AM. Reason: Converted a question into a hack/mod
Ville is offline   Reply With Quote

Advertisement [Remove Advertisement]

Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
create, display, forum, hybrid, removing, subforum container, threads

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please vote for Walt Disney Boards as "Best Forum / Message Board" ArnyVee General Discussion 24 09-09-2009 04:32 PM
Removing Members name| forum home and forum display Template for a specific forum Ekka Troubleshooting vBulletin Problems 6 07-21-2009 06:48 AM
Do your members stay "invisible" when reading the forum? Soliloquy Community Forum Management 2 09-13-2008 04:21 PM
Do you ever "rate" threads on your forum? do you encourage your members too? Brandon Sheley Community Forum Management 33 09-08-2008 04:48 PM
"forum", "forums", "talk" etc... what do people search for? Soliloquy vBulletin SEO Tips and SEO Questions 2 07-14-2008 08:21 AM


All times are GMT -8. The time now is 10:32 AM.