PDA

View Full Version : custom page outside forum


Wizardjv
05-09-2007, 07:13 AM
Ok I know how to make a custom page. But I have some custom php code I only want certain usergroup to see. I know how to make it work in the vbulletin. But my php doesnt work inside the vbulletin only outside on the server.

So what I would like to do is make a custom page outside of the forum where I can stick the php but only accessible by certain usergroups.

I have tried everything to no avail and looked everywhere for an answer.

Is there a certain tag I can use to make the php work in the vbulletin or is there anyway can do this?

I would really appreciate any and all help. Thank You ahead of time

Dismounted
05-09-2007, 07:44 AM
Is this using a vBulletin backend (global.php is included)? If so, use:
is_member_of($vbulletin->userinfo, USERGROUPIDHERE)

Wizardjv
05-09-2007, 08:19 AM
I fiured it out Thank You for pointing me in right direction

for others its

<?
if (!is_member_of($vbulletin->userinfo, 5))
{
print_no_permission();
}
?>

I put it right after I called the global.php and works fine :)