User Info Module Released

Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sat, 2008-05-03 18:15

I have released the User Info Module.
This module will log when users Login, Logout, and Failed Login Attempts

The module will work on both Gallery 2.2.4 and 2.3(SVN)!

You can read more information about the module and how to install it on Gallery 2.2.4 here:
http://codex.gallery2.org/Gallery2:Modules:userinfo

ScreenShots:
[img]http://codex.gallery2.org/images/e/e6/UIScreenShot1.1.png[/img]
[img]http://codex.gallery2.org/images/1/11/UIScreenShot2.png[/img]

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-05-04 06:53

Hi Charles,

Just a quick question - why the requirement for different module.inc files for the different versions of Gallery?

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2008-05-04 07:06

Gallery 2.2.4 registers event listeners one way and the newer versions of gallery(2.3) will be registering event listeners differently.
It was the easiest way that I could think of that would allow the module to work on both versions of Gallery.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Sun, 2008-05-04 07:27

Correct me if I'm wrong, but the old version is only deprecated in 2.3 - not removed... otherwise every module in existence is going to fail without a rewrite!

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2008-05-04 07:39

From what I read here: http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryModule.html#methodregisterEventListeners
that will be removed on the next major API change. I wanted to go ahead and make the change to the new way now.

 
kth

Joined: 2007-10-12
Posts: 3
Posted: Sun, 2008-05-04 20:40

Hi Charles08,

it´s great - it was at the top of my Gallery-wishlist for months, thank you very much :-)

I have installed the module, it is shown in administration area, but the table remains empty - "No records in Database", although users logged in and out and some failed.

My system info:

Gallery-Version = 2.2.4 Kern 1.2.0.6
PHP-Version = 5.2.4-dev apache2handler
Webserver = Apache/2.2.4 (Linux/SUSE)
Datenbank = mysqli 4.1.13, lock.system=flock
Werkzeuge = ArchiveUpload, Exif, Gd, NetPBM
Beschleunigung = full/1814400, full/86400
Betriebssystem = Linux h979543 2.6.13-15.12-default #1 Thu Aug 24 11:23:58 UTC 2006 i686
Standard-Motiv = PGtheme
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)
Zeilen in der GalleryAccessMap Tabelle = 52
Zeilen in der GalleryAccessSubscriberMap Tabelle = 4385
Zeilen in der GalleryUser Tabelle = 30
Zeilen in der GalleryItem Tabelle = 4385
Zeilen in der GalleryAlbumItem Tabelle = 75
Zeilen in der GalleryCacheMap Tabelle = 399

Is there something I could configure/check to get the module working correctly ?

Thank you,
regards

Karsten

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2008-05-04 20:50
kth wrote:
Hi Charles08,

it´s great - it was at the top of my Gallery-wishlist for months, thank you very much :-)

I have installed the module, it is shown in administration area, but the table remains empty - "No records in Database", although users logged in and out and some failed.

My system info:

Gallery-Version = 2.2.4 Kern 1.2.0.6
PHP-Version = 5.2.4-dev apache2handler
Webserver = Apache/2.2.4 (Linux/SUSE)
Datenbank = mysqli 4.1.13, lock.system=flock
Werkzeuge = ArchiveUpload, Exif, Gd, NetPBM
Beschleunigung = full/1814400, full/86400
Betriebssystem = Linux h979543 2.6.13-15.12-default #1 Thu Aug 24 11:23:58 UTC 2006 i686
Standard-Motiv = PGtheme
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)
Zeilen in der GalleryAccessMap Tabelle = 52
Zeilen in der GalleryAccessSubscriberMap Tabelle = 4385
Zeilen in der GalleryUser Tabelle = 30
Zeilen in der GalleryItem Tabelle = 4385
Zeilen in der GalleryAlbumItem Tabelle = 75
Zeilen in der GalleryCacheMap Tabelle = 399

Is there something I could configure/check to get the module working correctly ?

Thank you,
regards

Karsten

You are very welcome. It was also on my wish list as well! :)
I want to add more features to it as time goes on and I learn more about gallery.

I see that you are running Gallery 2.2.4

Did you deactivate and uninstall the module?
then you rename the module.inc to module_2.3.inc
and rename module_2.2.4.inc to module.inc ?

 
kth

Joined: 2007-10-12
Posts: 3
Posted: Sun, 2008-05-04 21:19

Hi,

yes, sure I did.
After deactivating, uninstalling, deleting, installing and renaming again it works now. :-) Great !
Must have done something wrong on the first try - wrong name, wrong chmod ... I don´t know.

Sorry and thank you very much,
best regards,

Karsten

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2008-05-04 21:38
kth wrote:
Hi,

yes, sure I did.
After deactivating, uninstalling, deleting, installing and renaming again it works now. :-) Great !
Must have done something wrong on the first try - wrong name, wrong chmod ... I don´t know.

Sorry and thank you very much,
best regards,

Karsten

Great! I am currently working on making it where it will show x number of records per page.
Some Galleries may get lots of visitors and over time that can be a lot of records displayed all at once.

 
jens_k

Joined: 2007-01-28
Posts: 244
Posted: Sun, 2008-05-04 21:43

Hi Charles08,

thanks a lot for this great module ;-)
Up to now I was using the simple logs module but it has logged only the succesfull logins.
Now I have changed to UserInfo - and it is worth!

