[solved]Picture not displayed in questions with lines

Arnaud01
Forums
Hello, I try to use Drag and Drop questions with lines. The picture is not displayed when the student takes the quiz. There is the same problem for png or jpg files. Here is a screenshot : http://apprentisage.myopigno.org/sites/apprentisage.myopigno.org/files/… Thank you for your help,
Profile picture for user James Aparicio
James Aparicio

Hi Arnaud01,

Hi Arnaud01, Inside the quiz_ddlines module, that is inside the quiz module, there is a file called quiz_ddlines.classes.inc. Inside that file you find a function called getAnsweringForm. Almost at the end of that function you find $form['#attached']['js'][] = array( 'data' => array( 'quiz_ddlines' => $default_settings ), 'type' => 'setting' ); Please remove this and add drupal_add_js(array('quiz_ddlines' => $default_settings), 'setting'); This should fix your problem. The contrib module quiz got recently updated. We will check why these settings are not being set by the form and patch it for our next release. Thank you for finding this bug, and please let us know if this solved your problem. Best regards
Profile picture for user James Aparicio
James Aparicio

https://drupal.org/node

https://drupal.org/node/2212789
Profile picture for user James Aparicio
James Aparicio

I noticed you are using our

I noticed you are using our SAAS and dont have access to the code. I will push this to the saas server. Best regards
Profile picture for user James Aparicio
James Aparicio

Pushed to the saas server.

Pushed to the saas server.
Arnaud01

Thank you for this fix.

Thank you for this fix. Now, I see the map. As an admin, I can move the label or the lines but as a student, I can't. This is not working. I wonder if it's a permission problem...
Profile picture for user James Aparicio
James Aparicio

Hi Arnaud,

Hi Arnaud, Are you still having this problem? Best regards
Arnaud01

Hi,

Hi, Yes, I'm still having this problem. For an administrator or a student manager, it works, we can move the labels or the lines but for a simple user, it doesn't work. Thank you for your help,
Profile picture for user James Aparicio
James Aparicio

Hi Arnaud01,

Hi Arnaud01, I created a normal user on your instance (jamestesting). And took the quiz "Écrire les mots" that has the question (number 6) "france and pologne". And it worked. I was not able to replicate this on your website. Best regards
Arnaud01

Oh, yes I see.

Oh, yes I see. I was due to a Firefox profile. It works fine on the others profiles. Thank you very much for your attention, Arnaud