PDA

View Full Version : Show sub-Forums only for certain forums


imported_infitech
11-21-2006, 10:00 PM
Really small conditional that im sure anyone that knows anything about VBulletin's conditionals can figure out on their own, but I figured other members might want to know how to do this....

If you want to display the list of sub-forums only for some forum ids...

Be sure that sub-forums are enabled in AdminCP>Forum listing>Depth of sub-forums set to at least 1

in forumhome_forumbit_level2_post

look for <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px">and replace it with <if condition="$show['subforums'] AND in_array($forum['forumid'], array(x))"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px">


DEMO
http://www.ny-dev.com/forums/

azn_romeo_4u
12-11-2006, 03:20 PM
very nice been looking for something like this for ages!!!

iorkara
04-26-2007, 12:56 AM
Nice I also been looking for something like this.. Installed

The360Place
03-08-2008, 04:02 PM
I did everything, but the sub-forums still dont display on the forum index.