Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2001
Posts: 8
Lurker
Lurker
Offline
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.

Sponsored Links
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
Offline
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
Offline
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
Sponsored Links
Joined: Oct 2002
Posts: 64
Power User
Power User
Offline
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
Offline
Joined: Aug 2001
Posts: 8
Thanks guys. I got it working.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)