|
#1
|
|||
|
|||
|
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 />"; 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>"; 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 ).
|
|
#2
|
||||
|
||||
|
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.
__________________
Affordable Website Design in North Wales |
|
#3
|
|||
|
|||
|
Thanks for the CSS-tip. Should have figured that out myself :-)
|
| Post Reply |
| Thread Tools | |
|
|