![]() |
Admin only ...
I have a piece of code that I want to be viewed by Admins, super mods and mods only, can anyone tell me how to do this?
I know it's something like <if condition"$userinfo[usertitle]== "> Can anyone help me, it would be much appreciated, maybe I can return the favour some how :) |
If you have your admins, supermods and mods only in the standard usergroups you can do
<if condition="is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)"> If you do not have all your staff in one of those groups it is getting more difficult. You could use can_moderate() in this case, but it will cause an extra query in a lot of pages. |
Yup they're in the original usergroups. Thanks again, you've help me out quite a few times, let me know if you need any help :)
|
All times are GMT. The time now is 10:50 AM. |
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:
|