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?

Help me find the proper file for {$UserScore}
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Help me find the proper file for {$UserScore}
#4365
Help me find the proper file for {$UserScore} 13 Years, 10 Months ago Karma: 0
Hello people,
I've been looking for class, function or what ever is there that generates number for {$UserScore} I don't want to show {$UserScore} / {$MaxScore} I want to show name of group.
I just want to find class where that algorithm is and instead of returning number, place that number in switch and return the name of group in which the student is assigned by his grade.
for example:

switch ( $UserScore )
{
case 1:
return "starter";
break;
case 2:
return "intermediate";
break;
case 3:
return "upper-intermediate";
break;
case 4:
return "advance";
break;

}

so that, when I'll use {$UserScore} in text template it will show the name of group not the grade.

thank you in advance and sorry for disturbing
sincerely Irakli Amaghlobeli
The administrator has disabled public write access.
 
#4366
Re:Help me find the proper file for {$UserScore} 13 Years, 10 Months ago Karma: 746
Hello,

You can open <joomla_dir>/administrator/components/com_ariquiz/kernel/Controllers/class.ResultController.php file, find method 'getFinishedResult' (line #195), add new predefined variable for text templates into $obj array and then use it in text templates.

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