TinyPortal
Development => Support => Topic started by: Cokeman on September 22, 2007, 03:19:09 AM
Is there any way to put the order of the downloads to be in newest files first. On my site it puts the newest at the end. Makes it harder to get to. Using smf 1.1.1 & TP 0.9.7
Also would like it to hide details until the title is selected. Is any of this possible? Thanks for any help you can give. & yes I am a complete newb to php & mysql.
At this time there is no settings insite TP that will do this, you have to manually change the code for how it is listed. Where and what code i dont know of.
There are two places the following line appears. I'm not 100% sure if they are whats going to change it, but its a quick guess by me. :) TPdlmanager.php in the Sources directory.
Find the following line and change ASC to DESC
ORDER BY a.downloads ASC", __FILE__, __LINE__);
Should be:
ORDER BY a.downloads DESC", __FILE__, __LINE__);
Cross your fingers and hope it works as you want now. :) Of course, make a backup before you do anything of the sort with your site.