Disable "back" option

Added by y g 770 days ago

Hello,

First of all - great component.

Second, Is there an option to remove the "back" option, and even better, make it go to next when choosing an answer?
I was also wondering is there a way to limit time for each question separately?

Thanks in advance, and best regards
Thunder


Replies

RE: Disable "back" option - Added by Mohamed Tougorti 769 days ago

Hello,

Thank you for using JQuarks,

The next and back link are not parametrable at the moment, but if you need the back link removed from all your quizzes you can edit

BASE_SITE/components/com_jquarks/views/quiz/tmpl/default.php

and comment/remove lines 366-370 (the code adding the back link)

As for time limit it is set at the quiz level and is not possible to limit time for each question separately. I would recommend reporting these as Request features in our dedicated thread

Regards

RE: Disable "back" option - Added by y g 769 days ago

Hello Mohamed and thank you for the quick reply.

I tried commenting or deleting the part below (eventually deleted the whole else) but unfortunately it didn't work.

else {
//echo '<span class="jquarks_qprog"><a id="jquarksPage_' . $pNum . 'back" href="#">' . JText::_('BACK') . '</a>
// |
// <a id="jquarksPage_' . $pNum . 'next" href="#">' . JText::_('NEXT') . '</a>'
// . '<p>' . JText::_("PAGE") . ' ' . $pNum . ' / ' . $nbrPage .'</p>'
// . '</span></div>' ;
}

Do I need to "refresh" the component in some way (I can't restart the Apache server)?

The sample quiz's I've created still have the back option (same, but "rhyme" was created before I made the change and "test" after it).
http://rhyme.stamshem.co.cc/index.php?option=com_jquarks&view=quizzes&Itemid=2

Thanks!

RE: Disable "back" option - Added by Mohamed Tougorti 769 days ago

Sorry, I forgot to mention lines 361 - 362

It should work once you comment those two lines too.

Regards.

RE: Disable "back" option - Added by sree raj 689 days ago

Still its not working...i removed all line as per your details..

RE: Disable "back" option - Added by sree raj 689 days ago

sree raj wrote:

Still its not working...i removed all line as per your details..I am using .3.0 version

Reply