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)

dontpanic 01-26-2004 09:30 PM

Great hack, I too am wondering how it could be used selectively on one or more specific forums though.

dano 01-26-2004 10:02 PM

Quote:

Originally Posted by Gary W
This template: username_loggedout

Oh crap, looks like it has been split into MANY different phrases

n00belit3 02-07-2004 11:32 AM

Very nice, i have only one problem, for those of us using portals such as vbindex i figured out taht you can still view threads as unregistered by clicking under "latest threads". Is there any way from preventing unregistered users from doing this?

Gary King 02-08-2004 01:11 PM

Quote:

Originally Posted by n00belit3
Very nice, i have only one problem, for those of us using portals such as vbindex i figured out taht you can still view threads as unregistered by clicking under "latest threads". Is there any way from preventing unregistered users from doing this?

I would normally tell you to ask in the vBIndex support thread, but I'm feeling nice today :p

So here we go:

Open up the vbindex.php for vBIndex and find
PHP Code:

if ($vbindex['options'] & VBI_SHOWTHREADS) { 

Replace with
PHP Code:

if ($vbindex['options'] & VBI_SHOWTHREADS and $bbuserinfo[userid] != 0) { 

There we go that should work :D

bluecat 02-11-2004 02:27 AM

Great hack, thank you. Can someone tell me how to accomplish this though: I have a few forums that only certain usergroups (paid subscribers) can access, but I want regular registered users to be able to see the post counts and threads, but not the content, just like guests now see with this hack (as opposed to "Never" and 0's). Is this possible? Thank you. Also, it works perfect for guests in these areas, just not registered users. :(

bluecat 02-13-2004 11:37 AM

anyone?

PixelFx 02-14-2004 09:10 PM

this is very cool :)

bluecat 02-14-2004 09:59 PM

I checked my stats and we now have on average between 40 to 55 new registrations a day with this, thanks (compared to our usual 5 a day)! But man, I apologize to ask again, but I have a paid restricted area that we used to get about 3 people a week sign up for, but now we only one in the last month, and it's definitely because these protected areas always look empty. Any advice? :(

Gary King 02-15-2004 12:19 PM

Quote:

Originally Posted by bluecat
I checked my stats and we now have on average between 40 to 55 new registrations a day with this, thanks (compared to our usual 5 a day)! But man, I apologize to ask again, but I have a paid restricted area that we used to get about 3 people a week sign up for, but now we only one in the last month, and it's definitely because these protected areas always look empty. Any advice? :(

Try this:

Below the newly added code from this hack, add the following:
PHP Code:

if ($bbuserinfo['usergroupid'] == and $forumid == X)
{
    
print_no_permission();


Of course replacing X with their respective numbers.

bluecat 02-15-2004 11:26 PM

Thank you very much! That worked. I had to go through and add one for each forum. Not sure if there's an easier way, but this works. Thank you very much.

Here's what I added which is for 3 different forums that are only for certain groups (paid subscribers):

PHP Code:

if ($bbuserinfo['usergroupid'] == and $forumid == 73

    
print_no_permission(); 
}
if (
$bbuserinfo['usergroupid'] == and $forumid == 45

    
print_no_permission(); 
}
if (
$bbuserinfo['usergroupid'] == and $forumid == 95

    
print_no_permission(); 




All times are GMT. The time now is 06:48 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.01403 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (3)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