Show who's in-class in Moodle
From SLIS Second Life Wiki
[edit] Summary
Keep track of who's in the SL classroom and show it in Moodle.
[edit] How to do it
When an avatar enters the the Sloodle Classroom object currently gets a list of enrolled students from Moodle and checks whether the avatar is enrolled in the class. When it does this, also have it send an HTTP request to Moodle telling them that the student has entered the room. Do the same when they leave the room.
Specifically:
- Edit the db/mysql.sql and db/psql.sql files to make a new database table (sloodle_course_users ?) with fields for user id, course id, date/time entered and date/time left.
- Create a new php file (sl_classroom/sl_record_entry_and_exit) accepting parameters for the user id, course id and whether it's an entry or an exit. It should store these in the above table, returning "OK" on success and "ERROR|Whatever went wrong" on failure.
- Create a page which reads the database table to show which users are online for a given course.
- (Optional) Create a block showing which users are online which can be embedded on site / course homepages.
[edit] Ad Hoc, Sensor-based
Another possible method here is sensor-based and for the use of each avatar.
- The avatar wears a HUD that senses near avatars and sends their name via HTTP to be matched in the Moodle database.
- The HUD has four states:
- Off
- Sensing but not finding anyone
- Found an unknown avatar
- Found a known avatar
