Posts made by Joseph Rézeau

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
Hello Frans,
Adding Javascript scripts anywhere in Moodle activities (such as Lesson, Quiz, Forums, etc.) is by default not allowed, for security reasons. Unfortunately you do not say which Moodle version you are using, but, starting with Moodle 1.7 an Admin can allow "trusted users" the the right to use such scripts snippets.
Joseph
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi David,

As I am currently working at tracking bugs & proposing some enhancements to the Questionnaire module, I will look into this problem ASAP and report here.

In the meantime if your priority is to rescue your results, I suggest simply renaming the questions which at the moment have exactly the same "field name". For example if you have 3 questions all named MYQUESTION in the Question Name field, go to Questionnaire edit mode (Update this Questionnaire) and rename them MYQUESTION1, MYQUESTION2 and MYQUESTION3 and save your questionnaire. You will be able to export your results to CSV/Excel correctly. I have just tested this and it works for me.

Joseph

EDIT.- Yes, the response_select_name function seems to be the culprit.

Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Mike, sorry but I do not really understand what your problem is. Let me re-formulate it.

In one of your Moodle courses, you go to the Questions bank, where you have created a certain number of Categories with a certain number of questions in each of them. When you created those Categories, did you make them private or public? i.e. did you click on the little eye icon in the Publish column? Anyway, now apparently when you are in your Questions bank, on the Questions tab, if you click on the Category dropdown list, none of your categories is shown? Is that so? But if you go to the Categories tab, can you actually see your categories in the Categories column? and in the Questions column can you see the number of questions available for each category?

If you could answer those questions it would allow us to get a clearer picture of your problem.

Joseph

Attachment image00.jpg
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Dear Giang,

There is unfortunately no direct method through the Moodle interface to bulk move glossary entries from one category to another. However, if you have access to your Moode site database, through phpMyAdmin, here's a little example illustrating how to do it.

Suppose in your Moodle course you have 2 glossaries: "Giang's glossary" and "Joseph's glossary". in "Giang's glossary" we have created 2 categories named Category A and Category B. in "Joseph's glossary" we have created 2 categories named Category C and Category D. Enter your Moodle mysql database using phpMyAdmin.

go to Table mdl_glossary to identify the id number of Giang's glosary, (extract below)

Id course name
2 2 Giang's glossary
3 2 Joseph's Glossary

In course id 2 we have Giangg's glossary id 2 and Joseph's glossary id 3

go to Table mdl_glossary_categories

identify the categories id

Id

glossaryid

name

usedynalink

4

2

category A

0

5

2

category B

0

6

3

category C

0

7

3

category D

0

In Giang's glossary (id 2) we have category A, id 4 and category B, id 5.

we want to move all glossary entries from category B (id 5) to category A (id 4).

In the sql query window, we type this command:

UPDATE `mdl_glossary_entries_categories` SET `categoryid` = '4' WHERE `categoryid` = '5';

or (without the queer apostrophes):

UPDATE mdl_glossary_entries_categories SET categoryid = '4' WHERE categoryid = '5';

Joseph