Add google+ comments on site/blog, Drupal and Wordpress

add google plus commentsFrom a few months, you can enter Google Plus comments directly on your website or on your blog ...
 
How?
 
Simply pasting the code below in the exact spot where you want to show the comments.

Currently the code is not official, so there is neither support nor documentation or whatever, it's your choice to implement it or not:

<script src="https://apis.google.com/js/plusone.js">{lang: 'en'}
</script>
<div class="g-comments"
data-href="[URL]"
data-width="582"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
 
The code "{lang: 'en'}" is default but wishing you can choose any language
Replace instead of "[URL]" the address of the web page where you go to enter the comment box. Instead of "642" enter the width of the box (adapting it to the size of your site-blog).

Google Plus Comments in Wordpress

If you use WordPress and you want to insert the code manually, use this (instead of the one above):

<script src="https://apis.google.com/js/plusone.js">{lang: 'en'}
</script>
<div class="g-comments"
data-href="<?php print get_permalink(); ?>"
data-width="582"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
 
As you can see, the URL is automatically generated for each page thanks to the "get_permalink ();".
 
If you do not want to hack the code and always use WP, there is the WordPress plugin Google Plus Comments, simple and functional.

Google Plus Comments in Drupal

The procedure to insert the code in a drupal site is the same as above: open the page.tpl and paste the code where you want it.
 
More simply, you can download the Google Plus Block Comments module available for drupal 6 and 7.
Social Network: 

Similar Content

Google refer the presentation of the Nexus 10 due to a hurricane

When he was still a long way from New York, Hurricane Sandy had already caused the first damage to the city, the Android Party, which is the counter-demonstration organized by Mountain View to "boycott" the presentation of Windows Phone 8 in Redmond, would be postponed .
News Magazine: 

Apple company Remains Number 1 Brand name in Globe

 
Apple offers beat out arch-rival Google to become named the particular No . 1 brand in the global world.
 
The technologies companies required the first plus second places in the 2014 edition from the Interbrand Ideal Global Manufacturers ranking, a report through brand assessment firm Interbrand.
News Magazine: