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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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?

How to modify default values ?
(1 viewing) (1) Guest
component
Go to bottomPage: 12
TOPIC: How to modify default values ?
#57661
How to modify default values ? 9 Years ago Karma: 0
Hello,

I would like to modify the default value of "Anonymous access" when an administrator creates a quiz.

Now it's on "Ye"s, but I would like the default value be "No".

How can I do that ?

Thanks for your help,

E.G
E.G
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#57662
Re:How to modify default values ? 9 Years ago Karma: 764
Hello,

Open <joomla_directory>/administrator/components/com_ariquiz/models/forms/quiz/quiz.xml file and replace the following code:

Code:


<param type="list" name="Anonymous" default="Yes" label="COM_ARIQUIZ_LABEL_QUIZANONYMOUS" description="COM_ARIQUIZ_DESCR_QUIZANONYMOUS" massedit="1" dimension="2">
<option value="Yes">COM_ARIQUIZ_LABEL_YES</option>
<option value="No">COM_ARIQUIZ_LABEL_NO</option>
<option value="ByUser">COM_ARIQUIZ_LABEL_BYUSERWISH</option>
</param>



with the following one:

Code:


<param type="list" name="Anonymous" default="No" label="COM_ARIQUIZ_LABEL_QUIZANONYMOUS" description="COM_ARIQUIZ_DESCR_QUIZANONYMOUS" massedit="1" dimension="2">
<option value="Yes">COM_ARIQUIZ_LABEL_YES</option>
<option value="No">COM_ARIQUIZ_LABEL_NO</option>
<option value="ByUser">COM_ARIQUIZ_LABEL_BYUSERWISH</option>
</param>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#57665
Re:How to modify default values ? 9 Years ago Karma: 0
Unfortunately that I did and it's alway on Yes.

The only way to have "No" by default is only if I remove the "<option value="Yes">COM_ARIQUIZ_LABEL_YES</option>".

Is ere another file where default values are defined ?

I have the same problem for each default value in quiz.xml.
E.G
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#57666
Re:How to modify default values ? 9 Years ago Karma: 764
Sorry, change it also in <joomla_directory>/administrator/components/com_ariquiz/tables/quiz.php file. Change value of "Anonymous" variable from "Yes" to "No".

Regards,
ARI Soft
The administrator has disabled public write access.
 
#57667
Re:How to modify default values ? 9 Years ago Karma: 0
Thanks, it works now.
E.G
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#57672
Re:How to modify default values ? 9 Years ago Karma: 0
Hello,

How can I do if I want "Passed Score" be by default "80" and no "0" ?

Thanks for your help,

EG
E.G
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12