Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 07-24-2006, 10:26 AM
heras Offline
forum loafer
 
Join Date: Jul 2006
Posts: 7
addon: View counter

Hi,

I created a really simple views-per-image counter. See the description for more detail(s)
Reply With Quote
  #2  
Old 07-25-2006, 01:31 AM
umar's Avatar
umar Offline
pp regular
 
Join Date: Jun 2006
Posts: 26
When I added it, it seems that every image on my blog has been viewed only once.

Possible coding error?
__________________
www.umarshahzad.com/focus
Reply With Quote
  #3  
Old 07-25-2006, 09:33 AM
heras Offline
forum loafer
 
Join Date: Jul 2006
Posts: 7
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...
Reply With Quote
  #4  
Old 07-31-2006, 09:07 PM
random Offline
forum loafer
 
Join Date: May 2006
Location: Bern, Switzerland
Posts: 12
Expanding on countview

Quote:
Originally Posted by heras
Hi,

I created a really simple views-per-image counter. See the description 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
Reply With Quote
  #5  
Old 07-31-2006, 10:00 PM
Connie
Guest
 
Posts: n/a
@ 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...
Reply With Quote
  #6  
Old 08-08-2006, 10:03 AM
heras Offline
forum loafer
 
Join Date: Jul 2006
Posts: 7
Quote:
Originally Posted by random
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
Reply With Quote
  #7  
Old 08-14-2006, 03:41 PM
tomyeah's Avatar
tomyeah Offline
pp veteran
 
Join Date: Aug 2006
Posts: 74
Send a message via ICQ to tomyeah
works great, thanks for sharing

regards, tom.
Reply With Quote
  #8  
Old 08-14-2006, 06:05 PM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
great addon!
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #9  
Old 12-06-2006, 09:18 AM
heras Offline
forum loafer
 
Join Date: Jul 2006
Posts: 7
I have updated the counter addon so you can set your counting strategies. The new 0.3 version is available from the addons page.
Reply With Quote
  #10  
Old 05-27-2007, 07:21 PM
X.10 Offline
forum loafer
 
Join Date: May 2007
Posts: 1
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:02 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs