vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show/Hide Private Forums (https://vborg.vbsupport.ru/showthread.php?t=93093)

Andreas 07-27-2005 10:00 PM

Show/Hide Private Forums
 
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!

Allan 07-28-2005 09:31 PM

little screens please :)

Andreas 07-28-2005 09:33 PM

Imagine the "Show Private Forums" setting from ACP / vBulletin Options / vBulletion Options / Forum Listings Display Options in Forum Manager - Screenshot done.

nexialys 07-28-2005 10:10 PM

ah ah... screenshot requests when there is none to provide by logic...

i like it!

Boofo 07-29-2005 12:03 AM

Good one, Kirby. ;)

Welcome back, nexialys. ;)

monstergamer 07-29-2005 12:17 AM

Quote:

Originally Posted by KirbyDE
Imagine the "Show Private Forums" setting from ACP / vBulletin Options / vBulletion Options / Forum Listings Display Options in Forum Manager - Screenshot done.

that has to be one of the fastest loading screen shot i have ever downloaded :rolleyes:

this might come in handy

Protoman 07-29-2005 05:07 AM

I don't understand this exactly.

In 3.0 you can set forum permissions for every usergroup.. choosing to show the goodies section for premium members and the admin section to admins only. It wasn't all or nothing. did this change in 3.5??

Andreas 07-29-2005 07:43 AM

Take a look at ACP / vBulletin Options / vBulletin Options / Forum Listings Display Options / Show Private Forums

If this is set to either Yes option, Forums where the User does not have Permissions will also be listed - all of them.
This Hack just breaks down this setting to Forum level.

Really that difficult to understand?

Protoman 07-29-2005 03:35 PM

I get it now. Never used that feature before

taffy056 08-12-2005 07:27 AM

Hi,

Got a problem when I upload the xml file, I get the following error message

Code:

XML Error: not well-formed (invalid token) at Line 3
taffy

Andreas 08-12-2005 09:37 AM

Ack. This is a Bug in vBulletin.
Fixed the XML and updated the ZIP.

taffy056 08-14-2005 01:02 AM

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


Andreas 08-14-2005 02:17 AM

*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.

taffy056 08-14-2005 07:47 AM

Hi,

That fixed it, thank you for sharing :)

taffy

JohnBee 11-05-2006 05:45 PM

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.


All times are GMT. The time now is 04:52 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.01172 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete