For this first get your Blog ID.To get it just goto Layout/Settings/Posting in your blog's dashboard.Now note the url
The marked out portion will be your blog's ID
.Note it down as you will have to use this later in this tutorial
Now find the following piece of code
<div class='comment-form'>
<a name='comment-form'/>
<h3><data:postCommentMsg/></h3>
<p><data:blogCommentMessage/></p>
<iframe allowtransparency='true' expr:src='data:post.commentFormIframeSrc' frameborder='0' height='275' id='comment-editor' scrolling='auto' width='100%'/>
</div>
and Replace it with the following if you need the popup comment form
<div class='comment-form'>
<a name='comment-form'/>
<b>Post Your Comment</b> (looking for the <a expr:href='"http://www.blogger.com/comment.g?blogID=707079334502450236&amp;postID=" + data:post.id + "&isPopup=true"' onclick='javascript:window.open(this.href, "bloggerPopup", "toolbar=0,location=0,statusbar=1,menubar=0,scrollbars=yes,width=400,height=450"); return false;' rel='nofollow'>old comment form</a>?)
<p><data:blogCommentMessage/></p>
<iframe allowtransparency='true' expr:src='data:post.commentFormIframeSrc' frameborder='0' height='275' id='comment-editor' scrolling='auto' width='100%'/>
</div>
If you need the comment form to open in the same window then replace with the following
<div class='comment-form'>
<a name='comment-form'/>
<b>Post Your Comment</b> (looking for the <a expr:href='"http://www.blogger.com/comment.g?blogID=707079334502450236&amp;postID=" + data:post.id + "&isPopup=true"' rel='nofollow'>old comment form</a>?)
<p><data:blogCommentMessage/></p>
<iframe allowtransparency='true' expr:src='data:post.commentFormIframeSrc' frameborder='0' height='275' id='comment-editor' scrolling='auto' width='100%'/>
</div>
Now you will have to change 707079334502450236 with your blogID and you are done..
You can change the text and other stuff and make it more interesting..
0 comments: on "Showing the Old Commet Form along with the new Inline Comment Form"
Post a Comment