Fileref:login/sl loginzone entry.php
From SLIS Second Life Wiki
If accessed by a Moodle user who does not have a registered avatar, this Interface Script will allocate a new loginzone position to a user, providing them with a SLurl to teleport to in-world. The teleport point will be inside the Sloodle Login Zone object, allowing confirmation of avatar ownership. If the Moodle user already has a linked Sloodle user, then not loginzone position is allocated, and a SLurl to a point outside the loginzone is generated.
Dependencies
Sloodle files:
Algorithm
- Require user login
- Display page header
- If user is a guest: display error message and terminate
- Construct a SloodleUser object
- Assign the user's Moodle ID in the user object
- Attempt to find a linked Sloodle user (avatar)
- If an error occurred in finding the Sloodle user then:
- Output an error message
- Else if the user has a fully registered avatar then:
- Generate SLurl for point outside LoginZone
- Display message with SLurl
- Else:
- If user does not already have a partially registered Sloodle account then:
- Create a new Sloodle entry
- If the has no existing loginzone position, or if it has expired, then:
- Generate a new loginzone position
- Else:
- Renew current loginzone position
- Get the loginzone region
- If successful, generate and display a SLurl for the loginzone
- If user does not already have a partially registered Sloodle account then:
- Display page footer
- Terminate script
| This page is part of the SLOODLE documentation | |||
|---|---|---|---|
| Docs: Users | Administrators | Developers | |||
| Wiki Frontpage Sloodle.org | |||