Back to vBulletin Tips & Tricks

Give Subscriptions view access to guests
by vbenhancer 02 Apr 2012
Rating: (1 vote - 4.00 average)

To let the Guest/Unregistered users see the subscriptions list before registration, here is the way to do it:

FIND IN FILE /payments.php on line 56

PHP Code:
if ($vbulletin->userinfo['userid'] == 0)
{
    
print_no_permission();

DELETE these lines, or comment them by putting a # in the begining of each line.

THEN FIND THESE LINES, 3 LINES BELOW:

PHP Code:
if (empty($_REQUEST['do']))
{
    
$_REQUEST['do'] = 'list';

JUST BELOW, ADD THESE LINES:

PHP Code:
if ($vbulletin->userinfo['userid'] == AND $_REQUEST['do'] != 'list')
{
    
print_no_permission();


That's it... now, when guests visit the subscriptions to see what are the deals possible on your site, they see the main page and will be requested to register/login if they continue. This is a good way to invite your guests to register, as they see what you have to offer to them if they do!

This is a How-To for vB 3.7+ to 4.x...

vblts.ru supports vBulletin®, 2022-2024