|
|
Joined: Aug 2001
Posts: 8
Lurker
|
Lurker
Joined: Aug 2001
Posts: 8 |
Is there a hack or a way for moderators to see invisible users and the IPs of people who have not logged in? Just like admins do. I've have Mods on my site suggest this a few times.
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
I don't know if there is a modification already out there but you can do this by changing the online.php. Somewhere there is a check concerning the U_Status field. It should be something like:
if ($user['U_Status'] == "Administrator") {
make that
if ( ($user['U_Status'] == "Administrator") or ($user['U_Status'] == "Moderator")) {
and it should work. You might need to tweak it in a couple of places but in general this the area of interest.
Nikos
|
|
|
|
Joined: Aug 2001
Posts: 8
Lurker
|
Lurker
Joined: Aug 2001
Posts: 8 |
Thanks. What you gave me alloed my mods to see the ip of anonymous users. I can't figure out how to let them see invisible. I'm assuming it's this part right here:
if ( ($user['U_Status'] !== "Administrator") && ($Visible == "no") ) { continue; } $extra = ""; if ($Visible == "no") { $extra = "(I)";
But when I add mods to that part of the code it doesn't work. I can only allow either mods OR admins to see invisible. ....Weird. Thanks
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Is this what you changed it to?
if ($user['U_Status'] != "Administrator" and $user['U_Status'] != "Moderator" and $Visible == "no") {
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
You need to be a bit careful with the and and the or.
If you have equality then you need or otherwise and. So:
1. != Admin and != Moderator 2. == Admin or == Moderator
Dave gave you the correct code on the post above.
Nikos
|
|
|
|
Joined: Oct 2002
Posts: 64
Power User
|
Power User
Joined: Oct 2002
Posts: 64 |
/ ----------------------------------------------- // Let's see if we need to block some information $Private = 0; if (($user['U_Status'] != "Administrator") && ($user['U_Status'] != 'Moderator') ) { $Private = 1; and if ( ($user['U_Status'] != "Administrator") && ($user['U_Status'] != 'Moderator') && ($Visible == "no") ) { continue; } $extra = ""; if ($Visible == "no") { $extra = "(I)"; working on my board
Last edited by magik; 07/11/2003 12:17 PM.
|
|
|
|
Joined: Aug 2001
Posts: 8
Lurker
|
Lurker
Joined: Aug 2001
Posts: 8 |
Thanks guys. I got it working.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|