Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 09-11-2006, 02:13 PM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
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.
Reply With Quote
  #2  
Old 09-24-2006, 10:51 PM
fredmeg Offline
forum loafer
 
Join Date: Aug 2006
Posts: 8
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
Reply With Quote
  #3  
Old 09-25-2006, 01:46 PM
Connie
Guest
 
Posts: n/a
Red face

Code:
Only one problem on my page : apostrophe (I'm french) are replaced buy /'.
so I assume this addon was written by some american / english person who does not know that there are some umlauts and special characters existing ;=)

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!
Reply With Quote
  #4  
Old 09-26-2006, 03:11 PM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
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:
Originally Posted by Connie View Post
Code:
Only one problem on my page : apostrophe (I'm french) are replaced buy /'.
so I assume this addon was written by some american / english person who does not know that there are some umlauts and special characters existing ;=)

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!
Reply With Quote
  #5  
Old 09-26-2006, 05:00 PM
Connie
Guest
 
Posts: n/a
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
Reply With Quote
  #6  
Old 09-26-2006, 07:59 PM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
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
Reply With Quote
  #7  
Old 09-27-2006, 07:14 AM
fredmeg Offline
forum loafer
 
Join Date: Aug 2006
Posts: 8
Sorry

but the problem persists.

http://dansmarue.free.fr/index.php?x=hits

but thank you for your help !
Reply With Quote
  #8  
Old 09-27-2006, 08:27 AM
casperghst42 Offline
forum loafer
 
Join Date: Sep 2006
Posts: 10
Send a message via Skype™ to casperghst42
Please try again - same file, but slightly updated.

Thanks.

Regards/Casper

Quote:
Originally Posted by fredmeg View Post
but the problem persists.

http://dansmarue.free.fr/index.php?x=hits

but thank you for your help !
Reply With Quote
  #9  
Old 09-27-2006, 09:27 AM
fredmeg Offline
forum loafer
 
Join Date: Aug 2006
Posts: 8
I have updated

But same problem...
Sorry but I don't understand anything about php language... so I can't do anything.
Reply With Quote
  #10  
Old 09-27-2006, 09:34 AM
fredmeg Offline
forum loafer
 
Join Date: Aug 2006
Posts: 8
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:47 PM.

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