Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Login log - Log successful login attempts Details »
Login log - Log successful login attempts
Mod Version: 4.1, by Dave (Coder/Designer) Dave is offline
Developer Last Online: Aug 2021 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (5 votes - 4.80 average) Installs: 38
Released: 28 May 2014 Last Update: 16 Jan 2016 Downloads: 256
Not Supported DB Changes Uses Plugins Re-usable Code External Content  

Hi,

This plugin will allow you to log all successful login attempts of all users.
This can be useful to see if users share their account or if the account of someone got hijacked. Usernames and IP addresses can be clicked.

It will log the following
- Userid
- Username
- IP
- ISP (Internet Service Provider)
- Country
- HTTP user agent

Settings:
- Enable/disable the product.
- Exclude usergroups from being logged.
- Purge the logs.

Picture


Installation
1. Download the .zip file specified.
2. Upload the contents of the upload folder to the root of your forum.
3. Import the product with the .xml file in the import folder.

Note
The script will log using the current time on the server, in case there's a difference between the server time and your local computer time, you can change the offset in the loginlog.php script on line 12.

Also keep in mind that the country and/or ISP resolving might not be 100% accurate and that it might show no value in the logs.

Credits
Telize.com its API is being used to get the ISP and country off the IP address.

Let me know if it works well.


Changelog
11 June 2014 V4: Added the table_prefix global to the login hook.
5 June 2014 V3: Fixed searching only showing the last 25 entries. Pagination will now work as intended.
30 May 2014 V2: Changed hook location, added enable/disable setting and a setting to exclude usergroups.
28 May 2014 V1: Fixed a little mistake with the filter.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Untitled.jpg
Views:	1269
Size:	87.5 KB
ID:	149210  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 28 May 2014, 19:07
tbworld tbworld is offline
 
Join Date: Oct 2008
Thanks for sharing.
Reply With Quote
  #3  
Old 28 May 2014, 23:04
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Looks good but you may want to fix the double user sessions being logged. Mobile/Tapatalk seem to cause a lot of trouble and tripple actions.
Reply With Quote
  #4  
Old 29 May 2014, 09:12
Dave Dave is offline
 
Join Date: Jun 2010
Originally Posted by MentaL View Post
Looks good but you may want to fix the double user sessions being logged. Mobile/Tapatalk seem to cause a lot of trouble and tripple actions.
Hmm weird, I looked at the PHP code of Tapatalk but I'm unsure what's causing it.
I use the login_process hook, which is defined as "creates new session once $vbulletin->userinfo has been set to the newly logged in user".

Could you change the hook at the plugin manager to login_verify_success instead of login_process, see if that works? I can't test that myself as I don't have Tapatalk installed.
Reply With Quote
  #5  
Old 30 May 2014, 00:59
EvoDarrenshan EvoDarrenshan is offline
 
Join Date: May 2014
Can you target this for specific usergroups?
Reply With Quote
  #6  
Old 30 May 2014, 09:33
Dave Dave is offline
 
Join Date: Jun 2010
Originally Posted by EvoDarrenshan View Post
Can you target this for specific usergroups?
Will add this feature, keep an eye on this thread.
Reply With Quote
  #7  
Old 30 May 2014, 13:13
Dave Dave is offline
 
Join Date: Jun 2010
I updated the plugin.
Changed hook location, added enable/disable setting and a setting to exclude usergroups.
Reply With Quote
  #8  
Old 31 May 2014, 08:26
winky8300 winky8300 is offline
 
Join Date: May 2008
thank you
Reply With Quote
  #9  
Old 01 Jun 2014, 03:27
AK47- AK47- is offline
 
Join Date: Apr 2012
Originally Posted by Dave View Post
I updated the plugin.
Changed hook location, added enable/disable setting and a setting to exclude usergroups.
Could you also get it to log all actions for admins in a more advanced way? Also thanks for the update.
Reply With Quote
  #10  
Old 01 Jun 2014, 10:25
Dave Dave is offline
 
Join Date: Jun 2010
Originally Posted by AK47- View Post
Could you also get it to log all actions for admins in a more advanced way? Also thanks for the update.
Could you elaborate this?
Reply With Quote
  #11  
Old 05 Jun 2014, 08:08
Skyrider Skyrider is offline
 
Join Date: Feb 2006
When you 'filter' someone (eg, a userID or username) it only shows a single page of results and hiding the rest with no next page, etc. Might be a slight bug/issue.
Reply With Quote
  #12  
Old 05 Jun 2014, 08:49
Dave Dave is offline
 
Join Date: Jun 2010
Originally Posted by Skyrider View Post
When you 'filter' someone (eg, a userID or username) it only shows a single page of results and hiding the rest with no next page, etc. Might be a slight bug/issue.
Working on this! Can expect an update soon.
Reply With Quote
  #13  
Old 05 Jun 2014, 11:28
Dave Dave is offline
 
Join Date: Jun 2010
5 June 2014: Fixed searching only showing the last 25 entries. Pagination will now work as intended.

In case you have this product installed already, you only have to replace the loginlog.php file in the admincp folder.
Reply With Quote
  #14  
Old 10 Jun 2014, 17:40
Bluemax712 Bluemax712 is offline
 
Join Date: Oct 2010
I've installed on 2 different test servers both which have a prefix for all the vbulletin tables of "vb_"

When importing the product it creates the loginlog table with the correct "vb_loginlog" name
but when trying to login afterwards using the "login.php" - it gets an error because it's not adding the prefix of "vb_"
ie:
Table 'mydbname.loginlog' doesn't exist

It should be using mydbname.vb_loginlog

Hope this makes sense

Last edited by Bluemax712; 10 Jun 2014 at 17:45.
Reply With Quote
  #15  
Old 11 Jun 2014, 09:28
Dave Dave is offline
 
Join Date: Jun 2010
Originally Posted by Bluemax712 View Post
I've installed on 2 different test servers both which have a prefix for all the vbulletin tables of "vb_"

When importing the product it creates the loginlog table with the correct "vb_loginlog" name
but when trying to login afterwards using the "login.php" - it gets an error because it's not adding the prefix of "vb_"
ie:
Table 'mydbname.loginlog' doesn't exist

It should be using mydbname.vb_loginlog

Hope this makes sense
Oops forgot about that. Fixed in V4, now available to download.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:03.

Layout Options | Width: Wide Color: