Twitter Widget 1.2

The Twitter Widget now caches tweets using the PEAR package Cache_Lite. Follow the instructions in the link below.

http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/

Tags: , , , ,

2 Responses to “Twitter Widget 1.2”

  1. Marty Says:

    Great script! One fix though.. it dies if somebody’s twitter has a line break in it. To fix, add:
    g = g.replace(new RegExp( “\\n”, “g” ), “”);
    in processData before you eval it:

    var g = list[i];
    g = g.replace(new RegExp( “\\n”, “g” ), “”);
    eval(g);

    (Just strips out line breaks. In my situation, replacing with “” was the right solution, maybe a space is better?)

  2. Ronak Says:

    Marty,

    Thanks for find a problem! I’ll add this into the next version.

Leave a Reply