Best regards,
Jens
___________________________________
http://jekophoto.eu | http://jekophoto.de

 
kth

Joined: 2007-10-12
Posts: 3
Posted: Sun, 2008-05-04 22:08
Charles08 wrote:
Great! I am currently working on making it where it will show x number of records per page.
Some Galleries may get lots of visitors and over time that can be a lot of records displayed all at once.

Good idea - but for me it would be enough to set it to a fix length of e.g. 50 or 100 entries per page to prevent it from showing 5000 lines. It would be nice to sort the latest entries to top, but I think it´s not possible because of the structure of the log files.

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Sun, 2008-05-04 22:21
kth wrote:
kth wrote:
[quote=Charles08Great! I am currently working on making it where it will show x number of records per page.
Some Galleries may get lots of visitors and over time that can be a lot of records displayed all at once.

Good idea - but for me it would be enough to set it to a fix length of e.g. 50 or 100 entries per page to prevent it from showing 5000 lines. It would be nice to sort the latest entries to top, but I think it´s not possible because of the structure of the log files.

The # of records per page would be user changeable under the Setup Tab.
I haven't looked into the sort functions just yet so I am not sure.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2008-05-05 20:24
Charles08 wrote:
From what I read here: http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryModule.html#methodregisterEventListeners
that will be removed on the next major API change. I wanted to go ahead and make the change to the new way now.

Fair enough... although there is no change in major API number between 2.3 and 2.2.4 both at API version 7 - also does the new method using registerFactoryImplementation not work in 2.2.4? I can't see why it shouldn't.

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Wed, 2008-05-07 21:34
alecmyers wrote:
Charles08 wrote:
From what I read here: http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryModule.html#methodregisterEventListeners
that will be removed on the next major API change. I wanted to go ahead and make the change to the new way now.

Fair enough... although there is no change in major API number between 2.3 and 2.2.4 both at API version 7 - also does the new method using registerFactoryImplementation not work in 2.2.4? I can't see why it shouldn't.

For some reason I couldn't get it to work in 2.2.4 so that is why I used the old way and had it in a different file. It might have been how I coded it but I don't know.

 
vdd

Joined: 2005-08-11
Posts: 134
Posted: Sat, 2008-05-10 12:58

Can someone do me a favor to put all the files you have to download for the userinfo, to put them in one map userinfo, like the other modules, so I can upload this to the Modules map

If I use this link :
You can also go to http://gallery-contrib.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/modules/userinfo/ to download the files

something I do wrong I think. Uploading them to the modules map is not working for me

I can not get Userinfo to work in a testsite Gallery 2,3 (svn)
Maybe with a map userinfo with all the right files I succeed.

Best regards
vdd

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Wed, 2008-05-14 08:47
vdd wrote:
Can someone do me a favor to put all the files you have to download for the userinfo, to put them in one map userinfo, like the other modules, so I can upload this to the Modules map

If I use this link :
You can also go to http://gallery-contrib.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/modules/userinfo/ to download the files

something I do wrong I think. Uploading them to the modules map is not working for me

I can not get Userinfo to work in a testsite Gallery 2,3 (svn)
Maybe with a map userinfo with all the right files I succeed.

Best regards
vdd

vdd,
What do you mean by putting the files to download into one map userinfo?
You really don't need anything to upload to the modules map as you can install this directly from Gallery itself.
Follow these Install Steps and you will be good to go. http://codex.gallery2.org/Gallery2:Modules:userinfo#Install

What kind of error are you getting when you try to install onto Gallery 2.3(SVN)?
Do you have the latest version of 2.3(SVN)?

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Wed, 2008-05-14 08:50

I just uploaded the newest version which is 1.0.4
The update should be ready by 6:30am PDT.

I have also updated the screen shots.

Now you don't have to deactivate, uninstall, or rename any files to get User Info module to install.
It will now install on both Gallery 2.2.4 and Gallery 2.3(SVN).

 
vdd

Joined: 2005-08-11
Posts: 134
Posted: Thu, 2008-05-15 00:15

Charleso8

OK it's working
I did not understand exactly wath to do to get the Get more Plugins button to work
But suddenly I saw and understand the procedure
and now the userinfo is in my Plugin list
and it work
I can see that I log in and log out
Thanks very much for the Module
vdd

 
Charles08

Joined: 2008-02-22
Posts: 25
Posted: Thu, 2008-05-15 00:26
vdd wrote:
Charleso8

OK it's working
I did not understand exactly wath to do to get the Get more Plugins button to work
But suddenly I saw and understand the procedure
and now the userinfo is in my Plugin list
and it work
I can see that I log in and log out
Thanks very much for the Module
vdd

I am glad that it is working and you are welcome!

 
rexator
rexator's picture

Joined: 2005-10-28
Posts: 9
Posted: Mon, 2008-09-15 17:25

I'd love to be able to view what user has downloaded through zipcart :)
In fact - that is, what is most important to me. Is it possible to implement this?
Thanks!

 
BadDog
BadDog's picture

Joined: 2010-01-04
Posts: 1
Posted: Wed, 2010-02-17 12:13

I'd like to have some way to either limit the number of records kept in the database (e.g., only records from the last 30 days) or purge them (e.g., delete records older than 30 days) from Admin. Could something like that be added?