If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Top Downloads - sort by description in Admin page?  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello!

I need help if someone knows how.
I would like to have my files in Top Downloads administration page to be sorted by description (not by file_id as default). It would be easier for me to work with table sorted by descriptions, because I have many files and descriptions tell me categories and themes, by file names it is very hard to find wanted file very fast.
Is it possible? I don`t know Perl so I am digging in dark in that download.pl file trying to swap places of variables but I canot make it sort the table my way.

Is it too much to ask (is much programming needed?) or is it just few lines that need to be changed? Maybe someone can direct me which lines to change? I would appreciate it.
Thank you in advance.

__
VeSn@
www.moljac.hr
http://foto.moljac.hr
http://vesnin.moljac.hr
Anonymous



there is a sort function somewhere in the code


foreach $file (sort {$descript_array{$a} cmp $descript_array{$b}} (keys(%descript_array))) {
...


but i don't know much about perl
Anonymous



Hi!

I found a kind of workaround at MSDN Microsoft site:
MSDN Sort Table Behaviour

Easy to apply to any html table anywhere. Gives the possibility to sort by clicking at any table column and to sort descending by clicking second time. Very practical.
So what I did just found that Admin table in download.pl and put in <table> tag link to behaviour I downloaded from MSDN site. Cool!

__
VeSn@
www.moljac.hr
http://foto.moljac.hr
http://vesnin.moljac.hr
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum