In adding the functionality for AJAX comments, any blog that has a customized article template will now find that the comments link does not work. We are waiting for a final fix for this and a related issue from Blogware and will update this post with more information. We apologize for the inconvenience.
To fix this problem the following templates must be modified if you have customized them. If you have not customized any of these templates, you do not need to do anything.
- Article
- Book Review
- Music Reivew
- Movie Review
- Photo
Each template listed above contains the following code:
{{if allow_comments}}
{{if can_post}}
<div style="margin-bottom:20px;"><a href="#post_comment"><%=
gettext("Post a comment") %></a></div>
{{/if}} <!-- can_post -->
{{/if}} <!-- allow_comments -->
This code needs to be replaced with:
{{if allow_comments}}
{{if can_post}}
<div style="margin-bottom:20px;"><a href="#post_comment" onclick="return
reveal_post_comment_inline(true, false);"><%= gettext("Post a comment")
%></a></div>
{{/if}} <!-- can_post -->
{{/if}} <!-- allow_comments -->
If you have customized your base template, you will also need to add the following to the top of your article template:
<script src="/_frameworks_static/js/prototype.js" type="text/javascript"></script>
<script src="/_frameworks_static/js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="/_static/js/ajaxian_comments.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript"><!--
// article settings
templates.set( 'allow_comments', {{if allow_comments}} true {{else}} false {{/if}} );
templates.set( 'show_comment_login', {{if show_comment_login}} true {{else}} false {{/if}});
templates.set( 'comment_login_required', {{if comment_login_required}} true {{else}} false {{/if}} );
templates.set( 'is_standalone', false );
// -->
</script>



