download manager output

Creating and modifying plugins.
Post Reply
Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 7:59 pm
Contact:

download manager output

Post by Xanthouos » Mon Mar 16, 2009 1:23 pm

How do I go about re-arranging the display of down loadable items?
I changed the item ID in the DB, to correspond with the desired sequence but it seems it's based on something else (timestamp maybe?)

So how do I make it output according to the mysql ID?

TIA!!!
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: download manager output

Post by garvinhicking » Mon Mar 16, 2009 1:36 pm

Hi!

In that case you would need to edit serendipity_event_downloadmanager.php and replace every occurence of "order by timestamp" to "order by id".

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 7:59 pm
Contact:

Re: download manager output

Post by Xanthouos » Mon Mar 16, 2009 2:53 pm

garvinhicking wrote:Hi!

In that case you would need to edit serendipity_event_downloadmanager.php and replace every occurence of "order by timestamp" to "order by id".

HTH,
Garvin


Thank you Garvin. That definitively makes sense. Although, I get "Search string 'order by timestamp' not found!"

Any other ideas? :-)
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: download manager output

Post by garvinhicking » Mon Mar 16, 2009 3:40 pm

Hi!

search for "order" only, and check how the followup-text is. Maybe it's with more whitespace characters in between.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 7:59 pm
Contact:

Re: download manager output

Post by Xanthouos » Mon Mar 16, 2009 3:52 pm

garvinhicking wrote:Hi!

search for "order" only, and check how the followup-text is. Maybe it's with more whitespace characters in between.

Regards,
Garvin


No, sorry. Only " border=\"0\" "
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: download manager output

Post by garvinhicking » Mon Mar 16, 2009 4:14 pm

Hi!

Make sure you search case-insensitive.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Xanthouos
Regular
Posts: 115
Joined: Wed Mar 02, 2005 7:59 pm
Contact:

Re: download manager output

Post by Xanthouos » Mon Mar 16, 2009 4:39 pm

:roll: Sorry for my simplicity! :-D
That was the trick. Found it, changed it, WORKS! Hopefully I'll have a happy "client" (pro-bono work ;-) )

Again, thank you Garvin for your dedication to S9Y. This is just one of the many reasons I love this project.
Keep up the good work!
If you can't be a missionary, you can support a missionary.
~~~~~~~~~~~~~~~~~~~~~
www.GetMepis.com

Post Reply