Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Blogging Forum


You are currently viewing our Blogging Forum as a guest. Please register to participate.
Login



Reply
Blog 'comments' problem
Old 02-07-2008, 01:05 AM Blog 'comments' problem
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
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(&amp;quot ;" + data:f.url + "&amp;quot;,&amp;quot;commentsul" + data:post.id + "&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;" + data:post.url + "#comments&amp;quot;,&amp;quot;false&amp;quot;);to ggleitem(&amp;quot;comments" + data:post.id + "&amp;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(&amp;quot;comments" + data:post.id + "&amp;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..
Billy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Blog 'comments' problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10201 seconds with 12 queries