View Full Version : Creating controlpanel for custom usergroup
nerofix
12-22-2007, 05:36 PM
I'd like to know if it's possible to create an own controlpanel for custom usergroups, similiar like the mods and admins got.
Or, perhaps also creating a controlpanel for an user-ID only?
Does someone already got experience with?
MoT3rror
12-22-2007, 09:32 PM
<?php
$curdir = getcwd ();
chdir('/public_html/forums');
require_once('/public_html/forums/global.php'); // location of your forums
chdir ($curdir);
if($vbulletin->userinfo['userid'] == 1) // UserID of the user you want to have access the panel
{
// Special code that only user gets to see
}
else
{
echo "You don't have permission to access to function."; // Error message for user that doesn't have access.
}
?>
If you want to usergroup, use the function is_member_of (http://members.vbulletin.com/api/vBulletin/_includes_functions_php.html#functionis_member_of) . You can also just create your own login system but check it against the user table for your forums.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.