{"id":255,"date":"2008-02-18T12:57:53","date_gmt":"2008-02-18T03:57:53","guid":{"rendered":"https:\/\/fugutabetai.com\/blog\/2008\/02\/18\/added-gravatar-support-for-comments\/"},"modified":"2008-02-18T12:57:53","modified_gmt":"2008-02-18T03:57:53","slug":"added-gravatar-support-for-comments","status":"publish","type":"post","link":"https:\/\/fugutabetai.com\/blog\/2008\/02\/18\/added-gravatar-support-for-comments\/","title":{"rendered":"Added Gravatar support for comments"},"content":{"rendered":"<p><a href=\"http:\/\/fajran.web.id\/codes\/bblog-gravatar\">This person wrote a Gravatar plugin for bBlog<\/a> and I set it up here for the comments.  I like the idea of Gravatars a lot, so I&#8217;ll try them out and see how it goes.<\/p>\n<p><P\/><\/p>\n<p>If you are interested in the procedure, download the function.gravatar.php file from the website above, throw it in your bBlog_functions directory, go to the admin panel, and rescan to pick up the plugin.<\/p>\n<p><P\/><\/p>\n<p>Then you have to edit the bBlog\/inc\/bBlog.class.php file, search for the format_comment function and insert the line <code>$commentr['posteremail'] = $comment['data']->posteremail;<\/code> before the return statement.  <\/p>\n<p><P\/><\/p>\n<p>Then you have to edit your template file to put the gravatar image where you would like.  The code should go into the comments section in the post.html file.  I added a <code>&lt;img style=\"margin-right: 10px;\" src=\"{gravatar email=$comment.posteremail}\" align=\"left\"\/&gt;<\/code> line to template and things are working great.  <\/p>\n<p><P\/><\/p>\n<p>I would actually like to add <a href=\"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=1462\">Wavatar support<\/a> on top of the Gravatar stuff, but that would take more than five minutes, so it will have to wait until I get more time.<\/p>\n<p><P\/><\/p>\n<p>Also, if you want to change any of the default values, you can set them in the call to the gravatar plugin in the template file (e.g., add {gravatar email=$comment.posteremail size=80 default=http:\/\/example.com\/image.png}).  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This person wrote a Gravatar plugin for bBlog and I set it up here for the comments. I like the idea of Gravatars a lot, so I&#8217;ll try them out and see how it goes. If you are interested in the procedure, download the function.gravatar.php file from the website above, throw it in your bBlog_functions [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/255"}],"collection":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":0,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}