Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 05-16-2005, 03:42 PM
XerXes Offline
pending loafer
 
Join Date: May 2005
Posts: 20
Line between each comment and enabling newlines i comments.

Just my humble addition to the list of hacks and modifications. I haven't read all the former posts, so I can't tell if it has been done before, you must excuse me if it has. Now, lets get to it.

I thought that the list of comments looked a bit messy, so I have added a line between each comment. The modification is simple:

1. Open the includes/functions.php file i any plain-text-editor (preferably with line-numbers).

2. Find line 24 and add this on the next line:
Code:
$image_comments .= "<hr />";
(if you're not using XHTML, remove the slash, but the standard templates do use XHTML)

3. Save and upload.

Afterwards, if you want to, you can alter the look of the line via the css file (add a class to the hr-tag and insert it to the css-file of your template).

---

Furthermore, I didn't like not to be able to do line shifts (is that proper english?) so I added that functionality too. The procedure for that is like this:

1. Open the includes/functions.php file i any plain-text-editor (preferably with line-numbers).

2. Find line 24 and replace it with this:
Code:
$image_comments .= "<li>".nl2br($comment_message)."<br />$comment_name @ $comment_datetime</li>";
3. Save and upload.

Note that this will enable newlines in all comments, also the ones posted before you made this modification.


Hope someone will find it useful (and that I won't get shot at dawn for editing something other than the template files ).
Reply With Quote
  #2  
Old 05-16-2005, 06:55 PM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
your first point can be done through CSS using a border-bottom tag.

your second point however is a good one and I'll add it to the CVS version (development version of PP) unless any other developers can see a reason not to.
Reply With Quote
  #3  
Old 05-17-2005, 11:53 AM
XerXes Offline
pending loafer
 
Join Date: May 2005
Posts: 20
Thanks for the CSS-tip. Should have figured that out myself :-)
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:21 PM.

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