Closed (fixed)
Project:
Google Plus One Button | Google+ Badge
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Aug 2011 at 21:44 UTC
Updated:
15 Sep 2011 at 23:31 UTC
The problem with showing only nodes URLs as a +1 button is that... I have tons of other pages that people cannot +1 and I find that limiting.
With a block, the problem is resolved because the block can appear on all pages (although I hide it from admin pages to avoid mistakes...)
I'm attaching a patch that replaces the [url] tag with the current page URL. It's really not perfect, but it works great for me and doesn't remove your default functionality.
Thank you.
Alexis Wilke
| Comment | File | Size | Author |
|---|---|---|---|
| google_plusone-6.x-block_current_page_url.patch | 1.94 KB | AlexisWilke |
Comments
Comment #1
corbacho commentedThanks for the patch, but finally I decided to offer the option by leaving empty the field (in the block settings) Then Google +1 will grab the URL via JavaScript by default
Please test it and mark this issue as fixed.
Comment #2
AlexisWilke commentedOkay, I saw the fix but wasn't too sure. I will give it a try to see that the URL is correct when left empty.
Thank you.
Alexis
Comment #3
AlexisWilke commentedCool, it works like a charm. 8-)
Thank you.
Alexis