I created a plugin called User Info Tracking.
It tracks Failed and Successful logins. It will record the username used, date/time, IP Address, and action. You can lookup the IP Address and look at the user permission and user profile.
Future Plans:
Pagination
Sorting
Maybe IP Banning(possibly it's own plugin)
Let me know what you think about.
[extension by Charles2012] User Info Tracking
Last edited by ddtddt (2012-12-16 19:01:20)
Offline
Hello
thank you for your contribution and congrats!! ^^
Did you succeed to catch the log out?
Offline
Thank you!!
flop25 no I didn't as I was waiting for a reply to my other post. I figured I would release it without the logout part so people can start using it. It would probably require a core update to get this as well as there is no trigger for when a person logs out.
Offline
Update: There is a small minor bug with my plugin and the iOS Phone App. See the below post for a temporary fix.
http://piwigo.org/forum/viewtopic.php?id=21023
Last edited by Charles2012 (2013-01-01 07:55:40)
Offline
Hi,
If I do following
1 - Login with 'auto login' ticked.
2 - Then Close all browser tabs/windows.
3 - Open browser and go to gallery
I am still logged in but I get following error at the top of the screen.
Notice: Undefined index: username in /home/xxxxxx/xxx.domain.xxx/plugins/user_info_tracking/include/functions.inc.php on line 26
If I then look at User Info Tracking in plugins, the user name cell is blank (but the user ID number cell has correct number).
If I do the above but just close browser gallery Tab leaving another unrelated tab open, I can then open new tab and go to the gallery where I am logged in (as expected) without the error message.
Just in case, I deleted plugin, loaded/activated skeleton and re-loaded/activarted User Tracking, but I still get same error.
Regards, Darren
Last edited by otherwayup (2013-01-09 14:31:43)
Offline
Anyone else get this error I mention above?
Last edited by otherwayup (2013-01-15 22:17:50)
Offline
The author of the plugin is subscribing to this thread. So just wait until he has enough free time to check that
Offline
http://piwigo.org/dev/changeset/20282 => new trigger you will be able to use !
Offline
HELP
I right clicked on the files in the link above and selected Save Link As and saved locally. Then renamed the online original .php files to .php_old and used filezilla to ftp the saved local files etc.
When I look at the saved local files in notepad it's a single mass of text, not separate lines of code
Now when I go to my site I just get this lot and more (see below)
Help, thanks, Darren
Login
Preferences
About Trac
Timeline
Browse Source
Search
Context Navigation
Last Change
Annotate
Revision Log
root/trunk/include/functions_user.inc.php @ 20282
View revision:
Visit:
Revision 20282, 38.2 KB (checked in by mistic100, 5 days ago)
[Bugtracker] ticket 2823 Add triggers for login system
Property svn:eol-style set to LF
Line Â
1 <?php
2 // +-----------------------------------------------------------------------+
3 // | Piwigo - a PHP based photo gallery                  |
Last edited by otherwayup (2013-01-25 21:09:20)
Offline
The link was not for you
Offline
Reinstated old files, but to normal.
Thanks
Offline
sry
I should have mentioned that before :)
Offline
Hi,
Since I use "User Info Tracking" plugin I can't generate multiple size images with the "batch manager". The progress bar freezes to "0/0". If I disable the plugin, generate images works.
So I think there is a bug in the plugin. What do you think ?
Last edited by Thom1 (2013-01-29 11:50:06)
Offline
I get errors at the top of the page when trying to use this extension.
Piwigo 2.4.6
Plugins:
Community
File Uploader
Image Preview
jplayer
NBM Subscriber
Photo add by
Upload 1 menu
Whois online
I tried also enabling skeleton per another thread on User Info Tracking, but it did not fix the issue.
One error I get is:
Notice: Undefined index: username in /home/[username]/public_html/gallery/plugins/user_info_tracking/include/functions.inc.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/[username]/public_html/gallery/plugins/user_info_tracking/include/functions.inc.php:26) in /home/[username]/public_html/gallery/include/page_header.php on line 105
In my PHP error_log I see:
[06-Feb-2013 12:16:16] PHP Notice: Use of undefined constant timeStamp - assumed 'timeStamp' in /home/[username]/public_html/gallery/plugins/user_info_tracking/maintain.inc.php on line 37 [06-Feb-2013 12:16:16] PHP Notice: Use of undefined constant ASC - assumed 'ASC' in /home/[username]/public_html/gallery/plugins/user_info_tracking/maintain.inc.php on line 38 [06-Feb-2013 12:16:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/[username]/public_html/gallery/plugins/user_info_tracking/maintain.inc.php:37) in /home/[username]/public_html/gallery/include/page_header.php on line 105 [06-Feb-2013 12:17:33] PHP Notice: Undefined index: username in /home/[username]/public_html/gallery/plugins/user_info_tracking/include/functions.inc.php on line 26 [06-Feb-2013 12:17:33] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/[username]/public_html/gallery/plugins/user_info_tracking/include/functions.inc.php:26) in /home/[username]/public_html/gallery/include/page_header.php on line 105
Offline
$conf['show_php_errors'] = E_ALL ^ E_NOTICE;
in local config via the plugin localfiles editor
Offline