New is_super_admin Function
This modification is in the archives.
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']))
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. Download This modification is archived and cannot be downloaded. |