This is a jQuery widget for the brand new social network -Google Buzz- that
you can embed anywhere to integrate your buzz stream into your page.
Google Buzz is a new social
network based on Google profiles and built right into Gmail. It was launched
last Tuesday, and in 2 days over 9 million buzzes and comments were created!
Now Check out these DEMOS..
Demo 1: Triple Bar ►
In this demo widget rotates the returned buzzes -3 at a time. Here is how to implement it:
1- Include jQuery and plugin javascript files.
2- Create a div element with a class "google-buzz".
3- Place widget settings in an "options" attribute as a comma delimited array.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://google-buzz-widget.googlecode.com/files/jquery.google-buzz-1.0.min.js"></script>
<div class="google-buzz" options="{
username:'mikedotmore'
,n:9
,show_n:3
,animate:'height'
}">loading..</div>
You can see that "username" -necessary option- is your Google username that appears on your Google profile URL.
Number of buzzes to return 'n' was set to 9 only.
Number of buzzes to show at a time 'show_n' was set to 3.
Animating buzz height instead of the default opacity animation.
Demo 2: Fixed List ►
Demo here uses a typical Javascript call, to create a fixed list of buzzes without any transitions..
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://google-buzz-widget.googlecode.com/files/jquery.google-buzz-1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('div.my-buzz').googleBuzz({
username:'mikedotmore'
,n:8
,show_n:0
});
});
</script>
<div class="my-buzz">loading..</div>
One option was changed here: 'show_n' was set to 0 to disable any transitions..
Features
- Display buzzes as a bar with transition effects or as a fixed list.
- Many transition options like opacity, height, font-size.
- Each part of the buzz -like links, dates- has its own class for easy CSS customization.
- Show or hide some parts of the buzz like date, source.
- Use a typical JS call or auto-load div elements that have "google-buzz" class.
- Widget adds a small "i" letter that links to the widget page. You can remove it by setting (info) option to empty string (''), but I'll appreciate it if you attribute me elsewhere on your website.
- By default, widget displays the snippet version of a buzz. which fits for a small and fixed placeholder. Still, you can choose to display the complete content of the buzz.
Few Notes
- CSS code is essential but I didn't focus on it in demos above. You can check demos to examine the required JS & CSS code.
- The snippet version (120 characters max.) of a buzz works well with short statuses like Tweets.
Update!
If you would like to get your hands dirty and see how this plugin works, Check my post [How to Pull Your Google Buzz with jQuery].
* Bee icon by sora1589
You'll be tech tweeted tomorrow ;) Nice plugin
Will the option attribute of the div tag validate as HTML or xHTML?
Will it break validation?
So what happens if you used your gmail at work and all of a sudden you publish all of your work contacts?
People lose their job for using facebook at work.
What is going to happen to Gmail when employers learn it is a social network?
What happens if you publish people to your blog and they didn't want to be published? I am asking because I don't know if it's possible.
I opted out one day ago.
Excellent work, This is a game changer for me.
Cool! Very fast works for a baby like Buzz!
@James: Do your job at work only, do social at home :D
@lam - That is my point. People lose their jobs for social networking at work,.
I am concerned if I can recommend Gmail for professional use anymore. I won't be posting people's "contact books" on other peoples websites out of respect. At least until I know whether or not they getting sued.
I knew it wouldnt be long before you created a GBuzz plugin :) So proud of you again :D
Great solution! Thanks for shared
Thanks!! This is exactly what I was looking for.
@Elijah,
thanks man..
@Trey,
No.. code of demo 2 would be fine.
@Wallace, @Peter,
Thanks for stopping by :)
@MIA,
thanks dear :)
@Lam,
you're right!
@James,
I agree with @Lam. People usually communicate with business/other email addresses at work, check Google Apps.
And for the privacy issue, Google has made few adjustments
Perfect for what I need!
@mike - You're wrong... I know plenty of people who use gmail at work. The non paid version.
That is flat out wrong assumption. I will not be publishing anybodies contact books without their permission. It's as simple as that.
You're wrong.
Yes they made adjustments. I'm not making any moves out of respect until I know whether or not they are getting sued. It's the only responsible thing to do.
@James,
ok!
LOL, we've all caught the google buzz it seems
Update!
If you would like to get your hands dirty and see how this plugin works, Check my guest post [How to Pull Your Google Buzz with jQuery] on AEXT.Net
@Xander,
What is the username of your public google profile?
A very nice JQuery plugin and quick turn around!
@Tristan,
Thanks.. and I appreciate mentioning the plugin on your blog :)
Also congrats on your new good-looking blog.
@Xander,
is it PHP? replace username value in options with something like this <?php echo $user ?>
The widget has been included in BuzzAware - The Google Buzz Applications Directory
Thanks @Anuj :)
pretty sweet. Is there a way to turn off snippet and show the whole post? The buzz in gmail itself says: Expand this post » Can the whole post in all its glory be shown in this app? It would make a super cms if so...
@jon,
yes, you can set option "snippet" to 0 to show the full version of a buzz :)
Thanks a lot for this nice Widget. I used it, removed the "i" and gave you credit right below the widget.
Can I donate?
@Ryo,
you welcome.. No need for donation, but thank you for the credits
Hi Mike! I was wondering if there is a way to convert string data given by services like is.gd to json using any api! It would be great if you can suggest me some tool :)
@Sawashata,
Try this cross-domain jQuery plugin [http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/]
Works like a charm! Thanks a lot! Just FYI, we need to get the original text from the response url like this:
var shorten_url = 'http://is.gd/api.php?longurl=' + doc_location;
$.get(shorten_url, function(data, status){
alert(status);
alert($(data.responseText).text().trim());
});
Thanks again for giving me the plugin :) :) :)
a ver si puedo lograrlo colocar en mi sitio... porque esta muy bueno! :D
Great posting ! It's really helpful. Thanks.
Just bookmarked this site. Useful information.
Another good post....will be back for more!
It's a very nice piece! But please check the googlecode project again, and update the javascript to use the jQuery 1.4.4.
@lonelicloud,
are you using 2 versions of jQuery on the same page?
you should replace jquery 1.3.2 with jQuery 1.4.4 , I tested it and it works :)
@Mike,
Thank you very much! I remembered that I've tested the jQuery v1.4.3 with this widget and found it not work. Anyway, it works fine with jQuery v1.4.4 now.
Yes, I'm using 2 versions of jQuery with this widget before and it doesn't work only when I trying to move all the javascripts from wp_head to wp_footer.
Now, I follow your instruction to use only jQuery v1.4.4 and load all the javascript in wp_footer. This widget doesn't work fine either.
I'm very appreciate if you could give me some hints on this.
@lonelicloud,
you welcome..
Try to move all of the Google Buzz code to the footer except for the jQuery include to avoid having 2 jQuery on the same page.. cause some plugin/theme might includes jQuery in the header..
hi there,
nice work man, couldnt find anywhere something to do this, thanks for sharing.
I use google sites, any ideas on how should be the code to paste as html only?
thanks!
Hi
Great work.I was looking for this sort of things. i implemented this and it worked for me.Thanks again
@Pankaj,
Thanks for your feedback :)
@Anonymous,
Google sites is no good for CSS/JS customizations, Google Blogger is more flexible.
Great widget! I'm planning on using it, but I need to remove the source link from the content. I'm guessing it's in:
(op.snippet?linkify(x.contentSnippet,src):x.content'x.contentSnippet')
but I can't get it working.
Thank you,
Irene
@Irene,
Have you tried to set the "source" option to "0",
Go to Options list for more info.