Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Google +1 Button Not Showing #44

Closed
JBIRD1111 opened this Issue · 5 comments

2 participants

JBIRD1111 Julien Hany
JBIRD1111

I know people have already asked this, but I have tried with no luck. I am trying to use a set of buttons identical to your Example One. I have configured everything, and added sharrre.php to my root. BUT, the Google +1 button is not showing up. The URL is http://pixelcakecreative.com/jesse/news/the-bar-is-coming-to-a-city-near-you/

As you can see the +1 button does not appear. I did try doing a test, by going to http://pixelcakecreative.com/jesse/wp-content/themes/J2/sharrre.php and it spits out "{"url":null,"count":0}"

If I tried typing in a URL it gives me a 404 error.

Any ideas?

Julien Hany
Owner

On your example, when you open console of your browser, you can see this URL:
http://pixelcakecreative.com/jesse/news/the-bar-is-coming-to-a-city-near-you/sharrre.php?url=http%3A%2F%2Fpixelcakecreative.com%2Fjesse%2Fnews%2Fthe-bar-is-coming-to-a-city-near-you%2F&type=googlePlus

You need this:
urlCurl: '/jesse/wp-content/themes/J2/sharrre.php',

JBIRD1111

Thanks. so because this is a wordpress site, the root URL needs to be defined? I tried placing the urlCurl path in the plusOne js like so:

$('#googleplus').sharrre({
share: {
googlePlus: true
},
enableHover: false,
enableTracking: true,
urlCurl: '/jesse/wp-content/themes/J2/sharrre.php',
click: function(api, options){
api.simulateClick();
api.openPopup('googlePlus');
}
});

This did not work, same results as before.

JBIRD1111

OK, great! Turns out it doesn't work locally with MAMP...but it does live on the server. Thanks!

Julien Hany
Owner

You're welcome :)
You need to enable curl on MAMP.

Julien Hany Julienh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.