Non-core contributed modules

Realtime Attendance: allows mobile device / connected users (e.g., iPhone lab computer) to take their own attendance in a class

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Moodle 1.9.2
  • Database:
    MySQL
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_19_STABLE

Description

This mod depends on Attendance and Realtime quiz being installed. Realtimeattendance is basically an editable one-question realtime quiz that allows mobile/computer lab students to "report in". To help prevent cheating the teacher should use realtimeattendance to create a multiple choice question with a non-trivial answer (e.g., "what number did I write on the whiteboard?" or "what color did I just say?") That way it would be harder for those not in attendance to sneak in as being present.

Once the realtimeattendance activity is created, it can be used multiple times (i.e., all semester)

Operation (these are prompted within the activity):
1. Teacher opens the activity and tells the student to get ready for an immediate quiz
2. students open the activity and wait for the teacher to start the quiz
3. Students take the 1-question quiz before time expires
4. Teacher closes session
5. Attendance is automatically recorded in the Attendance database, but is also still editable by the teacher.

Requires two separate Moodle logins to demonstrate or test. You can test it yourself on one computer if you use IE as the teacher or student and FF as the other (student or teacher).

To install simply have the dependent mods loaded and then upload the realtimeattendance directory to the moodle/mod directory. From the admin page click notifications and watch the databases get created. Tested with 1.9.2+

Activity

Hide
Dmitry Pupinin added a comment -

This is very interesting!
Can I use idea and maybe incorporate some code in next version of Attendance module?

Show
Dmitry Pupinin added a comment - This is very interesting! Can I use idea and maybe incorporate some code in next version of Attendance module?
Hide
Anthony Borrow added a comment -

After the attached screenshot which revealed a missing string and no help file I received the following PHP notices:

Notice: Undefined variable: realtimeattendance in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 30
Notice: Trying to get property of non-object in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 30
Warning: Invalid argument supplied for foreach() in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 42

You may want to do a little testing with debug turned on to help clean up things. These are usually fairly minor and simple to fix but improves the quality of the code a great deal. Usually it is just a matter of checking for the existence of a variable and/or initializing them properly.

Peace - Anthony

Show
Anthony Borrow added a comment - After the attached screenshot which revealed a missing string and no help file I received the following PHP notices: Notice: Undefined variable: realtimeattendance in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 30 Notice: Trying to get property of non-object in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 30 Warning: Invalid argument supplied for foreach() in /home/arborrow/Moodle/code/19stable/mod/realtimeattendance/edit.php on line 42 You may want to do a little testing with debug turned on to help clean up things. These are usually fairly minor and simple to fix but improves the quality of the code a great deal. Usually it is just a matter of checking for the existence of a variable and/or initializing them properly. Peace - Anthony
Hide
Anthony Borrow added a comment -

Rob,

I modified a couple of syntax errors in the editquestionform.php

There was an extra close paren on:

$mform->addElement('htmleditor', 'questiontext', get_string('questiontext','realtimeattendance'));

and a missing close bracket for the class.

That said, I've uploaded to CONTRIB. Looking at this, because of the dependencies I might suggest that you consider this as a package that includes:

the attendance package (the att4block activity and attendance block)
the realtimequiz activity
and then the realtimeattendance activity

A package is a combination of plugins that are meant to work together. Do I have this right?

Peace - Anthony

Show
Anthony Borrow added a comment - Rob, I modified a couple of syntax errors in the editquestionform.php There was an extra close paren on: $mform->addElement('htmleditor', 'questiontext', get_string('questiontext','realtimeattendance')); and a missing close bracket for the class. That said, I've uploaded to CONTRIB. Looking at this, because of the dependencies I might suggest that you consider this as a package that includes: the attendance package (the att4block activity and attendance block) the realtimequiz activity and then the realtimeattendance activity A package is a combination of plugins that are meant to work together. Do I have this right? Peace - Anthony
Hide
Anthony Borrow added a comment -

Rob - I also removed the mysql.php and mysql.sql files from the /db folder since we should really just be using the install.xml. I do not think they are needed but let me know if you believe they are needed. I am going to create a component in the tracker for the new module and bump your privileges in the tracker so that you can manage issues related to the realtimeattendance activity. Peace - Anthony

Show
Anthony Borrow added a comment - Rob - I also removed the mysql.php and mysql.sql files from the /db folder since we should really just be using the install.xml. I do not think they are needed but let me know if you believe they are needed. I am going to create a component in the tracker for the new module and bump your privileges in the tracker so that you can manage issues related to the realtimeattendance activity. Peace - Anthony
Hide
Anthony Borrow added a comment -

Rob - I am moving this issue to the new Module: Real time attendance component. Could you request CVS write request to:

contrib/plugins/mod/realtimeattendance

by going to http://moodle.org/cvs/

Let me know if you have any questions or need anything else.

Peace - Anthony

Show
Anthony Borrow added a comment - Rob - I am moving this issue to the new Module: Real time attendance component. Could you request CVS write request to: contrib/plugins/mod/realtimeattendance by going to http://moodle.org/cvs/ Let me know if you have any questions or need anything else. Peace - Anthony
Hide
Anthony Borrow added a comment -

Resolving as fixed since the code is now in CVS. Please review the [[Development:Guidelines_for_contributed_code]] to make sure that things like adding an entry to the Modules and Plugins database, documentation, and other details are done. After 24 hours, you should be able to use http://download.moodle.org/download.php/plugins/mod/realtimeattendance.zip to download the latest version. Peace - Anthony

Show
Anthony Borrow added a comment - Resolving as fixed since the code is now in CVS. Please review the [[Development:Guidelines_for_contributed_code]] to make sure that things like adding an entry to the Modules and Plugins database, documentation, and other details are done. After 24 hours, you should be able to use http://download.moodle.org/download.php/plugins/mod/realtimeattendance.zip to download the latest version. Peace - Anthony
Hide
Anthony Borrow added a comment -

Dmitry - since this was a request to add code to CVS, I went ahead and assigned this to myself and have resolved it. Feel free to comment and/or re-open if in my haste I have managed to overlook something. Peace - Anthony

Show
Anthony Borrow added a comment - Dmitry - since this was a request to add code to CVS, I went ahead and assigned this to myself and have resolved it. Feel free to comment and/or re-open if in my haste I have managed to overlook something. Peace - Anthony
Hide
Anthony Borrow added a comment -

I forgot to upload the screenshot yesterday so here it is.

Show
Anthony Borrow added a comment - I forgot to upload the screenshot yesterday so here it is.
Hide
Anthony Borrow added a comment -

Closing all of my resolved issues. Peace - Anthony

Show
Anthony Borrow added a comment - Closing all of my resolved issues. Peace - Anthony

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: