February 12, 2010

Add Google Buzz Buttons To Blogger/BlogSpot Blogs


13th Feb.: Code updated to replace the word null with your blog's name.

14th Apr.: Now official Google Buzz buttons are available (with a share-counter).


Follow BloggerStop at G-Buzz



First it was Facebook, then Twitter and now it is Google-Buzz.
Being a blogger, you don't have to worry on who's copying whom! All these websites let their users interact more easily and for webmasters, it means free traffic with minimum efforts. So, keep all your options open as you never know which of them may bring a big wave of traffic to your blog!

Now talking about G-Buzz, although Google has not yet provided any official "Buzz It!" buttons, but it does allow you to synchronize your blog-feed with the Buzz, so that all your posts are directly sent to your Buzz account. Simply add your blog to the connected sites list...

Inspired by Mashable, now I too have created the Google Buzz It! buttons for the readers of BloggerStop. Here's how you can add these buttons to your blog:

STEP #1
Log in to Blogger, go to Layout -> Edit HTML
and mark the tick box "Expand Widget Templates"

Now, find this code in the template:
<div class='post-header-line-1'/>

STEP #2
And immediately BELOW/AFTER it, paste this code:
<!--BUZZ-STARTS-->
<a expr:href='&quot;http://www.google.com/reader/link?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title + "&amp;srcTitle=" + data:blog.title' target='_blank'><div style='border:0px !important;text-align:right;margin-top:-42px;'><img alt='Buzz It' src='http://i46.tinypic.com/121wg9e.jpg'/></div></a>
<!--BUZZ-STOPS-http://bloggerstop.net-->

It will display a small Buzz It! button like this:



Or, paste this code:
<!--BUZZ-STARTS-->
<a expr:href='&quot;http://www.google.com/reader/link?url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title + "&amp;srcTitle=" + data:blog.title' target='_blank'><div style='border:0px !important;text-align:right;margin-top:-42px;'><img alt='Buzz It' src='http://i47.tinypic.com/2j0b02c.jpg'/></div></a>
<!--BUZZ-STOPS-http://bloggerstop.net-->
to display a larger Buzz It! button like this one:



NOTE: By default, the alignment of these buttons is kept to "Right", you may change it to "Left" too. To change the position of the button, change the value -45 pixels (in margin-top:-42px;).

STEP #3
Save the template and let the Buzzer Buzzzzzzz...


*Update: Soufiane from LeBlogger, has suggested a new javascript based code to display these G-Buzz buttons; wherein if the readers select any part of the post before hitting the Buzz This button, then the selected text (and images too) will also appear in their G-buzz updates. Here's the new code:

<a href='javascript:var%20b=document.body;var%20GR________bookmarklet_domain=&quot;http://www.google.com&quot;;if(b&amp;&amp;!document.xmlVersion){void(z=document.createElement(&quot;script&quot;));void(z.src=&quot;http://www.google.com/reader/ui/link-bookmarklet.js&quot;);void(b.appendChild(z));}else{}' title='Buzz It!'><div style='border:0px !important;text-align:right;margin-top:-42px;'><img alt='Buzz It' src='http://i47.tinypic.com/2j0b02c.jpg'/></div></a>

PS: Use this code, instead of the one from STEP #2, if you want those additional benefits. The above code will display the larger icon by default, change the image-url to show the smaller icon.

Thanks to Mashable for the larger Icon !

86 comments:

Soufiane said...

It's google reader code, why every body is saying it's Google Buzz ~x(

Winoath @Contests and Freebies said...

great..i have added it to my blog..You are very fast sai.This is better than facebook share where people have to enter captcha and all.Plus gmail users are larger than facebook :) .

Check this out ,it worked in my blog well.


Contests abd freebies

Poras Gupta said...

Great,It is Very Good
It Is working in my blog .

கிரி said...

Thanks Sai!

It is adding in to the Google Reader instead of Gmail Buzz.. then what is the use of this purpose! Pls explain

Divya Sai said...

@Soufiane and கிரி

Buzz is already connected to many other services like our blogs, twitter profile, flickr, picasa etc. (and that includes our G-reader account too)

As I have said in the post, Google hasn't yet introduced any official buttons, and as un-officially sending content into gmail is not that easy, so the better way is:

Send content to G-reader, and as G-reader is connected to G-Buzz, so ultimately posts will go to G-buzz. ;)

கிரி said...

Yeah! It came in the Buzz. Thanks :-)

But why it is selected Google reader in the Buzz? (In ur script also included Google reader link) is there any specific reason?

and one more

when I Buzz my one of the post, it is giving my post name and "null" word in Google Buzz.

My post link looks correct (it is opening correct link), but when I click the "null" word its going to my Blog home page. How do I change "null" word in to my Blog name or Blog home link.

