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?

Show username and descending sort in stat_page
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Show username and descending sort in stat_page
#4309
Show username and descending sort in stat_page 7 Years, 7 Months ago Karma: 0
He.
I write from Italy, excuse me for my english.
I don't know PHP but I need to show in the stat_page (I think the file is: quiz_stat.html.php) the name of the user (or guest) and see the records not in order ascending but descending (the latest at top).
Someone can help me?
Thank'you very much.
Sandro
The administrator has disabled public write access.
 
#4321
Re:Show username and descending sort in stat_page 7 Years, 7 Months ago Karma: 670
Hello,

If you want to invert results ordering, open quiz_stat.html.php file and use the following code:

Code:


$results = array_reverse($processPage->getVar('results'));



instead of
Code:


$results = $processPage->getVar('results');



Regarding new column with user name, it requires additional coding and you can it by yourself. In other hand, quiz statistics page shows results only for current user and this column will contain the same values.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#4323
Re:Show username and descending sort in stat_page 7 Years, 7 Months ago Karma: 0
Ok, good.
Many thanks.
The administrator has disabled public write access.
 
Go to topPage: 1