The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Exclude CERTAIN sub forums from showing on ForumHome
I want to exclude some sub forum from showing on my forum home. The forum set up is like this:
Catgorey -Forum -5 Sub Forums I want to exclude these 5 sub forums from showing. Any help is greatley apreciated. |
#2
|
||||
|
||||
I have my settings in (Admin CP) vBulletin Options --> Forum Listings Display Options:
Depth of Forums - Forum Home = 2 Depth of Forums - Forum Display = 2 Depth of Sub-Forums = 0 My sub-forums only display when the parent forum link is clicked. |
#3
|
|||
|
|||
See the hting is I want all sub forums listed on all forums except one particular forum. Sorry if I was not clear enough, I am in zombie mode tonight.
|
#4
|
||||
|
||||
That may be achievable using a "forumid" conditional. Let me experiment on the idea and I'll get back to you soon...
|
#5
|
|||
|
|||
Ok thanks I tried modifying forumhome_level1_nopost(forgive me if thats slightly off but you knwo what i mean) and forum_level2 no post and couldnt quite figure it out. I would much apreciate this.
Thanks. |
#6
|
|||
|
|||
Try modifying forumhome_subforumbit_post or nopost with a conditional surrounded by it.
The issue will be if there are more subforums there will be a stray comma. |
#7
|
||||
|
||||
Try this in forumhome_forumbit_level2_post:
Find this or something similar to: Code:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> Code:
<if condition="in_array($forumid, array(x))"> <else /> <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </if> Remember to enable show sub-forums in Admin CP. |
#8
|
|||
|
|||
That did it! Thank you very much, perhpas you can help me with one more small template edit:
PHP Code:
|
#9
|
||||
|
||||
I'm glad it worked.
The "Admin" row consists of 2 columns where the marquee row has only 1. So you'll need to add a "colspan" in your bottom <td> tag like so: Code:
<td class="alt1" align="center" width="100%" colspan="2"> |
#10
|
|||
|
|||
Thank you, very much! It worked. I knew it was something to do with collum span, but I am getting better with tbales. Just one small thing as I am such a perfectionist.
I can;t get the "Notice from the ADMINS!" text to center. Again thank you for your help and here is what I have tired: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|