Is there a Google +1 Button Plugin?

Creating and modifying plugins.
User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Thu Jul 14, 2011 4:15 pm

Code: Select all

<g:plusone size="small" count="false" href="{$entrydata.url}"
Seem to work better, or?

AdamZ
Regular
Posts: 7
Joined: Fri Jul 08, 2011 3:40 pm

Re: Is there a Google +1 Button Plugin?

Post by AdamZ » Thu Jul 14, 2011 4:38 pm

thanks so much for this

i just put

Code: Select all

<!-- Place this tag where you want the +1 button to render --><g:plusone></g:plusone>
within the google bookmarks section of findmore TPL so that it was selectable in the backend (and because i wasn't using google bookmarks anyways.

and this i added to the bulletproof footer from the GUI

Code: Select all

<script type="text/javascript"
src="https://apis.google.com/js/plusone.js"></script>
Works fine for me

User avatar
onli
Regular
Posts: 2362
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Is there a Google +1 Button Plugin?

Post by onli » Thu Jul 14, 2011 5:44 pm

seraphyn wrote:

Code: Select all

<g:plusone size="small" count="false" href="{$entrydata.url}"
Seem to work better, or?
I don't see exactly the difference. Didn't you just remove the encoding and add a tag? Maybe you are talking about something happening when using the button and not about the creation of the button itself, it is quite possible than that your version works better. I had no opportunity to test my code apart from seeing if a sound looking button gets created. And on my testsystem , extendend entries are never used (nor disabled), all ist written into the first textarea.

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Thu Jul 14, 2011 6:14 pm

Forget it, it does not waork :/
lol

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Thu Jul 14, 2011 6:29 pm

Wait looks like i was right:
Use your Code it is only using ,in not extended view, (EDIT: COMMA SEPERATION ;) ) the FQDN.
With {$entrydata.url} instead of {$entrydata.url|escape:url} it uses the Entry in overview ( not extended) and extended mode.
I have had a look at my Profile on google+ Section +1.
So it is better to use:

Code: Select all

<g:plusone size="small" count="false" href="{$entrydata.url}"</g:plusone><
instead of

Code: Select all

<g:plusone size="small" count="false" href="{$entrydata.url|escape:url}"</g:plusone><
So the whole page is not +1 only the entry I've favourited.

Chris
Last edited by seraphyn on Thu Jul 14, 2011 6:46 pm, edited 1 time in total.

User avatar
onli
Regular
Posts: 2362
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Is there a Google +1 Button Plugin?

Post by onli » Thu Jul 14, 2011 6:39 pm

That's strange, because this is of course not the semantic of the escape:url, at least not as far as i understand. But well, maybe google wants the url unescaped and the escaping triiggers a cutoff. Nice find then :)

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Thu Jul 14, 2011 6:46 pm

Thanks.
Takes me a little time to find this, was a strange behaviour.
Okay, the I've just fighting to get the Javascript in the Header from plugin_findmore like the headerplugin.

ripanti
Posts: 2
Joined: Thu Jun 09, 2011 9:11 pm

Re: Is there a Google +1 Button Plugin?

Post by ripanti » Fri Jul 15, 2011 8:34 am

Hey,

thanks for trying out Spreadly.
During the next weeks we are implementing the native Google+ API in our Spreadly Button.

So please stay tuned.

Feel free to ask me any questions about our service.

Kind regards
Marco

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Fri Jul 15, 2011 9:13 am

Sorry,

but I do not want to use Spreadly.
Some prefer not 3rd Party and only want to use services directly.
but nice to hear for the Spreadly-Fans.
Otherwise this have a bad taste, first post and adverstisment... just subjective from my side
Chris

ripanti
Posts: 2
Joined: Thu Jun 09, 2011 9:11 pm

Re: Is there a Google +1 Button Plugin?

Post by ripanti » Fri Jul 15, 2011 9:20 am

I'm sorry I only want to talk about our roadmap and I find our button mentioned on this thread.

Thanks again
Marco

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Fri Jul 15, 2011 9:27 am

ripanti wrote:I'm sorry I only want to talk about our roadmap and I find our button mentioned on this thread.

Thanks again
Marco
Hey, your're welcome :)
I know my post sounds a little bit hard, but I'm fighting with this small thing since 2 Weeks to put it automatgically in the header and to have a selection for the sizes and show with/without a number :)
Then somebody, hey, use this and no problems ;)
I'm not very affinitiv with this type of code, so I'm lame a lil' bit to code something like that.
Beginner of course.
So I'm sorry fot that

Chris

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Is there a Google +1 Button Plugin?

Post by Timbalu » Fri Jul 15, 2011 9:33 am

seraphyn wrote:..., but I'm fighting with this small thing since 2 Weeks to put it automatgically in the header and to have a selection for the sizes and show with/without a number
where is the problem with 'frontend_header'?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Fri Jul 15, 2011 9:34 am

So I find this one:
http://www.s9y.org/102.html#A38
Plugins can emit HTML which is put in the header.
How is it to use?
Chris

User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 8:42 am
Contact:

Re: Is there a Google +1 Button Plugin?

Post by seraphyn » Fri Jul 15, 2011 9:39 am

Okay,
think It got it.
Test it now

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Is there a Google +1 Button Plugin?

Post by Timbalu » Fri Jul 15, 2011 9:43 am

the easy way:
take the plugin, add the frontend_header, add the output your want, in template say smarty to output the frontend_header part in the header
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

Post Reply