Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cobo - Subforum Hidden (hides specific subforums from forum) Details »»
Cobo - Subforum Hidden (hides specific subforums from forum)
Version: 1.0.0, by Cobo Cobo is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 10-23-2011 Last Update: 10-23-2011 Installs: 12
Template Edits
Is in Beta Stage  
No support by the author.

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 Now

File Type: xml product-cobo_subforum_hidden.xml (2.6 KB, 56 views)

Screenshots

File Type: png preview_acp.png (112.6 KB, 0 views)
File Type: png preview_boards.png (103.1 KB, 0 views)
File Type: png preview_options.png (40.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
xorex

Comments
  #2  
Old 10-24-2011, 08:14 PM
EddyMaxx EddyMaxx is offline
 
Join Date: Jan 2010
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't see any screenshot.
Reply With Quote
  #3  
Old 10-25-2011, 04:33 AM
Cobo Cobo is offline
 
Join Date: Oct 2011
Location: Canada
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EddyMaxx View Post
Can't see any screenshot.
Screenshots added, I took three screenshots. One of the boards, one of the forums via the administrative control panel and one via the vBulletin options. Should show a clear example of what this modification does.

The reason it was created is because I found countless posts picked up by Google asking how to hide specific sub forums, this is the ultimate solution to that problem for 3.8.x.
Reply With Quote
  #4  
Old 10-25-2011, 10:17 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would strongly suggest going forward you include installation instructions in a text file and include it in a zip file so when a user downloads they have all the instructions in one place.
Reply With Quote
  #5  
Old 10-25-2011, 05:59 PM
Cobo Cobo is offline
 
Join Date: Oct 2011
Location: Canada
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I would strongly suggest going forward you include installation instructions in a text file and include it in a zip file so when a user downloads they have all the instructions in one place.
Thanks for the suggestion, I'll be sure to do that for any further releases. For now they will need to follow the instructions on the thread and then download the product.
Reply With Quote
  #6  
Old 12-02-2011, 03:18 PM
bartek24m bartek24m is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good job ! Installed
Reply With Quote
  #7  
Old 12-03-2011, 04:43 PM
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Posts: 550
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You ripped my forum category names lol.
Reply With Quote
  #8  
Old 01-15-2012, 05:22 AM
Cobo Cobo is offline
 
Join Date: Oct 2011
Location: Canada
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am considering releasing a more up-to-date version of this. I've done some tweaking to this modification. None the less, enjoy.
Reply With Quote
  #9  
Old 04-06-2012, 02:59 PM
Cobo Cobo is offline
 
Join Date: Oct 2011
Location: Canada
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am now developing a newer version of this modification with a few improvements. I will post the upgrade shortly. For all those that marked it as installed I appreciate the support.
Reply With Quote
  #10  
Old 04-14-2012, 09:37 PM
Gladius2007 Gladius2007 is offline
 
Join Date: Nov 2007
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just what I need, when do you expect to release the update?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04575 seconds
  • Memory Usage 2,322KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete