vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Disallow guests to view threads, must register first (https://vborg.vbsupport.ru/showthread.php?t=59859)

Preds 03-26-2004 01:34 AM

Very easy to install, this hack is a big improvement in showing that the board is indeed active yet keeps the posts locked to unregistered guests. I like it.

BTW, for those that might be interested, I installed this on vB 3.0.0 Gold without any problems.

You can check it out at predsff.com/forums

WreckRman2 03-27-2004 02:12 AM

I really like this however I'd like to see it work on select forums only... can that be done?

Gary King 03-27-2004 01:08 PM

Quote:

Originally Posted by IndyWebDesign
I really like this however I'd like to see it work on select forums only... can that be done?

Use this code, replacing X with whatever forumid you want to block to guests:
PHP Code:

if ($bbuserinfo['userid'] == AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si"$_SERVER['HTTP_USER_AGENT']) AND $forumid == X

    
print_no_permission(); 



Aleksey 03-28-2004 03:11 PM

Does work for me.

Aleksey 03-28-2004 03:13 PM

ok it works now :-\

Gary King 03-29-2004 07:06 PM

Quote:

Originally Posted by Hibernated
Does work for me.

So what's the problem then..?

Logikos 03-30-2004 07:28 AM

Quote:

Originally Posted by Zilvia
Does this work with vB 3.0.0 Final? I cant find the first edit in showthread.php

Yes look for this

PHP Code:

globalize($_REQUEST, array(
        
'perpage' => INT,
        
'pagenumber' => INT,
        
'highlight' => STR,
        
'goto'
)); 


manguish 03-30-2004 08:04 AM

Fantastic! :D

Clicks Install...... This should`ve been in from scratch ;)

WreckRman2 04-01-2004 05:02 PM

Quote:

Originally Posted by Gary W
Use this code, replacing X with whatever forumid you want to block to guests:
PHP Code:

if ($bbuserinfo['userid'] == AND !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si"$_SERVER['HTTP_USER_AGENT']) AND $forumid == X

    
print_no_permission(); 



That does work for a single forum. Is there a way to block multiple ones?

Gary King 04-01-2004 07:48 PM

Quote:

Originally Posted by IndyWebDesign
That does work for a single forum. Is there a way to block multiple ones?

Just keep on adding AND $forumid == X after AND $forumid == X


All times are GMT. The time now is 03:29 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.01188 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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