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?

Setting questions and quizzes by default
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Setting questions and quizzes by default
#60168
Setting questions and quizzes by default 7 Years ago Karma: 2
Hello!

What changes need to be made to the code so that by default, when creating any questions, such values are set?

Pic 1

Pic 2
Last Edit: 2017/04/19 10:37 By stepan39.
The administrator has disabled public write access.
 
#60169
Re:Setting questions and quizzes by default 7 Years ago Karma: 747
Hello,

For example if want to change default value for "Score" parameter on question settings page, open <joomla_directory>/administrator/components/com_ariquiz/tables/questionversion.php file and replace the following code:

Code:


var $Score = 0;



with the following one:

Code:


var $Score = 1;



Regards,
ARI Soft
The administrator has disabled public write access.
 
#60170
Re:Setting questions and quizzes by default 7 Years ago Karma: 2
Thanks, its work.

And how to put a check mark by default on Random Order? (Pic.2)
The administrator has disabled public write access.
 
#60180
Re:Setting questions and quizzes by default 7 Years ago Karma: 747
Open
Code:

<joomla_directory>/administrator/components/com_ariquiz/kernel/Application/ARIQuiz/Questions/Types/class.SingleQuestion.php
file, find "getExtraDataFromXml" method and replace the following code:

$data = array('randomizeOrder' => false, 'view' => 0);

with the following one:

$data = array('randomizeOrder' => true, 'view' => 0);

Regards,
ARI Soft
Last Edit: 2017/04/20 20:04 By admin.
The administrator has disabled public write access.
 
#60182
Re:Setting questions and quizzes by default 7 Years ago Karma: 2
Thanks, its work!
The administrator has disabled public write access.
 
Go to topPage: 1