Thanks in advance
Giri

கிரி said...

Thanks for the info about Google reader :-) and pls let me know the null option? if you have idea.

Sai @ Blogger Widgets said...

Donno what that "null" is...but no prob. as long as it links to our own blogs :)

கிரி said...

:-) Thanks for ur help Sai. This Buzz button will be helpful for me.

Soufiane said...

By the way the Google Reader Bookmark code is much better because it opens an ajax Pop-up instead of a new Window....
and The result is the same !

Check out the code in my blog, Le Blogger or get it directly from google reader

Divya Sai said...

Sure it's a nice way Soufiane,
but I usually prefer non-javascript based methods over JS methods. And actually some people don't like pop-ups.

Soufiane said...

In this case I prefer pop-ups because you can select text/links/images from the article then click refresh and those Links/Images/text will be added to the message that will appear in Google Buzz .... you can't do this with the HTML code, try it !

Divya Sai said...

Wow...that's great, I'll soon update the post with a link back to you!

Soufiane said...

Hihihi thanks, I used the code of the "Google Reader subscribe bookmark" , you can get is by going to Google Reader setting or grab the one in my blog...

Pushpinder Singh Bagga said...

&srcTitle to be replaced by &srcTitle

thanks b/w

Divya Sai said...

@Soufiane,
Your suggestion is worth a mention in the post :) ..I have updated the post and added that new code.

@Pushpinder
what's the difference? couldn't get it !

Divya Sai said...

@Pushpinder,

Yeah got your point, thanks for pointing it out!

Soufiane said...

Thanks for the link Sai...
(We can select any part of the post even after hitting the Buzz This button ...)

Divya Sai said...

Welcome Soufiane...

@Giri,
Code updated to replae the word "null" with blog's name.

Anonymous said...

Google Buzz! for blogger blog…I have written a step by step guide to have a Buzz this button below every post in blogger blog.

Buzz Buttons with customizations

Reza Winandar said...

Wow, it seems that this post is very great indeed! But I will wait to see if Buzz is going famous.

Anup @ Hack Tutors said...

And finally..it's come to blogspot blog...

Anup @ Hack Tutors said...

Hi Divya,

Older post, Newer post, Home links in my blog is not visible. It just visible on IE browser...What is the bug?

Kompetisi Website Kompas MuDA - KFC said...

Wow, this is very nice tutorial bro, we can get a lot of traffic if our article is bookmarked by googlebuz...
thx bro ;)

Anup @ Hack Tutors said...

Hi Sivya,

In my blog Older post, Newer post, Home links are not visible...What to do? It just visible in IE browser. In firefox it's not visible...Please observe and see it visible or not in your browser? Please reply me soon...My pageviews is going down :(

I can send you my template code...

Divya Sai said...

@Anup, yeah the links are visible in opera and IE but not in FF 3.6 Donno know the exact reason, but are facing it only from today or it was always like this?
Don't worry about pageviews, on weekends pageviews are decreased by 10-20% for most of the bloggers.

Anup @ Hack Tutors said...

I'm facing this problem from yesterday...It's so bad...But I can see links in your blog...?

Blogging Tips said...

I have added it to my blog.Thanks for posting this.

Beben said...

:D ... google buzz!!!
i am added... :P

Beben said...

by the way that code not too high -42 ?

Divya Sai said...

Yeah that value is good when you use twitter and buzz together, otherwise of course you are free to change the value to suit your blog.

Beben said...

i see...:)

Anup @ Hack Tutors said...

Can I request a Buzz Counter for it? Just like in twitter...

Rudy said...

I cannot find out this code (div class='post-header-line-1'/). Can you tell to me where can I put to use? My code is like this. So that how to use G buzz button? :)]
div class='post'
(div class='title')
(h1)
(b:if cond='data:post.link')
(a expr:href='data:post.link' expr:title='"Permanent Link to " + data:post.title' rel='bookmark' data:post.title/) (/a)
(b:else/)
(b:if cond='data:post.url')
(a expr:href='data:post.url' expr:title='"Permanent Link to " + data:post.title' rel='bookmark' data:post.title/) (/a)
(b:else/)
(data:post.title/)
(/b:if)
(/b:if)
(b:include data='post' name='postQuickEdit'/)
(/h1)
(div class='meta')
(b:if cond='data:top.showAuthor')
(data:top.authorLabel/ data:post.author/)

Divya Sai said...

@Anup,
yeah a counter added to these buttons will be really cool, but as I have already mentioned, Google hasn't yet given any official way to connect buzz with external sites, and if I'm not wrond its API will be available after some months, so till then these buttons do not know maths! BTW Mashable has trained some pseudocounting to their buttons: but their button is actually counting the no. of times the post url has been shortened using bit.ly

