Quote:
Originally Posted by magmaink
is there a way to restrict access to non-vb pages???? Meaning users have to log in to browse certain pages of the site?
|
Use this at the top of your files, changing the forum/ to match your site:
PHP Code:
<?php
// require the vBulletin sessions
chdir('forum/');
require_once('global.php');
// check if user is a guest
if (!$bbuserinfo['userid'])
{
// tell them they have to register first
print_no_permission();
}
?>