MyBB Community Forums

Full Version: Google +1 button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,Any one know the plugin for google +1 button integration on Index page,threads and posts pages.
Ref:
http://www.google.com/webmasters/+1/button/index.html
Add their script on index, showthread and postbit templates.
Add this to 'headerinclude':
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>

And add this to 'showthread' where you would like to display that +1:
<g:plusone></g:plusone>

Templates can be changed in ACP > Templates & Style > Templates > (click your theme).
For headerinclude expand "Uncategorized Templates" and for showthread expand "Show Thread Templates".
Thanks guys i will implement it.If it is one click plugin that would be great to have.
Hi, somehow I managed to do this,

but I only put it in the index page (for now)

screenshot 1:
[Image: JJO75.png]

screenshot 2:
[Image: h2Lmu.png]

although I really want to put the +1 button right after the box in the image below

[Image: n9sJc.png]

just right after the thread title

in showthread, I tried moving the <g:plusone></g:plusone> code in all places but
I can't figure out where to exactly put it. or if it is there.

Please point me to the right template.

Thank you in advance.
That breadcrumb is in the 'header' template but that template is used globally so the +1 would be on all pages.
(2011-06-02, 03:11 PM)Aries-Belgium Wrote: [ -> ]That breadcrumb is in the 'header' template but that template is used globally so the +1 would be on all pages.

Oh ok, so would it mean the "game center" category will have the +1 button too or just the last one?

( or if the last breadcrumb is the game center itself ) would it still have the +1 button?

if you would say yes. then I will not edit mine.

Thanks for the fast reply.

Any page that uses the 'header' template will have a +1 button. And almost all pages in MyBB use that template.
So its a no then. Thanks again. Aries
Finally i implemented and it works perfectly.
Check here
http://www.webmarketingboard.com/Thread-Google-1-button
Pages: 1 2