![]() |
Need IsAdmin function
I need an IsAdmin function that works like the CanModerate function but only returns a true flag if the user is a member of the Administrator group.
Can anyone please help? |
Do you want this for templates, or for files?
You can just use this: PHP Code:
|
That works! thanks!
|
No problem ;)
|
Code:
// if the admin groupid is 6 (as default) -------------------------------- PS: Also you can use it in templates: Code:
<if condition="is_member_of(6)"> |
or, you can include('./includes/adminfunctions.php'); then do if (can_administer())
|
is_member_of() needs the $bbuserinfo passed over to it as well though:
if (is_member_of($bbuserinfo, 6)) {} |
All times are GMT. The time now is 04:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|