![]() |
Good job. :) I will add that to the first post giving credit to you.
|
only problem with that is its still hard coded via usergroups
|
Quote:
Quote:
|
I don't mind. :) Just post it here, and I will include it in the first post.
|
no i was refering to the fact that you were still using usergroup id's which arnt always a good idea anymore :) (or so i keep being told)
|
Erm.. if there's another way to do it, I'm all ears. Sure, I used can_moderate() for moderators.. but is there a can_admin(), too? Heh..
|
can_moderate()
$permissions['adminpermissions'] & CANCONTROLPANEL at least i think so? what i pulled outta beta 7 :) |
Quote:
So.. until I can find how they want me to do it, usergroupid will have to do. :D |
if you use
<if condition="$permission['adminpermissions'] & CANCONTROLPANEL"> it will only show to admins |
It's $perm['adminpermissions'] and yes, you're right.. that will work if I want to show to admins, but that's not what I'm trying to accomplish sadly.
I need to display warning options on a per user basis, if the selected user is an admin then the warning options will NOT be displayed for them when clicked -- which is why the usergroupid is being used. $permisson[] gets the permissions of the logged in user, not the selected user. |
All times are GMT. The time now is 07:15 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:
|