Page 1 of 1

Google+ Comments for your blog

Posted: Tue May 14, 2013 11:58 pm
by johncanary
Hi @everybody,

This is for friends of the social web. In case you have missed it:

"Google+ Comments are available for your blog"

Well, it's actually a hack. Google made it available on Blogger.com but there is no official tech docu, yet.

It looks something like that.

Image

Implementation is straightforward. If you are on Wordpress (oopps!) install one of the plugins
:-)

If you are on S9Y write it into your smarty template.

e.g.: entries.tpl

Code: Select all

<!-- Place this tag where you want the G+ comments to render. -->
<div class="g-comments"
data-href="{$serendipityBaseURL}{$entry.link}"
data-width="560"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>

<!-- To include the G+ JavaScript asynchronously, use the following code:
     Tip: For the best performance, place this code immediately after the last Google+ element. -->
{literal}
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
{/literal}
More details via my G+ post. +Keith's article was the main source of info for me.
https://plus.google.com/111396390597849 ... MaNjFewhYb

Also helpful the Google+ API: https://developers.google.com/+/api/

Currently I use the Facebook social plugin next to the original S9Y comments. For sure I will dump Facebook and replace it with Google+ comments. It already works fine in my test s9y blog.

Re: Google+ Comments for your blog

Posted: Tue May 21, 2013 5:46 am
by ryder17
Thank you for sharing. You made me think to replace my facebook comment to google+.

Re: Google+ Comments for your blog

Posted: Thu Jun 13, 2013 7:44 am
by yellowled
Any plain text editor for the OS of your choice will do.

YL