alexanderjank

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
in reply to: Sorting Download Files #9509

I’ve found a way, to sort by date….
In the database-tabel “ahm_files”, you start with the mysql command:

ALTER TABLE `ahm_files` CHANGE `description` `description` DATE NOT NULL

Then go ahead to your WordPress and go to File Manager > Manage.
Edit waht you want and write the date of the file into the field for the description, it’s the tall field.
Edit the php-file of the manager and write “order by description asc” or “order by description desc” in the specified lines(600 or 345).
Now it is sorted by date.

in reply to: Sorting Download Files #9508

The tabel odf the manager is the ahm_files tabel.

in reply to: Sorting Download Files #9507

I’m working on sorting by date.
I must add a columm named date to the tabel “ahm_files”.
The plugin must only write the date of all new Downloads to the database.
And there you are.
The mysql command must be “order by date asc”
It’s a lot of work.

Thank you for replying.
Alexander Jank

in reply to: Sorting Download Files #9503

What schould this mean, I’m a German, I don’t understand it….

in reply to: Sorting Download Files #9501

You cannot sort the items by creation-date.
Because tthe creation-date is not given to the MySQL Database.

Thank you for your replys.
Alexander Jank, Germany

in reply to: Sorting Download Files #9498

I’ve written it before…
It’s line 345 to sort the files in the dropdown list by title.
It’s in #9494.
And, I know, we use two diffrent views, but I have fixed it for your view too, look at #9494.
And go to the link….
Under my method, there is your tree structure method.

in reply to: Sorting Download Files #9496

I’ve forgotten to say:
I’ve added the tree with your shortcode to my example.
look at:
http://test.alexanderjank.de/wordpress/downloads/

It’s in the end of this site.

in reply to: Sorting Download Files #9494

For theconsolidatedlodge,

In you thing, if you want to display the tree, you must edit line 345.
please replace:

$ndata = $wpdb->get_results(“select * from ahm_files where category like ‘%\”{$_POST[‘dir’]}\”%'”,ARRAY_A);

with this:

$ndata = $wpdb->get_results(“select * from ahm_files where category like ‘%\”{$_POST[‘dir’]}\”%’ order by title asc”,ARRAY_A);

I’ve added the file, for the tree and the category list to this post.

Thanks for replys.
Alexander Jank

in reply to: Sorting Download Files #9493

I’ve got the download manager free.
My shortcode:

{wpdm_category=download-site}

because, they are all in the category called download-site.

I’ve only made the changes in line 600 of the file.

Alexander jank

in reply to: Sorting Download Files #9491

hey donkeymusic, hey theconsolidatedlodge,

Ok, my Link was false, it was password protected.
New link to the Plugin on my testblog:
http://test.alexanderjank.de/wordpress/downloads/

Ok.
Thanks for a reply
Alexander Jank

in reply to: Sorting Download Files #9482

For theconsolidatedlodge;

It’s to much work, I think, to add a line with filter options, it will be to much work, because you must add the Line and there some buttons must appear, you must style them with a lot of css and gthen, the user can order them in the frontdend by name.
My solution, is for the frontednd and not for the backend.
I konw, that the letters in my example are ordered, it orders the files alphabetical.
I have now added my “download-manager/download-manager.php” in the txt format to post #9467.
Here is the Link to the file I have uplouded:

http://www.wpdownloadmanager.com/wp-content/uploads/2013/10/d-manager.txt

The SQL command, what does this work ist: “SELECT * FROM ‘ahm_files‘ WHERE ‘category‘ LIKE ‘%\”$id\”%’ ORDER BY ‘title‘ ASC”
It’ correct SQL syntax.

I have made a screensshot, later, I will add it to the post, I’ve got technical problems…

Thank you for replys.
Alexander Jank

in reply to: Sorting Download Files #9473

Oh, yes, i have forgotten the example:
Go to this Link:
http://test.alexanderjank.de/wordpress/downloads/

It’s our school WordPress.
I’m developing for my school.

in reply to: Sorting Download Files #9472

For theconsolidatedlodge;

I edited the file named “download-manager/download-manager.php” in the plugin, it’s 100% compatible with the new version 2.5.3.
But you must search with ctrl+f for “items” and there is only one result. The line 7 after the found word is the line, you must edit.
I updated the Post, what I have writte before this, there are the compatible things.
It’s line 600.
My change is into the MySQL command.

Thank you for a reply,
Alexander Jank

in reply to: Sorting Download Files #9467

For theconsolidatedlodge;

Ok, now I know it…
It’s not so good, that the developer hasn’t add this function, to sort by nme, but now, I guess, you must replace this:

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

wih this:

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

But it’s better, if you lokk in your dat-tabel, of the plugin an find out, wht, you want to sort.

Thank you for a reply,
Alexander Jank

in reply to: Sorting Download Files #9149

I must have it, How did you do that?
I thougt I must repalace the $id parameter with something like $name to sort it by name.
How did you do that?
It works at this website: http://culchethhigh.co.uk/the-eagle-newsletter/ .
If my English is not so good, I’m a German.

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