Improved Statistics Plugin

Creating and modifying plugins.
Blase16
Regular
Posts: 24
Joined: Thu Mar 02, 2006 5:55 pm

Improved Statistics Plugin

Post by Blase16 » Mon Jan 22, 2007 5:24 pm

I edited the statistic plugin. Now the refers are shown as a link and it counts as visit only the unique ip's in this day. So if you reload a site it doesn't count as a new visit. The plugin shows now more accurately the amount of different visitors.

The plugin recognize now more bots, and doesn't count them as visitors.

I hope you find the plugin more useful now.

Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy » Mon Jan 22, 2007 8:30 pm

Blase16 wrote:it counts as visit only the unique ip's in this day


I've been waiting for that feature for months! :D

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue Jan 23, 2007 10:46 am

Hi!

Thanks a lot, committed your update!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Blase16
Regular
Posts: 24
Joined: Thu Mar 02, 2006 5:55 pm

Post by Blase16 » Fri Apr 27, 2007 2:22 pm

I added 10 another Bots. http://files.blase16.de/serendipity_event_statistics.txt

EDIT: Now there 13 more Bots.

Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner » Sat Apr 28, 2007 3:46 pm

Is it possible to change the plugin a bit?

I run a blog with about 120.000 visitors / month. On the attached graphic you see the graph. The graph is on the top of the statistic page and i have to scroll down 10 pages until i reach the other stats.

The green bar has a height of 22565px. Maybe it is possible to divide this by 100 or so?

Just a small cosmetic wish...

Regards, Harald

User avatar
dyfa
Regular
Posts: 5
Joined: Mon Apr 30, 2007 6:34 pm
Location: Munich, Germany
Contact:

Please!

Post by dyfa » Mon Apr 30, 2007 9:07 pm

Harald Weingaertner wrote:Is it possible to change the plugin a bit?
The green bar has a height of 22565px.


Wow! That's impressing. :-)

Just a small cosmetic wish...


Well, it looks like a classic bedroom wallpaper. And the sedating effects of scrolling down the longest green bar in history can be useful if you have trouble with insomnia. ;-)

I have the same problem. Please limit the max height of that green bar to something reasonable. Thank you very much indeed.

Nikki 'dyfa' Britz

Blase16
Regular
Posts: 24
Joined: Thu Mar 02, 2006 5:55 pm

Post by Blase16 » Tue May 01, 2007 2:54 pm

Ok i will do it.

User avatar
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns » Tue May 01, 2007 7:48 pm

just multiply each day's value with (300/monthly_max) or so...

Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner » Thu May 10, 2007 3:15 pm

btw, i'm not able to update this plugin via spartacus. I have to download it manually on each of my blogs.

Blase16
Regular
Posts: 24
Joined: Thu Mar 02, 2006 5:55 pm

Post by Blase16 » Mon Jul 23, 2007 10:20 pm

Ok it's now done. Sorry that it took 6 month.

There is now a new Version of the statistics_plugin ( http://files.blase16.de/serendipity_plugin_statistics/ )

Changes

The botfilter is now much smarter. You don't need anymore to metione every version of libwww-perl-xyz or every Google Bot. The botfilter searches the given User-Agent string for strings like libwww-perl or google, if the search is positive then the Visitor is filtered.

The visitorsgraphs are now maximal 200px large. A bar is red if the month/day has only <33% visitors of the top visited month/day, yellow if it's between 33 and 66 and green if over 66.

The changes are also mentioned in the CHANGELOG file.

Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner » Wed Jul 25, 2007 11:18 pm

Wow, very nice work!

Really great improvement! I had to scroll down 20 pages before you've updated this nice plugin! Thanks for your work. (and sorry for the width of the screenshot)


Image

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Jul 25, 2007 11:21 pm

Hi!

Many thanks! I also committed that new version to the serendipity trunk as well as the 1.2 release version.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner » Thu Jul 26, 2007 11:45 am

Alarm!

This updated plugin messed up my blogs last night ;)

Fatal error: Call to undefined function: stripos() in /home/www/evologiq.com/blog/plugins/serendipity_event_statistics/serendipity_event_statistics.php on line 192

All of my blogs had the same error-message. It worked some minutes after i copied the files and my blogs suddenly stopped working. I don't know when and why, but i guess it has something to do with the new files...

Regards, Harald

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Thu Jul 26, 2007 12:10 pm

Hi!

The patch I commited sadly used a PHP5 only function. So I reverted that and now use the PHP4 construct again.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner » Thu Jul 26, 2007 1:29 pm

My Server uses PHP5... Where do i get the current version now? From Spartacus - tomorrow?

Post Reply