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

Reply
 
Thread Tools
Show/Hide Private Forums Details »»
Show/Hide Private Forums
Version: 1.0.01, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-27-2005 Last Update: 08-13-2005 Installs: 7
DB Changes Uses Plugins
Code Changes Is in Beta Stage  
No support by the author.

Show/Hide Private Forums

Description
vBulletin already has a setting to specify if a Forum where the User does not have Permissions
should still be listed or not.
Unfortunately, this is a All or Noting setting, eg. you can't show your Premmium Members Forum,
but still hide your Staff Zone.
This Hack turns this into a Forum Setting, making it possible to show one Forum but Hide another -
no matter the the global setting is.

Details
1 Product XML with 2 Plugins and 3 Phrase
7 File Edits

If somebody has got the ultimate Idea how this could be done without File Edits i'd be more then happy to know

History
1.0.0 Initial Version
1.0.1 Fixed a Typo in the Install Code which caused a Query not to be executed properly.

Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-12-2005, 09:37 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ack. This is a Bug in vBulletin.
Fixed the XML and updated the ZIP.
Reply With Quote
  #13  
Old 08-14-2005, 01:02 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Kirby,

Got the following error when I try to add a new forum in the admincp, when I disable your hack all is okay, enabled it just throws this out.

taffy

Code:
Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
INSERT INTO forum
	(title_clean, title, description_clean, description, link, displayorder, daysprune, parentid, newpostemail, newthreademail, options, styleid, password, issponsor, sponsor_banner, sponsor_url, showifnopermission)
VALUES
	('Admin Forum', 'Admin Forum', '', '', '', 1, -1, 1, '', '', 89799, 0, '', '0', '', '', 0);

MySQL Error  : Unknown column 'showifnopermission' in 'field list'
Error Number : 1054
Date		 : Sunday, August 14th 2005 @ 03:55:36 AM
Script	   : http://www.mydomain.org.uk/testforum/admincp/forum.php
Referrer	 : http://www.mydomain.org.uk/testforum/admincp/forum.php?do=add&parentid=1&s=
IP Address   : *.*.*.*
Username	 : *
Classname	: vb_databas
Reply With Quote
  #14  
Old 08-14-2005, 02:17 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*hmpf*

Run the following Query
[sql]ALTER TABLE forum ADD showifnopermission TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'[/sql]
(Keep Table-Prefixes in mind!)

Or redownload and overwrite.
Reply With Quote
  #15  
Old 08-14-2005, 07:47 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

That fixed it, thank you for sharing

taffy
Reply With Quote
  #16  
Old 11-05-2006, 05:45 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great MOD

Is it possible to get it to work for Sub-Forums on the FORUMHOME display?
It hides all the forums but sub-forums remain visible even if I select NO under the visible option.
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 07:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05935 seconds
  • Memory Usage 2,248KB
  • Queries Executed 20 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete