UBB.Dev
Posted By: chillin Multiple Identity Detector - 12/31/2006 2:39 AM
Multiple Identity Detector
Old mod by JustDave ported to 7.02 by chillin. This mod uses a cookie to track user id logins from a single computer. Thus if a person logs into your site using the same browser on the same computer with two or more user id's you'll get a Private Topic with the details.

Working Under
7.02

Files Modified (pre-UBB.T7.3):
/libs/ubbthreads.inc.php

Files Modified (UBB.T7.3+):
/libs/html.inc.php

Install
Follow the one step in the attached text file. BE SURE TO MODIFY THE CONFIG OPTIONS inside the text file before copying into your live site. These configs determine who gets sent the Private Topic.

PHP Code

####################
## CONFIG OPTIONS ##
## EDIT THESE !! ##
####################
$admins = array(31,2998,4214); //array of user numbers to send PT to
$sender = 2998; //user number of PT creator
####################
## END CONFIG ##
####################



Attached File
2326-multipleidentity.txt  (223 downloads)
Posted By: Ian_W Re: Multiple Identity Detector - 12/31/2006 3:18 AM
thanks smile
Posted By: Gizmo Re: Multiple Identity Detector - 12/31/2006 4:43 AM
Sounds great, good job smile.
Posted By: badfrog Re: Multiple Identity Detector - 03/12/2007 3:30 PM
does this still work in 7.1 ?

NVM... it does work laugh

Posted By: AllenAyres Re: Multiple Identity Detector - 03/12/2007 9:02 PM
Cool, didn't know this was available thumbsup
Posted By: Gizmo Re: Multiple Identity Detector - 03/12/2007 9:05 PM
"Danger Will Robinson, danger danger" lol
Posted By: Myke Re: Multiple Identity Detector - 04/01/2007 4:27 AM
Thanks for this mod! smile

I noticed a typo in the Message Subject. In the attachment:

Code
$Subject = "Multiple Identies Detected";

should be:

Code
$Subject = "Multiple Identities Detected";
Posted By: jgeoff Re: Multiple Identity Detector - 04/10/2007 7:07 AM

Very cool. I just installed this the other day, and got my first notice:
Quote

The following users have logged in from the same computer: Fame, Debra,
What would be cool is, if the names actually linked to their profiles... any chance of that? wink

Thanks again. cool
Posted By: 1QuickSI Re: Multiple Identity Detector - 04/26/2007 2:08 PM
Under 7.1.1 where is this file located? Going blind in my old age...laff...
Posted By: 1QuickSI Re: Multiple Identity Detector - 04/26/2007 2:30 PM
NM, figured it out.
Posted By: gliderdad Re: Multiple Identity Detector - 05/13/2007 4:17 AM
Not to sure yet but I have noticed a few things happening with this mod. First thing is I am not receiving all notifications, a few have been sent duplicate at the same time. Also I have received twice now a that moderator shared the same login as 2 other members. Now when I get that notification, I immediately go and look at each users last on ip(mind you I did this as soon as the notice came in)So to get notified that all three shared the account it had to have been within moments of each other, thats why I checked the last on ip. When I do check the ip the all come back to each members location. If they shared and was all within moments of each other wouldn't the last on ip's match?
Posted By: Gizmo Re: Multiple Identity Detector - 05/13/2007 6:14 AM
Originally Posted by gliderdad79
If they shared and was all within moments of each other wouldn't the last on ip's match?
Yes
Posted By: gliderdad Re: Multiple Identity Detector - 05/13/2007 9:25 AM
LOL, thanks Giz I knew that. Just trying to show whats going on. The fact that none are the same tells me it's not fully working under 7.1.1 I know this was written for 7.0.2 but may need to be tweeked a bit:D
Posted By: Gizmo Re: Multiple Identity Detector - 05/13/2007 1:58 PM
Logic would state to compare the files modified to see what was added/removed to see if anything needs to be adapted wink
Posted By: gliderdad Re: Multiple Identity Detector - 05/13/2007 10:22 PM
Yes you are right, but I deleted the 7.0.2 download, shocked
Posted By: Gizmo Re: Multiple Identity Detector - 05/14/2007 3:22 AM
You did? lol; whats funny is i have every release from UBB.C6.3 in a directory on my DVR lol...
Posted By: Gizmo Re: Multiple Identity Detector - 05/14/2007 3:22 AM
That includes all of the alpha's/beta's of UBB7 and several beta's of UBB.C
Posted By: gliderdad Re: Multiple Identity Detector - 05/14/2007 4:50 AM
I received a backup of the guys computer who ran our site before he passed. Stupidly I went through it and deleted all the old one also stemming from classics. I know I had a brain fart shocked
Posted By: Myke Re: Multiple Identity Detector - 06/01/2007 3:31 PM
Originally Posted by jgeoff

What would be cool is, if the names actually linked to their profiles... any chance of that? wink
Replace the following line:

PHP Code
$Message .= $display_name.", "; 
with:

PHP Code
$Message .= "<a href="{$config['BASE_URL']}/ubbthreads.php?ubb=showprofile&User=$spray[$i]">$display_name</a>, "; 

and you'll get profile links with each user listed.
Posted By: gliderdad Re: Multiple Identity Detector - 07/11/2007 4:43 AM
This works in 7.2b5 grin
Posted By: jgeoff Re: Multiple Identity Detector - 07/13/2007 7:54 AM

I'm using 7.1 right now, and I'm getting this notice despite the fact that one of the members is banned. So, is this checking login attempts, or actual logins?
Posted By: Rose Re: Multiple Identity Detector - 08/06/2007 1:21 PM
I have not been able to get this to work in 7.2. We get the PM, but the names are blank. Any ideas anyone?
Posted By: MattUK Re: Multiple Identity Detector - 09/25/2007 11:44 AM
Works perfectly on 7.2.2, thanks
Posted By: Ohton Re: Multiple Identity Detector - 02/28/2008 7:19 PM
can we get this to work in 73b4?
Posted By: JAISP Re: Multiple Identity Detector - 03/02/2008 10:28 PM
Works well in 7.2.2
Posted By: gliderdad Re: Multiple Identity Detector - 03/02/2008 10:37 PM
Yes it does in 7.2.2, but at a quick install it didn't work in 7.3b4. Haven't looked into what may need to be changed yet
Posted By: JAISP Re: Multiple Identity Detector - 05/08/2008 3:13 PM
I'm thinking that the line to add this under in 7.3 would be:

$myinfo['dob'] = get_input($config['COOKIE_PREFIX']."ubbt_dob","cookie");

I have not tried it as of yet but need to upgrade my test board before I can try this hack.

Has anyone tried this in 7.3 yet and if so what changes need to be made for this to work?
Posted By: MikeBTech Re: Multiple Identity Detector - 05/12/2008 3:18 AM
Works good with 7.3 I have it running without a problem but you need to make alterations to the code in the file called "html.inc.php" instead of the original "ubbthreads.inc.php"

Looks like Rick moved the cookie code to this file

Mike
Posted By: jgeoff Re: Multiple Identity Detector - 05/12/2008 7:38 AM

Thanks, Mike - was meaning to look into that after my upgrade to 7.3. Hoping for the best!
Posted By: badfrog Re: Multiple Identity Detector - 05/14/2008 11:01 PM
working in 7.3 :-)
Posted By: JAISP Re: Multiple Identity Detector - 05/28/2008 2:19 PM
So what is the actual code I need to use and where do I place it.
Posted By: sirdude Re: Multiple Identity Detector - 05/28/2008 6:25 PM
The code is overdone for 7.3.

We can instead use:
$this->send_message($Sender="",$To="",$Subject="",$Mess="",$Group="");

now..

If i have time today i'll redo it 7.3-ized smile
Posted By: JAISP Re: Multiple Identity Detector - 05/30/2008 5:13 PM
Cool, Thanks.
Posted By: JAISP Re: Multiple Identity Detector - 06/08/2008 2:15 AM
Hey sirdude, Ever get this finished yet?
Posted By: winter Re: Multiple Identity Detector - 06/26/2008 7:21 PM
First off, thanks to everyone who contributes Great stuff like this! The coding is beyond me and I am thrilled for the added functionality that you guys are providing!

It would be great if:
1- Could enter some member #'s that could be excluded. I have my Admin account and then a generic account that I use to check permissions on user groups. I don't need to see the alert when I am the one logging in.

