Active
Project:
Google Plus One Button | Google+ Badge
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2011 at 20:19 UTC
Updated:
27 Jun 2014 at 18:46 UTC
Jump to comment: Most recent
Comments
Comment #1
corbacho commentedIt's a good idea, I will welcome patches for this integration, if not I will do it by September after holidays
Comment #2
fm698 commentedcan you provide us how to integrate (ie. Tweet Button, Facebook Social Plugins, LinkedIn Button) to views :)
Comment #3
manoloka commentedsubscribe
Comment #4
vanvemden+1
Comment #5
manoloka commentednot only as view field but to show up in any views as usuall
Comment #6
laraz commentedsubscribe
Comment #7
ratinakage commentedsubscribe
Comment #8
steeph commentedsubscribing
Comment #9
steeph commentedFor now I'm using a "Node: Path" field and rewriting it's output with the +1 button code. The script is placed in the views header. You can use http://www.google.com/webmasters/+1/button/ to generate code for the button you want.
Comment #10
odizle commentedsubscribing
Comment #11
jorditr commentedSince last dev still doesn't provide integration of the G+1 button to views I've tried to implement it as #9 is suggesting, but with no luck.
I've added a field path which I've rewritten:
and added that script on a views header (with full HTML display):
But it doesn't work. What else is required, since the header of the page already includes the google scripts and meta (the module is installed and displaying properly the button on the node links area)??
Thanks!
Comment #12
steeph commentedMy rewrite text is
<div class="g-plusone left" data-size="small" data-href="[path]"></div>My views header is the same as yours.
Comment #13
jorditr commentedWopss!!! :-) Your rewritte works! Thanks steeph!!
Comment #14
steeph commentedDon't forget to add the domain name to the data-href, as in your examplecode. It will probably work without one, but then your visiters will +1 e.g. "/node/23" instead of "http://example.com/node/23".
Comment #15
jorditr commentedThanks :-)
Comment #16
corbacho commentedI was thinking to make google plus one field-able for D7. This would make automatically compatible with Views I guess.
See how Tweet Button did it
http://drupal.org/node/884830
I don't have time so much now, so it will take time. But if anyone is willing to jump in and create a 2.x branch and maintain it, I will be glad to have a co-maintainer for this module.
Comment #17
Anonymous (not verified) commentedFollowing