problem with code

sanachr
hi! i look for change destination of finish button, i have created a test, that is composed with 2 quizzes. it seems to be one test, and when we translate from the first one to the second one the finish button redirect to a page that describe the second part with link to the second take. i want that the redirection of the finish button change according the nid node, so i added this code to the function: function finished() in quiz.module if($quiz->nid="76") { drupal_goto('quiz/104/verbal-section'); } elseif($quiz->nid="8") { drupal_goto(node/8/results); } the code here is statique to simplifie things for me and have a good result... but the button finish now, only redirect to quiz/104/verbal section, even when the quiz->nid is different of "76" even when it is "8" or any other nid. it does not care of the if or the elseif have an idea please, may be that i m coding in the wrong place!! thank you in advance Sanachr
sanachr

change look of quiz take page

hi every one, i need to change the look of the quiz take page, that the checkbox "doubtful" will be displayed before the "next" "finish" ...buttons where may i change to have this result.. thank you
Profile picture for user James Aparicio
James Aparicio

Hi sanachr, this was done on

Hi sanachr, this was done on our latest release.

Update the distribution and it will be working as you want it.

Best regards

sanachr

i made changes that i fear

i made changes that i fear loosing it, is there any patch for only this question. Best Regards
sanachr

this is grate, but it comes

this is grate, but it comes just after the question and before choices, i need it between choices and "next" question i think we have to add: " $form['choices']['#weight']=0;" between the 2 lines you add on opigno_quiz_app.module and change $form['is_doubtful']['#weight']=0; to $form['is_doubtful']['#weight']=1; I m not sure, can you rectifie please.. thank you a lot
Profile picture for user James Aparicio
James Aparicio

Hi sanachr,

Hi sanachr,

Set the weight of navigation to 50 for example and doubtfull to 49.

Best regards

sanachr

thank you... it have been

thank you... it have been solved!! Best Regards