Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 1999
Posts: 76
Power User
Power User
Offline
Joined: Sep 1999
Posts: 76
I have users whom I know legitimately share the same computer, so I don't want to receive a PM each time they switch over. This small change to the mod hopefully prevents that from occuring.

I haven't tested this extensively yet, but I created an array for users whom I deem as "ok". Then a simple check to see if that user appears in the array, and if so, skip the multiple identity processing.

## Find:

if (!empty($user['U_Number']) && $user['U_Status'] != "Administrator") {


## Change to:

$users_ok = array(100, 101);
if (!empty($user['U_Number']) && $user['U_Status'] != "Administrator" && !in_array($user['U_Number'],$users_ok)) {

Note: 100 and 101 are example user IDs.

Does anyone see any problems with this? I wasn't sure if this is the best place to put the array for the users_ok check.

Sponsored Links
Entire Thread
Subject Posted By Posted
Finished-[6.5] Multiple Identity Detector 3.2 dimopoulos 12/11/2004 2:21 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Sapphy 12/11/2004 11:43 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 dimopoulos 12/11/2004 11:54 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Conrad 12/12/2004 4:43 PM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Sapphy 12/13/2004 12:32 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 smoknz28 12/14/2004 12:11 PM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Anno 12/15/2004 8:42 PM
Re: Finished-[6.5] Multiple Identity Detector 3.2 smoknz28 12/16/2004 11:13 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Catshadow 01/03/2005 2:56 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Myke 01/08/2005 3:27 PM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Kin 01/26/2005 1:51 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Anno 01/26/2005 1:03 PM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Kin 01/27/2005 9:12 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 JoshPet 01/27/2005 9:18 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 Kin 01/27/2005 9:25 AM
Re: Finished-[6.5] Multiple Identity Detector 3.2 salim 03/04/2005 12:46 PM

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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
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,833
Greg Hard 4,625
Top Posters(30 Days)
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)