The Arcive of vBulletin Modifications Site. |
|
New is_super_admin Function Details »»
|
|||||||||||||||||||||||||
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:
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> 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. ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
interesting
|
|
#3
|
||||
|
||||
|
Different, I do not see much use for it, unless you have alot of admins.
|
|
#4
|
||||
|
||||
|
Quote:
If you can use, use it.. If not, don't. ;p Was mainly done for my own use/needs anyhow.
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||
|
||||
|
Quote:
|
![]() |
|
|