Joseph
Joseph Rézeau
Posts made by Joseph Rézeau
Joseph
change
if ($entry = get_records_sql(' SELECT concept, definition, format '.
' FROM '.$CFG->prefix.'glossary_entries'.
' WHERE glossaryid = '.$this->config->glossary.
' AND approved = 1 '.
'ORDER BY timemodified '.$SORT, $limitfrom, $limitnum)) {
to
if ($entry = get_records_sql(' SELECT concept, definition, format '.
' FROM '.$CFG->prefix.'glossary_entries'.
' WHERE glossaryid = '.$this->config->glossary.
' AND approved = 1 '.
'ORDER BY concept '.$SORT, $limitfrom, $limitnum)) {
Hi Joseph (or is it Len?),
Please remember the usual forum rule: only one question per post.
I will address your question #1, re the order in which glossary entries are displayed in the Random Glossary Entry block.
You are correct, when you select Next Entry, the online Help says: The option Next entry will cycle through the entries in order. Unfortunately it does not specify that "in order" means in the order in which the entries were created in the Glossary, not the alphabetical order, as you wish.
The way these settings work should be improved in Moodle core, and I will post a report in the bug tracker. When I've done that I will put the bug tracker report reference here so that you (and other interested moodle users) can vote for it.
By the way your idea of having a sequence of 2 "Random Glossary Entry" blocks, one with the "puzzle of the day" and the other with the solution (but on the following day) is quite ingenuous.
Joseph
Joseph
I would also be interested in seeing the actual questions text. Beat, can you please answer all of the questions I asked you in my previous post?
Thanks in advance,
Joseph