Tutorials Themes Mods Inspiration Collections Theme Store Mod Store SMF HTML CSS geek Dani UX jane Lifestyle LimeStone

Add Google+ Comments to 1st post in SMF

Written by Mick in Tutorials on 28 May 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]
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.


    

0 Comments


Get more stuff like this