Images as Comment Links
masterslacker pointed me out that it was easier to just edit the comment info function which, to be honest, I didn't know existed :D. Anyway, his code is much simpler so I'll post it here.
function CommentInfo::print() {
#####################################
# Set Properties for Comment Images #
#####################################
# The URL for your "Read Comments" Image:
var string read_url = "insert url here";
# Do you want a specific text to come up when people mouse over the image?
# If you want the comment count to come up type "count".
# If you don't want any text to come up just leave blank
var string read_alt = "insert text here";
# Do you want a number with the comment count right before the image?
# Type "true" or "false".
var bool comment_num = true;
#Do you want your set separator to appear between the comment images (type "True" or "False")?
var bool separator = true;
# The URL for the "Reply" Image:
var string comment_url = "insert url here";
# Do you want a specific text to come up when people mouse over the image?
# If you don't want any text to come up just leave blank
var string comment_alt = "insert text here";
#####################################
# First we print the comment links if the entry allows comments
if ($.enabled) {
"""<table cellpadding = "0" cellspacing = "3"><tr valign = "center">""";
# First the read comments link (only if there are comments to be read) and any text you might have added.
if($.count > 0 or $.screened) {
"""<td>""";
if($comment_num) {"""$.count""";}
if($read_alt=="count"){
""" <a href="$.read_url"><img src="$read_url" alt="$.count" title = "$.count" border=0></a> """;
}else{
""" <a href="$.read_url"><img src="$read_url" alt="$read_alt" title = "$read_alt" border=0 align="center"></a> """;
}
"""</td>""";
# Then the comments separator (only if there are comments to be read) and only if a separator is enabled
if($separator == true) {"""<td>$*comment_divider</td>""";}
}
#Then the Reply link
"""<td>""";
""" <a href="$.post_url"><img src="$comment_url" alt="$comment_alt" title = "$comment_alt" border=0></a> """;
"""</td></tr></table>""";
}
}
This should work, comment with any question/advice.
-Edu the Penguin
