Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 09-27-2006, 09:51 AM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
The ghost image is probablly because you delete image no 100 - I will add code to make sure that it will not take deleted photos into the list.

As for the the other still ongoing issue with the characters, I can now see that it encodes the ' to <amp>#039; - I do not understand where the \ comes from.

Regards/Casper
Reply With Quote
  #12  
Old 09-27-2006, 09:58 AM
Connie
Guest
 
Posts: n/a
I did not look into your source code, but slashes come mostly from
this one

http://www.php-center.de/en-html-man...ddslashes.html
Reply With Quote
  #13  
Old 09-27-2006, 10:38 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Just add strip_slashes to remove \ from title of pic.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #14  
Old 09-27-2006, 02:26 PM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
Cheers, thank you for that one.

I've also added a check for existense of the photo, as deleted photos are still in the counter table.

http://www.exilepixel.com/download/p..._views_0.3.zip

Please test and let me know if it works.

Regards/Casper

Quote:
Originally Posted by GeoS View Post
Just add strip_slashes to remove \ from title of pic.
Reply With Quote
  #15  
Old 09-27-2006, 05:32 PM
fredmeg Offline
forum loafer
 
Join Date: Aug 2006
Posts: 8
Thumbs up YES !!!

Everything is OK now.
http://dansmarue.free.fr/index.php?x=hits
No more problem with caracters and my ghost picture is now really dead.
I like this addon. Thank you Casper and others ! Nice work !
Reply With Quote
  #16  
Old 09-28-2006, 03:21 AM
djaef's Avatar
djaef Offline
pixelpost guru
 
Join Date: Aug 2006
Location: Sunny Queensland
Posts: 103
sorry Casper I don't get it. Could you explain again how to edit the variables? I can't get mine to work,

Geoff
(jeg kan også tale dansk hvis du vil hellere email - djaef dot optusnet dot com dot au)
__________________
Geoff

:: photografica photoblog ::
:: photografica webblog ::
Reply With Quote
  #17  
Old 09-28-2006, 07:30 AM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
I create the following variables;

<THUMBNAILS_HITS_ROW> - just a normal row (just like the normal <THUMBNAILS_ROW>.
<HITS_THUMBNAIL_URL_x> - url to thumbnail
<HITS_COUNT_x> - counter, the number of hits
<HITS_DATETIME_x> - datetime of the photo
<HITS_HEADLINE_x> - headline of the photo (also the title)
<HITS_BODY_x> - description of the photo

_x - that is the counter, or in another way it is the number in the list;

_10 is the 10th, _9 is the 9th, ... _1 is the 1th.

As an example I use tables, just to make it look a bit nicer;

<TABLE>
<TR>
<TD><HITS_COUNT_1></TD>
<TD><HITS_HUMBNAIL_URL_1></TD>
<TD><HITS_DATETIME_1><BR/><HITS_HEADLINE_1></TD>
<TR>

<TR>
<TD><HITS_COUNT_2></TD>
<TD><HITS_HUMBNAIL_URL_2></TD>
<TD><HITS_DATETIME_2><BR/><HITS_HEADLINE_2></TD>
<TR>
...
</TABLE>

That will give you a table with thumbnails and a bit more information.

I've created a seperate page, using the browse template as template, calling it hits_tempate.html - to access it you can use index.php?x=hits (nice thing about pixelpost).

That's it.

Regards/Casper
Reply With Quote
  #18  
Old 11-30-2006, 06:47 AM
heras Offline
forum loafer
 
Join Date: Jul 2006
Posts: 7
How cool! You made an addon for my addon (saving me some work, as was planning to build this)

As the Joomla guys and gals put it: Opensource matters!
Reply With Quote
  #19  
Old 12-05-2006, 02:20 AM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
Great addon combination. Thanks loads for both counter and top views.
Rob
Reply With Quote
  #20  
Old 12-05-2006, 05:15 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
After working with this combo of addons the last few days, I see one possible way in which it (the counter addon) might be improved: perhaps it should NOT count the image hits that get recorded without an id number? ie, when it is the current image.

I guess it depends on what you want to convey in tracking and showing these numbers. If you want to show what people are 'choosing' to view, then eliminating the first loads would be more 'accurate'. If you want to simply show how many eyeballs fell on a particular image, than including the current image view would do that.

But with the latter approach, it really says more about how many visitors you had on the day that image was the current image than it says about whether people who visited actually liked that image. And an image that is posted on, for example, a Sunday will be seen as more popular than others because more people visit on Sunday. And if you don't upload another image for few days, the hits for the 'current' image for those days could quickly exceed all others.

In my view, since the greatest value of a count is to show people what other people seem to find interesting either because they clicked on it in the gallery or in the bottom thumbnail row (if you have one), the current image hits shouldn't be counted unless they have an image id (which means they clicked on a link somewhere to get that image. As it stands these choices get flooded out by regular hits.

Just some thoughts on what is otherwise a great addon.

Rob

Last edited by RobbieMc; 12-06-2006 at 02:31 AM.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:39 AM.

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