View Full Version : Subforums Display Forum Home
paul41598
07-09-2005, 12:59 PM
Is there a way to display subforums on the forum home, for only specific forums?
I want the subforums displayed for one of my parent forums on the forum homepage, but I dont want a subforum displayed on a different parent forum.
Princeton
07-09-2005, 01:33 PM
use a conditional in templates
paul41598
07-09-2005, 02:07 PM
use a conditional in templates
example?
Princeton
07-09-2005, 02:33 PM
NOT TESTED:
<if conditional="$forum['forumid'] == {insert forumid}">
<strong>$vbphrase[subforums]</strong>: $forum[subforums]
</if>
OR for multiple forums
<if conditional="in_array($forum['forumid'], array({insert, mulitple, forumids})">
<strong>$vbphrase[subforums]</strong>: $forum[subforums]
</if>
NOTE: Replace {insert forumid}, {insert, mulitple, forumids} with forumid(s).
paul41598
07-09-2005, 03:51 PM
how about a not conditional? If forumid = 2, then do not display the subforms...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.