UBB.Dev
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.


Attached File
The previous version appears to work for me on 6.5, was there anything you found that needed changing?
Only the setcookie function was changed to $this->ubbt_setkookie. Other than that the code is identical.
Would be great to see this one updated to work with 6.5.1. Fantastic feature!
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.
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....
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.
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....
It`s nice to add multiple accounts to there profile
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.
Posted By: Kin Re: Finished-[6.5] Multiple Identity Detector 3.2 - 01/26/2005 1:51 AM
Will this work under previous versions? If not are there mods for earlier versions available?
https://www.ubbdev.com/forum/showflat.php/Number/107001
Posted By: Kin Re: Finished-[6.5] Multiple Identity Detector 3.2 - 01/27/2005 9:12 AM
Thanks. Anything for 6.02?
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.
Posted By: Kin Re: Finished-[6.5] Multiple Identity Detector 3.2 - 01/27/2005 9:25 AM
Thanks again
Posted By: salim Re: Finished-[6.5] Multiple Identity Detector 3.2 - 03/04/2005 12:46 PM
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?
© UBB.Developers