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?

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 13 Years, 11 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 13 Years, 11 Months ago Karma: 747
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 13 Years, 11 Months ago Karma: 0
Ok, good.
Many thanks.
The administrator has disabled public write access.
 
Go to topPage: 1