Fileref:blog/sl blog linker.php
From SLIS Second Life Wiki
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).
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
- Include dependent files
- Construct LSL handler
- Process standard request data
- Authenticate request
- Login user identified by request data
- Fetch extra blog parameters (subject and body)
- Construct SLurl
- Construct database record
- Add blog entry to database
- Render response
- Terminate
| This page is part of the Sloodle documentation | |||
|---|---|---|---|
| SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home | |||
