Sorting Download Files

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

donkeymusic
Member

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

#5644

donkeymusic
Member

Any support with this would be much appreciated.

Thank you

#5653

Shahjada
Keymaster

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

#5654

donkeymusic
Member

Hi Shaon,

How would i do this with the line 591?

When is the update due?

Thanks

#5655

Shahjada
Keymaster

within next week

#5688

donkeymusic
Member

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

Thanks

#5723

welford
Member

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);

#5724

donkeymusic
Member

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?

#5725

donkeymusic
Member

here is the attachment

#5728

welford
Member

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.

#6083

donkeymusic
Member

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

#6100

welford
Member

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.

#6197

bradmillar
Member

Did someone manage to sort this problem out?

#6198

welford
Member

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.

#6199

bradmillar
Member

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…

#6202

welford
Member

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

#6213

bradmillar
Member

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

#6598

donkeymusic
Member

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

#6599

bradmillar
Member

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/

#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.

#8219

donkeymusic
Member

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

#8222

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

#8530

donkeymusic
Member

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

#8653

Shahjada
Keymaster

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

#8672

donkeymusic
Member

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.