To enable inline comments for your Blogger powered blog, you need to log into your dashboard. Then go to Settings>Comments and scroll down the page to see the new "Comment form placement" setting: Check the radio setting for "Embedded below post" which will enable the display of the comment form below your blog posts. If you have customized your template, you will need to make a small change to your template code for this comment form to display. But don't worry, it's a very simple customization to make! Simply go to Layout>Edit HTML in your blog's dashboard and check the "Expand widget templates" box. Then search for this section of code: Replace this entire section of code with the following instead: Then save your template. Now when you view a post page in your blog, you should see the new comment form in place! Immediately after this line, add the following line of code: Then save your template. This method adds the required code for the comment form without having to alter the whole comment area, and is very useful if you have experienced problems using the original method. Please let me know what you think of this new feature by leaving your comments below.
<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>
Update: As many of you have pointed out in the comments, not all templates feature the code I've described above.
Luckily, there is another method which is much easier to use, and has worked for every template I've tried so far. So if my original method isn't working for you, try this instead:
Search for this line in your template code:<b:include data='post' name='comments' />
<b:include data='post' name='comment-form'/>
If you don't see your comment form, make sure you have changed this setting and have added your code in the correct place in your template.
You can see this comment form in action beneath this post. Using this comment form allows readers to comment using their Google account, OpenID, Name/URL and all of the settings previously available when using a pop-up or full page comment form (depending on the settings you have chosen).
Friday, April 10, 2009
How to add a comment form beneath your blog posts
·
<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>
Labels: Website/ Blogging
Subscribe to:
Post Comments (Atom)
Check out my new blog:
Translation
Recent Posts
Who's Online?
Pageviews Today
About Me
嗨,我是花,居住在印度兴奋的Windows,Linux中国的外籍人士和所有高科技的东西
Receive updates for free
Labels
- Tips 'n' Tricks (171)
- Windows Vista (105)
- Website/ Blogging (91)
- General (88)
- Windows XP (84)
- Internet (59)
- Windows 7 (54)
- Software (43)
- Mobile-Tips and Tricks (35)
- Review (28)
- Security (28)
- SEO Tools (25)
- iPhone (17)
- Linux (14)
- Windows Mobile (14)
- mac (13)
- Mobile (12)
- MS Office (7)
- Hardware (6)
- Windows 98 (6)
- Zune (6)
- Games (4)
- Mobile Reviews (3)
- Disclaimer (2)
Blog Archive
- June (2)
- May (2)
- August (2)
- July (1)
- June (1)
- May (2)
- April (4)
- March (4)
- February (1)
- December (2)
- November (1)
- November (1)
- June (2)
- May (28)
- April (54)
- March (83)
- February (60)
- January (57)
- December (48)
- November (17)
- October (28)
- September (22)
- August (19)
- July (34)
- June (59)
- May (1)
- April (5)
- March (22)
- February (5)
- January (31)
0 comments:
Post a Comment