Announcement

#1 2012-12-16 08:23:29

Charles2012
Member
2012-11-04
26

[Plugin] User Info Tracking

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

 

#2 2012-12-16 13:19:20

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

Hello
thank you for your contribution and congrats!! ^^
Did you succeed to catch the log out?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-12-16 18:31:43

Charles2012
Member
2012-11-04
26

Re: [Plugin] User Info Tracking

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

 

#4 2013-01-01 07:52:51

Charles2012
Member
2012-11-04
26

Re: [Plugin] User Info Tracking

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

 

#5 2013-01-09 14:30:30

otherwayup
Member
2012-01-23
26

Re: [Plugin] User Info Tracking

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

 

#6 2013-01-15 22:17:28

otherwayup
Member
2012-01-23
26

Re: [Plugin] User Info Tracking

Anyone else get this error I mention above?

Last edited by otherwayup (2013-01-15 22:17:50)

Offline

 

#7 2013-01-15 22:32:43

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

The author of the plugin is subscribing to this thread. So just wait until he has enough free time to check that


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2013-01-24 21:52:18

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

http://piwigo.org/dev/changeset/20282 => new trigger you will be able to use !


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2013-01-25 20:59:39

otherwayup
Member
2012-01-23
26

Re: [Plugin] User Info Tracking

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, fixed] Add triggers for login system 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

 

#10 2013-01-25 21:01:21

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

The link was not for you


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#11 2013-01-25 22:51:47

otherwayup
Member
2012-01-23
26

Re: [Plugin] User Info Tracking

Reinstated old files, but to normal.

Thanks

Offline

 

#12 2013-01-25 22:58:08

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

sry
I should have mentioned that before :)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#13 2013-01-29 11:49:43

Thom1
Member
2013-01-29
1

Re: [Plugin] User Info Tracking

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

 

#14 2013-02-06 20:32:15

bstassart
Member
2013-02-06
2

Re: [Plugin] User Info Tracking

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

 

#15 2013-02-06 20:36:51

flop25
Piwigo Team
2006-07-06
6851

Re: [Plugin] User Info Tracking

$conf['show_php_errors'] = E_ALL ^ E_NOTICE;
in local config via the plugin localfiles editor


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact