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?

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} 7 Years, 6 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} 7 Years, 6 Months ago Karma: 670
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