![]() |
Adding 10 latest referals section in statistics
I'm trying to add a 10 latest referals section to my statistics page.
I've copied and pasted the section from referals underneath it as a starting point, but I can't work out what is controlling the order that the referals are listed in. I mean the main referals list lists them in order of number of visits, I simply want to reorder them by last_visited. Any guidance on what I need to change? I can't tell which peice of code controls the order. I've pasted the code for the section below, this creates the new area, but at the moment it still feeds in the same referals data as normal Code:
{if ($referers_array != "")} Thanks Amy |
I've found it, I had to change the PHP file instead. In case anyone is wondering, this is how I did it (I haven't limited it yet to the latest 10)
display_stats.php I added: Code:
# and then changes the references in advanced_statistics.tpl to reference the latest_referrers_array instead of the array previously created. Amy |
All times are GMT -8. The time now is 01:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.