2- Could check IP #'s as well. If a user logs in using different browsers, or if they clear their cookies then it may not trigger the alert. I know IP #'s could change, but if they are quickly logging in under two names I would suspect they would still have the same IP#

I don't know if either of these are even possible, but thought I would throw them out as possible enhancements.

Again, thanks to those who have taken their time to come up with these! If there is a PayPal donation I could make for your efforts I would love to...just let me know the paypal account to send it to!
Mark
Posted By: Myke Re: Multiple Identity Detector - 07/08/2008 12:45 PM
Originally Posted by winter
It would be great if:
1- Could enter some member #'s that could be excluded. I have my Admin account and then a generic account that I use to check permissions on user groups. I don't need to see the alert when I am the one logging in.

In the config options, add a new array to store the allowed mulitple IDs:

PHP Code
$multi_id_allow = array(1, 2); // array of multiple Uid's allowed 

Then replace:
PHP Code
}elseif(!stristr($multiple,"c{$Uid}c") && $Uid > 0){ 

with:

PHP Code
}elseif ((!stristr($multiple,"c{$Uid}c") && $Uid > 0) && !in_array($Uid, $multi_id_allow)){ 

This will prevent the PM being sent if the Uids in the $multi_id_allow array share the same computer and browser.
Posted By: Detangler Re: Multiple Identity Detector - 07/16/2008 12:59 PM
Is it possible to make this show the IP address of the user who triggered the alert in the PM? (Works fab otherwise though!)
Posted By: MattUK Re: Multiple Identity Detector - 08/28/2008 11:10 PM
Trying to set this up for 7.3.1, but the first step..

Find

$this -> ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);

Can't find that in the file.. where is it now?
Posted By: Mike L_dup1 Re: Multiple Identity Detector - 09/14/2008 5:30 AM
Allow me to help. wink

The text file says to find...

Code
$this -> ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);

This is VERY close to what is in the file html.inc.php.

On or about line 1448, you will find...

Code
$this->ubbt_setcookie("{$config['COOKIE_PREFIX']}ubbt_dob","",time()-3600);

Note the lack of space characters in the string "$this->ubbt". wink

When doing Mods, you need to be willing to look a little harder.

I did as you apparently did and searched for the whole string from the text file. When that did not find a match, I started doing a search for "ubbt_setcookie" and found what was needed.

I have this Mod working fine.

Remember for 7.3x you are looking in "html.inc.php".
Posted By: DougMMcts Re: Multiple Identity Detector - 11/06/2008 5:48 AM
Is this working on 7.4?
Posted By: DougMMcts Re: Multiple Identity Detector - 11/07/2008 2:11 AM
It is working in 7.4
Posted By: DougMMcts Re: Multiple Identity Detector - 11/07/2008 2:45 AM
Well I’m not getting the email that states I have a new PM. Is this because I’m sending it to myself (I’m the sender as well as the recipient)?
Posted By: Gizmo Re: Multiple Identity Detector - 11/07/2008 2:51 AM
Originally Posted by DougMMcts
Is this because I’m sending it to myself (I’m the sender as well as the recipient)?
yes
Posted By: badfrog Re: Multiple Identity Detector - 03/26/2009 9:34 PM
anyone try this in 7.5.x ?

I was trying to add this, but can't find any string remotely matching the one it says to search for...
Posted By: sirdude Re: Multiple Identity Detector - 03/26/2009 9:35 PM
it's part of stock 7.5.2 now
Posted By: badfrog Re: Multiple Identity Detector - 03/27/2009 3:56 PM
got it, thanx!
Posted By: jgeoff Re: Multiple Identity Detector - 12/10/2011 7:28 AM
Originally Posted by sirdude
it's part of stock 7.5.2 now

Is there a control panel setting for this? I can't find it. I haven't gotten a PM for multiple identities in almost a year, but my co-admin has. I'm running 7.5.6
Posted By: gliderdad Re: Multiple Identity Detector - 12/10/2011 4:57 PM
My Stuff-> Preferences

last option "Notify me when someone accesses multiple accounts."
Posted By: jgeoff Re: Multiple Identity Detector - 12/10/2011 5:18 PM

Great, thanks!

I wonder if there are any plans to include a whitelist so we don't receive notifications for known shared accounts, just new ones... *hint* wink
© UBB.Developers