Google +1 button

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Ideas Centre
Locked
b2624736
Registered User
Posts: 7
Joined: Fri Jun 03, 2011 7:26 am

Google +1 button

Post by b2624736 » Fri Jun 03, 2011 7:33 am

Hi there, I was wondering if anyone has installed Google +1 button code and how did it. Thanks.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Google +1 button

Post by 4_seven » Fri Jun 03, 2011 11:02 am

Add following to your header (overall_header.html) or just before your close body tag (overall_footer.html)

Code: Select all

<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
Place this tag where you want the +1 button to render

Code: Select all

<g:plusone></g:plusone> 
read more..
Current Mods | Mod Base | php(BB) programming | No help via PM

b2624736
Registered User
Posts: 7
Joined: Fri Jun 03, 2011 7:26 am

Re: Google +1 button

Post by b2624736 » Fri Jun 03, 2011 12:09 pm

Thanks for your reply. I did it, but it doesn't work, the main page 'crashes'.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Google +1 button

Post by 4_seven » Fri Jun 03, 2011 6:41 pm

when u make it all right, nothing crashes.
in the link is a very poor example without database..

edit: remove example link
Last edited by 4_seven on Fri Jun 03, 2011 7:52 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

b2624736
Registered User
Posts: 7
Joined: Fri Jun 03, 2011 7:26 am

Re: Google +1 button

Post by b2624736 » Fri Jun 03, 2011 7:32 pm

I tried the code as Google provides it in http://www.google.com/webmasters/+1button and it doesn't work. I tried with the code as you stated it and it works. Maybe the problem could be in the 'truncated' line. Now, as I said, it works. Thanks for your help

User avatar
Meis2M
Translator
Posts: 887
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: Google +1 button

Post by Meis2M » Wed Jul 13, 2011 6:19 pm

phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Aurelienazerty
Registered User
Posts: 165
Joined: Sat Jan 08, 2005 8:21 pm
Contact:

Re: Google +1 button

Post by Aurelienazerty » Sun Jul 24, 2011 1:05 pm

I make a little Mod for that, look here : [removed]

gregory1132
Registered User
Posts: 34
Joined: Sun Jul 24, 2011 9:46 am
Name: Gregory Oakley-Stevenson

Re: Google +1 button

Post by gregory1132 » Sun Jul 24, 2011 6:51 pm

if you have the advertisment manegment mod you can create a ad and put the ad code there, then you can put the ad at the top of your website

packerstud
Registered User
Posts: 113
Joined: Fri Jul 08, 2011 5:29 am

Re: Google +1 button

Post by packerstud » Thu Dec 22, 2011 11:36 am

Thank you 4_seven!

So simple, easy and clean!!

Thank you so much :D

packerstud
Registered User
Posts: 113
Joined: Fri Jul 08, 2011 5:29 am

Re: Google +1 button

Post by packerstud » Fri Dec 23, 2011 12:33 am

4_seven wrote:Add following to your header (overall_header.html) or just before your close body tag (overall_footer.html)

Code: Select all

<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
Place this tag where you want the +1 button to render

Code: Select all

<g:plusone></g:plusone> 
read more..
This works but when I PLUS1 the first post it seems to PLUS1 all the other posts in that topic. Any way around this?

Your link to READ MORE is broken :|

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: Google +1 button

Post by 4_seven » Fri Dec 23, 2011 12:49 am

packerstud wrote:Your link to READ MORE is broken
google changed the link, not i ;)
https://developers.google.com/+/plugins/+1button/

for the other thing
http://www.phpbb.com/community/viewtopi ... #p13048778
Current Mods | Mod Base | php(BB) programming | No help via PM

packerstud
Registered User
Posts: 113
Joined: Fri Jul 08, 2011 5:29 am

Re: Google +1 button

Post by packerstud » Fri Dec 23, 2011 1:45 am

Excellent! Thank you 4_seven!

When I need help I should just search your posts, it will save me a lot of time ;)

Locked

Return to “[3.0.x] MOD Requests”