Logging module
IamNear
Joined: 2006-03-08
Posts: 57 |
Posted: Mon, 2006-03-20 09:25 | |||
Is there a module available that allows you to view logged hits of each IP address? Example attached.
|
||||
IamNear
Joined: 2006-03-08
Posts: 57 |
Posted: Mon, 2006-03-20 09:25 | |||
Is there a module available that allows you to view logged hits of each IP address? Example attached.
|
||||
Posts: 1153
have a look at http://sourceforge.net/tracker/index.php?func=detail&aid=1295162&group_id=7130&atid=357130
Posts: 57
Thank you for pointing me in the right direction, its amazing that this feature is not part of the script by default. Please support this module develoment with your vote -- http://gallery.menalto.com/sfvote/vote/1295162
Posts: 3236
It isn't really *that* amazing that it isn't already written. As an open source project, the developers add features that a) are very popular and/or b) they are interested in themselves. As you can see from the sfvote page, it isn't in the top 10 of requested features, thought it is in the top 20 at least. So if you like the idea and can do more than vote for it, your chances of getting the module are much better. This could include coding it yourself, offering a reward for someone to code it or even hiring some developer (a gallery dev or just someone good at php) to do it. Either way, the G2 dev team is happy to help anyone working on modules for G2!
All that said, there are perhaps some useful alternatives out there. Your webserver already keeps a log of everyone that visits your site... why bother duplicating the effort? You can use some 3rd party tools like webalizer or awstats to process your logs and get a wide variety of information. Google has an "Analytics" service that works by inserting some java code in all your pages and then can provide you with *very* detailed and interesting statistics about your visitors. So you have lots of non-G2 options that are arguably better than anything that could be designed as a G2 module.
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 1153
yep, i agree with fryfrog. modern web hosting providers will provide you statistics, and there's lots of 3rd party free statistics providers that can explore, as fryfrog suggested.
Posts: 57
I disagree, general site logs do not give specific information on individual user sessions from what images (and for how long) a user views -- to tracking their entire gallery viewing sessions.
For example, as far as I'm aware webalizer, awstat logs etc do not have the ability to identify a registered user and display a full log of when and what they look at. Or linking a user to a guest comment etc... The ability to identify users by what photos they look at (people generally only look at items relevant to them i.e. photos of themselves) in a simple, easy to use interface is a must module in my opinion.
I'm not a developer, would anyone be prepared to develop this module? For a fee?
Edit:
Check out my original attached image for a simple example.
Posts: 57
Anyone interested for a fee?
Posts: 10
I'm game. I figure it's time for Open Web Analytics (http://www.openwebanalytics.com) to have a Gallery plugin. We already have one for Wordpress and MediaWiki.
I've already got a Module for Gallery 2.2 started, but just need to figure out how to call some code on every request from _within_ a module (i.e. without hacking main.php). I don't think there is a callback that is called on every request...
Anyone have any ideas?
Posts: 32509
we've recently answered similar questions since someone added support for another web statistics tool: http://codex.gallery2.org/Gallery2:Modules:firestats.
there's no hook that gets called on each request yet. i wonder where we discussed this, it doesn't seem to be in the forum. maybe in the irc channel?
some related words:
http://tools.gallery2.org/glogs/?fulltext=on&search=omry
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 10
It seems that the way that the firestats module handles this is to register an authPlugin with a priority of 1 that does not return a valid user object. The fact that the plugin does not return a valid user object causes gallery to move along to the next registered authPlugin and see if it gets a valid user object from it (which it will).
This definitely works but it means that the code one is trying to execute does not have access to gallery's active user object, because it is executed before the valid authPlugin executes.
Neat hack, but definitely not the way I would have expected this to work.
Seems to me that Gallery should follow what other frameworks do and expose some additional event hooks, specifically:
* Init - would fire on Gallery initializing
* Render - would fire whenever a view was rendered
* Auth - a true auth event that would fire when a valid user object is created.
These would be infinity valuable for creating a tracking/logging module.
That said, I'll try to hack around not having access to the user object and see what I can do.
I wonder if there are other factory implementations that get called on every request and work like the authPlugin does with priorities and chaining etc.. Anyone know?
-P-
Posts: 32509
Correct assessment. Not sure if we need all of the events you mention, but we certainly need a real per-request event.
And no, there are no better alternatives to our knowledge. The auth stuff is the best emulation we can offer at the moment.
In G2.3 there's another event that gets fired later in the request (so you have your active user).
See:
- http://codex.gallery2.org/Gallery2:Events
- http://codex.gallery2.org/Gallery2:Theme_Override_By_Event
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 10
ok I finally got a release out for this.
I'm pleased to announce the release of Open Web Analytics for Gallery2.
Open Web Analytics (OWA) is a popular open source web analytics framework that provided built-in support for tracking WordPress, MediaWiki and now Gallery2 based sites.
OWA installs as Gallery2 plugin and provides the following features to Gallery2 users out of the box:
- Tracks all the typical visitor and session metrics as well as Gallery2 album and item page views.
- Album and item meta-data is automatically used to describe pages
- installs as regular one-click gallery plugin (see http://wiki.openwebanalytics.com for install instructions)
- utilizes Gallery2 user authentication to keep stats private
- Analytics displayed as Gallery2 site admin screen
Currently requires Gallery v2.2.4.
You can grab the code from here: http://downloads.openwebanalytics.com/owa/owa_1_1_0rc2.tar
Please give it a try and let me know as you come across bugs or issues.
enjoy.
-P-
Posts: 27300
padams66,
When I try to activate your module I get this in the firefox debug window:
system info:
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 10
Looks like a gallery error. I'll take a look.
I have only tested this version of OWA with Gallery 2.2.4.
Any chance you can upgrade to that and see if it fixes the problem.
-P-
Posts: 27300
Sorry I should have clicked the run now button ( Yah I should know right ;-) ) for they system maint/version info.
It was at 2.2.4
Sorry about that.
perhaps the upgrade code should run this maint task.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 10
I can't seem to reproduce this. what version of firefox are you running?
The errors that are throwing relate to Gallery's javascript not the OWA plugin so I'm wondering if you can activate and install other plugins or does this just happen with OWA?
Posts: 24
Hi,
First of all, congratulations for adapting OWA to gallery.
I've tried to install OWA on gallery 2, but I'm stuck.
I've FTPed the files, the link to Install is available in the plugins page, but when I click install nothing happens. I've tried changing permissions on owa folder (now it's 777), but still no install.
Any help would be great, I've been looking for that kind of plugin for a long time and need it badly.
Regards,
Benoit
My gallery info :
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.5-0.dotdeb.2 apache
Webserver = Off
Database = mysqlt 4.1.11-Debian_4sarge7-log, lock.system=flock
Toolkits = Gd, Exif, SquareThumb
Acceleration = none, none
Operating system = Linux 2.6.13-amd #1 SMP Fri Sep 9 14:29:02 CEST 2005 i686
Default theme = PGlightbox
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 55
Rows in GalleryAccessSubscriberMap table = 63
Rows in GalleryUser table = 4
Rows in GalleryItem table = 61
Rows in GalleryAlbumItem table = 9
Rows in GalleryCacheMap table = 0
Posts: 314
Tested also the module.
A great module, however some errors.
1. at installation: it looks for a file named gallery_template.tpl but what it is found is a gallery2_template.tpl (cannot access right now the server, so no exact details). A symbolic link seems to solve the problem.
2. at run-time: in seems that in module.inc, the GalleryController class cannot be inherited.
I will post apache logs directly when possible.
serbanc - www.e-poze.ro
Posts: 314
tried today 1.1rc3
- gallery_template.tpl / gallery2_template.tpl - works if you rename file
- if trying to save settings you get an error
what info should I provide ?
serbanc - www.e-poze.ro
Posts: 314
commented the declaration of OWAController class and it seems to work now.
it is supposed to log users ?
serbanc - www.e-poze.ro
Posts: 10
ok. I've committed a number of fixes to SVN trunk for those that care to give it a whirl.
Will package up a new tar ball later this week.
thanks,
-P-
Posts: 314
made some modification into module.inc.
it seems to log even users, but it does not display their names, just their id's
find attached the code
serbanc - www.e-poze.ro
Posts: 10
ok. v1.1.0rc4 has been released and contains a bunch of fixes to the bugs that people have been kind enough to report here.
OWA should now install cleanly and links to its admin settings and analytics dashboard should show up in the Site admin nav column.
You can fetch a tar ball of the code from here: http://downloads.openwebanalytics.com/owa/owa_1_1_0rc4.tar
Posts: 1
Hello!
I succesfully install OWA module in Gallery2.
Now I have strange problem:
when I load any page from gallery - browser freeze on the while (~30sec), then load page...
I try disable Geolocate, Resolve host name etc, but no luck as far - any clue what's up?
Jack
Posts: 4
I want to get the installation instructions from http://wiki.openwebanalytics.com/index.php?title=Main_Page, but it appears one must be logged in even to see them ... and the login page has no way to create a new account! It says "log in / create new account," but I can't see any way to create a new account. Can anyone help me here?
Posts: 4
I found the installation instructions (via Google -- links on openwebanalytics.com are still broken) ... but it failed to install. The module appeared in the Admin area, but when I clicked on Install, all that happened was that the row turned green; the module was not installed, and no error messages were given.
What's wrong here?
Posts: 10
Hi Onytx -
What links on openwebanalytics.com are broken? Also all the documentation is located at http://wiki.openwebanalytics.com.
Can you post what version of Gallery and OWA you are running? There is a 1.1 tar ball now that is best to try. Also OWA will produce
/path/to/owa/owa-data/logs/errors.txt that might also shed some light on what's going on or where things might be getting stuck for you..
If there are any gallery developers reading, perhaps someone could point me in the right direction of how to debug/instrument the ajax/javascript
that is the plugins roster page....
Thanks,
-P-
Posts: 47
the same thing happens for me, i click install and nothing happens
using gallery 2.3 and the latest OWA