Flashcard module add-on: Reset card deck

Flashcard module add-on: Reset card deck

by Bonnie Anderson -
Number of replies: 7

I am using the flashcard module v.2011041602 with Moodle 2.0.3+ using Firefox 6.0.2 on a mac. 

I have not been able to reset the decks.

Logged in as the teacher, I can't find anything in the course settings that would let me reset the deck of cards.  I am using 4 decks, autodowngrade is on; for testing purposes, each of the autodowngrade times are set to 1 hour as are the review triggers. 

Logged in as a teacher, I choose the flashcard activity and click on one of the cards.  In addition to the "got it", "missed it" buttons, there is a reset cardset button.  Nothing happens when I push it.

I switch my role to student. I enter the flashcard module, click one of the cards, and click the reset cardset button.  The cardset remains as it was (1 card in hardest deck, 2 in next deck, none in decks 3 and 4).

I log in as a real student but get the same results.

I use Safari and run the tests again with the same results.

I've tried it with editing on and off, with students see grades and studens see activities on and off.

As the teacher, I enter the flashcard activity and click on Summary with students selected.  It says there are no students even though I have enrolled a student and then logged in as him and used the activity twice.

I know that I must be missing something - I hope someone can point me in the right direction.

 

Thanks so much,

Bonnie

Average of ratings: -
In reply to Bonnie Anderson

Re: Flashcard module add-on: Reset card deck

by Jon Wong -

I'm not sure about this, but isn't that reset button in relation to individual decks, and not to put all cards back to Hard?

As for the "No students enroled" problem, it's a bug. You didn't misss anything. I JUST fixed this bug yesterday. I'm rushing off now, so I can only get back to you about 6 hours later.

If you can do PHP, the bug is in 2 places: locallib.php and usersummaryview.php

In reply to Jon Wong

Re: Flashcard module add-on: Reset card deck

by Bonnie Anderson -

Thanks, Jon,

Thanks for the quick response.  I have three teachers who want to use the flash cards: AP European History, AP Art History, and Japanese I.  With all three courses, there is a lot of memorization so the flash cards could really be useful.  I'm especially pleased about the Japanese class.  I figured out how to write the hiragana letters!

If reset only resets the deck that you are working on, then it doesn't do more than I could by clicking on the continue button.  I guess I assumed that it would reset everything back to the hard deck so that students could start over again.  The  students need to review each deck several times during the year, practicing each time until all the cards are in the easy deck.

I see now that "autodowngrade" will restore the cards to the hard deck over time.  I have just turned it on and changed the hour settings to low numbers so I can observe the changes.

I do not know php.  Please let me know when you have the updated version so I can get the student scores.

Thanks again,
Bonnie

In reply to Bonnie Anderson

Re: Flashcard module add-on: Reset card deck

by Jon Wong -

Actually, I believe you can do that "reset" you want in the "Summary by User" tab (haven't confirmed this). I'm not in control of this Moodle module, so I can't really release any "updated version". It should take anyone just 5 minutes to fix that bug where "Summary by User" is not showing up. It's a fatal PHP error, by the way.

And I've got BAD NEWS for you about Flashcard module. I just found out (30 minutes ago) that it is totally devoid of permissions checks. That means, even students who are not enrolled in your Japanese course can use your Japanese Flashcards (an activity module). In short, the Flashcard module is absolutely NOT ready for production use.

I had wanted to add a Supermemo algo (more fine-grained than Leitner). But now, I'm gonna have to spend a week or more polishing the security aspects of the Flashcard module so that I can use it for production site.

Sorry, Bonnie. You won't be able to use the Flashcard module reliably for now. If you can get in touch with Tomasz Muras, maybe you can get him to make the Flashcard module production-ready. Get him to share the workload with me, perhaps.

 

/mod/flashcard/locallib.php line 83

Change:

global $CFG;"

to

global $CFG, $OUTPUT;"

/mod/flashcard/usersummaryview.php line 23

Change:

$courseusers = get_users_by_capability..."

to

$course = $DB->get_record('course', array('id'=>$COURSE->id), '*', MUST_EXIST);
$manager = new course_enrolment_manager($course);
$courseusers = $manager->get_users('lastseen');

In reply to Jon Wong

Re: Flashcard module add-on: Reset card deck

by Tomasz Muras -
Picture of Core developers Picture of Plugin developers Picture of Plugins guardians Picture of Translators

Hi guys,

I agree that FlashCards requires a lot of work. I only work on it in my free time, which has shrank recenlty because of the new addition to my family wink.

Jon, please fork the project on github and produce patches for whatever functionality you want to work on. I'll be reviewing & merging them.

cheers,
Tomek

In reply to Tomasz Muras

Re: Flashcard module add-on: Reset card deck

by Valery Fremaux -

Hi Tomaz

tell me,

how came the miss of access control on the 2.0 version you are working on ? I checked my 1.9 version. seems it controls the course access.

Do we have some changed in 2.0 API, or a distinct stating point ?

Regards.

In reply to Valery Fremaux

Re: Flashcard module add-on: Reset card deck

by Tomasz Muras -
Picture of Core developers Picture of Plugin developers Picture of Plugins guardians Picture of Translators

Jon,

Access control is there and it works just fine for me. Can you give me the steps to reproduce the problem?

Tomasz (Tomek) Muras

In reply to Jon Wong

Re: Flashcard module add-on: Reset card deck

by Tomasz Muras -
Picture of Core developers Picture of Plugin developers Picture of Plugins guardians Picture of Translators

Thanks for the fix Jon. Updated version with the fix is available on github - download link is the same.

The problem with the permissions is not dealt with yet!

Tomasz (Tomek) Muras