The Twitterbadge

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.

Anonymous's picture
20 Apr200704:20
Marcel Goodfellow (not verified)

So this is it. Let's go test it. Will report back. Thanks very much for the service.

Anonymous's picture
20 Apr200704:27
Mike Gunderloy (not verified)

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.

Anonymous's picture
20 Apr200704:29
Ordinal Malaprop (not verified)

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.

Anonymous's picture
20 Apr200704:58
Marcel Goodfellow (not verified)

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.

Anonymous's picture
20 Apr200705:02
Ordinal Malaprop (not verified)

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.

Anonymous's picture
20 Apr200720:53
Sin Trenton (not verified)

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!

Anonymous's picture
21 Apr200705:14
Marcel Goodfellow (not verified)

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.

Anonymous's picture
21 Apr200705:17
Ordinal Malaprop (not verified)

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.

Anonymous's picture
21 Apr200705:20
Ordinal Malaprop (not verified)

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.

Anonymous's picture
21 Apr200705:23
Ordinal Malaprop (not verified)

Anyway, my latest correction _should_ get rid of such things.