Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Latest topics
» NEED TIPS FOR PROGRAMMING AND REDESIGNING WEBSITE
Fri Mar 05, 2010 4:12 pm by JasonBreakey

» Looking For Web Development Service
Wed Dec 30, 2009 5:35 am by Jennifer Clark

» Widget - How do you add them?
Thu Dec 10, 2009 10:00 am by DanaJane

» AVACS LIVE CHAT
Tue Dec 01, 2009 8:01 am by R0mie

» How to Remove the Blogger Top Bar Tip and Hacks
Sat Nov 21, 2009 4:14 pm by cooldude

» Blogger’s Blogspot Top 10 Hacks to Make Your Blog Better
Sat Nov 21, 2009 4:08 pm by cooldude

» Lists of “Top 10” Wordpress plugins around the Internet
Sat Nov 21, 2009 6:06 am by cooldude

» WP Additions - Pagination
Mon Nov 09, 2009 3:42 am by cooldude

» CSS Styling the Header and Footer
Mon Nov 09, 2009 3:40 am by cooldude


Juitter is an interesting jQuery plugin to put Twitter live on your website

View previous topic View next topic Go down

20091031

Post 

Juitter is an interesting jQuery plugin to put Twitter live on your website









google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);Juitter is an
interesting jQuery plugin to put Twitter live on your website. Juitter
is lightweight, fast, in real-time, fully customizable and doesn’t slow
down your page while tweets are loading.




In this article I want to illustrate how you can use Juitter to
implement a powerfull Twitter reactions badge that displays in real
time the reactions of Twitter users to your posts. The only thing you
have to do is to download Juitter Beta (the package includes two JavaScript files: jquery.juitter.js and system.js) and include them in the tag of your page after the link to jQuery:


Then you have to add the following layer where you want reactions appear.


Customizing search results


Customizing search results is very simple. First of all you have to
define a search key. I used the title of posts for that, making some
changes to the system.js original source code. Open system.js and modify the first lines of the code:$(document).ready(function() {
$.Juitter.start({

whit the following ones:$(document).ready(function() {
var mysearch = $(".post h1").html();
$.Juitter.start({

and set searchObject with the value of mysearch in this way:searchObject:mysearch,

In the previous code I simply added a new var mysearch that gets the title of the post using a jQuery selector. Important: I’m assuming that the title of posts is wrapped by the tag and the container, within which the title is, has the class property set to .post. You have to change the selector $(".post h1") coherently with the structure of your pages.
Change the parameter total:/code> with the number of tweet to be show and change the number after live:live-
with a number that indicates the time in seconds to wait before request
the Twitter API for real time updates. You can also customize a lot of
other parameters following the instructions on the system.js file.
[b]Customizing the look of the badge



Each tweet is contained within a <li> tag with the class property set to .twittLI.
So, if you want to customize the look of the badge that display search
results the only thing you have to do is to add a simple class .twittLI to your CSS file. Here is an example:.twittLI{
border-bottom:solid 1px #DFDFDF;
clear:both;
padding:4px;
}

Direct Link: http://juitter.com/</li>[/b]

cooldude
Admin

Posts: 23
Points: 69
Join date: 2009-10-24

View user profile http://sitecrunch.go-board.com

Back to top Go down

Share this post on: Excite BookmarksDiggRedditDel.icio.usGoogleLiveSlashdotNetscapeTechnoratiStumbleUponNewsvineFurlYahooSmarking

Permissions of this forum:
You cannot reply to topics in this forum