Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 08-09-2006, 05:39 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Addon: Comments layout from template files

What is it?

This add-on enables the use of external HTML-files for displaying the comments. I've found the original internal solution with <LI> not sufficient enough to handle my needs, so I wrote this add-on.

It reads two HTML templates with HTML for a single comment in which the following tags can be used:

NEW TAGS (comment template!):

<IMAGE_COMMENT_GRAVATAR> // support for gravatars (please see the custom_comments.php for more options).
<IMAGE_COMMENT_DAY> // shows the day the comment was posted as a number.
<IMAGE_COMMENT_MONTH> // shows the month the comment was posted as a three letter month (e.g. AUG).
<IMAGE_COMMENT_YEAR> // shows the year the comment was posted as a number.
<IMAGE_COMMENT_NAME> // shows the name of the person who made the comment (either as a link to homepage or text).
<IMAGE_COMMENT_MESSAGE> // shows the message or the default "there's no message." from the selected language file.

The HTML files have to be located in the current template and are named as:

custom_comment_template.html // Displayed when there are comments for a picture.
custom_no_comment_template.html // Displayed when there are NO comments for a picture.

In order to replace the original comments with the new custom comments please use the following tag in your main template:

<IMAGE_CUSTOM_COMMENTS> // the full comment list with HTML from the template files.

There are multiple settings which can be altered in the PHP file (e.g. filenames templates, gravatar defaults). In the next version I would like to add the settings to the database but for now this will do.

Version info
Version 0.1, see it in action @ http://foto.schonhose.nl

Installation
Just copy the file in the Addons folder. That's it!
Be sure to make the two template files in your current template folder.

Download
Download it here

Please leave comments and/or suggestions.

Last edited by Dennis; 08-19-2006 at 09:02 AM.
Reply With Quote
  #2  
Old 08-09-2006, 06:36 PM
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
Please register at dev area (http://pixelpost.org/v1/) and add your addon also there.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #3  
Old 08-09-2006, 06:41 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Quote:
Originally Posted by GeoS
Please register at dev area (http://pixelpost.org/v1/) and add your addon also there.
Yeah, I've already done that.
Reply With Quote
  #4  
Old 08-09-2006, 07:28 PM
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
Cool, thx
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 08-28-2006, 07:10 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
27 downloads so far and stil no problems. I guess it's working, although I would love to hear about blogs who are using it.
Reply With Quote
  #6  
Old 08-28-2006, 03:08 PM
Vernon.Trent's Avatar
Vernon.Trent Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Germany
Posts: 341
Send a message via ICQ to Vernon.Trent
downoaded thx

I'll keep an eye on it in a smooth moment and give you some feedback.
__________________
best regards
~~~~~~~~
photoblog: XoverIP
Reply With Quote
  #7  
Old 08-29-2006, 05:11 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Thanks vernon, I had a look around your site and loved your work. I also really liked this sentence: amateurs worry about equipment, professionals worry about money, masters worry about light, I make pictures...
Reply With Quote
  #8  
Old 10-09-2006, 09:51 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
i must have missed this...gravatar support...yes!
__________________
i should say more clever stuff
Reply With Quote
  #9  
Old 10-09-2006, 10:43 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Quote:
Originally Posted by blinking8s View Post
i must have missed this...gravatar support...yes!
Well, the gravatar support was thrown in as a bonus. The most important feature is the styling of the comments to your own liking.
Reply With Quote
  #10  
Old 10-14-2006, 06:05 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
I've updated the addon. It now fully supports the use of the database and settings can be changed through the Addon section in the Admin panel.

You can get it here
Reply With Quote
Post Reply


Thread Tools




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

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