Fileref:blog/sl blog linker.php

From SLIS Second Life Wiki

Jump to: navigation, search

This is a Linker Script between external scripts (e.g. sloodle_blog_hud.lsl in the Sloodle Toolbar) and the Moodle blog. It allows a blog entry to be made remotely, provided that the request can be authenticated (by Prim Password), and the user can be identified (i.e. an association can be made between the avatar name/UUID and a Moodle account; see Registration and Enrolment).

Image:folder.gif (parent)


Contents

[edit] Future Features

It would be desirable to add the option of different publication states. Currently, 'site' is used for all posts. However, 'public' and 'private' would also be useful.


[edit] Additional Information

Debug mode will output additional data, indicating what is happening at all points in the script.


[edit] Request Parameters

The following parameters are required:

  • sloodlepwd = the prim password used to authenticate the blog toolbar for this site
  • sloodleuuid = the SL UUID of the agent making the blog entry (optional if 'sloodleavname' is specified)
  • sloodleavname = the name of the avatar making the blog entry (optional if 'sloodleuuid' is specified)
  • sloodleblogsubject = the subject line of the blog entry
  • sloodleblogbody = the main body of the blog entry


The following parameter is optional:

  • sloodledebug = activates debug mode


[edit] Dependencies

Sloodle files:

Moodle files:

  • moodle/blog/lib.php

Sloodle classes:

Sloodle functions:


[edit] Algorithm

  1. Include dependent files
  2. Construct LSL handler
  3. Process standard request data
  4. Authenticate request
  5. Login user identified by request data
  6. Fetch extra blog parameters (subject and body)
  7. Construct SLurl
  8. Construct database record
  9. Add blog entry to database
  10. Render response
  11. Terminate


This page is part of the Sloodle documentation
SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home
Personal tools