PDA

View Full Version : addon: View counter


heras
07-24-2006, 10:26 AM
Hi,

I created a really simple views-per-image counter. See the description (http://www.pixelpost.org/v1/index.php?x=downloads&details=179) for more detail(s)

umar
07-25-2006, 01:31 AM
When I added it, it seems that every image on my blog has been viewed only once.

Possible coding error?

heras
07-25-2006, 09:33 AM
No, it keeps track of the last IP address that hit each image. So that if you reload a page the hit count doesn't increase. When you are the only one browsing your images the count stays 1 no matter how many times you have gone back and forth.

It will start counting after installation. I could dig into the way stats are kept in PP so to pre-set the counter(s) based on the history you already have collected...

random
07-31-2006, 09:07 PM
Hi,

I created a really simple views-per-image counter. See the description (http://www.pixelpost.org/v1/index.php?x=downloads&details=179) for more detail(s)

Thanks, works really well. Is there any way that this can be used to create an automatic "top views" category or page? Something like an "archive" view of the top 10 viewed pictures?

Thanks

jan

Connie
07-31-2006, 10:00 PM
@ Umar,

wow! What a great thing! As I am a very talented cross-eyer, I see the toothpicks 4 times !

Umar, are you egyptian? Because of Jasemine and Hibiskus (Karkadeh)

I still remember these flowers, the smell and the cold tea, from my long trip in Egypt 30 years ago...

heras
08-08-2006, 10:03 AM
Thanks, works really well. Is there any way that this can be used to create an automatic "top views" category or page? Something like an "archive" view of the top 10 viewed pictures?

Thanks

jan

This should be possible indeed... I will upload a new version shortly

tomyeah
08-14-2006, 03:41 PM
works great, thanks for sharing ;)

regards, tom.

jdleung
08-14-2006, 06:05 PM
great addon!

heras
12-06-2006, 09:18 AM
I have updated the counter addon so you can set your counting strategies. The new 0.3 version is available from the addons page.

X.10
05-27-2007, 07:21 PM
Hi,

Thanks for your addon.
By the way I've noticed a bug on line 73.

It is written :
if ( $strategyCount = 'selected' ) {

I guess it should be :
if ( $strategyCount == 'selected' ) {

Regards,
X.10

random
09-25-2007, 09:15 PM
is there a way to reset the counts to 0? i've just changed the strategy/counting mechanism and would like from now one the "truer" results I've selected.
thanks
Jan