Studio Press

Just another Blogger Blog

ad

The Fix

Just tested it, and I got it working. Although I had to make a slight modification to the code. I don't know if it's going to be possible to write a procedure that will always work, as you have to understand the XML and JavaScript to know exactly what to change.

Here's what I did.

1. Found this section of the template

<p class='comment-footer'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</p>

2. Replaced it with

<p class='comment-footer'>
<b:if cond='data:post.embedCommentForm'>
<b:include data='post' name='comment-form'/>
<b:else/>
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</b:if>
</b:if>
</p>


This is almost the same as the fix I found on the web, but it had you look for this code

<p class='comment-footer'>
<b:if cond='data:post.allowComments'>
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<data:postCommentMsg/>
</a>
</b:if>
</p>

In the template I was working with the
<b:if cond='data:post.allowComments'>
statement was wrapped around the outside of a bigger block of code. I took the if and the close if out of the code when I pasted it in. I haven't seen enough templates to know how many variations of this may occur, so like I said, it's hard to have a universal fix.

0 comments:

ad