Skip to content

Instantly share code, notes, and snippets.

@deepakjois
Created April 20, 2010 18:43
Show Gist options
  • Save deepakjois/372878 to your computer and use it in GitHub Desktop.
Save deepakjois/372878 to your computer and use it in GitHub Desktop.
// get the list of twitter usernames from the html of an element (entered in CMS) and then display.
$($("#twitterlist p").html().split(",")).each( function(i) {
$.trim(this);
$("#twitter-users").append($("<div/>").attr({id: "user-" + i, class: "item"}));
getTwitters('user-' + i, {
id: this,
count: 1,
enableLinks: true,
ignoreReplies: true,
clearContents: true,
template: '<img class="fl" width="44" height="44" src="%user_profile_image_url%" > <a class="username" href="http://twitter.com/%user_screen_name%">%user_name%</a> <br> %text%'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment