Friday, November 18, 2005

Carol asks: What is the problem with my permalinks? (think this is the correct terminology).The html is showing instead of the comments.

Carol is asking about the comments on her individual post pages. They're showing up as a garbled mess instead of the comments.

Carol, unfortunately, I can't answer every question. This is a pretty tough one to figure out, especially since I don't have access to your template. But, I do have a solution for you that will probably work. Try replacing that code with the code from my blog (that I know works). I can't guarantee this will work, but I bet it'll be better than what's there now.

Here's what to do:
  • Log into blogger and go to your template.
  • Before you start making changes, make a back-up of your template. Copy the entire thing and paste it into Notepad (or another text editor - but don't use Word because it'll make a mess of it) and save it somewhere.
  • Find this comment in your template: <!-- Begin comments -->
  • Find this comment in your template: <!-- End comments -->
  • Delete everything in between them.
  • Paste the code below in between those two comments.
  • Preview it to see if it works... if it looks bad, clear edits... if it looks good, save it... If it is saved and is messed up, restore everything using your back-up template (copy and paste it back in).
  • Let me know if it works!!!

Here's the code to paste:

<ItemPage>

<div id="comments">

<BlogItemCommentsEnabled><a name="comments"></a>

<h4><$BlogItemCommentCount$> Comments:</h4>

<ul>
<BlogItemComments>
<li id="c<$BlogCommentNumber$>"><a name="c<$BlogCommentNumber$>"></a>
<div class="comment-body">
<p><$BlogCommentBody$></p>
</div>
<p class="comment-data">By <$BlogCommentAuthor$>, at <a href="#c<$BlogCommentNumber$>" title="comment permalink"><$BlogCommentDateTime$></a>
<$BlogCommentDeleteIcon$></p>
</li>
</BlogItemComments>
</ul>

<p class="comment-data">
<$BlogItemCreate$>
<br /><br />

</BlogItemCommentsEnabled>
<BlogItemBacklinksEnabled>
<a name="links"></a><h4>Links to this post:</h4>
<dl id="comments-block">
<BlogItemBacklinks>
<dt class="comment-title">
<$BlogBacklinkControl$>
<a href="<$BlogBacklinkURL$>" rel="nofollow"><$BlogBacklinkTitle$></a> <$BlogBacklinkDeleteIcon$>
</dt>
<dd class="comment-body"><$BlogBacklinkSnippet$>
<br />
<span class="comment-poster">
<em>posted by <$BlogBacklinkAuthor$> @ <$BlogBacklinkDateTime$></em>
</span>
</dd>
</BlogItemBacklinks>
</dl>
<p class="comment-timestamp"><$BlogItemBacklinkCreate$></p>
</BlogItemBacklinksEnabled>

<a href="<$BlogURL$>">&lt;< Home</a>
</p>
</div>

</ItemPage>


1 Comments:

Blogger Carol said...

Thanks Cindy, but it didn't work but now I have a couple of examples (my old previous template included) of permalinks that work.
What a helpful person you are!

9:45 AM  

Post a Comment

<< Home