kennethj
10-01-2009, 11:58 AM
am trying to restrict access to an external script. right now have it for members of the forum only, need to make sure they have been added, not changed to a usergroup.
we are using this php in an external script to prevent access to people who do not have access to the forum right now:
if (!$vbulletin->userinfo['userid'])
$is_logged_in = true;
$username = $vbulletin->userinfo['username'];
$email = $vbulletin->userinfo['email'];
what we need to do is check if they are also a member of a usergroup also
( are adding the usergroup and Not changing it ).
<if condition="is_member_of($vbulletin->userinfo, 5)">
am not sure how to change this into the right php to achieve this.
thanks for any help .. .
we are using this php in an external script to prevent access to people who do not have access to the forum right now:
if (!$vbulletin->userinfo['userid'])
$is_logged_in = true;
$username = $vbulletin->userinfo['username'];
$email = $vbulletin->userinfo['email'];
what we need to do is check if they are also a member of a usergroup also
( are adding the usergroup and Not changing it ).
<if condition="is_member_of($vbulletin->userinfo, 5)">
am not sure how to change this into the right php to achieve this.
thanks for any help .. .