Cobo - Subforum Hidden (hides specific subforums from forum)
Description
This modification is used to hide specific subforums from listing on your forum (forumhome) while leaving others displaying. In practice, on your boards you have a couple sections with a lot of subforums like the news and announcements area or community help area and it's starting to clutter your forum. But you do not want to hide all the subforums using the forum listing display options, all you need to do is enter the IDs of the subforums you wish not to display and it will hide them from the forum. So when you click on the category or sub category, they will appear as normal child categories, not as sub forums listing under the category. *refer to screenshot below if unclear* Requirements - Forum display listing options to be enabled (e.x. 2, 1, 1). Install/Upgrade 1. Download and import the product (overwrite if upgrading). 2. Navigate to the following path: Admin Control Panel -> Styles & Templates -> Style Manager -> Your Style -> Forum Home Templates 3. Open up both forumhome_subforumbit_nopost and forumhome_subforumbit_post and add the following if condition (in green) surrounding all the code within it. Code:
<if condition="in_array($forumid, $subforum_hidden) == false"> Your Existing Code </if> (refer to the appendix to view my files if unclear) 4. Edit the Cobo - Subforum Hidden options in the vBulletin options area of the administrative control panel and enjoy! Appendix forumhome_subforumbit_nopost Code:
<if condition="in_array($forumid, $subforum_hidden) == false"> <img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> </if> forumhome_subforumbit_post Code:
<if condition="in_array($forumid, $subforum_hidden) == false"> <img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> </if> Revision Log 1.0.0 - Initial release. Download
product-cobo_subforum_hidden.xml (2.6 KB, 58 downloads) Supporters / CoAuthors
Screenshots |
Similar Mods
Forum Display Enhancements Subforums Moderators On Forums Listing | vBulletin 3.6 Add-ons |