xoops forums

limecity

Friend of XOOPS
Posted on: 2007/3/23 2:18
limecity
limecity (Show more)
Friend of XOOPS
Posts: 1602
Since: 2003/7/6 0
#1

Xoops image manager sort

Its very annoying when I have 20 pages of images
and when i upload a image i have to wait for them to load
just so I can scroll down to the bottom and click on the last page.


my question is.
how do i hack this image manager so it shows the newest one first on the first page instead of the last page?

or is there a config somewhere in the admin i can do this?
http://www.mounthiking.com
all your hiking gears and gadgets

limecity

Friend of XOOPS
Posted on: 2007/3/23 15:49
limecity
limecity (Show more)
Friend of XOOPS
Posts: 1602
Since: 2003/7/6 0
#2

Re: Xoops image manager sort

bump[
http://www.mounthiking.com
all your hiking gears and gadgets

suico

Friend of XOOPS
Posted on: 2007/3/23 16:12
suico
suico (Show more)
Friend of XOOPS
Posts: 374
Since: 2003/7/24
#3

Re: Xoops image manager sort

I am not at home, so I can't try it here to know if it works, but try doing this:

Open file image.php
go to line 52:
$criteria->add(new Criteria('i.image_id'$image_id));


add a line immediately under the line above:
$criteria->setOrder('DESC');


Come back here and tell me if it worked.

I hope to have helped you, if not I'll look at it at home for you with more tools to look at it it may work.
Yogurt Social Network Service
Visit: http://www.marcellobrandao.eti.br/