|
Hi,
I've spent ages customising my blog with a new template and 'peek-a-boo' comments hack. Everything is just how I want it except for one tiny thing.
When the user clicks the 'comments' link at the foot of a post, the comments so far posted then drop down beneath. At the head of these comments are the words '# Comments' - but I'd prefer this to say 'There are # comments for this post'.
I've been through the coding, searching where ever the word comments appears, to see if I can work out where I need to insert the extra words, but so far haven't managed it.
If I list the lines of coding containing the word, maybe one of you clever souls could tell me where I need to insert the edit. Thanks in advance. By the way, I've used [ instead of < just in case any of the code wants to do its job.
[dl class='comments-block' id='comments-block']
[b:if cond='data:post.allowComments']
[a class='comments' expr:href='data:post.url + ".comments"' expr:onclick='"peekaboo_comments_display(&quot ;" + data:f.url + "&quot;,&quot;commentsul" + data:post.id + "&quot;,&quot;&quot;,&quot;" + data:post.url + "#comments&quot;,&quot;false&quot;);to ggleitem(&quot;comments" + data:post.id + "&quot;);return false;"' rel='comments'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
</b:loop>
</b:if>
<b:else/>
<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.url + "#comments"' expr:onclick='"toggleitem(&quot;comments" + data:post.id + "&quot;);return false;"'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a]
[b:if cond='data:post.allowComments']
[b:includable id='comments' var='post'>
<div class='comments' expr:id='"comments" + data:post.id'>
<b:if cond='data:blog.pageType != "item"'>
<script type='text/javascript'>
document.getElementById('comments<data:post.id/>').style.display = 'none';
</script>
</b:if]
[a name='comments'/>
<b:if cond='data:post.allowComments'>
<h4>
<b:if cond='data:post.numComments == 1'>
1 <data:commentLabel/>:
<b:else/>
<data:post.numComments/> <data:commentLabelPlural/>:
</b:if>
</h4]
[div expr:id='"commentsul" + data:post.id'> </div><dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
<p class='comment-footer'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:p ostCommentMsg/></a>
</p>
</b:if]
[b:if cond='data:post.allowComments'>
<b:include data='post' name='comments'/>
</b:if]
Last edited by Billy; 02-07-2008 at 01:06 AM..
|