Sorting Download Files

in Download Manager Free

Viewing 25 posts - 1 through 25 (of 58 total)
Mar 1, 2013 at 10:12 am
#4570
Member
donkeymusic
OP

Hello,

I have uploaded six documents in date order that they should appear to my site, http://culchethhigh.co.uk/the-eagle-newsletter/
However they appear out of order, is there anyway to re arrange their order?

thank you

Apr 15, 2013 at 9:59 am
#5644
Member
donkeymusic
OP

Any support with this would be much appreciated.

Thank you

Apr 15, 2013 at 11:19 am
#5653
Keymaster
Shahjada
Staff

you can apply order editing file download-manager.php at line #591
but we are adding the option with next update

Apr 15, 2013 at 11:20 am
#5654
Member
donkeymusic
OP

Hi Shaon,

How would i do this with the line 591?

When is the update due?

Thanks

Apr 15, 2013 at 11:34 am
#5655
Keymaster
Shahjada
Staff

within next week

Apr 16, 2013 at 8:18 am
#5688
Member
donkeymusic
OP

Can you advise how to make the change with this “you can apply order editing file download-manager.php at line #591”?

Thanks

Apr 17, 2013 at 8:24 am
#5723
Member
welford

Hi donkeymusic

Change line #591 to the following:

$ndata = $wpdb->get_results(“select * from ahm_files where category like ‘%\”$id\”%’ order by id desc limit $start, $item_per_page”,ARRAY_A);

Apr 17, 2013 at 8:57 am
#5724
Member
donkeymusic
OP

I get an error when adding that code, as shown in the attachment.

Would this change make me edit the sort fields in the back end or is it a live website change?

Apr 17, 2013 at 8:58 am
#5725
Member
donkeymusic
OP

here is the attachment

Apr 17, 2013 at 9:33 am
#5728
Member
welford

I just added the SQL command “order by id desc” after the current SQL Search query already on line #591 “select * from ahm_files where category like ‘%\”$id\”%’”. The SQL command just sorts the files into reverse order on the live front end that your visitors will see. I edited the download-manager.php file directly as I host the web server myself, I didn’t change any existing code, I only added to it, Maybe it’s error if you have copied the code directly from the forum, try putting your original download-manager.php file back on you server so all is working the just add the code “order by id desc” as I did. Hope this helps.

May 7, 2013 at 12:08 pm
#6083
Member
donkeymusic
OP

Hello, just updated the plugin and its reset my settings, i did believe the update was to allow the sorting without hacks, is this correct? as i cant see the option.

Or am i gonna need to re add the code above?

Thanks

May 8, 2013 at 12:31 pm
#6100
Member
welford

I have updated myself and couldn’t find any option either. I asked for the shortcode in an existing post as I thought the update would alow the same as you but have had no reply.

If I find anything out I will post and let you know. Please do the same if you manage to sort it out.

May 16, 2013 at 10:57 am
#6197

Did someone manage to sort this problem out?

May 16, 2013 at 11:02 am
#6198
Member
welford

Hi bradmillar, as of yet there has been no response to confirm the shortcode or what is required to do this in the latest version. I have downgraded to the previous version and added in the SQL to do it for me.

May 16, 2013 at 1:09 pm
#6199

Thanks Welford. Can you help me do the same? Where can I find the old version and how do I add SQL and what is the SQL I need to add? I would really appreciate help on this…

May 16, 2013 at 2:52 pm
#6202
Member
welford

Hi bradmiller, I have zipped and uploaded my copy of download manager 2.4.0 with the added code in the functions file, I have put it up for download on my school site, please use the link below to download it, If you could let me know once you have so I can remove it I would appreciate it.

http://www.welford.bham.sch.uk/download-manager-2.4.0.zip

The code I have added is on line #591, I just added the following to the SQL “order by id desc” so that it orders them the opposie way.

Hope this helps, Welford

May 17, 2013 at 1:59 am
#6213

You are a champion, Welford. Thanks so much! I have downloaded the file so you may remove it. Thanks again!

Jun 6, 2013 at 8:08 am
#6598
Member
donkeymusic
OP

Hi,

I was told in a previous post that sorting and filtering downloads would be available in the latest release, i think there has been two releases since and no sorting option is available.

I would like to revert back to the old version where i could list them, would it be possible to the get the file from above relisted? If Welford or Brad could do that it would be much appreciated.

Thanks

Jun 6, 2013 at 8:18 am
#6599

Hi there. I chose the online support help section on this site and a chap asked for a temporary FTP password from me and did the coding for me. He was a great help! http://www.wpdownloadmanager.com/live-support/

Aug 30, 2013 at 1:21 pm
#8218

Did the ever get resolved? I am running WPDM v 2.4.9 and would like to be able to sort my documents by name. Unable to do so. I seem to already have the code mentioned for Line 591.

Aug 30, 2013 at 1:35 pm
#8219
Member
donkeymusic
OP

Nope and i sent a live-support message for which i never heard back

Aug 30, 2013 at 2:20 pm
#8222

Thanks for the reply. I suppose I should be thankful that I didn’t purchase the Pro version yet!

Sep 16, 2013 at 2:35 pm
#8530
Member
donkeymusic
OP

still waiting on a response, this is very poor from the developers for such a standard option

Sep 19, 2013 at 3:03 am
#8653
Keymaster
Shahjada
Staff

we didn’t implement sorting option yet as wpdm is moving to custom post type with next update, so be patient please 🙂

Sep 19, 2013 at 7:36 am
#8672
Member
donkeymusic
OP

Thanks for replying Shaon.

Im sure the custom sorting function would be the most valuable addition to sorting files and in post three of this thread from yourself you said in April “you can apply order editing file download-manager.php at line #591 but we are adding the option with next update” These updates have been and gone without the function being added.

What is custom post type?

Viewing 25 posts - 1 through 25 (of 58 total)

The topic "Sorting Download Files" is closed to new replies.