PDA

View Full Version : Give Subscriptions view access to guests


vbenhancer
02 Apr 2012, 18:30
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

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:

if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'list';
}

JUST BELOW, ADD THESE LINES:

if ($vbulletin->userinfo['userid'] == 0 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...

Princeton
02 Apr 2012, 21:17
thank you for sharing nexi :up:

Davey-UK
06 Apr 2012, 11:23
Simple but a great feature.
Thankyou very much indeed.