Google+ Comments for your blog

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
User avatar
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

Google+ Comments for your blog

Post by johncanary » Tue May 14, 2013 11:58 pm

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.
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14

ryder17
Regular
Posts: 5
Joined: Mon Apr 01, 2013 5:16 am
Location: United Kingdom
Contact:

Re: Google+ Comments for your blog

Post by ryder17 » Tue May 21, 2013 5:46 am

Thank you for sharing. You made me think to replace my facebook comment to google+.

User avatar
yellowled
Regular
Posts: 7036
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Google+ Comments for your blog

Post by yellowled » Thu Jun 13, 2013 7:44 am

Any plain text editor for the OS of your choice will do.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Post Reply