![]() |
Very nice :)
|
Just for reference, the following start to the if condition is a bit hefty:
HTML Code:
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"> HTML Code:
<if condition="!is_member_of($post['usergroupid'], array(5,6,7)) AND can_moderate($forum['forumid'], '', $bbuserinfo['userid'])"> Chris |
Is there a specific reason that you do not want the options to show up for admins/mods/smods? I think that would actually be useful it they did. :)
Besides, you should not check for moderator, because moderator cannot edit anything. Check for administrator instead... :) |
Quote:
He put the code, not me:p I personally would have put: PHP Code:
|
But why $post['usergroupid']? $bbuserinfo['usergroupid'] would make more sense :)
Besides, that is not how you use is_member_of :) Valid syntax: is_member_of($userinfo_array, $usergroups_array) e.g. is_member_of($bbuserinfo, array(5,6,7)) :) And I know you did not put it, never said you did :) |
Evidently you fail to understand how this hack functions ;)
It is $post['usergroupid'] because we are checking if the POSTER is not an admin, supermod or mod; i.e. If the poster isn't staff, and the user browsing is, then they can edit the options... I know what I'm doing :p You've just gotten confused about the !is_member_of and is_member_of code ;) Chris |
Quote:
Quote:
|
The reason is that the author of this modification had that as default - I simply made it part of the !is_member_of function instead of another AND clause for each usergroup...
I personally don't want my mod's editing each other's signatures or my signature etc from the postbit, and thankfully most are not clued in enough to find the Mod Panel abilities to do so ;) Chris |
Ok, if anyone is interested, this is the code I use:
Quote:
|
Installed, ;-)
|
All times are GMT. The time now is 04:26 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:
|