2005-04-18

Custom Blogger comments form

The only customization Blogger offers for it's comments form is to open it in a popup or not. A bit disappointing. There is however an easy way embed the form into your template.

<form action="http://www.blogger.com/login-comment.do" method="post">
<div>
  <input type="hidden" name="blogID" value="<$BlogID$>"/>
  <input type="hidden" name="postID" value="<$BlogItemNumber$>"/>
  <input type="hidden" name="isPopup" value="false"/>
  <input type="hidden" name="iden" value="Other"/>
  <label for="uname">Name</label>
  <input type="text" id="uname" name="anonName" maxlength="100"/><br/>
  <label for="url">http: mailto:</label>
  <input type="text" id="url" name="anonURL" maxlength="100"/><br />
  <label for="comment-body">Comment</label>
  <textarea id="comment-body" name="postBody" cols="60" rows="10"></textarea><br />
  <input type="submit" name="post" value="Post"/>
</div>
</form>

The ugly bit is that a user will end up in a different looking Blogger screen after the post has been processed. I'm afraid that there's a way to avoid that.

Update, 2005-06-06: see Custom Blogger comments form (2)

No comments: