| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Sort Users Online statistics | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Sort Users Online statistics
I'm not sure why I can't sort in the Statistics -> Users Online screen, but it was driving me crazy each time I used it. In anycase, this is what I did to sort it by "Last Entry" Date:
Create a new file called modifier.sortby.php with the following code, and place it in your \include\lib\smarty\plugins\ folder. PHP Code:
Next, locate the following line in \skin1\modules\Users_online\stats.tpl: PHP Code:
Change it to this: PHP Code:
That's it. This will sort the "Users online" by last entry date in descending order. If you want it in ascending order, just remove the minus sign or replace it with a # sign. You can sort by multiple fields by separating them with a comma.
__________________
X-Cart 4.3.2 X-SpecialOffers |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|