Trivial LT Gadget

TalkSecond Life

This group has been archived. Find out more.

Join LibraryThing to post.

Trivial LT Gadget

1libraryofus
Jun 23, 2008, 3:52 pm

I've been playing around with learning LSL (the Second Life scripting language) recently, and one of the products of that's been a freebie bookcase that's now modified to display your LibraryThing catalog (via built-in web browser)when someone clicks on it. Not really what I'm hoping for in terms of a long-term LibraryThing gadget, but it'll do as bookish furniture until then, I think.

Anyway, if anyone else wants a simple LibraryThing bookshelf, feel free to drop me an IM in-world ("Athanasius Skytower") or leave a comment on my profile here with your SL name, and I'll send you one.

-- Alistair

2SimonW11
Aug 4, 2008, 2:33 am

oh nice

3timspalding
Aug 4, 2008, 7:06 am

Oh, me! I'm Callimachus Snook.

4BTRIPP
Aug 4, 2008, 7:55 am

Re. #1: "display your LibraryThing catalog (via built-in web browser)when someone clicks on it"

So, this basically just has an LSL "URL" script dropped into a book-case?

You might do better to just post the code (since each will need to specify the URL of the individual user's library, which would certainly be a pain in the butt if you start getting a bunch of requests) than offer the item in-world. That way folks can modify the script (in a text editor) and then drop it into whatever bookcases, etc., they have for which they have mod rights.

By the way, I'm "Eschatos Graves" in-world.

 

5timspalding
Aug 4, 2008, 9:46 am

Incidentally, LibraryThing has an "also on" feature, so we can make a simple web service—send a SL name, get back an LT username. That way the bookshelf wouldn't need to know anything except its owner.

How about it?

6libraryofus
Aug 4, 2008, 2:16 pm

Also now available on OnRez here:

http://shop.onrez.com/item/719790

and SL Exchange here:

http://www.slexchange.com/modules.php?name=Marketplace&file=item&ItemID=...

...for ease of purchase.

7libraryofus
Aug 4, 2008, 2:23 pm

@timspalding/3: no problem, I've sent you one.

@BTRIPP/4: pretty much, except with a little convenience of configuration - rather than having to edit the script, you can just change your LT username in an included notecard and it computes the URL from there. I figured many people wouldn't want to mess with the raw LSL.

Anyway, it's copy/mod/transfer, so if you want to pull the script out and put it in another bookcase (or some less relevant object), it's easy enough to do. Alternatively, the script's blogged here:

http://weblog.siliconcerebrate.com/cerebrate/2008/06/mr-skytowers-first-script.h...

Note that it gets the username from the *second* line of the notecard, and not the first one (in my version, I have a comment on the first line to tell people how to configure it.)

@timspalding/5: Sounds good to me! I'm happy to update the code at my end any time.

8timspalding
Aug 4, 2008, 5:14 pm

How about if I make something that looks like:

http://www.librarything.com/api_secondlife.php?name= Callimachus+Snook

And it forwards back:

<LibraryThing>
<member>timspalding</member>
</LibraryThing>

Good?

9libraryofus
Aug 4, 2008, 5:49 pm

I can work with that, sure. No problem.