Divya Sai said...

@Rudy,

In that case, find this code (you have to tick the box "expand widget templates":

<data:post.body/>

and paste that code immediately above this one...

Rudy said...

Thank you for your reply Divya. :-*

Rudy said...

@ Divaya

I'm find it this code after that above paste that code. When I paste finish I press view blog but I didn't see any post. What happen this problem? I cannot use this code.

Divya Sai said...

@Rudy, you may paste this code at other locations too, like in the code you have mentioned in your previous comment, you can paste it between these two lines:

(/h1)
--G-BUZZ-CODE-COMES-HERE--
(div class='meta')


but I need to see your blog first, what's the correct address of your blog, as nothing is showing up at sarphatthu.com

Muhammad Umer said...

cool thanx for the code : )


http://www.emailzz.blogspot.com

Rudy said...

Thanks Divaya now this code is ok.

(/h1)
--G-BUZZ-CODE-COMES-HERE--
(div class='meta')

Now I can use G Buzz Button.. :-*

Charles said...

Hi! I just wanted to know how did you created the domain: http://main.bloggerstop.net/forum/

¿Did you used blogger? I've bought a domain (.com) at blogger and wanted to create a subdomain.

Hope you could help me :)

Divya Sai said...

It depends on your domain-registrar Charles. Go to your account and see how many sub-domains are you allowed to create, then if you still have left some unused sub-domains, then create a new sub-domain (forum.your-website.com) and redirect it (through DNS management) to either 110mb.com or freehostia.com and then create a new forum over there.

c14ism said...

excellent article - thank you for your help.

Only one problem for me. I applied it to my blog: http://www.c14ism.blogspot.com, and it isn't working.

Any ideas?

Sai @ Blogger Help said...

Found it working perfectly in your blog...hope you have already fixed the problem!

Googy said...

Hi Divya, hope you would like one with counter @ my blog...although it's not perfect...but good for the time being untill we get one officially from google

yusa said...

It seem interesting using google buzz on blogger..very helpful..thanks alot

ErwinSK said...

Thanks, this button will stand well on my new BlogSpot. :-)
The blog is brand new, and I will fill it with Open Source
information, such as Wordpress, Google Android and other stuf.
Have a look at: http://buzzreader.blogspot.com/. Thanks again.

ErwinSK said...

