View Full Version : Admin only ...
paulyy
07-22-2004, 08:27 AM
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 :)
Andreas
07-22-2004, 08:36 AM
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.
paulyy
07-22-2004, 08:40 AM
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 :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.