vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Log Logins Hack (https://vborg.vbsupport.ru/showthread.php?t=241780)

Abe1 05-02-2010 10:00 PM

Log Logins Hack
 
1 Attachment(s)
Log Logins Hack


About this hack:
This hack will log the userid, username, ipaddress, where the login is, and time all your users log onto your forum.

Installation information on hack:
  • Files edited: 0
  • Templates edited: 0
  • Files to upload via FTP: 2
  • Time to install: 1 minute max

Updates:
Version 2.10 (05/03/10):
  • First release of this hack for vb 4.0.

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Da-Vinci 05-03-2010 11:51 AM

Sounds like a good idea thanks.

fluidswork 05-03-2010 03:52 PM

Awesome idea ..................

legacy123 05-03-2010 07:20 PM

Where do we find the log? Like the actual thing containing the logs on it?

KURTZ 05-03-2010 07:21 PM

just tagged :)

drummaster 05-03-2010 08:36 PM

Quote:

Originally Posted by legacy123 (Post 2031281)
Where do we find the log? Like the actual thing containing the logs on it?

Go to Admin CP then
statistics & Logs
then Log Logins Hack

synseal 05-03-2010 09:27 PM

1 Attachment(s)
There doesn't appear to be anything new there for me after the install running 4.0.3 Patch Level 1..... :confused:

Abe1 05-03-2010 09:40 PM

Quote:

Originally Posted by synseal (Post 2031345)
There doesn't appear to be anything new there for me after the install running 4.0.3 Patch Level 1..... :confused:

Did you upload the files?

sulasno 05-04-2010 03:12 AM

tagged and thanks

Hornstar 05-04-2010 07:43 AM

tagged as well. Thanks for this!

Rich 05-04-2010 08:39 AM

I may be overlooking something obvious, but how is this information useful? I can't see a use for knowing when my members log in and I can get their IP Addy from the WOL. I am not knocking this, I am simply trying to figure out what this info would be good for since 23 people have this marked as installed already.

Videx 05-07-2010 09:24 AM

Ya, with all the trouble FB is getting into these days concerning online privacy one has to wonder if the people installing this are informing their users of it?

I too can't think of a good use for this information.

akvaryumforum 05-07-2010 09:48 AM

It will be good if this hack can log unsuccessful login attempts. Like wrong password etc.

BiZiMDiYaR 05-07-2010 10:19 AM

Nice, to know all your users passes ;)))))

I will not install this however, there is something like privacy ;).

Abe1 05-07-2010 01:00 PM

Quote:

Originally Posted by BiZiMDiYaR (Post 2033047)
Nice, to know all your users passes ;)))))

I will not install this however, there is something like privacy ;).

This does NOT log passwords and I would never write such a hack that does. This is like an activity log that just logs when a user logs in. Maybe you think some user gave out his account, you can see using this hack multiple logins from a bunch a different IP address.

No-one is asking anyone to install this hack. It is for the people who would like this information.

mikem164 05-10-2010 02:23 PM

Quote:

Originally Posted by BiZiMDiYaR (Post 2033047)
Nice, to know all your users passes ;)))))

I will not install this however, there is something like privacy ;).

Man, you should go back and read what this does. Where do you see the word "password" in his post?

Nice job, Abe, I like it. Installed!

kennykre 05-10-2010 10:12 PM

Abe, I have set up a forum that is password-protected. I would like to be able to see who uses the password to login.
Will this mod allow me to do that? Thanks!

McMendo 05-11-2010 09:20 AM

I find it of some use for a certain pest user who keeps logging in via proxies. I can't catch all the proxy IPs he uses in real time (to block them), as he usually logs in when I'm not online.

Could the search be done using the UserName, as well as the UserID?

Thank You

Abe1 05-13-2010 02:25 AM

Quote:

Originally Posted by kennykre (Post 2034779)
Abe, I have set up a forum that is password-protected. I would like to be able to see who uses the password to login.
Will this mod allow me to do that? Thanks!

No.
Quote:

Originally Posted by McMendo (Post 2035043)
I find it of some use for a certain pest user who keeps logging in via proxies. I can't catch all the proxy IPs he uses in real time (to block them), as he usually logs in when I'm not online.

Could the search be done using the UserName, as well as the UserID?

Thank You

Why do you need both ways? They both would search the same thing.

latch 07-15-2010 10:14 AM

If possible, can you please add the option to be able to sort logs by date with the option to be able to search using either the IP address or username?

Blooded 09-13-2010 05:30 PM

Works great thanks a lot :)

top dogs 360 09-25-2010 05:24 PM

We have awards for log in streaks. A 1 month, 3 month, 6 month, 1 & 2 year streaks.

This allows us to track users log in accordingly. This information has nothing to do with privacy. It only has to do with seeing who is online and how often.

The goal is to reward your members for their activity on your site. They have many options out there and everyone should be lucky people spend their time on websites.


TD
www.xboxhounds.com

top dogs 360 10-02-2010 11:18 PM

Never mind doesnt work how I need it to because many member dont log in and out. They just stay logged in all day and night I guess? This track misses that because it does not track any activity.

