welford

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)

welford
Member
This reply has been marked as private.
in reply to: Sorting Download Files #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

in reply to: Sorting Download Files #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.

in reply to: Sorting Download Files #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.


welford
Member

Hi Shaon,

I’ve been looking at posts where people have had the same issue and have tried executing this SQL statement you mentioned:

ALTER TABLE `ahm_files` ADD `icon` VARCHAR( 255 ) NOT NULL

and adding the following code:

$wpdb->query(“ALTER TABLE `ahm_files` ADD `icon` VARCHAR( 255 ) NOT NULL”); – this was already in the code though

If I DROP the icon column from the ahm_files table, I am able to create new packages again but not able to select an icon as there is no column to save the data too, is there anything I can do to resolve this or is there an issue with my database?

Many thanks

Welford


welford
Member

@Shaon

Hi there, I’ve just upgraded to 2.4.1 and am still having the green box issue in all browsers unless I select an icon which I have never had to do before, any ideas what could be causing this?

Also could you tell me the shortcodes for the new sort feature added in 2.4.1

Many thanks

Welford


welford
Member

Hi Clarity,

I understand your workaround to get this to work as this is what I have done myself but this shouldn’t be happening, I have uploaded about 50 downloads without having to set an icon or modify anything in phpmyadmin, why all of a sudden would it now require us to select an icon to continue. If the plugin was meant to function that way wouldn’t it give us an error like “please select an icon” rather than just showing the user a small green box. Would this be a plugin issue or something else causing this erratic behaviour?


welford
Member

I am having the same issue with a little green box appearing and no download file being created, I am using Download Manager 2.4.0. I have tried this in IE8/9/10, Google Chrome, Safari and Firefox, I appear to be having the issue in all browsers. Is there a fix for this? I notice if I select a icon from down the bottom of the add new file page then the file is created but I have never had to do this before, I have verified this by going into the ahm_files table to check the icon column, no other rows have anything in the icon column apart from my latest entry as I have had to select an icon to make it work.

in reply to: Sorting Download Files #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.

in reply to: Sorting Download Files #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);

Viewing 10 posts - 1 through 10 (of 10 total)