Hi Guys.
This script below has been working fine for months and displaying the users latest 3 tweets on their site up until a few days ago. It now just hangs on 'Loading Tweets...'
Can anyone help?
Code:
(function($){$.fn.getTwitter=function(options){$.fn.getTwitter.defaults={userName:null,numTweets:5,loaderText:"Loading
tweets...",slideIn:true,slideDuration:0,showHeading:true,headingText:"Latest Tweets",showProfileLink:true,showTimestamp:true};var
o=$.extend({},$.fn.getTwitter.defaults, options);return this.each(function(){var
c=$(this);c.hide().empty().addClass("twitted");if(o.showHeading){c.append("<h2>"+o.headingText+"</h2>")}var twitterListHTML="<ul
id=\"twitter_update_list\"><li></li></ul>";c.append(twitterListHTML);var tl=$("#twitter_update_list");tl.hide();var preLoaderHTML=$("<p
class=\"preLoader\">"+o.loaderText+"</p>");c.append(preLoaderHTML);if(o.showProfileLink){var profileLinkHTML="<p class=\"profileLink\"><a
href=\"http://twitter.com/"+o.userName+"\">http://twitter.com/"+o.userName+"</a>
</p>";c.append(profileLinkHTML)}c.show();$.getScript("http://twitter.com/javascripts/blogger.js");$.getScript("http://twitter.com/statuses/us
er_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets,function()
{$(preLoaderHTML).remove();if(!o.showTimestamp){tl.find("li").each(function(){var timestampHTML=$(this).children("a");var
timestamp=timestampHTML.html();timestampHTML.remove();$(this).attr("title",timestamp)})}if(o.slideIn){var
tlHeight=tl.data("originalHeight");if(!tlHeight){tlHeight =
tl.show().height();tl.data("originalHeight",tlHeight);tl.hide().css({height:0})}tl.show().animate({height: tlHeight},
o.slideDuration)}else{tl.show()}tl.find("li:first").addClass("firstTweet");tl.find("li:last").addClass("lastTweet")})})}})(jQuery)
$(function(){$("#twitter").getTwitter({userName:"perfezionevalet",numTweets:3,loaderText:"Loading
tweets...",slideIn:true,showHeading:false,headingText:"Latest Tweets",showProfileLink:true})})
Cheers,
Foxy