Quote:
Originally Posted by SirAdrian
It should actually be $vbulletin->userinfo['userid'] . To simplify the code, and fix:
PHP Code:
if (!$vbulletin->userinfo['userid']) { print_no_permission(); }
|
Quote:
Originally Posted by amcd
A blank page usually means that display_errors is off in php.ini. Either switch that on or set the error_log variable to a file writable by nobody.
put this just below the 'START MAIN SCRIPT' comment
Code:
if ($vbulletin->userinfo->userid==0)
{
print_no_permission();
}
|
thanks for the code guys!
EDIT: Works perfectly!