Click here for $50 off!
Click here for $50 off!

Author Topic: [Tip/Trick]  Add Google+ Comments to 1st post in SMF  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

June 23, 2014, 08:22:56 AM

Offline Brian

  • Administrator
  • Jr. Member
  • *
  • Posts: 49
  • Country: us
  • Karma: 0
    • View Profile
[Tip/Trick] Add Google+ Comments to 1st post in SMF
« on: June 23, 2014, 08:22:56 AM »

(Register to disable this ad!)
On the 18th April 2013 Google announced that they have made a Google Plus commenting system which you can have on your website just like the Facebook comments. This allows people to come to your site and when they comment on an article this comment will be shared on Google plus.

For now, it is available only for blogs on the Blogger platform. But here is an unofficial way to embed Google+ Comments on any Simple Machines Forum:


Code: [Select]
        // Maybe they want to report this post to the moderator(s)?

Add after:
Code: [Select]
//Google+ Comments
    if ($message['id'] == $context['topic_first_message'])
<div id="comments"></div>
gapi.comments.render("comments", {
    href: window.location,
    width: "624",
    first_party_property: "BLOGGER",
    view_type: "FILTERED_POSTMOD"

This is an archive post, which closed down June 1st. All credit and appreciation to Mick.
« Last Edit: June 30, 2014, 09:58:19 PM by Brian »

Use SMFHELP25OFF for 25% off!