Before I dive back into acts of proper engineering within SL (usually located at <0,0,0>) I would quickly like to note one more Twitter-related product - the Twitterbadge. This is a device, suggested by Mr Marcel Goodfellow, which allows one to display one’s own Twitterings, or, in fact, the public Twitterings of anyone, easily upon the Grid.
Things being what they are, it is only possible to display Two Hundred and Fifty-Five Floating Letters at a time, thus probably only two or three Tweets, but there are a number of different options which one may set, which will be detailed when I have a moment.
For now, please do see the Dedicated Aethernetical Area for the project for access to the LSL script concerned. Simply edit this script and place it inside a Prim, and said Prim will thenceforth display the appropriate Tweets for the person you have specified.


10 comments
Comments feed for this article
Trackback link
http://ordinalmalaprop.com/engine/2007/04/19/the-twitterbadge/trackback/
April 19, 2007 at 8:20 pm
Marcel Goodfellow
So this is it. Let’s go test it. Will report back. Thanks very much for the service.
April 19, 2007 at 8:27 pm
Mike Gunderloy
I had to make a minor change to the get_updates method to get this to compile:
get_updates()
{
if (USER == “”) return;
llHTTPRequest(
“http://ordinalmalaprop.com/twitter/user-timeline.php?id=” + USER + “&wrap=” + (string)WRAP,
[HTTP_METHOD, "GET"],
“”
);
}
Original is missing a comma and type conversion operator.
April 19, 2007 at 8:29 pm
Ordinal Malaprop
Bah, my apologies. I made a change at the last minute, but was not actually able to open a script within SL to check it. I shall fix it immediately.
April 19, 2007 at 8:58 pm
Marcel Goodfellow
Sometimes I get “TwitterBox v0.4: I received an error - ‘No response from Twitter!’”
Is that from the Badge? Because it does not seem to update. Could be Twitter itself failing.
April 19, 2007 at 9:02 pm
Ordinal Malaprop
That is what the proxy script says when it can’t get a response from Twitter. But, as the name in the chat line suggests, it is from the Twitterbox, unless you have put the badge script in the same prim as the Twitterbox, which I do not recommend.
April 20, 2007 at 12:53 pm
Sin Trenton
I think everything is corrected. Next to my 1 prim garden lamp with my RSS-feed, is now a Twitterbadged garden lamp. Two prims, lots of information. Wonderful thingamajig!
April 20, 2007 at 9:14 pm
Marcel Goodfellow
Hi Ordinal,
Sorry to bother you again, but I get this message now:
[13:08] TwitterBox v0.4: I received an error - ‘Twitter gave me bad output: Array’
Did something change at Twitter’s end?
By the way, what is the default refresh period for the badge? Can I set it somehow?
Thanks.
April 20, 2007 at 9:17 pm
Ordinal Malaprop
By default it refreshes every 60 seconds; one may change this by changing the number in llSetTimerEvent in the state_entry() event.
That rather unhelpful message means that Twitter gave the proxy something which it wasn’t expecting. I shall check, but unless otherwise noted, assume that it is a momentary Twitterglitch.
April 20, 2007 at 9:20 pm
Ordinal Malaprop
Ah, I’ve just noticed that this is a Twitterbox problem - in future it might be better to post those on the Twitterbox 0.4 page, as I am very easily confused.
April 20, 2007 at 9:23 pm
Ordinal Malaprop
Anyway, my latest correction _should_ get rid of such things.