Back to vBulletin 3.8 Add-ons

Cobo - Subforum Hidden (hides specific subforums from forum)
Mod Version: 1.0.0, by Cobo

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 12
Released: 24 Oct 2011 Last Update: 24 Oct 2011 Downloads: 56
Not Supported Template Edits Is in Beta Stage  

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>
While doing these changes vBulletin may have detected a template error warning, ignore it, just click "continue" to save the template (there is no error).

(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

File Type: %1$s product-cobo_subforum_hidden.xml (2.6 KB, 58 downloads)

Supporters / CoAuthors

  • Cobo

Screenshots

Click image for larger version
Name:	preview_acp.png
Views:	196
Size:	112.6 KB
ID:	134055   Click image for larger version
Name:	preview_boards.png
Views:	266
Size:	103.1 KB
ID:	134056   Click image for larger version
Name:	preview_options.png
Views:	173
Size:	40.4 KB
ID:	134057  

Similar Mods

Forum Display Enhancements Subforums Moderators On Forums Listing vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024