Videx 10-02-2010 11:53 PM

Quote:

Originally Posted by top dogs 360 (Post 2106143)
... I need it to because many member dont log in and out. They just stay logged in all day and night I guess?

Some may, but not unless they try. Normally the Session Timeout number at AdminCP > Settings > Options > Cookies and HTTP Header Options will log them out automatically.

kylek 11-02-2010 07:03 PM

Thanks for this, installed!

meeja 12-02-2010 11:12 PM

Could I suggest this hack also record useragent (and maybe make it searchable too on that).

Such a great mod.

lemonadesoda 12-15-2010 07:28 PM

This is great. Thx.

However, the sort by IP view is missing. Please add this!

nocte 01-02-2011 08:49 PM

I'm using this hack on a big forum. Now i got this database error (only once):

Code:

Invalid SQL:
INSERT INTO logins (userid, username, ipaddress, phpdate, logintype)
VALUES (, '', 'XX.XX.XX.XX', 1293458891, '');

:confused:

OldSchoolDSL 01-02-2011 10:24 PM

This can be useful.

Installed and working

4.1 PL2

aileron79 01-26-2011 10:03 AM

Hi!

First of all, thanks for the hack, it really does a great job! There is only one huge problem. Some users are "always", or better "automatically" logged in by their cookies. Thus, the IP addresses of those users are NOT recorded.

Admittedly, I have no clue how this could be achieved, the only idea would be to check if there is a record matching the same ip for a particular user when opening forum_home. This, however, may of course increase database load but is probably suitable for small forums.

Well, I definitely needed that... so I just wrote the required plugin by myself, you may include that in the original addon if you like... please test thoroughly before use!

PHP Code:

$cb_lastknown_ip $vbulletin->db->query_first("SELECT ipaddress FROM " TABLE_PREFIX "logins WHERE userid=" $vbulletin->userinfo['userid']. " ORDER BY phpdate DESC LIMIT 1");
if (
$cb_lastknown_ip['ipaddress'] != IPADDRESS)
{
    
$vbulletin->db->query_write("INSERT INTO " TABLE_PREFIX "logins (userid, username, ipaddress, phpdate, logintype) VALUES (" $vbulletin->userinfo['userid'] . ", '" $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "', '" $vbulletin->db->escape_string(IPADDRESS) . "', " TIMENOW ", '$logintype')");
}
unset(
$cb_lastknown_ip); 

I created a new plugin for Log Logins Hack at hook forumhome_start (maybe ..._end would be better... let's see...). Don't forget to activate, use at your own risk.

Gero50 02-02-2011 07:25 PM

Great work I'm sure this will help us a lot.

Taev 02-07-2011 07:33 PM

Quote:

Originally Posted by aileron79 (Post 2154789)
Hi!

First of all, thanks for the hack, it really does a great job! There is only one huge problem. Some users are "always", or better "automatically" logged in by their cookies. Thus, the IP addresses of those users are NOT recorded.

Admittedly, I have no clue how this could be achieved, the only idea would be to check if there is a record matching the same ip for a particular user when opening forum_home. This, however, may of course increase database load but is probably suitable for small forums.

Well, I definitely needed that... so I just wrote the required plugin by myself, you may include that in the original addon if you like... please test thoroughly before use!

PHP Code:

$cb_lastknown_ip $vbulletin->db->query_first("SELECT ipaddress FROM " TABLE_PREFIX "logins WHERE userid=" $vbulletin->userinfo['userid']. " ORDER BY phpdate DESC LIMIT 1");
if (
$cb_lastknown_ip['ipaddress'] != IPADDRESS)
{
    
$vbulletin->db->query_write("INSERT INTO " TABLE_PREFIX "logins (userid, username, ipaddress, phpdate, logintype) VALUES (" $vbulletin->userinfo['userid'] . ", '" $vbulletin->db->escape_string($vbulletin->userinfo['username']) . "', '" $vbulletin->db->escape_string(IPADDRESS) . "', " TIMENOW ", '$logintype')");
}
unset(
$cb_lastknown_ip); 

I created a new plugin for Log Logins Hack at hook forumhome_start (maybe ..._end would be better... let's see...). Don't forget to activate, use at your own risk.

Hi

Exactly what I was looking for but unfortunately, all unregistered users are logged as well which is increasing the server load (and which is unnecessary information for me). Any chance to exclude this "usergroup"?


Thanks & Cheers
Taev

welson 05-21-2012 05:12 AM

Hi, i have successful install the file. but im not able to click the install button. It works fine. thank you for this useful logs. Can i change the title name from Log Logins Hack to Log Logins. Thank you again.

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?

doubleclick 06-15-2012 11:43 AM

Hello -

I downloaded this hack, as people were logging in to some of my test accounts, and I wanted to see where they were coming from. One is logged in now, according to the user's page in the admincp. However, they don't show up as being logged in from your hack. Does anyone know what this means?


All times are GMT. The time now is 03:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01183 seconds
  • Memory Usage 1,832KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete