Excellent Support. By using our themes, you also use our excellent support! Our expert staff is here for you.

Add Google+ Comments to 1st post in SMF

Mick in Tutorials on May 28, 2013

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.

Demo: Google+ Comment Box

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:

Open:
Themes/default/Display.template.php

Find:

		// Maybe they want to report this post to the moderator(s)?

Add after:

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

[admin]Source: Official Blog: Bringing Google+ Comments to Blogger[/admin]

Tagged with: google+ comments tuts script smf 


Mick

Mick G

idesignsmf.com

    

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time and has a weakness for Tacos and Pizza.


0 Comments




Latest Discussions

Join the conversation

Our Most Popular Features