Back to vBulletin 3.0 Add-Ons

New is_super_admin Function
Mod Version: 1.00, by Majik™

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 3
Released: 10 May 2004 Last Update: Never Downloads: 1
Not Supported  

New is_super_admin Function
Version: 1.0
vB-version: 3.0.0
Developer: Majik™
Install difficulty: Easy
File edits: 2
Template edits: 0


Description of the Hack:
This hack creates a new function similar to is_member_of which can be used to check if a user's a Super Administrator.

Examples:
PHP Code:
if (is_super_admin($bbuserinfo['userid']))
{
// user is a super admin so do it
}
else
{
// user isn't a super admin
// so do something else or nothing at all

Code:
<if condition="is_super_admin($bbuserinfo['userid'])">
<!-- user's a super admin so do something -->
<else />
<!-- user's not a super admin so do something else -->
</if>
HACK INSTALLATION DETAILS:
Files modified for this Hack:
/includes/adminfunctions_template.php
/includes/functions.php


Thanks to Boofo for allowing me to use part of his code for this.

Download

This modification is archived and cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2024