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)
-   -   Guests can see forums and threads, but must register to read threads. (https://vborg.vbsupport.ru/showthread.php?t=71498)

cycopia 11-07-2004 10:00 PM

Guests can see forums and threads, but must register to read threads.
 
In showthread.php, look for the following:

Code:

if (!($forumperms & CANVIEWOTHERS) AND ($thread['postuserid'] != $bbuserinfo['userid'] OR $bbuserinfo['userid'] == 0))
{
        print_no_permission();
}

Below this, paste the following:
Code:

###DENY NOT LOGGED IN (USER 0) AND USERS AWAITING EMAIL CONFIRMATION (GROUP 3)###
if($bbuserinfo['userid']==0||$bbuserinfo['usergroupid']==3) print_no_permission();


trainer 11-08-2004 11:53 PM

does this exclude search bots?

is there any way to have this allow guests to view X number of threads before this message appears?

Polo 11-09-2004 12:41 AM

I think this mod was released before... never the less thanks :)

Lionel 11-09-2004 05:54 AM

this is much much more simpler that the other mode (can view contents) which can be implemented on a per forum basis

lancepoint 11-09-2004 09:25 AM

i posted this request just the other day... awesome

skinny 11-09-2004 08:53 PM

Hmm, nothing changes for me. I've made the changes in showthread.php, ten I've logged out, and I can see forums, but not threads.. Anyone else the same?

neofootball 11-09-2004 09:20 PM

nothing changed for me either! :ermm:

secret1980 11-10-2004 09:31 AM

no change occurred for me too...

skinny 11-10-2004 09:04 PM

Glad it wasn't just me. Any thoughts on why we dont seem to see any difference?

paulyy 11-11-2004 02:26 AM

Because it's doing the same thing maybe?

Quote:

print_no_permission();


All times are GMT. The time now is 03:08 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.01293 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)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