|
#1
|
|||
|
|||
|
Addon: top_views
I've created a small add which can be used to generate a 'top' viewed page.
I only create a thumbrow for horizontal, for vertical one should use HITS_<xx>_<y>, which <xx> is THUMBNAIL, COUNT, DATETIME (photo time), HEADLINE (name of photo), BODY (description), and <y> is a number from 1 to the maximum number of thumbnails wanted to be shown. Example: <tr> <td valign=top><span class="title"><HITS_COUNT_1></span></td> <td><span id="thumbrow"><HITS_THUMBNAIL_URL_1></span></td> <td><span class="footer"><HITS_HEADLINE_1><br/><HITS_DATETIME_1></span></td> </tr> It should fairly easy to expand.... Live example: http://www.exilepixel.com/pixelpost/index.php?x=hits Download: http://exilepixel.com/download/pixel..._views_0.1.zip Regards Casper Last edited by casperghst42; 09-14-2006 at 10:09 AM. |
|
#2
|
|||
|
|||
|
Very nice !
Thank you ! This addon is great.
Only one problem on my page : apostrophe (I'm french) are replaced buy /'. Visible on this link : http://dansmarue.free.fr/index.php?x=hits |
|
#3
|
|||
|
|||
|
Code:
Only one problem on my page : apostrophe (I'm french) are replaced buy /'. who wrote this addon? please check how the entries are read from the database and how they are "formatted" to show perfectly in PP and do the same in that Addon, please! |
|
#4
|
|||
|
|||
|
Sorry not American nor English - Danish, and yes I know of these things called special characters:-) - just never use them.
I'll get around to fix this.... Regards/Casper Quote:
|
|
#5
|
|||
|
|||
|
Ah, you wrote it ;=)
I think you have enough special characters to run into trouble ;=) Casper, just use the standard escaping / string modifying functions of PHP |
|
#6
|
|||
|
|||
|
I updated it to escape 'special' characters, please try it and let me know if it works; http://www.exilepixel.com/download/p..._views_0.2.zip
I don't use special characters as I've not had a danish keyboard for 6 years, and 99.9999% of what I do is in English anyway. But yes, they are a pain. Regards/Casper |
|
#7
|
|||
|
|||
|
Sorry
|
|
#8
|
|||
|
|||
|
Please try again - same file, but slightly updated.
Thanks. Regards/Casper Quote:
|
|
#9
|
|||
|
|||
|
I have updated
But same problem...
Sorry but I don't understand anything about php language... so I can't do anything. |
|
#10
|
|||
|
|||
|
Another problem
A "ghost picture" appear on the hits page.
I've deleted it but an empty frame is still on the page. http://dansmarue.free.fr/index.php?x=hits |
| Post Reply |
| Thread Tools | |
|
|