|
#11
|
|||
|
|||
|
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 |
|
#12
|
|||
|
|||
|
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 |
|
#14
|
|||
|
|||
|
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 |
|
#15
|
|||
|
|||
|
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 ! |
|
#16
|
||||
|
||||
|
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) |
|
#17
|
|||
|
|||
|
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 |
|
#18
|
|||
|
|||
|
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! |
|
#19
|
|||
|
|||
|
Great addon combination. Thanks loads for both counter and top views.
Rob |
|
#20
|
|||
|
|||
|
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. |
| Post Reply |
| Thread Tools | |
|
|