Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#312421 12/30/2006 7:39 PM
Joined: Jan 2003
Posts: 125
chillin Offline OP
Journeyman
OP Offline
Journeyman
Joined: Jan 2003
Posts: 125
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 Images
2326-multipleidentity.txt (3.99 KB, 223 downloads)
Last edited by Gizmo; 09/07/2008 12:14 AM. Reason: 7.3 Compat
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
thanks smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
Sounds great, good job smile.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2007
Posts: 94
Power User
Offline
Power User
Joined: Mar 2007
Posts: 94
does this still work in 7.1 ?

NVM... it does work laugh


Last edited by badfrog; 03/12/2007 8:46 AM. Reason: answered my own question...
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Cool, didn't know this was available thumbsup


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
"Danger Will Robinson, danger danger" lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 1999
Posts: 76
M
Power User
Offline
Power User
M
Joined: Sep 1999
Posts: 76
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";

Joined: Apr 2001
Posts: 96
Power User
Offline
Power User
Joined: Apr 2001
Posts: 96

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


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Joined: Jun 2001
Posts: 729
1
Coder
Offline
Coder
1
Joined: Jun 2001
Posts: 729
Under 7.1.1 where is this file located? Going blind in my old age...laff...

Joined: Jun 2001
Posts: 729
1
Coder
Offline
Coder
1
Joined: Jun 2001
Posts: 729
NM, figured it out.

Sponsored Links
Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
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?

Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
Originally Posted by gliderdad79
If they shared and was all within moments of each other wouldn't the last on ip's match?
Yes


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
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

Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
Logic would state to compare the files modified to see what was added/removed to see if anything needs to be adapted wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
Yes you are right, but I deleted the 7.0.2 download, shocked

Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
You did? lol; whats funny is i have every release from UBB.C6.3 in a directory on my DVR lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2000
Posts: 5,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
That includes all of the alpha's/beta's of UBB7 and several beta's of UBB.C


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
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

Joined: Sep 1999
Posts: 76
M
Power User
Offline
Power User
M
Joined: Sep 1999
Posts: 76
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.

Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
This works in 7.2b5 grin

Joined: Apr 2001
Posts: 96
Power User
Offline
Power User
Joined: Apr 2001
Posts: 96

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?


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Joined: Sep 2006
Posts: 75
R
Power User
Offline
Power User
R
Joined: Sep 2006
Posts: 75
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?

Joined: Nov 2001
Posts: 134
M
Journeyman
Offline
Journeyman
M
Joined: Nov 2001
Posts: 134
Works perfectly on 7.2.2, thanks

Joined: Jun 2002
Posts: 5
O
Lurker
Offline
Lurker
O
Joined: Jun 2002
Posts: 5
can we get this to work in 73b4?

Joined: Feb 2008
Posts: 448
Enthusiast
Offline
Enthusiast
Joined: Feb 2008
Posts: 448
Works well in 7.2.2

Joined: Mar 2006
Posts: 32
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
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

Joined: Feb 2008
Posts: 448
Enthusiast
Offline
Enthusiast
Joined: Feb 2008
Posts: 448
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?

Joined: May 2007
Posts: 2
M
Lurker
Offline
Lurker
M
Joined: May 2007
Posts: 2
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

Joined: Apr 2001
Posts: 96
Power User
Offline
Power User
Joined: Apr 2001
Posts: 96

Thanks, Mike - was meaning to look into that after my upgrade to 7.3. Hoping for the best!


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Joined: Mar 2007
Posts: 94
Power User
Offline
Power User
Joined: Mar 2007
Posts: 94
working in 7.3 :-)

Last edited by badfrog; 05/14/2008 4:38 PM.
Joined: Feb 2008
Posts: 448
Enthusiast
Offline
Enthusiast
Joined: Feb 2008
Posts: 448
So what is the actual code I need to use and where do I place it.

Joined: Nov 2003
Posts: 482
S
Enthusiast
Offline
Enthusiast
S
Joined: Nov 2003
Posts: 482
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

Joined: Feb 2008
Posts: 448
Enthusiast
Offline
Enthusiast
Joined: Feb 2008
Posts: 448
Cool, Thanks.

Joined: Feb 2008
Posts: 448
Enthusiast
Offline
Enthusiast
Joined: Feb 2008
Posts: 448
Hey sirdude, Ever get this finished yet?

Joined: Sep 2003
Posts: 3
W
Lurker
Offline
Lurker
W
Joined: Sep 2003
Posts: 3
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

Joined: Sep 1999
Posts: 76
M
Power User
Offline
Power User
M
Joined: Sep 1999
Posts: 76
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.

Joined: Feb 2008
Posts: 2
D
Lurker
Offline
Lurker
D
Joined: Feb 2008
Posts: 2
Is it possible to make this show the IP address of the user who triggered the alert in the PM? (Works fab otherwise though!)

Joined: Nov 2001
Posts: 134
M
Journeyman
Offline
Journeyman
M
Joined: Nov 2001
Posts: 134
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?

Joined: Feb 2004
Posts: 4
M
Lurker
Offline
Lurker
M
Joined: Feb 2004
Posts: 4
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".

Joined: Nov 2008
Posts: 7
D
Lurker
Offline
Lurker
D
Joined: Nov 2008
Posts: 7
Is this working on 7.4?

Page 1 of 2 1 2

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,813
Joined: January 2000
Forum Statistics
Forums63
Topics37,554
Posts293,840
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 163
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 4
Morgan 2
isaac 1
Top Likes Received
isaac 66
Gizmo 13
Brett 7
Morgan 2
Top Likes Received (30 Days)
Gizmo 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.100s Queries: 97 (0.037s) Memory: 3.6732 MB (Peak: 4.1166 MB) Data Comp: Zlib Server Time: 2021-04-13 01:41:02 UTC
Valid HTML 5 and Valid CSS