News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Sortable Packages (and Installed Time)

Started by Arantor, December 23, 2009, 10:07:34 AM

Previous topic - Next topic

Arantor

Well, to preserve memory it just builds an associative sublist from the installed packages - instead of trying to sort a huge list that contains all the data, it simply builds a list like so:

'author1:modid1' -> 'My modification'
'author1:modid2' => 'My second modification'
'author2:modid3' => 'Awesome Mod'

The author:modid is the package's primary id, and what's happening is that when it encounters a mod the second time, it simply updates the right hand side of the list rather than adding a new entry to the list.

Arantor

Fixed the stupid bug about duplicate package ids being removed from sorting.

mrtrc266

WOOOHOOO!!!! I have been asking for this feature for over a year! This will be come is sooooo handy for those Mod Freaks (like me) who run into probs and can't remember what order they installed the Mods in LOL.

This seems like it should be a default feature for SMF, hope it becomes one in the feature.

Thank you very much!

Arantor

I actually put this forward as a possible contender for inclusion into SMF in the team discussion boards - general consensus seems to be that it's a good idea, but whether it makes 2.0 final (slightly doubtful) or pushed back to 2.1 remains to be seen. I suspect if it does get added, it won't be this exact code.

TheListener

Useful mod for the admins.

Why let members have all the fun?

davidhs

I like your mod. I planned to do something like this but I found your mod. ;)

The translation in spanish-es, is


<?php

$txt
['installed_on'] = 'Instalado en';

?>



but, it would be better to write "Installation date"?


<?php

// english
$txt['installed_on'] = 'Installation date';

// spanish-es
$txt['installed_on'] = 'Fecha de instalación';

?>






2 request for next update:

  • You could create a new column (status) with the status of the MOD: installed, not installed, MOD updated by another, and so on. And that the MODs can be sorted by this column.
  • You could also sortable by column the list "Installed Packages".

Arantor

Quote from: davidhs on March 09, 2010, 04:53:34 PM
2 request for next update:

  • You could create a new column (status) with the status of the MOD: installed, not installed, MOD updated by another, and so on. And that the MODs can be sorted by this column.
  • You could also sortable by column the list "Installed Packages".

No and no.

Sorting by installed/not installed is easy. Sort by installation date, all the ones that aren't installed have a date of 'never'.

Updating... not reliable to actually use since mods don't always have that information in and if they do it won't be in a consistent format.

As for sorting by columns in the installed packages list, no, because that's a totally different piece of code and I don't particularly want to have to duplicate (yes, duplicate) almost all the code from the browse packages page when in reality I don't even know anyone who uses that page when it's all on the browse page.


I should point out that until last night this mod was marked archived, and I'm not guaranteeing it won't be marked archived (i.e. UNSUPPORTED) again, so I'm not really inclined to do anything to it, though I do appreciate you taking the time and trouble to suggest it.

If you want to add those features, I don't mind you taking ownership and adding it yourself though.

davidhs

Quote from: Arantor on March 09, 2010, 04:58:04 PM
Sorting by installed/not installed is easy. Sort by installation date, all the ones that aren't installed have a date of 'never'.
True, I did not realize.

Quote from: Arantor on March 09, 2010, 04:58:04 PM
If you want to add those features, I don't mind you taking ownership and adding it yourself though.
No, at the moment with what the mod is sufficient.

Bugo

Russian text:

// Sortable Packages (and Installed Time)
$txt['installed_on'] = 'Установлен';

kai920


TheListener

Quote from: kai920 on March 11, 2010, 07:42:07 PM
Arantor, is this compatible with RC3?
Compatible With:
    2.0 RC2, 2.0 RC3

kai920

Thanks, I wasn't aware there was an update.  :-[

I was already subscribed to updates but didn't get one

Black Viper

Quote from: Arantor on January 08, 2010, 02:10:04 AM
I actually put this forward as a possible contender for inclusion into SMF in the team discussion boards - general consensus seems to be that it's a good idea, but whether it makes 2.0 final (slightly doubtful) or pushed back to 2.1 remains to be seen. I suspect if it does get added, it won't be this exact code.

I second the motion for inclusion in the default SMF install. "Most" mods enjoy being (and instructed to by the developers) uninstalled before a new version is placed active. This modification greatly simplifies the "most recent" uninstall process to get back down to when the newly updated mod was first installed.

Thank you much for this mod. :)

mrtrc266

#33
Quote from: mrtrc266 on January 08, 2010, 02:00:35 AM
WOOOHOOO!!!! I have been asking for this feature for over a year! This will be come is sooooo handy for those Mod Freaks (like me) who run into probs and can't remember what order they installed the Mods in LOL.

This seems like it should be a default feature for SMF, hope it becomes one in the feature.

Thank you very much!
Quote from: Black Viper on April 01, 2010, 05:41:58 AM
Quote from: Arantor on January 08, 2010, 02:10:04 AM
I actually put this forward as a possible contender for inclusion into SMF in the team discussion boards - general consensus seems to be that it's a good idea, but whether it makes 2.0 final (slightly doubtful) or pushed back to 2.1 remains to be seen. I suspect if it does get added, it won't be this exact code.

I second the motion for inclusion in the default SMF install. "Most" mods enjoy being (and instructed to by the developers) uninstalled before a new version is placed active. This modification greatly simplifies the "most recent" uninstall process to get back down to when the newly updated mod was first installed.

Thank you much for this mod. :)

Agree 100%

This is by far the "BEST" mod ever made for SMF. As I said a couple pages back I can't believe this Mod isn't a default feature of SMF.  If it was it would prevent 1,000's of support questions cuz most of us don't remember what order we installed our mods LOL.

Since I have installed this Mod I have NEVER received and "test failed"   error on any files. It has saved me a TON of hours not having to manually do edits due to my drain bramage :D

This is EXTREMELY helpful for new SMF Users. If I had 1 penny for every post I saw about "this Mod sucks because of Test failed" We would all be millionaires.

It's this simple, install this Mod first, then NEVER have to worry about anything again when it comes time to uninstall  ;)

GohighVoltage

Is there any way to have it remember what order you want to display?    Like I would like to be able to have it set to show the earliest installs at top, to latest installs at bottom in that order.   right now,  I have to keep clicking installed on to do that every time.

Great mod!!

Arantor

I won't be adding it, that's for the new maintainer to decide but really that shouldn't be too hard to do.

butchs

Since everyone else is asking for features.  I think I will try and see if I get rejected too.   :P  How about reversing the default sort by date?  When I am trying ton uninstall with my po boys monitor I have to click on the date twice every time so that I can get close enough to uninstall it.  It would be nice to have the oldest mods on top?
:o
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Arantor

Well if it retains what you had it at last, it'd do that...

vbgamer45

I would love to see this inside SMF 2.0
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Robbo_

I'll get to this mod soon.

And SMF 2.0 needs more then this... the whole package manager needs an overhaul. It really is the most pathetic part of 2.0 at the moment. The fact this mod is needed shows that.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Advertisement: