New Dmitry's version of attendance block (v1.0.7)

New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Number of replies: 26
Picture of Core developers Picture of Plugin developers
1.0.7 - 25 feb 2006 - Dmitry Pupinin [moodle.org member]
+ user's pictures added to Report and Update pages
+ icons (edit, delete) taking from themes
+ possibility to add sessions for every week or using period
* Postgres support improved
* supporting servers with php directive "short_open_tag=Off" (was used only <?php tag)
* bug fixed: Division by zero
* bug fixed: Notice displayed if selected group is empty
! not a bug: Adding multiple sessions cause warning and don't work (see description on http://moodle.org/mod/forum/discuss.php?d=38987#186029)

As usual you can get latest version of block from CVS (contrib/block_attendance)
or download daily build:
http://download.moodle.org/download.php/modules/block_attendance.zip
Average of ratings: -
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Paul Perger -

Hi Dmitry,

I updated the German language files. Here they are!

Paul

In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Nick Young -
Excellent mod.

When I install it,it does the usual install, I save the new settings and get the following error:

"Sorry, but your session key could not be confirmed to carry out this action"

I have attempted the install on the Moodle 1.5.3 along with MySQL 4.3 and PHP 4. This mod looks cool, if only I could use it. I know this problems has been shown elsewhere, but there dosnt appear to be any definitive security safe solution. Any ideas? It also dosn't allow me to do anything else, adding sessions for example.

Nick
In reply to Nick Young

Re: New Dmitry's version of attendance block (v1.0.7)

by Nick Young -
Ok, I have now tried this mod on a Linux system and it seems to work.  Obviously there is either something different in the Windows set-up or I have mis-configured it some how.

Nick
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7) - bug?

by Miroslav Fikar -
Dmitry,
some of the links in logs for attendance point to a wrong directions. For example "attendance student view" points to /mod/attendance/index.php?course=XX. I assume that it is caused by add_to_log function that has sometimes argument like blocks/attendance/index.php, but sometimes only index.php, but I am not sure.
In reply to Miroslav Fikar

Re: New Dmitry's version of attendance block (v1.0.7) - bug?

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
Yes. It is bug, but not my... wink
As I understood, Moodle not anywhere support blocks as full-fledged unit. It's apply to add_to_log.

