COMMENTLUV FOR BLOGGER

COMMENTLUV FOR BLOGGER – How to add commentluv for blogspot easily ? The idea of ​​creation this commentluv blogspot is actually derived from the existing CommentLuv plugin on the wordpress plugin. Why on blogspot there is no plugins or widgets like that? Then after searching and tried searching on google finally i found it. In a blog that somehow I forgot his name there commenluv widget like this. But the way of installation requires you to upload a file .xml blog template.

commentluv for blogger
commentluv for blogger

Obviously this is very risky to the safety, comfort and copyright of the blog template that we use. Then I thought better to install CommentLuv blogger widget from the blog.

After so long, it was when I installed a recent post widget, I was inspired to make this widget Commentluv for blogger . Judging from the pattern used, apparently to make only necessary CommentLuv feed url from every blog that comments in the comments field. Then to show them just need a script similar to the script recent post.

How to Install CommentLuv on Blogger
1. Log in to your dashboard > template > edit html > proceed
2. Check the Expand widget template the find </head> with ctrl+f
3. Copy and paste this code before tag </head>

<script type='text/javascript'>
//<![CDATA[
/**
 * Recent CommentLuv for Blogger
 * Version : 1.0
 * Author : Beni Iskandar
 * Author Url : http://www.inblogspot.com/
 * (c) 2012 allrightsreserved.
 */
function commentluv(json) {
  for (var i = 0; i < 1; i++) {
    var entry = json.feed.entry[i];
    var posttitle = entry.title.$t;
    var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        posturl = entry.link[k].href;
        break;
      }
    }
    var postdate = entry.published.$t.substring(0,10);
    var postauthor = entry.author[0].name.$t;
    document.write('<br>');
    document.write(  postauthor  + ' Recently posted <a href="http://adf.ly/2904058/banner/' + posturl     + '" rel="nofollow" target="_blank">' + posttitle   + '</a>');
document.write(' <img src="http://2.bp.blogspot.com/-DKd3zlvmRMk/UMRZRu1aQKI/AAAAAAAAAcI/SVYksxwMkNs/s1600/commentluv.gif"/>');
  }
}
//]]>
</script>

4. Search the <data:comment.body/> then insert his code before </p>:

<script expr:src=' data:comment.authorUrl + &quot;/feeds/posts/default?alt=json-in-script&amp;callback=commentluv&quot;'/>

5. Klick Save Template, then finish

NOTE:
1. To change nofollow to dofollow just change the text nofollow to dofollow
2. This blog is not a dofollow blog, so I add some adf.ly code to every url then i can earn some money for this blog. You can remove or replace it with your adf.ly code
4. Only work on url blogspot, for url wordpress and others are still in the developmental stage

Demo:

commentluv for blogspot
commentluv for blogspot

Thanks for reading this tutorial COMMENTLUV FOR BLOGGER , i hope you will understand with my explanation. for indonesian language please check this link CARA MEMASANG COMMENTLUV DI BLOGSPOT

Leave a Reply

Your email address will not be published. Required fields are marked *

No Live Link Please! and Leave a Relevant Comment