News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Need help updating "Sorted Package Manager Listing" for SMF 2.1

Started by live627, December 02, 2018, 03:59:12 AM

Previous topic - Next topic

live627

I am trying to update Sorted Package Manager Listing for SMF 2.1 and have it mostly functional. It sorts based on install/uninstall status, but limits listings to one mod each.

If I remove

elseif (isset($sort_id[$packageInfo['state']]))
{
$sort_id[$packageInfo['state']]++;
$packages[$packageInfo['state']][strtolower($packageInfo[$sort])] = md5($package);
$context['available_' . $packageInfo['state']][md5($package)] = $packageInfo;
}


all mods become visibly listed.

I'm having great difficulty understanding the relevant code in Packages.php, let alone figure out what is wrong with my code.

Help please?

[Attachment removed]

Arantor

Wouldn't you just sort by time installed (unless that got removed when I wasn't looking?)
Holder of controversial views, all of which my own.


Illori

Quote from: Arantor on December 02, 2018, 06:04:46 AM
Wouldn't you just sort by time installed (unless that got removed when I wasn't looking?)

it has not been removed.

live627

I want a table for each status, similar to how the avatar packs are separated.


Advertisement: