Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Reg New question Type adding in quiz
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 12345678...11
TOPIC: Reg New question Type adding in quiz
#5057
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 0
Thanks for giving response
It is very helpful

If i upload a picture in questions ...
How can i store that picture to see from admin side like results..


Thanks and Regards
Phaneendra Chennupati
The administrator has disabled public write access.
 
#5059
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 746
It depends on your implementation, you can store it on a disk or in a database.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#5061
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 0
can i put validation for image upload button...
like answering question

and also i added one question type 'Upload picture'
when saving question it asks please put answer
i dont want that validation

how can i remove that one for my question



Regards
Phani
The administrator has disabled public write access.
 
#5063
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 746
You can add validators in the following file:

<joomla_dir>/administrator/components/com_ariquizlite/templates/question_add.html.php

or in file for new question type.

If you want to disable questions validator, remove the following code in question_add.html.php file:

Code:


aris.validators.validatorManager.addValidator(
new aris.validators.customValidator('zQuiz[Question]',
function(val)
{
var isValid = true;
<?php echo $editor->save('zQuiz[Question]') ; ?>
var value = val.getValue();
isValid = (value && value.replace(/^\s+|\s+$/g, '').length > 0);

return isValid;
},
{emptyValidate : true, errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionRequired'); ?>'}));

aris.validators.validatorManager.addValidator(
new aris.validators.requiredValidator('tbxScore',
{errorMessage : '<?php AriQuizWebHelper::displayResValue('Validator.QuestionScoreRequired'); ?>'}));



Regards,
ARI Soft
The administrator has disabled public write access.
 
#5064
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 0
I want to delete the validation for my question only

above logic deletes the validations for all types of questions

regards
Phani
The administrator has disabled public write access.
 
#5067
Re:Reg New question Type adding in quiz 13 Years, 9 Months ago Karma: 746
You can check class name of your question and add or not validator to the page. $className PHP variable is available on this page. You can use something like this:

Code:


<?php
  if ($className != 'YOU_QUESTION_CLASS_NAME'):
?>
... Validator code goes here ...
<?php
  endif;
?>



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12345678...11