XerXes
05-16-2005, 03:42 PM
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:
$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:
$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 :) ).
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:
$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:
$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 :) ).