I've always found that the process of adding comments to a blog entry is a bit jarring from a user experience perspective. They click a link and then they're taken away from your blog into a Blogger page with a totally different look and feel, that is not immidiately recognized as part of your blog. So, I created the "Quick Comment" control as a way to solve this issue.
Quick Comment integrates the comment form directly into your blog. In it's current incarnation, users are still taken back to that familiar blogger page after they submit their comment, but hey it's a start.
If you want to see Quick Comment in action, click the "X Comments" link at the bottom of this post. You will be taken to a page that has an integrated Quick Comment control.
Like it? Ok, here's how to implement it on your blog:
The first thing you need to know is you blog ID, which you can find by following the instructions in the Blogger article found here.
Next, you'll want to go into the settings for your blog and under comments you want to ensure that "Anyone" can leave a comment. I also suggest that you turn on comment moderation to help prevent spam.
Finally, copy/paste the text below into your blog template anywhere between the <Blogger>...</Blogger> tags and make sure you put your blog id in the specified location.
As always, you can use CSS to add whatever formating you like. Enjoy!
Quick Comment integrates the comment form directly into your blog. In it's current incarnation, users are still taken back to that familiar blogger page after they submit their comment, but hey it's a start.
If you want to see Quick Comment in action, click the "X Comments" link at the bottom of this post. You will be taken to a page that has an integrated Quick Comment control.
Like it? Ok, here's how to implement it on your blog:
The first thing you need to know is you blog ID, which you can find by following the instructions in the Blogger article found here.
Next, you'll want to go into the settings for your blog and under comments you want to ensure that "Anyone" can leave a comment. I also suggest that you turn on comment moderation to help prevent spam.
Finally, copy/paste the text below into your blog template anywhere between the <Blogger>...</Blogger> tags and make sure you put your blog id in the specified location.
<div id="quickComment">
<script type="text/javascript">
function identityToggle(sRadioClicked)
{
switch(sRadioClicked)
{
case "Blogger":
document.getElementById("bloggeruser").style.display = "block";
document.getElementById("nonbloggeruser").style.display = "none";
break;
case "Other":
document.getElementById("nonbloggeruser").style.display = "block";
document.getElementById("bloggeruser").style.display = "none";
break;
case "Anon":
document.getElementById("bloggeruser").style.display = "none"
document.getElementById("nonbloggeruser").style.display = "none"
break;
default:
document.getElementById("bloggeruser").style.display = "none"
document.getElementById("nonbloggeruser").style.display = "none"
break;
}
}
</script>
<form action="http://www.blogger.com/login-comment.do" onsubmit="isSubmit=true;"
method="post">
<!--
Replace the "xxxxxx" in the input below with you Blog Id.
For instructions on how to find your Blog Id, see:
http://help.blogger.com/bin/answer.py?answer=874&topic=12
-->
<input type="hidden" name="blogID" value="xxxxxx">
<input type="hidden" name="postID" value="<$BlogItemNumber$>">
<div id="quickCommentTitle">
Leave your comment
</div>
<div id="quickCommentInstruction">
You can use some HTML tags, such as <b style="white-space: nowrap;"><b>, <i>,
<a> </b>
</div>
<textarea name="postBody" tabindex="1" rows="5" style="width:100%" id="comment-body"></textarea>
<div id="quickCommentChooseId">
Choose an identity</div>
<input type="radio" name="iden" value="Blogger" id="iden-bname" onclick="javascript:identityToggle('Blogger')" />Blogger
<input type="radio" name="iden" value="Other" id="iden-other" onclick="javascript:identityToggle('Other')" />Other
<input type="radio" name="iden" value="Anon" checked id="iden-anon" onclick="javascript:identityToggle('Anon')" />Anonymous
<table cellpadding="1" cellspacing="0" id="bloggeruser" style="display:none;">
<tr>
<td rowspan="2">
</td>
<td style="white-space: nowrap;" valign="top">
Username
</td>
<td>
<div class="errorbox-good">
<input type="text" name="username" maxlength="100" id="bname" class="text">
</div>
</td>
</tr>
<tr>
<td style="white-space: nowrap;" valign="top">
Password
</td>
<td>
<input type="password" name="password" maxlength="50" id="password" class="text">
</td>
</tr>
<tr>
<td>
</td>
<td colspan="2">
No <em>Blogger </em>account? <a href="javascript:popUp('http://www.blogger.com/signup.g')">
Sign up here. </a>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" id="nonbloggeruser" style="display:none;">
<tr>
<td>
Name
</td>
<td>
<input type="text" name="anonName" value="" maxlength="100" id="uname" class="text">
</td>
</tr>
<tr>
<td>
Your web page
</td>
<td>
<input type="text" name="anonURL" value="" maxlength="100" id="url" class="text">
</td>
</tr>
<tr>
<td colspan="2" style="padding-top: .4em;" align="right">
All of these fields are optional.
</td>
</tr>
</table>
<div id="quickCommentButtons">
<input style="margin-right: .3em" name="post" value="Publish Your Comment" class="publish"
onclick="isSubmit=true;" type="submit" id="FinalPublish" tabindex="5">
<input value="Preview" type="submit" name="preview" onclick="isSubmit=true;" tabindex="6">
</div>
</form>
</div>
As always, you can use CSS to add whatever formating you like. Enjoy!
