You are here:  » Sort Feeds on Admin Page

Support Forum



Sort Feeds on Admin Page

Submitted by Harry on Thu, 2010-01-28 13:09 in

Hello David,

is it possible that the feeds on the admin page will be displayed and ordered so that "registered" feeds are listed first and then "unregistered/deregistered" feeds? (old version).

Regards,
Harry

Submitted by support on Thu, 2010-01-28 13:21

Hi Harry,

In admin/index.php, look for the following code on line 90:

asort($filenames);

...and REPLACE that with:

function cmp($a, $b)
{
  if (
     isset($feeds[$a]["registered"])
     &&
     !isset($feeds[$b]["registered"])
     )
     {
       return -1;
     }
     else
     {
       return strcmp($a,$b);
     }
}
usort($filenames,"cmp");

Hope this helps!

Cheers,
David.

Submitted by Harry on Thu, 2010-01-28 13:44

Not yet tested, but it makes sense.
Very helpful ! Thanks David.