This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[web interface] How to change sort ?

Tags: None
(comma "," separated)
c3l3r1on
Registered Member
Posts
4
Karma
0
Like in topic, i dont know how to change web interface sorting (id's), and i dont know which metod of sorting is in use. Can smbd help ?
George
Moderator
Posts
5421
Karma
1

Tue Nov 20, 2007 5:59 pm
Sorting of what ?
Zajec
Registered Member
Posts
53
Karma
0

Tue Nov 20, 2007 8:51 pm
George wrote:Sorting of what ?
Sorting torrent by file/status/size/etc. Is this possible using some KTorrent core function or we have to implement this using PHP?
Zajec
Registered Member
Posts
53
Karma
0

Tue Nov 20, 2007 9:26 pm
BTW. everything I really can do about developing KTorrent is improvming WebGUI.

So if there isn't ready method for sorting torrents and that has to be done using PHP, just let me know. I'll do this with pleasure and other developers will able to spend their time doing something I'll never able to :-)


P.S.
Currently php_interface.cpp uses something that:
Code: Select all
                QPtrList<TorrentInterface>::iterator i= core->getQueueManager()->begin();
                for(int k=0; i != core->getQueueManager()->end(); i++, k++)
George
Moderator
Posts
5421
Karma
1

Wed Nov 21, 2007 6:23 pm
In the normal GUI we rely on Qt to do the sorting, so there is no internal stuff which can do this.

Can't we do this with javascript ? So we can be all web 2.0 ish, and we don't have to actually go back to the server to update the page.
Zajec
Registered Member
Posts
53
Karma
0

Wed Nov 21, 2007 8:52 pm
George wrote:Can't we do this with javascript ? So we can be all web 2.0 ish, and we don't have to actually go back to the server to update the page.
Will be done, just give me a few days :-) Well, "done" maybe with one little exception?

Default skin doesn't depend on JavaScript and I think it would be nice to keep this state. So my suggestion is to use JavaScript by default but also implement some server-side method. Of course everything would be transparent for end-user. May I do this in such a way? Or there are some objections?
George
Moderator
Posts
5421
Karma
1

Thu Nov 22, 2007 1:43 pm
Zajec wrote:
George wrote:Can't we do this with javascript ? So we can be all web 2.0 ish, and we don't have to actually go back to the server to update the page.
Will be done, just give me a few days :-) Well, "done" maybe with one little exception?

Default skin doesn't depend on JavaScript and I think it would be nice to keep this state. So my suggestion is to use JavaScript by default but also implement some server-side method. Of course everything would be transparent for end-user. May I do this in such a way? Or there are some objections?


How about javascript for coldmilk and server side for the default (using an additional URL argument)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]