vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User activity logs? (https://vborg.vbsupport.ru/showthread.php?t=290431)

Gripi 11-10-2012 04:23 AM

User activity logs?
 
Hi...

Is there a feature to view user logs? such as when the user change password, email address, and using what IP address?

lots of member in my forum said they user id got hijacked.. but the problem is.. i cannot see when, or from what ip address the user id got hijacked.

and i think this is a good idea, because the logs is very important to troubleshooting a problem.

thanks

Simon Lloyd 11-10-2012 09:30 AM

you'd need a query to th database for that information, in phpmyadmin userchangelog table run this query
HTML Code:

SELECT`oldvalue` ,`newvalue` ,`change_time`
FROM`userchangelog`
WHERE`userid`=1
LIMIT 0 , 30

Dont forget to add your table prefix if you have one before userchangelog and change userid to whichever user you are checking!

Gripi 11-10-2012 03:44 PM

hello..

thanks alot.. its works..

but no friendly interface to view this in admincp ?

one more thing, in the userchangelog, i saw ipaddress field, how to read that ip, such as:

1854530124 or 3399374709 or 1988691765

Simon Lloyd 11-10-2012 04:44 PM

just add ipaddress as i have done for the first 3things you see in th query,i think those ae the date/time stamps arent they? you need to check on a unix site for the exact time and date.

kh99 11-10-2012 05:50 PM

There is a mysql function for converting a timestamp, so instead of `change_time` you can use FROM_UNIXTIME(`change_time`). You can even format it the way you like: http://dev.mysql.com/doc/refman/5.0/..._from-unixtime

Max Taxable 11-10-2012 07:14 PM

Also here's a handy tracker to install:

http://statcounter.com

Gripi 11-11-2012 05:51 AM

Quote:

Originally Posted by Simon Lloyd (Post 2380021)
just add ipaddress as i have done for the first 3things you see in th query,i think those ae the date/time stamps arent they? you need to check on a unix site for the exact time and date.

hello.. sorry misunderstand, i mean how to read the ip address:

1854530124 <- 185.453.0.124 or 18.545.30.124 ? or ?

Simon Lloyd 11-11-2012 08:07 AM

Thats the date!!!, look at the query it says change_time thats a unix timestamp there isn't any ip information in the user_changelog, didn't you look at it when you were in phpmyadmin?

Gripi 11-12-2012 02:24 AM

1 Attachment(s)
that a look at this printscreen, it's an ip address field with value "3758089792"

what is the meaning of "3758089792" ? i'm sure its not a valid timestamp, because i convert it to date, the result "Tue, 01 Feb 2089 09:49:52 GMT"

thanks

Simon Lloyd 11-12-2012 03:09 AM

That ipaddress column has been added by another mod it's not part of vbulletin!


All times are GMT. The time now is 03:26 AM.

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.02854 seconds
  • Memory Usage 1,729KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete