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


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

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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, 5 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, 5 Months ago Karma: 667
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