Another Topsy-enabled jQuery plugin to list the most popular posts on your website,
from your Twitter timeline or for some keyword within a selected period of time.
Links are displayed with number of tweets and score -which is calculated by the
influence of the people talking about them and affects on sorting those
links.
Now Check out these DEMOS..
In each demo page you can see the required HTML & CSS & JS... CSS code is essential but I'm not going to focus on it here.
Demo 1: Popular on a Site ►
By setting the site to 'moretechtips.net' (without www), we get popular posts on my blog.
<!-- required javascript :include once -->
<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://popular-on-twitter.googlecode.com/files/jquery.popular-on-twitter-1.0.min.js"></script>
<!-- required javascript :END -->
<!-- required HTML -->
<div class="popular-on-twitter" options="{
site:'moretechtips.net'
,animate:'height'
,tweeter_text:''
,show_tweet:0
}">loading..</div>
<!-- required HTML :END -->
Use CSS as in demo page then include jQuery and plugin JS.
Add a div with a "popular-on-twitter" class and place widget settings in a custom 'options' attribute.
Demo 2: Popular From a Twitter-er ►
Now showing a bar of popular posts from my Twitter timeline within the last week.
<!-- required javascript :include once -->
<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://popular-on-twitter.googlecode.com/files/jquery.popular-on-twitter-1.0.min.js"></script>
<!-- required javascript :END -->
<!-- required HTML -->
<div class="popular-on-twitter" options="{
from:'Mike_More'
,show_n:1
,window:'w'
}">loading..</div>
<!-- required HTML :END -->
'from' was set to my Twitter username.
The number of links to show 'show_n' was set to 1.
Time period 'window' was set to 'w' to return links within last week.
unlike last demo, 'show_tweet' was left to its default value (1) to show the exact tweets about those links.
Demo 3: Popular For a Keyword ►
This demo uses a typical JS call, to create a fixed list of most popular links about 'Twitter' today!
<!-- required javascript :include once -->
<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://popular-on-twitter.googlecode.com/files/jquery.popular-on-twitter-1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('div.popular-2').popularOnTwitter({
keywords:'Twitter'
,show_n:0
,window:'d'
,n:5
});
});
</script>
<!-- required javascript :END -->
<!-- required HTML -->
<div class="popular-2">loading..</div>
<!-- required HTML :END -->
'keywords' was set to 'Twitter'
'show_n' was set to 0 to disable any transitions..
'window' was to set to 'd' to return popular links of today.
Number of links to return 'n' was set to 5.
Widget Features:
- Display popular posts on a website, from a Twitter username or for some
keyword.
- Select the window of time: today, this week, this month. or let Topsy automatically pick the most relevant window.
- Display links as a bar with transition effects or as a fixed list.
- Many transition options like opacity, height, font-size.
- Each part of the link like Title, Score, Hashtags.. has its own class for easy CSS customization.
- Show or hide some parts of the link like tweet, score, number of tweets.
- Use a typical JS call or auto-load div elements that have "popular-on-twitter"
class.
Topsy can do things other search engines don’t usually do. Topsy results are fresh, because they’re based on what you’re talking about right now, Or this week Or the past month.
Unlike Twitter API, Topsy results are ranked by how often they are mentioned, and how influential the people who tweet about them. And that's why this is my third jQuery plugin using their awesome API. check other plugins (Who-Tweet Button, Twitter Trackbacks Widget).
* Original Bird Icon by playground.ebiene.de
Haha, cool, interesting and creative. I really like the most popular for the twitter. Great job Mike :)
@Lam,
Thanks my friend :)
Well.. youve done it again hackey :) I see you were truly busy down in the lab again :D so proud of you every time !
M.
@Mia,
Thanks for stopping by.. and stop calling me hackey, 2010 is almost here :)
Another great widget from you! You Rock!! B) :)
@Swashata,
Thanks buddy. Glad you like it :)
Thanks for this great Widget. It is really creative.
You really need to add a scrolling effect, so that a number of reactions scroll down to the user, similar to the UberVU widget.
Also, try to make the demos a bit flashier, or maybe even integrated into the page. I guarantee you it'll improve this plugin's visibility
Otherwise, great job!
Artem
@Artem,
Thanks for your valuable feedback.. will keep the "scrolling effect" in mind for next version.
Also, If you've more specific suggestions to get it more flashier/integrated would be great. thanks :)
Best twitter feed reader I've found. Using it over on my website.
Thanks @Skateboarder :)
Hey Mike, I'm a bit of a javascript newb so maybe I'm missing something, but is there any easy way I can get these external links to pop open in a new? I use a javascript on my site that adds in the target="_blank" for me, but these twitter posts seem to open in the same window.
Good job done....I guarantee you it'll improve this plugin's visibility....
First of all, great script... secondly, any way to give the resulting li-items different sizes, like the most tweeted one more width compared to the second, and so on ?
Thanks in advance...
Just wanted to say great job with the blog, today is my first visit here and I’ve enjoyed reading your posts so far.
Thanks for giving the widget features like Display popular posts on a website, from a Twitter username or for some keyword...It is very informative post..thanks for it