Zaulael
08-14-2013, 05:30 AM
Hello,
I'm trying to make a modification in user.php (/admincp/user.php) so that only Super Admins can delete users. Now, forgive me, I'm not very familiar with how to check if the current USER (not the current USERID you're looking it) is a Super Admin, or of a certain userid.
So far, I have:
if ($vbulletin->GPC['userid'] == 5)
{
$quicklinks["user.php?" . $vbulletin->session->vars['sessionurl'] . "do=remove&u=" . $vbulletin->GPC['userid']] = $vbphrase['delete_user'];
}
As you may have guessed, this doesn't work.
Anyone have any suggestions for a beginner vbulletin editor/modder?
Thanks in advance!
I'm trying to make a modification in user.php (/admincp/user.php) so that only Super Admins can delete users. Now, forgive me, I'm not very familiar with how to check if the current USER (not the current USERID you're looking it) is a Super Admin, or of a certain userid.
So far, I have:
if ($vbulletin->GPC['userid'] == 5)
{
$quicklinks["user.php?" . $vbulletin->session->vars['sessionurl'] . "do=remove&u=" . $vbulletin->GPC['userid']] = $vbphrase['delete_user'];
}
As you may have guessed, this doesn't work.
Anyone have any suggestions for a beginner vbulletin editor/modder?
Thanks in advance!