View Full Version : Display Subforum Links on a Per Forum Basis
kennn
04-23-2006, 01:44 AM
Is there a way to display subforum links on the forum home page on a per forum basis?
I would like to have subforum links displayed (by setting subforum display to 1) but I have one Archives forum that has nothing but subforums - a lot of them - and the forum home page looks like hell when subforum links are turned on.
Is there any way to turn on subforum links for all the other forums but leave them off for that one Archives forum?
Thanks!
Arngrim
07-30-2006, 03:57 AM
I'd be quite interested in something like this as well; I usually have a couple of sub-forums per Forum, but nothing over the top. Though there are two distinct areas with a lot of them, where the place would look rather messy if they were displayed. If something like this already exists, a push in the right direction would be helpful. Here's hoping someone can do this.
SiriusBlack22
07-30-2006, 04:44 AM
You could do it manually, as is what I do.
<a href="URL">[title of sub forum]</a> | <a href="URL">[title of sub forum]</a> | <a href="URL">[title of sub forum]</a> Do something like that maybe?
kennn
07-30-2006, 03:33 PM
Hi Arngrim...this is what I ended up using...
In the forumhome_forumbit_level2_post template, locate the existing line of code that displays subforums
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
...and change it to this:
<if condition="$show['subforums'] AND $forum[forumid] != 35 AND $forum[forumid] != 58"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
Note the "35" and "58" are the ID numbers of the forums I wanted no subforums to display on; you'll have to replace those IDs with the numbers of your specific forums where you want subforum links turned off. You can string more "AND $forum[forumid] !=XX" in the condition to exclude more than two forums if you need to. It works like a charm.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.