Find the right theme for you. Browse through our gallery of expertly-crafted free SMF themes to find the perfect one for your needs.

Add Google+ Comments to 1st post in SMF

Mick in Tutorials
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:
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'])
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 

Share This Post

Mick

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



Connect with us:


Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.




go up