View Full Version : Hide sub-forums for some forums on main page?
amjadz4
06-08-2009, 09:52 AM
Is there any way to hide the subforums for a particular forum on the main page FORUM HOME only? For example I have a forum with a quite lot of subforums under it. I want to hide them and make that forum look as if it does not have any subforums ( on the home page ) but when you click it...the subforums show there normally as they would do.
Thanks in advance!
amjadz4
06-12-2009, 10:20 AM
Anyone?
bartek24m
01-13-2011, 11:54 PM
anyone ?
BirdOPrey5
01-16-2011, 11:44 PM
There are 4 templates you have to edit for each style...
forumhome_forumbit_level1_post
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_post
forumhome_forumbit_level2_nopost
In each make this edit:
Find:
<if condition="$show['subforums']">
Replace With:
<if condition="$show['subforums'] AND $forum[forumid] != X">
Replace X with the forumid of the parent forum from which you don't want to show subforums on forumhome.
Inferno Dragon
01-15-2012, 09:17 PM
sorry for digging this old thread, but I was searching for something similar and found this! which will comes handy. thanks for the tip.
MarkoP
10-29-2012, 03:18 AM
There are 4 templates you have to edit for each style...
forumhome_forumbit_level1_post
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_post
forumhome_forumbit_level2_nopost
In each make this edit:
Find:
<if condition="$show['subforums']">
Replace With:
<if condition="$show['subforums'] AND $forum[forumid] != X">
Replace X with the forumid of the parent forum from which you don't want to show subforums on forumhome.
Thank you!
Simon Lloyd
10-29-2012, 07:31 AM
You don't need to code anything, in your admincp>forum listings display options change this:
Depth of Sub-Forums
If you have forums below the depth specified in the 'Depth of Forums' settings above, you can display them as sub-forum links in each forum's display area.
Set this value to 0 if you want to display no sub-forums.
To zero :)
MarkoP
10-29-2012, 07:53 AM
You don't need to code anything, in your admincp>forum listings display options change this:
Depth of Sub-Forums
If you have forums below the depth specified in the 'Depth of Forums' settings above, you can display them as sub-forum links in each forum's display area.
Set this value to 0 if you want to display no sub-forums.
To zero :)
That applies to ALL forums. We're only wanting to not display the subforums of certain forums..
Simon Lloyd
10-29-2012, 07:54 AM
My apologies, still bleary eyed this morning :)
MarkoP
10-29-2012, 08:17 AM
My apologies, still bleary eyed this morning :)
Me too :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.