Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Mod Name / Version: Multiple Identity Detector 3.2

Description: This modification uses a cookie to track users that login using different usernames. (Or users sharing the same computer). When a duplicate identity is detected, a PM is sent to all Admins notifying you of the duplicates.

JustDave is the original brains behind this. JoshPet updated it to 3.1 which adds the Usernames to the body of the PM as well as the user number.

I just updated it for 6.5

Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites:

Author(s): JustDave

Date: 12/10/04

Credits: JoshPet

Files Altered: ubbt.inc.php

New Files: none

Database Altered: no

Info/Instructions: Modify ubbt.inc.php as instructed. Edit the language strings in that code if desired.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
123755-MultipleIdentityDetector3.2.txt (0 Bytes, 191 downloads)

Sponsored Links
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
The previous version appears to work for me on 6.5, was there anything you found that needed changing?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Only the setcookie function was changed to $this->ubbt_setkookie. Other than that the code is identical.


Nikos
Joined: Mar 2002
Posts: 193
Member
Member
Offline
Joined: Mar 2002
Posts: 193
Would be great to see this one updated to work with 6.5.1. Fantastic feature!

Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
6.5.1 cleans up a few bugs on 6.5. Given that the change from v3.1 to 3.2 was small I think it is safe to say that you can use it right now.


Thanks dimopoulos for your answer.

Sponsored Links
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Nice! Thank you for sharing this code!

I'd like to know how I can have another one of my Moderators, who I've granted a few more options but he's not an Admin, to receive the same emails this code outputs when it detects multiple identities?

Thanks....

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
In the hack search for
$this -> send_message($user['U_Number'],'',$Subject,$msg,'ADMIN_GROUP');

add underneath
$this -> send_message($user['U_Number'],'User number of your mod',$Subject,$msg,'');


Replace "User number of your mod" with the actual number.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Anno thank you for your response. I've added the code and I'll give it a shot as we get some of the multiple accounts.

Thank you again for helping....

Joined: Oct 2003
Posts: 23
User
User
Joined: Oct 2003
Posts: 23
It`s nice to add multiple accounts to there profile


Sorry for my english.
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
Joined: Jan 2005
Posts: 5
Kin Offline
Lurker
Lurker
Offline
Joined: Jan 2005
Posts: 5
Will this work under previous versions? If not are there mods for earlier versions available?

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550

Joined: Jan 2005
Posts: 5
Kin Offline
Lurker
Lurker
Offline
Joined: Jan 2005
Posts: 5
Thanks. Anything for 6.02?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yikes 6.0.2? The earliest version of this mod was for 6.2
https://www.ubbdev.com/forum/showflat.php?Cat=0&Board=beta&Number=69034

You migth be able to make the instructions work.

Joined: Jan 2005
Posts: 5
Kin Offline
Lurker
Lurker
Offline
Joined: Jan 2005
Posts: 5
Thanks again

Joined: Feb 2003
Posts: 196
Member
Member
Offline
Joined: Feb 2003
Posts: 196
Hi,

Is this feature disabled for administrator, meaning if my wife logged in using my computer, would the system send me a PM?.


Because I tried that it didnt work, so I thought maybe it doesnt work for administrators?


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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)