PDA

View Full Version : Need some help with what code to use here.


Parker Clack
03-02-2002, 04:53 PM
In the admin/functions.php file I want to add a check to the ignore feature so that a member cannot ignore an admin, moderator or themselves.

Here is the check as it is there now.

// do posts from ignored users
if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {

Any ideas what to use?

Thanks,
Parker

Admin
03-02-2002, 04:56 PM
Turn off the 'Allow Ignore Moderators' setting.

Parker Clack
03-02-2002, 05:10 PM
Chen:

Ok, I tried that but I was able to still ignore one of my moderators. Does this not apply to moderators or admins themselves?

Parker

Parker Clack
03-02-2002, 05:17 PM
Chen:

Thanks. I just figured out it doesn't apply if you are an admin. You can ignore anyone.

Parker

Admin
03-03-2002, 08:51 AM
Yup. :)