I used it like that
PHP Code:
if(($vbulletin->options['on_off']) AND (!empty($vbulletin->options['profileid'])) AND ($vbulletin->userinfo['userid'] == $vbulletin->options['profileid']))
{
standard_error('Sorry you are not allowed to view this profile');
}
But the problem is it is hiding the profile if the viewer id was = userid
What I want is to hide the profile from all members
ex.
If the page was
Code:
www.example.com/member.php?u=$vbulletin->options['profileid']
It will show the error message.