I've put it in /contrib/attendance and it's available from the Modules download page: http://moodle.org/download/modules/
I'll tell Russell about this thread - he may want to say more about it.
I installed the attendence module----the current lang packs for en does not contain the required "attendance.php" file. I copied the attendance.php from the /mod/attendance/ folder and placed it into the lang/en folder. But I cant find any way to access the attendance functions....Where is it and how does it function????
Rob
It seems to be somewhat functioning---but I'm getting the following error:
Warning: Invalid argument supplied for foreach() in c:\program files\easyphp\www\mod\attendance\view.php on line 63
The attendance module is not currently maintained by anyone, and some major problems from the initial implementation were never resolved.
I do not recommend using this module in its current form - it has really messed up some courses.
I didn't find the attendance.php file ???
Thanks
raf.
Most of it seems to work ok. If all students are marked as "P" I get this error:
Warning: Invalid argument supplied for foreach() in /home/www/moodle/mod/attendance/view.php on line 63
But with one or more students marked "A" everything is OK.
Fixes will be provided as time permits. As you may have gathered, I'm the module developer, and I've got a few tricks ready to come out of the bag. The next version of the module should be ready in the next few days, - let's say... when Martin gets my cvs tree access set up and I finish these features:
- Creation wizard for multiple attendance instances at one time
- Automatic attendance logging based on student activity logs through the cron function
- Extended reporting to add up all student attendance information in the course at any given time.
Okay... so that's a lot, but I'm making some significant changes to the code that haven't been committed to the tree yet, so though I'd like to give you fixes right off the bat, I can make no commitments.
Russell Jungwirth
Sureblue Studios LLC
Russell:
Great job!!!!!
We have been looking for exactly this. Will the students be able to see their attendance. Also we have a different number of hours to post for each assignment, will that be a feature?
Thanks for all your hard work,
Tony
Russell:
The only thing we will have to do is to eliminate the students from seeing everyone elses attendance. Privacy laws require that we do so.
Tony
The next version of the module, which I should be posting to CVS today,
will allow students to view their attendance.
As for different numbers of hours for each assignment, do you mean that
each individual attendance instance can have different numbers of hours in
it? If that's the case, then it does that already. Also note that
eventually you'll be able to get attendance modules to automatically move
themselves to the appropriate week by their date, if your course is
configured in the weekly format.
Please also note that a course must be in weekly format for this option to apply. If it's not in weekly format, the option will simply be ignored.
Instances can, of course, always be moved manually as any other module's instances.
I've attached context diff's of course/lib.php and course/mod.php from the 09-10 nightly build for the ambitious
Yes!!!
We would like to be able to take roll, per topic (class) and based upon the student attending, award some amount of points that will apply tward the final grade in the gradebook----Rob
Now it would be very inconvenient if the individual seminar leader has to search for his small number of students inside the long list of all class participants in order to enter their attendance. Instead the seminar leader should be shown a list of only those students that were supposed to show up for his particular meeting.
Of course Moodle needs to know which student belongs to which seminar group. We are proposing to hold that information an extra column of the user_students table. There also has to be an additional table course_groups, each entry of which corresponds to a group and determines the group's seminar leader. It is the id number of the group in this table that is contained in the extra column of the user_students table.
Using the information in these tables, a seminar leader can automatically be shown only those students from the large class that were actually supposed to attend his seminar.
Maybe Russell can build this functionality into his module, if not we will build on his work later. And Russell: we need it soon
http://moodle.org/doc/?frame=future.html
Groups (was Re: attendance at small group seminars)
Someone is sponsoring me for part of this development.
What's in the new version:
View All attendance rolls in one report
settings page for module preferences
multi-page reports for View All
student view attendance listings
tallying of absences and tardies
What's not implemented:
auto-attendance logging per activity
grading attendance
attendance by groups
multiple instance creation wizard
viewall.php not fixed yet. that's next.
See CVS for updates.
Specific changes:
viewall.php has been added to allow for viewing full attendance information for the course. It does multi-page and single-page reports with width limiting, as well as a big single-table report version. Next in that area will be exports to spreadsheet format.
Student-only view limiting has been implemented in view.php and viewall.php.
That's it for me today, you've been a great audience! Be sure to tip your waitress, and try the veal, it's terriffic!
Russell:
Bravo!!!!!! Encore!!!!
Tony
I looked in the CVS and could not find it
. Can you tell me where it is?
The one under optional Modules is still the old one.
make a directory for your cvs checkout. call it whatever you want.
Then:
From a Unix/Linux computer
To connect and login for the first time to the CVS server, you can use this command:
cvs -d:pserver:anonymous@cvs.moodle.sourceforge.net:/cvsroot/moodle login
There is no password - when asked for one, just hit Enter.
To checkout (download) the entire Moodle code for the first time, use this command:
cvs -z3 -d:pserver:anonymous@cvs.moodle.sourceforge.net:/cvsroot/moodle co contrib
Later, to update your local copy of Moodle to the current version in CVS you just need to go into your local moodle directory and type:
cvs update -dP
From a Windows computer
To get started with a fresh copy of Moodle, follow the following steps:
1. Get TortoiseCVS from tortoisecvs.org and install it, then reboot.
2. Find or create a new folder somewhere where you want Moodle to be downloaded to.
3. Right-mouse-click that folder and choose "CVS Checkout" from the menu. You should see a dialog box.
4. Copy this text into the CVSROOT field: :pserver:anonymous@cvs.moodle.sourceforge.net:/cvsroot/moodle
5. Press the button: "Fetch list...".
6. To the right of the button you'll see a list of modules: choose "contrib" from that list.
7. Press the button: "OK" and everything should be downloaded.
(paraphrased from http://http://moodle.org/mod/resource/view.php?id=8)
Otherwise, just use the one I've attached. It's pipin' hot fresh!
Russell:
Updated my install of the module, the upgrade of the db went fine. Click on View All Attendance Rolls and I get:
Warning: Invalid argument supplied for foreach() in /var/virtualhosts/denver.heritage-educationonline.com/html/mod/attendance/viewall.php on line 96
Warning: Invalid argument supplied for foreach() in /var/virtualhosts/denver.heritage-educationonline.com/html/mod/attendance/viewall.php on line 96
Warning: Invalid argument supplied for foreach() in /var/virtualhosts/denver.heritage-educationonline.com/html/mod/attendance/viewall.php on line 96
Warning: Invalid argument supplied for foreach() in /var/virtualhosts/denver.heritage-educationonline.com/html/mod/attendance/viewall.php on line 96
Warning: Invalid argument supplied for foreach() in /var/virtualhosts/denver.heritage-educationonline.com/html/mod/attendance/viewall.php on line 96
Just FYI,
Tony
foreach ($rolls as $roll) {
$atts[$numatt]->sroll[$roll->userid][$roll->hour]->status=$roll->status;
$atts[$numatt]->sroll[$roll->userid][$roll->hour]->notes=$roll->notes;
}
with this:
if ($rolls) {
foreach ($rolls as $roll) {
$atts[$numatt]->sroll[$roll->userid][$roll->hour]->status=$roll->status;
$atts[$numatt]->sroll[$roll->userid][$roll->hour]->notes=$roll->notes;
}
}
Russell:
It works...great job.
Tony
Russell:
I am trying to create a hack of this great module. We would like to be able to have the instance setup the week then allow the instructor to enter the number of hours (with either a drop down box or an entry field).
The amounts in each day would then be totalled up at the end of that week to give the overall attendance for the week.
Thanks for tackling this.
Tony
I should get around to working on this feature on Tuesday afternoon or Wednesday morning (CST). Stay Tuned!
Russ
Russell:
Thanks. I am newbie to php/mysql so I know I would make something blow up if I tried to do it.
Tony
This feature has now been added to the module. You can add attendance instances for a whole week using the 'add multiple rolls' link at the bottom of the 'add' page.
When viewing a given instance of attendance in that week, you can now click on the 'View all rolls for this week' link to view all the rolls that fall within the range of that given week. There is also a link on that report to view all rolls in that section instead of limiting it purely by date range.
Russ
Russell:
Thanks, I took a few days "off" and wanted to get back and thank you. We will proably use it day by day, since each day's required attendance varies in hours.
Tony
And thanks for the encouragement, it helps!
Russ
When I go to Update this Attendance, I get an error saying
Warning: Invalid argument supplied for foreach() in /home/baillie/public_html/learningcentre/mod/attendance/mod.html on line 52
See attached clip for context.
The text at line 51 of mod.html is
foreach ($rolls as $roll) {
Any clues anyone??
Yes I still get that same error.
If, however, you change it for one student to "T" or "A" the error will go away.
That fixed that part. But now an other error is present in the "View all" option:
Warning: Invalid argument supplied for foreach() in /home/www/moodle/mod/attendance/viewall.php on line 96
This problem also goes away when at least one "T" or "A" is set
Anyways, I've fixed that bug as well. Attached is the new version of that file. The updated version will be incorporated into tonight's nightly release. Thanks for your patience and understanding.
Russell Jungwirth
Also, note that the "nightlies" are now being generated every hour. (I should rename them )
Hello...
I'm getting an error in the Attendance module which says:
Fatal error: Call to undefined function: tally_overall_absences_fraction() in /home/wolfpsy/www/moodle/mod/attendance/viewall.php on line 261
Can you look at this and let me know what is wrong? Also, is there a resource which explains how best to use the attendance module, e.g., what is autoattend, etc. Basically some docs about the module?
Thanks a bunch. Good module, I think, but I'm still wondering how to use is effectively.
Thanks!
Bob Lee
Update your installation. I've changed the name of the tally_overall_absences_fraction function to attendance_tally_overall_absences_fraction. It appears that you have an updated version of lib.php but not an updated version of viewall.php. The latest version of moodle, available at
http://moodle.sourceforge.net/nightly/moodle-latest.tgz
has the corrected version of the module.
As for documentation, it hasn't been written yet. You may want to read the threads in this forum, as they probably have the best discussion of the where and why's of the module.
Russ
I got
Warning: Invalid argument supplied for foreach() in /home/tim/mootim/moodle/mod/attendance/view.php on line 125
When I viewed an attendance module. Perhaps this has something to do with the fact that there are no students enrolled on the course. I was just trying to check out the module.
Tim
Nice modul!
We are moving form classes with closed doors to open learning landscapes.
Brings new resposibilties for our schoolteachers: "Are all the students in the house?" They started to count them on paper.. This modul fits their new "sheep countin need" THANKS (So i would propose to replace the current icon with a white sheep )
Another "new need" is that the teacher needs to know if students have the choice to be present in an offered meeting. (if no student will coem, the teacher can help other students..)
The same for exams: students can choose from a list the date they will take their first exam. Thinking how I could use your modul for this, I got a brainwave: I can use poll for that, all the functionality is there. Just clone poll and give it a informationmark icon, changing the text a little...
Question to Martin: is worth to make a new modul of it, or is it to close to poll?
Hi Martin,
Maybe this follow on should be in the choice forum, but anyway...
When trying to use the choice module to book students there are two obvious limitations that might be easy to fix (but again it might be more related to the attendance module than the choice..)
- I could not find a way for a student to re-schedule, once a choice is given it stays. When using as a booking method you would like to offer the opportunity for the student to reschedule (make a new choice).
- Number of seats, often there is some limitations in seats. It would be of great help if a max number of seats could be entered for each choice. Once the limit is reached, no more student can book that seminar (make that choice).
So take it as an idea for further improvement of an already excellent package.
Thanks
Roger
Hi Ger,
If you still have this need, you may want to try my hack of the choice module. I posted it in the choice forum here.
Roger
Thanks, it is already useful in it's current form:
- I set the limit=1
- I make a Moodle section with thematic choice-sets of 6 each
Nice, very nice..
Glad you liked it.
We are using the limit figures to set the available seats, say 30. When 30 students makes this choice it is "sold out". When the 31 student tries this choice he will be asked to make another choice.
Warning: Invalid argument supplied for foreach() in /home/dokusha/www/www/moodle/mod/attendance/lib.php on line 230
I think that what follows may be line 230, but lacking a proper text editor I counted by hand!
foreach ($attrecs as $attrec) { $grid[$attrec->hour]=$attrec->status; }
In addition, I have a question about automatic attendance using activity. I have checked the "autoattend" spot, assuming that this was all I needed to do, but ALL students get a P regardless of activity. Am I missing something? Is there documentation on this mod somewhere? I tried to find it and came up empty handed.
(I am using Moodle version 1.1.1 and Attendance version 0.1)
http://moodle.sourceforge.net/nightly/moodle-latest.tgz
and install it. This should fix your problem.
Russell Jungwirth
Russell:
Food for thought.
It would be sweet to be able to have the code give attendance "credit" for participation in forums or taking quizes, etc. Something that is able to be set for different values for each activity.
I don't know if this is a major kernal change or just changes to the modules.
ok, now I will shut up
Tony
This might not even be attendance's fault, but when I go through a user's activity and look for their "complete" activity, I'm getting this error whown in the list of attendances. (It might be where that user didn't have an attendance logged? I don't know)
Warning: Invalid argument supplied for foreach() in /home/marywebb/public_html/moodle/mod/attendance/lib.php on line 230
I'm using 1.2, updated last night.
This isn't critical to me, so no sweat if it doesn't get fixed.
Best wishes
Dale
Hi
Has there been any development on the Attendance module? The last I heard it is still unstable.
I'd be interested to hear how you are tracking attendance without this module. Do you use the logs?
Russell Jungwirth
Hi
Has there been any development on the Attendance module? The last I heard it is still unstable.
I'd be interested to hear how you are tracking attendance without this module. Do you use the logs?