I love the widget -- but I'd like to have the option of "Least Downloaded" so that I can help to drive traffic to my files that lack visibility because of low downloads. Is there some way to adjust the php in one of the files to do this?
I love the widget -- but I'd like to have the option of "Least Downloaded" so that I can help to drive traffic to my files that lack visibility because of low downloads. Is there some way to adjust the php in one of the files to do this?
And, now that I think about it, a RANDOM downloads selection in the widget would also be great!
Didn't test this but in wp-downloadmanger.php you could try copying the function get_most_downloaded to a function called get_least_downloaded, then change this:
$files = $wpdb->get_results("SELECT * FROM $wpdb->downloads WHERE file_permission != -2 ORDER BY file_hits DESC LIMIT $limit");
to this:
$files = $wpdb->get_results("SELECT * FROM $wpdb->downloads WHERE file_permission != -2 ORDER BY file_hits ASC LIMIT $limit");This topic has been closed to new replies.