vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Restrict Guest Viewing Threads in a Forum (https://vborg.vbsupport.ru/showthread.php?t=32132)

Scott MacVicar 04-13-2002 11:29 PM

Yeah the guests can view what is in the forums, but when they click the individual thread to read it they will get this error message.

sammy22 04-13-2002 11:31 PM

but i logged out, and i can read them fine???

sammy22 04-14-2002 03:38 AM

BTT. still cannot get this going

Neo 04-28-2002 07:52 PM

Had this been integrated into Vb yet?

sammy22 04-28-2002 07:54 PM

still cannot get this going after several attemts. must not work on 2.2.5

Neo 04-28-2002 08:51 PM

Hmmm... really I might have to try this

trainer 09-20-2002 02:03 PM

does anyone know if this works for 2.2.7?

350Chevy 12-01-2002 06:14 AM

Quote:

Originally posted by trainer
does anyone know if this works for 2.2.7?
Probably not. Doesn't work for 2.2.9...

All settings are there, dB query added, template added, and option changed in the CP to supposedly disable guest viewing. No errors, it just acts as if it doesn't work. Guests can click on them and view the contents without a problem. :disappointed:

pepitojones 12-02-2002 08:03 PM

Works just fine on 2.2.9. You should double check all of the steps and make sure you pay close attention to this part of the install:

Quote:

look for the following on line 208 (second occurence in file)
It won't work if you place it after the first one..

--

Also, the install file db query:

Code:

ALTER TABLE `forum` ADD `allowguestpostview` SMALLINT(6) DEFAULT '1' NOT NULL
sets all of the forums to allow viewing. If you wish to turn it off on ALL forums in one easy step, run this query on your vB db:

Code:

UPDATE `forum` SET `allowguestpostview` = 0
One other thing you might wish to do is set the default to be off in the db. This can be accomplished via this query:

Code:

ALTER TABLE `forum` CHANGE `allowguestpostview` `allowguestpostview` SMALLINT( 6 ) DEFAULT '0' NOT NULL
--

Hope that helps.

350Chevy 12-03-2002 07:17 PM

ahhhhhhhhhh.. You are correct. Works fine with 2.2.9. I didn't see the little words "(second occurence in file)" LOL

Guess that's what I get for trying to add code when drinking. hehehe!

Nice hack!


All times are GMT. The time now is 01:45 AM.

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.00961 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete