Online Status on the Web

I have made a system for showing your online status on the web, which can be accessed in a few ways. In all of the below examples, replace “your_name” with your first name, then an underscore, then your second name. For example, I would be “katharine_berry”.
If that doesn’t work, replace “your_name” with your key instead.

Method 1 – Javascript
Javascript psuedo-AJAX (security sandbox makes AJAX impossible) type thing, as demonstrated at the bottom of my web page. Note that this works best in anything other than IE, but it’ll still work even in IE.

Place the following in your webpage where you want the text to appear:
<script type="text/javascript"
src="http://services.katharineberry.co.uk/avstatus/avs/your_name.js"gt; </script>

Example:

The text will be in a <span> element with its class as one of “KB-status-loading”, “KB-status-online”, “KB-status-offline” or “KB-status-error”, allowing you to style it. IDs are generated at random to attempt to prevent collisions.

Method 2 – Raw data
This method simply returns a number between -2 and 1 inclusive. This is designed for use by your own parsing scripts, or llHTTPRequest, etc.
Access the data at http://services.katharineberry.co.uk/avstatus/avs/your_name.txt.
The returns codes are as follows:

  • -2: Second Life not responding to requests
  • -1: Name not in key database.
  • 0: Avatar is offline.
  • 1: Avatar is online.

Method 3 – Images
This method produces an image (either JPEG, GIF or PNG) showing your online status (suitable for a forum, etc.). If anyone has/can make good online/offline(/unknown) images for this, please contact me or post here.
To access these images, use one of the following URLs:

  • PNG: http://services.katharineberry.co.uk/avstatus/avs/your_name.png
  • GIF: http://services.katharineberry.co.uk/avstatus/avs/your_name.gif
  • JPEG: http://services.katharineberry.co.uk/avstatus/avs/your_name.jpg

If you have any comments, suggestions, better images, or requests for help, post a comment here or IM me in-world.

Thanks!

7 Responses to “Online Status on the Web”


Leave a Reply