MyBB Community Forums

Full Version: Tutorial on adding Google +1 (Plus One) Button For MyBB - This is a Great SEO!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Tutorial on adding Google +1 (Plus One) Button For MyBB
This is a Great SEO!

[Image: googleplusonestandard4.png?imgmax=800]

Google +1 (pronounced “plus one”) is a recommendation button somewhat similar to Facebook like button. Both of them show friends that recommended your post. But while Facebook Like button shows them under the Like button in your post, Google +1 shows them under your post in Google SERP (search engine results pages).

This tutorial will show you how to add a Google +1 button to Mybb. It allows your readers to recommend your posts to their Google friends and contacts right from your blog post.

This button will +1 the containing post, regardless the page you are at. It will work on both multi-post pages (home page, archive etc.) and individual/post page etc. You will have an option whether to include a counter or not.

Steps:

1> Go to ACP » Template Sets » YOUR Templates
Edit Template: showthread


2> Under {$headerinclude}
Paste this code:
Quote:<script type="text/javascript" src="http://apis.google.com/js/plusone.js">
{lang: 'en-US'} </script>


Under <div class="float_right">
{$newreply}{$close_button}
</div>


Paste this code:
Quote:<div style='float:right'>
<g:plusone size="standard" expr:href="data:post.url"/>
</div>


> Then Save!

Demo?, NadlerZone Forums
Tutorial Created by nadlerz Big Grin (ME)
Thank you !!

can you how shall I add next to FB and Twitter buttons ?

see here - http://www.readersenclave.com/showthread.php?tid=5

and also which theme you are using ?
oh got it, which theme. nice site there, nice customizations Smile
I have 5 themes use in my site, all are the same template edits and all are working.

Add this after your Twitter code:
Find:
<div class="float_left">
           {$multipage}
	 </div>

Below, Add this:
<div style='float:left'>
<g:plusone size="standard" expr:href="data:post.url"/>
</div>
Thanks again mate !!

TBH I just liked your site very much. Right now I am busy in some stuff, will be back after a week with lots of doubts Big Grin
What is TBH? LoL Big Grin
Thank you!
TBH - to be honest Big Grin
LoL Stoopid one from this site use tutorial to make plugin and you must pay for it
http://www.mybbextras.com/showthread.php?tid=1321
after couple users tell him about that his banned everyone from his stoopid site
hahaha i like guy like this one
I hate this thing. Extremely irritating.
(2011-06-24, 05:12 PM)Jason L. Wrote: [ -> ]I hate this thing. Extremely irritating.

Same here. It also takes 2-3 seconds to load.
But if it really does affect search results, it is a rather small button.
Thanks for the comments, If you are already using FB Like, then this one is better Big Grin
Pages: 1 2 3 4