UBB.Dev
Mod Name / Version: Multiple Identity Detector 3.1

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. I updated to 3.1 which adds the Usernames to the body of the PM as well as the user number.

Working Under: UBB.Threads 6.3-6.4

Mod Status: Finished

Any pre-requisites: none

Author(s): JustDave

Date: 02/03/04

Credits: JoshPet for updates

Files Altered: ubbt.inc.php

New Files: none

Database Altered: none

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
Can I make it so I don't get emails about the moderators along with the admin.
If you want to exclude moderators, change that first bit to this:
Code
<br />	 if (($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator")) {<br />         setcookie("{$config['cookieprefix']}IDstack",'',time()-846000,"{$config['cookiepath']}");<br />
thanks.
Josh,

I installed this hack the other day and something isn't exactly right it seems. We have a couple who recently married and thus are using one computer, instead of two, to access the Board. Thus this hack correctly identified them as two users with the same IP/cookie. BUT.... the PM was sent to THEM and not to the Administrators. []http://www.the-highway.com/Smileys/rofl.gif[/]

Well, I was rather surprised when I received a PM from this user asking me what that crazy PM was all about. So, what can I do to fix this problem where the PM is being sent to the wrong party?

Jeff
Hrm...

I'm using this on serveral sites. No problems.

Are you sure neither one of them is is an administrator.

SELECT U_Status
FROM w3t_Users
WHERE U_Number = xxxxx


I don't know how that can happen, unless the send_message function in your ubbt.inc.php has also been modified.

Here's the line from this mod that sends the PMs:

$this -> send_message($user['U_Number'],'',$Subject,$msg,'ADMIN_GROUP');

It sends the PMs to the "ADMIN_GROUT".

So if anything else in your ubbt.inc.php file has been altered, you might want to start with a clean copy. This mod doesn't actually do the sending of the PM or determine who it's sent to. Threads does that - it uses built in threads functionality to do that with the send_message function.
[]I don't know how that can happen, unless the send_message function in your ubbt.inc.php has also been modified.[/]
Well, if YOU don't know how it can happen.... and no this hack is the only one that has been added to the ubbt.inc.php file, then I surely don't know.

I'm simply reporting what has happened. If you would prefer I didn't report any such anomalies with any of your hacks, just say the word and I'll keep silent.

Jeff
Yeah, I dunno. When you make a new admin or moderator or ban someone - does this user get those PMs too? It's the same mechinism?

Did you check their status with the query I posted above?

I'd worry about a problem with those user records or their U_Status being incorrectly set - like I said, this mod has been around for a couple of years. And I've not seen any bugs with threads and other people getting the admin PMs.

You'd need to probably add some logging or debugging code into the send_message function in ubbt.inc.php to see what might be wrong with the private message code.
Posted By: Pilgrim Re: Mystery solved - 02/11/2004 8:07 PM
Josh,

The problem seems to be with ME and not the hack, as everything in the code is fine. It was simply my ignorance in knowing HOW this hack actually worked; e.g., the form of the PM that is sent to the Administrator(s). What I found confusing was the username in the "Sender" field of the PM. I assumed that this user had sent the PM to me asking me why she got that strange message. []http://www.the-highway.com/Smileys/stupidme.gif[/]

So, I checked with my other Administrator and found out that she had also received this same PM and also assumed it was from the user, whose username appeared in the "Sender" field. And she too replied to this now even more confused user as if she had sent the PM. Further investigation showed that the user never received the PM (obvious to me now) I received and never sent a PM asking about it.

Thus, the hack is working as it should and I have learned something new. []http://www.the-highway.com/Smileys/blushing.gif[/]

My apologies for taking up your time with this as it was all due to my ignorance.

[]http://www.the-highway.com/Smileys/sorry2.gif[/]

Jeff
Posted By: JoshPet Re: Mystery solved - 02/11/2004 9:07 PM
LOL

No problem.... it had me baffled. Yeah, I guess I should say, the PM comes from the user - to the administrators.
Posted By: Jeff Cap Re: Mystery solved - 04/24/2004 5:57 PM
Here's a weird one. Using this mod, and it works like a charm. Til I got this PM:

From: **DONOTDELETE**

I seem to have multiple personalities using ID numbers (2513) and **DONOTDELETE**(1) sharing the same computer. Who am I? Seeking professional help, please advise! Is that Jerry? Who are those people? Where do they come from? No soup for you! and you! and you!

I think 2513 was deleted, which is why there's no name, and I have no idea what the **DONOTDELETE**(1) is.

HELP?!? What's going on here. Is somebody scamming their way in, after previously being banned or something?
Posted By: scroungr Re: Mystery solved - 04/25/2004 5:17 AM
**DONOTDELETE**(1) is the Super User Admin Account and CAN'T BE DELETED. Well it can but its NOT wise
Posted By: Astaran Re: Mystery solved - 04/25/2004 5:11 PM
Just ignore these messages send from the donotdelete user.
Posted By: JoshPet Re: Mystery solved - 05/06/2004 5:11 AM
Yeah, sometimes it gets triggered from an anonymous user (or user not logged in)
Posted By: PaNTerSan Re: Mystery solved - 05/06/2004 9:05 AM
This is ver useful: by the date & time of this PM message you will see who was anonymous
I installed this hack and for several days it worked fine. But the last two days I got dozens of messages, always containing the same two UserIDs. Every two or three seconds the message is generated.

Seems like while this particular user is active, every click generates a new message.

How can this happen?
Maybe he/she isn't what they pretend to be?
But this should generate one message instead of many. The message is always the same, the two IDs never change (example): "I seem to have multiple personalities using ID numbers lala(555) and blah(888) [...]"
[]Maze said:
Every two or three seconds the message is generated.

Seems like while this particular user is active, every click generates a new message.

How can this happen? [/]
This is because user has some kind of anty spyware program which deletes cookies whenever they are created. So, ubbt thinks there is no cookie and creates the cookie again. But it is instantly removed. This happens whenever user click on a link anywhere in threads.

Send a pm to user to ACCEPT your cookies or ban him
Ah, this makes sense. Thanks for the info!

I think the easiest ways is to delete his account
Is there a way of altering this great mod so that moderators get the email as well?
Change this line:

$To = "ADMIN_GROUP";


To this:

$To = "A_M_GROUP";


Then it goes to all admins & mods.
Hi,
I install the hack today, and try it loging from the same computer as a 2 different users (test1 and test2).
I used each user for about 10 minutes, sending messages in both, but never received neither error, nor the warning e-mail neither on my Admin account, nor on my Moderator account
Any help?
I guess you also use the same browser for your admin account? Try to use a different browser (eg if you currently use IE, try Firefox or Opera) to play around with two user accounts.
Brilliant, thanks Josh. (Only just seen your reply!).
Does this work on 6.5?
I will also need this mod for 6.5
so does it work on 6.5 ?
Probably. Try it out and report.
So... has anyone tried it on 6.5 yet?

Or do I have to be the first one?
I don't think that you will encounter any problems with this looking at the code. It should work on 6.5 as well.
Yeah, 6.5 is fine.
Sorry, thought I'd said (put it on mine ages ago) as Josh says - this works fine on 6.5.
Josh,
I was a heavy user for this mod at version 6.3.
Now I'm missing it on 6.5. Are you planning to upgrade it soon?

Thank you
Updated for 6.5 See this post
This works on 6.5
[]dimopoulos said:
Updated for 6.5 See this post [/]

Whoops - thanks Nikos.
© UBB.Developers