WordPress - Google 'plus one' button / Add-ons

I've been looking for a good Google+ plugin the WordPress blog engine, but I couldn't find any to satisfy all my needs. For that reason I've modified one, GPL just allows me this. This plugin came originally from the site Techlunatic written by the author Rohan Pawale.

New version can be downloaded from: Google (Plus One) Button WordPRess plugin by kms.

The plugin on the official Wordpress pages: Google (Plus One) Button by kms on WordPress.org.

UPDATE: Version 1.3.2 fixes a problem with the overlayed buttons on the frontpage. With left floating selection for the frontpage there will be, as from now on, only one button with the blogs url not with any of the posts'.

UPDATE: Version 1.3.1 got a new language file for german users. Now admin pages are available in three separate languages.

UPDATE: Version 1.2.1 fixes a problem with the plugin on the frontpage. The buttons displayed on front had all the same URL for the site, not for the individual posts.

Let's see what it has inside.

Seamless integration of Google+ button into your blog.

It is a great help for those who do not want to get their hands dirty with bits, and so did not put a G+ button on the blog yet. Or those who do want to get dirty, but see the value in the settings panel and want to use it, but not give up on any part of configuration freedom. So dive into more details

After installing there will be a new menuitem from where all the options can be managed.

Display

Google+ settings first part: basics

There are four display options which affect the rendering of the button, they are as follows:

NormalSmallMediumTall
Normal sized button Small sized button Medium sized button Tall sized button

Button's design is also influenced by the choice whether we want to display hit-counter with it, or just the plain button.

Google+ settings second part: counter

Selecting displaying pages

There are options to display the button on the homepage or on posts pages. These two are independent from each other, but the button for a specific post on the homepage and the post's page will display the same amount of clicks.

Placing the button to the post

Google+ settings first part extended

Button can be displayed below or above post or on both places at the same time. Besides that we can specify "floating" mode, or just pin the button to a pre-defined pixel on the page. Selecting floating-mode enables a new set of inputs at the bottom of the page.

Spacing above and left of

Google+ settings fourth part: spacing

Spacings can be given in percentage, pixel or any other, in css valid, forms.

Button position

Fixed: button is pinned to the border of the browser, it won't move an inch when scrolling through the page.

Absolut: button is pinned to the top left corner of the page, so it moves with the content even when scrolling.

A little bit of SEO

The JavaScripts, which are rendering the button, can be put into the bottom of the page. So the meaningful content is loaded faster and the readers who are surfing with a clock can be pleased.

Google+ settings third part: JavaScript SEO

Manual placement

At last a little fun for those, who like to tweak themes and playing with pixels to get the most perfect layout. If you like the settings page, but you don't want to give up on things for it like self-seleted placement, simply select "placed manually" and put <?php rp_gpo_share(); ?> into the theme files where you'd like to see the button.

A little extra to the previous version

If you don't seem to like the words i've used or just want to share this plugin with a friend who speaks an other language, you can find the actual translation in the folder languages in the plugin's directory with all the text elements used.

New version can be downloaded from: Google (Plus One) Button WordPRess plugin by kms.

Happy hunting!



Written on: 2011-09-12 14:08:35

I'm curious what you think about this post. Please do not use abusive language, but share your thoughts. Any feedback is much appreciated, and will appear after some censoration.

admin avatar
kms wrote 2012-01-24 12:47:48

Hi Andrew!
Thank you for noticing, and telling me. The problem can be solved with the patch below:


--- gpo_display_1.3.2.php 2012-01-24 12:43:36.000000000 +0100
+++ gpo_display.php 2012-01-24 12:44:45.000000000 +0100
@@ -112,6 +112,7 @@
}
if (($button_location == 'top')
|| ($button_location == 'bottom')
+ || ($button_location == 'manual')
|| ($button_location == 'both')) {
$output = '<div id="bottomcontainerBox">';
$output .= '

If you're not familiar with diff syntax, the line prefixed with + has to go into the mentioned context at the bottom of gpo_display.php
Shortly I'll create a new version also.
Thanks again,
kms
Andrew wrote 2012-01-24 08:57:49

Interesting, I am using 1.3.2 version, however manual placement tag doesn't work, no icon is displayed. How to debug what's going on?
pluserize wrote 2011-12-03 07:25:44

That explains why my searches have been so frustrating. Right after I learned to use it, too, after years of quotation marks being insufficiently specific.
sandeep wrote 2011-11-17 11:29:04

very useful plugin thanks for sharing i really like it
admin avatar
kms wrote 2011-09-29 16:30:19

Hi A.K.B.

Thank you, have fun using it.

kms
A. K. B. wrote 2011-09-29 15:49:21

Good work.
admin avatar
kms wrote 2011-09-17 10:21:33

Hi Marco,

Yes, the two buttons have many similarities, and I also agree with you, that on a big growth G+ could dominate over FBL.

My thoughts about bought statistics are not so positive: How can you know the real amount behind this tactics?

In spite of this, I truly wish you growth with your site.

kms
marco wrote 2011-09-17 00:34:57


The Google +1 button is similar to the facebook like button. However, I think the +1 button will dominate as the Google+ network grows.

Also, I found out that you can even buy +1 now on sites like http://*.com and http://*.com

What do you think about this?