TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 372
  • Total: 372

Download Manager Order Of Files

Started by Cokeman, September 22, 2007, 03:19:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cokeman

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.

G6Cad

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.

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.