Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Google +1 Button Not Showing #44

Closed
ghost opened this Issue May 23, 2012 · 5 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented May 23, 2012

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?

Owner

Julienh commented May 23, 2012

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',

@ghost

ghost commented May 23, 2012

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.

@ghost

ghost commented May 23, 2012

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

Owner

Julienh commented May 23, 2012

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

@Julienh Julienh closed this May 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment