PDA

View Full Version : Subforum help?


hiphabs
01-03-2009, 02:27 AM
Hi i just want to know if i can like make only subforums in one section. like instead of having it on every single forum i just want it on one forum. Is it possible for me to do that?

Thanks.

Lynne
01-03-2009, 02:51 AM
Is it possible to only add sub-forums to one forum? Sure. Or wait, do you mean how it lists the sub-forums for a section? I suppose you can add to the "<if condition="$show['subforums']">" condition a condition regarding the forumid.

hiphabs
01-03-2009, 03:10 AM
Yea thats what i mean, i want the sub-forums for one section. But can you please explain it more to do that. Like where do i go to do it? And stuff. Thanks.

Lynne
01-03-2009, 03:31 AM
You probably want the template forumhome_forumbit_level2_post and then change this line:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

To this (change x to the forumid you do want to show the subforums for):
<if condition="$show['subforums'] AND $forum['forumid'] == 'x'"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

Also, you need to have the sub-forums on in vboptions > forum listing display options

Michael.A
01-03-2009, 10:55 AM
Thax...