Okay, in my message template the IP address is always shown for the current not being viewed.
What I would like to do is set the ip address to display "hidden" if the person who posted the message is a moderator or admin.
My moderators are anonymous, (they have seperate accounts for moderating) and the IP address would give away who they are. However I need to display IP's for security purposes.
I think it would work kind of like this, the part in bold I have no clue what to do to get the result:
if ($bn_action=="view"){ if ((author of note is >= moderator) && !$is_moderator){ $ip = "Hidden"; } }
so how do I get that info? when I use if ($is_moderator) then the ip of all the messages is set to "hidden" for people logged in as a moderator when I use if (!$is_moderator) the ip of all the messages is set to "hidden" for anyone who is NOT a moderator. I want all users to see all IP adresses of the author EXCEPT those who are moderators I think I need to do a call to the db, but I don't know what or how to do it. One final question if I set the $ip variable to hidden...will it effect the ip address value that is stored in the database when a note is created?
|