Probably I should reform this block with module into module with auxiliary block.
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Gustavo Berman -
This is the first time that I'm using this block.
It's what I needed and it's working allright (at least for what I'm using it for)

Thanks Dimitry!!!!
It's a great block!

In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Wonderful! I got it to install and got almost everything to work flawlessly.  I just can't figure out how to get this block to interact with the gradebook.  I have installed the necessary Mod but....?

Jason
In reply to Jason Hollowell

Re: New Dmitry's version of attendance block (v1.0.7)

by Jason Hollowell -
Picture of Particularly helpful Moodlers
Sorry, I guess I need to be patient.  I played with it for a while and figured out how to use the attforblock mod.  Thanks Dmitry for this very useful block and mod.

Jason
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Andy Tagliani -
Hi Dmitry

I have some errors when downloading the reports as excel- or textfile

see follow (german installation v1.53 downloading textfile)
Teilnehmer ID    Nachname    Vorname    <br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/srv/www/htdocs/xxxx/wwwroot/moodle/blocks/attendance/lib.php</b> on line <b>133</b><br />

see follow (german installation v1.53 downloading excelfile)
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/srv/www/htdocs/xxxx/wwwroot/moodle/blocks/attendance/lib.php</b> on line <b>84</b><br />

I remember these analog errors from the former attendance module, and i remember if i delete these lines (133, 84) the function (download) works fine without any error. I´ve try it and it works! Thanks for sharing your works with us!

Bye Andy
In reply to Andy Tagliani

Re: New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
Did you delete 84 and 133 lines? wide eyes
And is export still worked? wide eyes
Did you see result of export after lines were deleted?

What version of attendance block do you use?
You can see it in /blocks/attendance/block_attendance.php (line 9)
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Andy Tagliani -
Hi Dmitry,

$this->version = 2006041502;
$this->release = '1.0.7+';

It try it at the moment and see that the errors are gone, but the export to textfile and excel shows no entries. In the modul self shows me the report correct, see attachment. I will try something next days, to find a solution for me, hopefully for all.

Bye Andy
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Deon Metelski -
Hi Dmitry,

We have been using your block for awhile now. One thing here in the states my teacher's keep getting confused on is that our date format is generally month/day/year and in the block and setup it is day/month/year. Any code I can change for the month/day/year format to make it easier for them?

Thank you,
Deon
In reply to Deon Metelski

Re: New Dmitry's version of attendance block (v1.0.7)

by Deon Metelski -
Follow-up:

Found it in the language file. Just switched the variables %%d and %%m.

Deon
In reply to Deon Metelski

Re: New Dmitry's version of attendance block (v1.0.7)

by A. T. Wyatt -
I had a hard time finding this!  So I will show anyone who needs it what to look for (this is after I changed the order).

$string['strftimedm'] = '%%m.%%d';
$string['strftimedmy'] = '%%m.%%d.%%Y';
$string['strftimedmyw'] = '%%m.%%d.%%y&nbsp;(%%a)';
$string['strftimeshortdate'] = '%%m.%%d.%%Y';

atw
In reply to A. T. Wyatt

Re: New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
I can change it to more usual for english and other languages.
Please, write how should it will be!
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by piersante sestini -
1)I changed the labels of an attendance block (P A L E) to different ones. The new legends show correctly when recording attendance. Still when I call the summary, the program still shows the original ones. My students are upset because I changed the second entry A(bsent) to a B(uono)=good. So they seem to get an absence while they should have a good mark (the final score is correctly computed with the new values, though). It is possible to show the updated labels in the summary too?

2)How do I use cvs to update my installation?
I tried :
cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/contrib/block_attendance login

but I got:
cvs login: authorization failed: server moodle.cvs.sourceforge.net rejected access to /contrib/block_attendance for user anonymous

sad

thanks,
Piersante
In reply to piersante sestini

Re: New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
1) Yes. I see it. I try to correct this bug for few days.
2) You can just download archive (see in first post). It is daily build.
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by piersante sestini -
Thanks!
It would be also useful to be able to set to which code attendance will default in case of missing data (currently stays to the second code ("A"), no matter how you change it).

Piersante
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
1) Fixed. You can download daily build.
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Miguel Bayón -
I tried to download the build diary version and I had have sucess but when I try uncompress an error appears saying that file is wrong. ¿Is it only a problem of my computer?

(Sorry for my english!)
In reply to Miguel Bayón

Re: New Dmitry's version of attendance block (v1.0.7)

by Dmitry Pupinin -
Picture of Core developers Picture of Plugin developers
>Is it only a problem of my computer?

I think yes. Will try download again or use another decompressor.
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)--MOODLE 1.6

by Bhupinder Singh -

Hi Dmitry,

Just a small question.

Does it work in 1.6 Stable???

Regards

 

Garry

 

In reply to Bhupinder Singh

Re: New Dmitry's version of attendance block (v1.0.7)--MOODLE 1.6

by Michael Deane -
I had some problems in an older version of 1.6. Haven't tried the stable release yet.
In reply to Michael Deane

Re: New Dmitry's version of attendance block (v1.0.7)--MOODLE 1.6

by Michael Deane -
Have just tried an insall on 1.6 stable and it hangs on the admin page. Seems it is tied up with the block. Installing attfor block mod shows an error finding a page in the block (as expected). However installing the block/attendance folder causes the admin page to remain blank.

Will have more of a look when I upgrade my devel server to 1.6.

Cheers
In reply to Dmitry Pupinin

Re: New Dmitry's version of attendance block (v1.0.7)

by Ne Nashev -
with enabled visible groups i have some inconsistency:

when i select to show all users, i see all students
but when i select some group, i see all users in a group - and students, and teachers.

i forgot what i need to make teachers visible, for example, in assignment's senders list but i think here must be same situations.