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. 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: ScreenShots: |
|
Posts: 4342
Hi Charles,
Just a quick question - why the requirement for different module.inc files for the different versions of Gallery?
Posts: 25
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.
Posts: 4342
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!
Posts: 25
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.
Posts: 3
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
Posts: 25
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 ?
Posts: 3
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
Posts: 25
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.
Posts: 244
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
Posts: 3
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.
Posts: 25
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.
Posts: 4342
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.
Posts: 25
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.
Posts: 134
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
Posts: 25
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)?
Posts: 25
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).
Posts: 134
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
Posts: 25
I am glad that it is working and you are welcome!
Posts: 9
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!
Posts: 1
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?