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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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 ? 1 Year, 7 Months 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 ? 1 Year, 7 Months ago Karma: 670
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 ? 1 Year, 7 Months 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 ? 1 Year, 7 Months ago Karma: 670
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 ? 1 Year, 7 Months 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 ? 1 Year, 7 Months 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