Hello Sai, I have your great Buzz button on my blog, but I
cant get the border around the img away.
Help please! If you have a bit time, please have a look on my [url=http://buzzreader.blogspot.com/]site?[/url]

Sai @ Blogger Help said...

That's nice & simple layout buddy! and you got a great blog-url.

That border will be applied to all your images within the post-area. So, if you want to completely remove the border from all the images, then replace this code in your blog:

.post img {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:#888888 none repeat scroll 0 0;
padding:2px;
}

with this one:

.post img {
border: 0px;
}

ErwinSK said...

Great man, tanks Sai. It worked. I've also created a new Buzz Button.
one in Dutch, see my site and one international [eng] if you like it, grab it.

http://i49.tinypic.com/33kdp95.png

baterya said...

woooaaa thanks for this.. i have applied them on both my blogger blogs... check
check out http://miyabetayo.blogspot.com and http://tonyboystories.blogspot.com.. this is a great help..keep on rockin...

Sai @ Blogger Help said...

@Erwin
Great work...I liked that button.

@baterya
you did a wonderful job. If you want to remove that border arond the button, then you have to your template, like this:
replace this code;

.post img {
border:1px solid #CCCCCC;
padding:1px;
}

with this one:

.post img {
border:0px;
padding:1px;
}

and save the template, that's it.

Poras said...

Hi,
Yesterday I Changed My Template and after adding Google Buzz button in it,it was displaying with a border of blue colour.
I want to remove that from my template.
I tried the above method that u told in comment ,i was n ot able to find that code in my template.

Please tell which code i have to find .

Thanks

Divya Sai said...

Hey Poras,
instead of this code;
<div style='text-align:right;margin-top:-32px;'><img alt='Buzz It' src='http://i46.tinypic.com/121wg9e.jpg'/></div>

use this one:
<div style='border:0px !important;text-align:right;margin-top:-32px;'><img alt='Buzz It' src='http://i46.tinypic.com/121wg9e.jpg'/></div>

Poras said...

Hi,
By Using that code the Border is still appearing.

Divya Sai said...

okay, do this:

find this code:

</head>

and just before it, paste tis code:

<style type='css/text'>
a img {
border: 0px;
}
</style>

Anup@ Hack Tutors said...

Got some odd in my blog Home Page my reader told that. It really lookd odd? Coz I have added this widget, all the posts widget are mixing with each other...

Sai - Blogger Help said...

May be he's talking about the button overlapping your titles, just lower the margin from -42px to -20px or something like that.

ikb said...

Now, we can add google buzz button with counter

http://myfundoo-blog.blogspot.com/2010/02/google-buzz-button-with-counter.html

Divya Sai said...

@ikb

Thanks for the update buddy! even I stumbled on this site just a day back, but no time to publish a new post :(
Wil have to wait for at least 6 days more !!!

COOLBUSTER.net said...

Hi! Can I share this?

A Google Buzz Button with counter is now available: http://www.coolbuster.net/2010/02/google-buzz-button-with-counter.html

Geek Blogger said...

Google Buzz Counter Button is available here now - http://www.geekblogger.org/2010/02/add-google-buzz-button-with-counter-in.html.

Thanks for the above post.

geekboys said...

Hey,

you can also check our newly launched service here:
http://njuice.com/button/

It also adds a real "firehose" counter of mentions on Buzz. We have a Wordpress plugin for easier installation.

Divya Sai said...

Thank you all for updating me about the counter buttons, I will soon have an updated post about it.

@geekboys,
Great work :)

Blogging Tips said...

Thank you very much for this great tutorial, i have added the google buzz to my blog and it's working perfectly

Anonymous said...

thanks !

Vinayak said...

thnx for the google buzz widget but can u tell me how to put html codes in a box lke u have done in ur post?
plz reply dude

Pritesh Gandhi said...

Rocking Sai .... Thanks

प्रवीण त्रिवेदी ╬ PRAVEEN TRIVEDI said...

THANKS !
arthemia theme is in my blog प्राइमरी का मास्टर ( http://primarykamaster.blogspot.com/ )
arthemia theme for blogger is .

when i use your code after
div class='post-header-line-1'/

it works in all posts in read more way !(i.e. in blogs home page )



but when i opeen a post page this google buzz button never seen !

i want just the reverse !

hope u help me !

Penny Williams said...

You have a box at the bottom of your post for "share this post" and several social media choices. I am looking for the code to add something just like this to my blog. Have you shared this anywhere?

Sai - Blogger Widgets said...

Yes I have the tutorials in two parts:

Part-2:
http://bloggerstop.net/2009/12/part-2-collapsible-multi-tabbed-widget.html

Part-1:
http://bloggerstop.net/2009/12/collapsible-multi-tabber-widget-for.html

Read part-1, then part-2 and then again part-1...but don't worry it's not at all complicated.

KznT said...

really cool man .. thanks a lots for this one.

KIDS Choice Awards 2010 said...

Awesome. I was looking for how to add buzz button on my blogger and found this. Thanks!

StormSage Central said...

:D You are a Gem of a Resource!

Sai - Blogger Help said...

I'm flattered thnk u :)

Lindahoang said...

Hi Sai,
I contacted you few days ago to get help from you with my template. Have you got it Sai? Please help me, I really need to finish my blog.
Thank you

Mount said...

Is Google Buzz really that useful?

Renewable Ray said...

I am not seeing traffic from Buzz in my Google analytics. Either I am not getting any or it just doesn't show up as Buzz for a source.

Krishenka said...

Hi I have added it but it is sitting in my latest post and will get buried soon not sure how to place it where I want it on my blog. Any help will receive many hugs

Windows Tips said...

Nice tutorial...I sucessfully implmented Google Buzz on a blog of mine...thanks to your article! Thanks

dog tags for dogs said...

Got some odd in my blog Home Page my reader told that.

Oracle said...

Thanks for sharing this info, i find it very useful.

Cat5 KVM said...

Thanks for the code. I have used it for my other blog hosted on Blogger. Your blog is a Blogger blog with good ranks. Congrats for your blog content.

Sana said...

Nice Post

Julio cezar valdez mrl. said...

Este portal es simplemente sensacional.

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

comment on this post Share Your Views

Allowed HTML tags: <b>, <i> and <a>

Join and share your views with other bloggers at BloggerStop Community

Comment Like This! and Optimize your blog...

SPAMMER OF THE MONTH: www[.]TopRankLinks[.]com

Next Post Homepage Previous Post

Regular Readers


What They Say...

Divya Sai is the ingenious webmaster of Bloggerstop.Net. Divya is extremely patient, knowledgeable and responsive... Bloggerstop.net has an abundance of articles on creating widgets, templates, hacks and ways to make your blog search engine friendly.
- Stacey @Pets With Allergies
I stumbled onto a great site. Sai, over at Bloggerstop.net has helped me tremendously and with great patience...for any and all questions regarding computer issues. And again, THANK YOU Sai.
- Cheryl @Cmash Loves To Read

More Here...

Popular Posts

Get this widget

| © 2010 BloggerStop.net | Blogger Widgets | Template by Dicas Blogger | Enhanced By Divya Sai | Privacy Policy