Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Arantor on December 23, 2009, 10:07:34 AM

Title: Sortable Packages (and Installed Time)
Post by: Arantor on December 23, 2009, 10:07:34 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2323)

Shows the time mods were installed in the package manager. Starting with version 1.1 of the mod it also allows you to order packages in the package manager, by name or time of install!

It cannot be backported to 1.1.x, the time of installation is not even recorded. Please do NOT ask for a 1.1.x version.


Version History

1.3.5 - 27 January 2014
Compatibility for 2.0.7 (no code changes)
Removed reference to old package server that no longer exists

1.3.4 - June 22 2013
Compatibility for 2.0.4 (no code changes)

1.3.3 - 28 July 2012
2.0 - 2.0.2 Support
Dropped support for all RC versions

1.3 - 9 March 2010
RC3 support.
1.2 is left for compatibility reasons on the site for those users migrating from RC2.
1.3 is the only version that supports RC3.

1.2 - 7 January 2010
Fixed stupid bug with collision of package ids when multiple packages with the same id are present (i.e. old packages and subsequent upgrades)

1.1 - 4 January 2010
Added support for sorting packages by name or installed time
Rebranded mod to 'Sortable Packages (and Installed Time)'

1.0 - 15 December 2009
First release
Title: Re: Installed Time
Post by: butchs on January 03, 2010, 07:48:46 PM
I will defiantly use this mod.   This is one useful mod.  Love it.  Thank you!!!!   :)

Time and time again I have been annoyed because I had to use my powers of deduction to find out the mod installation order so I can uninstall a particular mod for an update.

A cool feature for future versions could be to list them by installation order or allow sort by installation order?   O:)
Title: Re: Installed Time
Post by: Arantor on January 03, 2010, 07:50:29 PM
Unfortunately it's just not as simple as that, I only wish it were. It is mostly dependent on your filesystem as to what order they will appear in, and rewriting the guts of the package manager is something I really don't want to do in a mod.
Title: Re: Installed Time
Post by: butchs on January 03, 2010, 08:27:00 PM
Quote from: Arantor on January 03, 2010, 07:50:29 PM
... rewriting the guts of the package manager is something I really don't want to do in a mod.

I do not blame you.  The dates are still much better than what we had before.  I can live with them.  Still love the mod!
Title: Re: Installed Time
Post by: Arantor on January 03, 2010, 08:28:15 PM
I did look at it for this mod, actually, to see if it was something easily fixable, sadly it's not :(
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 04, 2010, 08:29:05 AM
Though I had a brainstorm after sleeping on it, and bam! It's done :)
Title: Re: Sortable Packages (and Installed Time)
Post by: Spoogs on January 04, 2010, 08:31:14 AM
nice addition, having the dates was nice enough  8)
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 04, 2010, 08:33:06 AM
Thanks - but finally I get to lay this one to rest. ;D
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on January 04, 2010, 11:29:21 AM
Love it!!!!!   :)
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 04, 2010, 03:51:51 PM
Thanks :)

I'm glad I could finally put this to bed. I did raise the question of this code - or some cleaner variation on it - being added to SMF core sometime, but no answer yet.
Title: Re: Sortable Packages (and Installed Time)
Post by: Spoogs on January 04, 2010, 03:59:29 PM
This really should be an added feature.
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on January 06, 2010, 07:32:09 AM
Excellent Arantor, thank you for this.

I was just testing this on my site and I noticed several mods were no longer listed after applying your mod. For example I wanted to uninstall "Wysiwyg Quick Reply RC2" and did not find it listed.

I unapplied your mod and it still wasn't there - so I re-uploaded WysiwygQuickReply_RC2.zip in order to uninstall it.

What did I do wrong?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 06, 2010, 07:33:33 AM
The mod doesn't remove anything, nor does it change anything. It just soft-rewrites the list of mods installed.

I can only assume the mod's package file was removed at some other time.
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on January 06, 2010, 07:35:41 AM
I just ran another very simple test - I had 44 packages listed (some installed, some not), and applied your mod. When I browsed my package list again, the number is at 42.  ???

Uninstalling it brings the number back up to 44.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 06, 2010, 07:37:57 AM
Huh. That's very strange.

Do you know what the mods that were missing were, what filenames they and whether they were installed or not?
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on January 06, 2010, 07:39:49 AM
I'll try to spot the 'missing packages' and will get back to you.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 06, 2010, 07:42:05 AM
Also, were they missing from Installed Packages or Browse Packages?
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on January 06, 2010, 07:48:22 AM
I see why - I have 2 packages doubled up that have the same name, but different versions:

Sitemap    2.1.0  (installed)
Sitemap    2.0.0 (not installed)

Aeva ~ Auto-Embed Video & Audio   7.0 (2 instances)

After I apply your mod, for Sitemap I only see 2.0.0

PS. This is in Browse Packages
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 06, 2010, 07:51:05 AM
Ah, that makes sense. The method it uses for sorting is based on package id, which for those instances, the package id matches where there is a duplicate - and it can only consider a single instance of package id because that's the array key.

I'll look at fixing that shortly, thanks for the report :)
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on January 06, 2010, 08:09:02 AM
I don't understand your explanation 100%, but I trust you'll find a fix for it.  Glad I could help in a small way :)
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 06, 2010, 08:21:13 AM
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.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 07, 2010, 06:43:46 PM
Fixed the stupid bug about duplicate package ids being removed from sorting.
Title: Re: Sortable Packages (and Installed Time)
Post by: 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!
Title: Re: Sortable Packages (and Installed Time)
Post by: 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.
Title: Re: Sortable Packages (and Installed Time)
Post by: TheListener on February 07, 2010, 09:02:41 AM
Useful mod for the admins.

Why let members have all the fun?
Title: Re: Sortable Packages (and Installed Time)
Post by: davidhs on March 09, 2010, 04:53:34 PM
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:
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on March 09, 2010, 04:58:04 PM
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.
Title: Re: Sortable Packages (and Installed Time)
Post by: davidhs on March 09, 2010, 06:15:56 PM
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.
Title: Re: Sortable Packages (and Installed Time)
Post by: Bugo on March 10, 2010, 08:20:49 AM
Russian text:

// Sortable Packages (and Installed Time)
$txt['installed_on'] = 'Установлен';
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on March 11, 2010, 07:42:07 PM
Arantor, is this compatible with RC3?
Title: Re: Sortable Packages (and Installed Time)
Post by: TheListener on March 11, 2010, 07:44:31 PM
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
Title: Re: Sortable Packages (and Installed Time)
Post by: kai920 on March 11, 2010, 07:56:21 PM
Thanks, I wasn't aware there was an update.  :-[

I was already subscribed to updates but didn't get one
Title: Re: Sortable Packages (and Installed Time)
Post by: 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. :)
Title: Re: Sortable Packages (and Installed Time)
Post by: mrtrc266 on April 03, 2010, 01:19:12 AM
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  ;)
Title: Re: Sortable Packages (and Installed Time)
Post by: GohighVoltage on April 03, 2010, 09:43:24 AM
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!!
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on April 03, 2010, 12:19:16 PM
I won't be adding it, that's for the new maintainer to decide but really that shouldn't be too hard to do.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on April 03, 2010, 12:37:32 PM
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
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on April 03, 2010, 12:46:21 PM
Well if it retains what you had it at last, it'd do that...
Title: Re: Sortable Packages (and Installed Time)
Post by: vbgamer45 on April 03, 2010, 12:47:41 PM
I would love to see this inside SMF 2.0
Title: Re: Sortable Packages (and Installed Time)
Post by: Robbo_ on April 03, 2010, 01:39:08 PM
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.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on April 03, 2010, 04:55:09 PM
Quote from: Arantor on April 03, 2010, 12:46:21 PM
Well if it retains what you had it at last, it'd do that...

Humm... Must be new in RC3?

Looks like I win the Arantor prize since he likes my idea?
:)
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on April 03, 2010, 04:56:37 PM
No, it's not new. It's simply that if the idea mentioned earlier were added - for it to remember where you were before, it'd then be able to default to having oldest first as you wanted.

I like the idea of having it remember, I just remember the whole sortable thing being a quick hack into it, I never thought to have it actually remember the setting.
Title: Re: Sortable Packages (and Installed Time)
Post by: Bugo on May 31, 2010, 12:36:55 PM
Maybe this should reduce the column width from 32 to 22 (for example) percent?
Title: Re: Sortable Packages (and Installed Time)
Post by: GohighVoltage on November 05, 2010, 11:53:16 AM
Any Update for RC4?
Title: Re: Sortable Packages (and Installed Time)
Post by: Cutter65 on November 21, 2010, 08:07:47 AM
Would be nice to have this feature for RC4.

It sure was handy in RC3.  8)
Title: Re: Sortable Packages (and Installed Time)
Post by: GazOutEast on November 22, 2010, 11:22:43 AM
Arantor / Robbo

I loved this in RC2 and have just jumped to RC4, but sadly it's only updated to RC3

Please, pretty please, pretty please with bells on, tweak it for RC4

Gaz
Title: Re: Sortable Packages (and Installed Time)
Post by: SN on November 23, 2010, 11:34:10 AM
Quote from: GazOutEast on November 22, 2010, 11:22:43 AM
Arantor / Robbo

I loved this in RC2 and have just jumped to RC4, but sadly it's only updated to RC3

Please, pretty please, pretty please with bells on, tweak it for RC4

Gaz

x2
Title: Re: Sortable Packages (and Installed Time)
Post by: VitProg on January 20, 2011, 05:05:41 PM
I uploaded fixed mod for RC4.
Enjoy =)

Edit: Attachment removed by (F.L.A.M.E.R). Please provide the edits instead of packing it as a modification.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 20, 2011, 05:07:53 PM
You're not allowed to upload updated packages without the permission of the author...
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on January 20, 2011, 05:49:22 PM
Quote from: VitProg on January 20, 2011, 05:05:41 PM
I uploaded fixed mod for RC4.
Enjoy =)
What Arantor said applies to all mods, so you'd know. Can you please remove it?
Title: Re: Sortable Packages (and Installed Time)
Post by: VitProg on February 01, 2011, 05:22:34 AM
Arantor, This is your thanks for work done on adapting mod to RC4, which you could not do! Changes there's not much, if you downloaded the file, you could see them.

Just wanted to help people who need this mod, and which are not good at programming. In the installer has not changed any of the copyrights.

Thank you so much!

P.S. Sorry for the bad english, I'm from Russia.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 01, 2011, 06:37:26 AM
Yes, that's my thanks for your modifying and redistributing files you do not have legal permission to do. And it's nothing to do with whether I *could* or not, I'm more than capable of modifying it. I just chose not to do so.

The only parties that have any permission to redistribute the files are 1: custom.simplemachines.org and 2: live627.com - nowhere else, which includes attachments here.

Additionally, files provided here are not checked by the Customizer team for security which means every attachment is potentially a security risk.
Title: Re: Sortable Packages (and Installed Time)
Post by: Adrek on February 02, 2011, 01:12:24 PM
So, it will be update to RC4 ??
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 02, 2011, 01:16:57 PM
Well, if the current maintainer (Robbo) finds time to do so, or the person I gave development rights to (live627) releases the updated version I did that had the ability to remember sort order, maybe.

But I as the original author won't (since I don't need it, and I'd note it was on arantormods.com, scheduled to be updated until the **** hit the fan), and I won't permit anyone other than the officially listed maintainer or live627 to release versions of it.
Title: Re: Sortable Packages (and Installed Time)
Post by: VitProg on February 02, 2011, 04:16:22 PM
Offtop: Arantor, you are a fanatic! Fixated on any "rights " and not paying any attention to the help. I feel sorry for you...

P.S. This post is all exactly will remove, but ...: If anyone needs an adapted version of a this mod, write me PM
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 02, 2011, 04:18:17 PM
Offtopic: you are actually rude for not bothering to ask first. Had you actually asked me first, there was a reasonable chance I'd have said yes.
Title: Re: Sortable Packages (and Installed Time)
Post by: VitProg on February 02, 2011, 04:34:05 PM
Arantor, sorry, but since I do not much speak English, I was easier to lay out a mod for people directly in this thread. If you will need a corrected file install.xml, to identify my edits, I can send.

P.S. Something went flood ... I no longer write.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 02, 2011, 04:41:16 PM
I'm well aware of the edits you made, since I'm quite capable of comparing them to my own (given that I do development as a day job, such tools are more than familiar to me) - you're under the impression I wasn't capable of updating the mod, the only issue is that they're not on my account, rather than my being able to make the changes in code. Two other people have made the changes and notified me of what they were doing via PM, one here, one on my personal site - that's fine because they spoke to me first.

You, however, just reposted the changed code without bothering to ask if it was OK (since not only do I have an issue with it, it's AGAINST US COPYRIGHT LAW. That's why the SMF team remove such attachments.)

I honestly don't care what changes you made. The fact remains: you modified my work without my permission and redistributed it - in addition to that the team wouldn't have checked any changes you made (at least when they're on the mod site, it's possible for the Customizer team to check them)

Had you bothered to ask if it was OK to post the changes, I wouldn't be nearly so pissed. (Especially as someone only a couple of weeks ago took one of my mods, modified one file, and posted it to the mod site under their own name, and without bothering to credit me or even ask if it was OK)

If nothing else, it's only polite to ask someone about using their work...
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on February 02, 2011, 09:17:59 PM
I actually thought about fixing the mod myself.  Then I thought to myself why not simply track the order of the mods I uploaded by assigning a number to each mod's zip file before upload.  So much easier.

By the way you can not do that since I came up with the idea first.
::)  LOL   ::)
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on February 02, 2011, 10:01:09 PM
Sounds great and you can modify the mod to do that just for you provided that you keep it to yourself and not redistribute it.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 03, 2011, 04:33:13 AM
butchs, you could just do what this mod did and use the contents of the smf_log_packages table (which I think the SMF team came up with before you :P)

If you decide to write a new one from fresh that doesn't reuse any code from here, you can do what the hell you like with it. It's only when people reuse my code without permission that I get pissed.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on February 03, 2011, 08:40:37 PM
Actually, though out of character, in this case I prefer the old fashioned manual way.  By assigning numbers to my mods before I install them I know exactly what order to uninstall and the install them when upgrading.  It saves me the aggravation of having to wait for the index to re-load and then having to hit the date again just to get it to list the newest mod on top.  I am too impatient for that. Faster and simpler is sometimes better.   :-[

I hope my manual number scheme is not conflicting with "smf_log_packages" copyrights?  I attached a snapshot of what I am doing just in case they want me to cease and desist...  :P
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on February 03, 2011, 10:55:46 PM
Why would they issue a C&D over that? :P
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 04, 2011, 06:01:30 AM
Considering that the numbering is automatic in the log table since it's an auto-increment field, doing it manually is actually kind of stupid since you're duplicating work...
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on February 04, 2011, 08:11:07 PM
Sorting is sooooo much easier that waiting for the code to implement.  Come on, the original version sorts the opposite direction than anyone will ever need just because the author does not have enough imagination or possibly skill to be able to change ascending to descending.  Bla... I rather do it manually!
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 05, 2011, 05:09:24 AM
You referring to me there as having a lack of skill? If there's any laziness on my part there it's almost certainly down to avoiding making too many edits to the system since more edits invariably means more support hassle.
Title: Re: Sortable Packages (and Installed Time)
Post by: Plutuss on February 06, 2011, 12:06:43 AM
I came here to thank the mod author, but the nasty treatment of the helpful Russian member is a disgrace. I got a headache witnessing the unpleasantness. Good grief!

Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on February 06, 2011, 12:09:52 AM
Was it something I did?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 06, 2011, 05:42:02 AM
Quote from: Plutuss on February 06, 2011, 12:06:43 AM
I came here to thank the mod author, but the nasty treatment of the helpful Russian member is a disgrace. I got a headache witnessing the unpleasantness. Good grief!

So if I came to your forum, copied the work and posted it somewhere else, you'd be happy with that?
Title: Re: Sortable Packages (and Installed Time)
Post by: Plutuss on February 06, 2011, 05:33:12 PM
Quote from: Arantor on February 06, 2011, 05:42:02 AM
Quote from: Plutuss on February 06, 2011, 12:06:43 AM
I came here to thank the mod author, but the nasty treatment of the helpful Russian member is a disgrace. I got a headache witnessing the unpleasantness. Good grief!

So if I came to your forum, copied the work and posted it somewhere else, you'd be happy with that?

Posted 'somewhere else' wouldn't be analagous to posting it in its own thread. I would be happy, if someone were to take time from their day to assist me in good faith, even if the assistance were unsolicited. How boring - and more gruesome - life would be otherwise! If it were not acceptable, then one should be at least maintain a polite standard of civilised discourse if one aims to be a good person. Let us use this opportunity to become more compassionate - no one who has contributed as much as you have to this volounteer project could truly be without compassion. So thank you for the good works that you have done, and how nice it would be if you were to offer an apology to the well-intentioned Russian gentleman.



Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 06, 2011, 05:51:16 PM
I don't see why I should offer an apology to someone who took my work, modified it and redistributed it without so much as asking me first. You want polite standards, how about asking someone before you modify their hard work?
Title: Re: Sortable Packages (and Installed Time)
Post by: Garou on February 06, 2011, 09:08:06 PM
You know it would be simple for someone to pop up some zipped up malware an make it look like a packaged mod. Worse yet an update that may contain a security risk whether the person posting it meant to include it or not. That's one of the first and most important reasons one should never just pop or download and use a modified file like that.

Second it is very easy for an author to feel disrespect and offended for not being asked. What you do with something on your own site is one thing but redistribution like that is wrong. 

For instance say you made some modification for Windows, Microsoft probably wouldn't complain if you packaged up your changes as a patch or posted instructions on how to modify so others could do it themselves. Now if you packed up your changes with an original version of Windows and Microsoft would sue you into oblivion. This isn't any different.

Personally I would love to see a system here at SMF for taking over mods that are no longer supported, especially when an author can not be reached and the mod has become fairly popular. There are a few cases out there where an author hasn't even logged into SMF for over a year or better, their known websites have been taken down and or URLs have expired, e-mails, PMs, and IM's trying to contact them have gone either ignored, or bounce back as non-existent. In fact there is one that I am almost quite certain the author has passed away. It seems like such a damn shame that someone else can not take up the chalice and continue their work in a more simple manner.

If you look around the SMF site especially with all the currently unsupported mods, you will see where others share what they did to update a mod to make it work for themselves. It looks a lot like the manual install instruction for any mod. Example...

Find in some file
The original code

Replace with
Your changes

That way everyone can see, review, and install your work if they want. Ive never seen a complaint about that and many authors will gladly take that code and incorporate it into the mod along with acknowledging you in the credits or change log for your work.

Sure it might take a little more work for a site manager to implement the code on their site in the meantime but there is an accepted way to contribute if you really wish. If those that truly want to be helpful would follow the commonly accepted practices rather then just complaining about the removal of an unauthorized package, everyone would be more content.
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on February 27, 2011, 05:43:49 PM
Hi, I would like to thank the mod author.  I've used it on a previous version of SMF, almost with glee, as it makes figuring out the order the packages were installed in much easier.....  However, it doesn't work on 2.0 RC5.  I have read the discussion before this posting....  My question (and I don't mean to be antagonistic in any way) is will the mod be updated for 2.0 RC5?  Thanks!
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 27, 2011, 05:44:38 PM
Not by its original author, no. Its current maintainer... maybe.

The reason it doesn't work on RC5 is because the bugs I originally fixed in this mod (i.e. template bugs) have since been properly fixed.
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on February 27, 2011, 05:49:26 PM
Who would the current maintainer be?  And where can I find the topic (if one exists)?  Thank you!
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 27, 2011, 05:53:52 PM
QuoteWho would the current maintainer be?  And where can I find the topic (if one exists)?  Thank you!

Current maintainer: Robbo_ as indicated by the fact he is the 'author' of the first post.

Any topic about the matter would be this topic; the bugs corrected in the Packages template were to do with misspaced and mismatched <td>/<th> tags that I fixed when I first released the mod; the team fixed them afterwards.

You can get an updated version from http://dev.live627.com/ at a cost of $12, though that also covers any updates and support for the next year.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on February 27, 2011, 07:44:06 PM
WOW? How much will the fork cost?  ???
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 27, 2011, 08:18:14 PM
Hang on, where did I say *I* was charging anything? Clue's in the name... live627.com... I'm not charging anything for anything at this point in time - I just handed over almost all my mods to Live and told him that he could sell them if he wanted. That way I got rid of any ongoing support issues so I could concentrate on working on the fork.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on February 28, 2011, 07:17:20 PM
I apologize...  That was a mean thing to say.  I must have listened to too many Charlie Sheen interviews...   :-X
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on February 28, 2011, 07:17:52 PM
It wasn't particularly mean at all, really, is all good :)
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on March 06, 2011, 07:34:24 PM
Thanks for the information, Arantor.  I guess I'll look at the code and see if I can figure out what changes to make.  If I can't, I guess I'll pay up to get the feature..... :o
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on March 08, 2011, 12:22:40 AM
Quote from: dougiefresh on March 06, 2011, 07:34:24 PM
If I can't, I guess I'll pay up to get the feature..... :o
I know it's a last resort for many (most) SMF'ers to pay for a mod but purchasing one from my site does entitle you to a full year of support and updates
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on March 09, 2011, 06:57:58 AM
Here's my solution to the RC5 problem: I installed the RC3 version of Packages.template.php into the Themes/default folder and used the mod listed in the first post with RC3 emulation.  Seems to work just fine  ;D
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on March 09, 2011, 07:08:43 AM
Except you also reintroduced a bug that prevents you from deleting some kinds of packages you didn't want.
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on March 09, 2011, 07:10:20 AM
 :o Can you explain?  I don't understand what you mean.....
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on March 09, 2011, 07:11:36 AM
QuoteCan you explain?  I don't understand what you mean.....

One of the bugs in RC3 (which I know, I'm the one who reported it on the tracker!) is that you can't delete avatar packages with the delete button, it just gives you an error due to missing session validation. Needs RC5's packages template to fix it.
Title: Re: Sortable Packages (and Installed Time)
Post by: dougiefresh on March 09, 2011, 07:16:16 AM
 :o Hmmmmmmm.............. That could be a problem for me in the future   :'(
Title: Re: Sortable Packages (and Installed Time)
Post by: Shades. on April 09, 2011, 07:55:22 PM
Anyone planning to update this mod for RC5?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on April 09, 2011, 08:04:37 PM
Quote from: BoZilla on April 09, 2011, 07:55:22 PM
Anyone planning to update this mod for RC5?

Well, the original author isn't going to, the current maintainer doesn't seem to have time, but there's a third person who has updated it to 2.0 RC5, added a new feature to it but is currently selling it on their paid mod site, I forget how much.
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on April 09, 2011, 08:06:22 PM
http://livemods.net/index.php?action=mods#32
Title: Re: Sortable Packages (and Installed Time)
Post by: Jessica. on June 16, 2011, 06:41:03 PM
I need help. I got tons of 'Test failed' and the operation has me puzzled, because I can't find the 'Find' required.

/Themes/default/Packages.template.php



File edits failed:

3. Packages.template.php


1.
Code (Find) Select
<th scope="col" class="smalltext" width="25%">', $txt['mod_version'], '</th>
            <th scope="col" class="smalltext" width="49%"></th>

Code (Replace) Select
<th scope="col" class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', $txt['installed_on'], '</th>
<th scope="col" class="smalltext" width="32%"></th>


3.
Code (Find) Select
<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>

Code (Replace) Select
<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'mods', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'mods', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>



5.
Code (Find) Select
<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>

Code (Replace) Select
<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'avatars', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'avatars', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>


7.
Code (Find) Select
<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>

Code (Replace) Select
<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'languages', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'languages', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>


9.
Code (Find) Select
<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>

Code (Replace) Select
<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'other', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'other', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>

Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on June 16, 2011, 06:45:38 PM
Title: Re: Sortable Packages (and Installed Time)
Post by: Jessica. on June 16, 2011, 06:49:52 PM
SMF 2.0
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on June 16, 2011, 08:17:25 PM
Maybe you should update your sig soon,eh? And there is a paid version out in the wild that works...
Title: Re: Sortable Packages (and Installed Time)
Post by: Jessica. on June 16, 2011, 08:40:23 PM
I can't get a paid one. Parents. No money.
Title: Re: Sortable Packages (and Installed Time)
Post by: Shades. on July 04, 2011, 06:56:16 PM
How 'bout an update for 2.0 final? 8)
Title: Re: Sortable Packages (and Installed Time)
Post by: TheListener on July 04, 2011, 06:58:56 PM
Quote from: BoZilla on July 04, 2011, 06:56:16 PM
How 'bout an update for 2.0 final? 8)

Quote from: live627 on June 16, 2011, 08:17:25 PM
And there is a paid version out in the wild that works...


This may answer the question.
Title: Re: Sortable Packages (and Installed Time)
Post by: Shades. on July 04, 2011, 08:34:14 PM
Thx, but I only install free mods at the moment since I don't need it bad enough to pay for it!  ;) 8)
Title: Re: Sortable Packages (and Installed Time)
Post by: MoreBloodWine on September 20, 2011, 06:37:05 PM
Does anyone know if this installs under 2.0.x ok ?
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on September 20, 2011, 08:33:35 PM
It doesn't.
Title: Re: Sortable Packages (and Installed Time)
Post by: MoreBloodWine on September 20, 2011, 08:44:41 PM
That sucks, was hoping to use this.

My issue has always been with remembering what was installed last so I can uninstall in the same order to avoid code change issues which can arise with uninstalling mods in weird orders.
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on September 20, 2011, 08:56:25 PM
Well, the original author gave me permission to sell an updated copy which does have an extra feature...
Title: Re: Sortable Packages (and Installed Time)
Post by: MoreBloodWine on September 20, 2011, 08:59:31 PM
Quote from: live627 on September 20, 2011, 08:56:25 PM
Well, the original author gave me permission to sell an updated copy which does have an extra feature...
Dare I even ask as to the supposed cost and what this extra feature is ? I will also assume by updated, feature withstanding that you just mean it's been updated t owork with 2.0.x ?
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on September 20, 2011, 09:04:50 PM
$12, and the extra feature is that it remembers the last sorting method. It has been updated for RCC4 and the packman code didn't change since so it'll work. Support and updates for a year.
Title: Re: Sortable Packages (and Installed Time)
Post by: MoreBloodWine on September 20, 2011, 09:08:30 PM
Quote from: live627 on September 20, 2011, 09:04:50 PM
$12, and the extra feature is that it remembers the last sorting method. It has been updated for RCC4 and the packman code didn't change since so it'll work. Support and updates for a year.
I guess that aint to bad but it's $12 I dont wana spend right now. Might just use a notepad mod or soemthing in the meantime to just take notes on what went in first.

Edit:

1) RCC4 ?
2) PacMan Code ?
3) Sorting Method: I assume you mean if I sort by name and then sort by install it remembers that the last sort was sort by name. Just to be clear even though the question may sound kind of dumb.
Title: Re: Sortable Packages (and Installed Time)
Post by: MoreBloodWine on September 21, 2011, 12:27:06 AM
Edited above post and are you firm on $12 Live ?
Title: Re: Sortable Packages (and Installed Time)
Post by: Yiorgos on October 11, 2011, 03:45:57 PM
I edited two files of Robbo_'s package installed_time-rc3.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=2323;id=136932) and made it un/installable on SMF 2.0.1

There is not a distribution license in Robbo_'s  package and according to the following message I can post the changes I made.

Quote from: Illori on August 15, 2011, 06:24:27 AM
since there is no license on this mod you are not allowed to update the distribute to others you can post your changes but not the package. your mod package has been removed.

Robbo_ is kindly requested to adapt those changes and redistribute an update of his mod (http://custom.simplemachines.org/mods/index.php?mod=2323) (to make things easier).

live627 has a commercial version of the same mod that supersede this mod and stores the shorting choice you make.
Quote from: live627 on September 20, 2011, 08:56:25 PM
Well, the original author gave me permission to sell an updated copy which does have an extra feature...


The package consist of 4 files. You have to unpack them in a temporary directory and after you make the 2 (Yes two) edits, you will repack and upload for installation.

Use Notepad (or any text editor - NOT  MS Word or MS Wordpad) to edit the following files.

package-info xml
    Find <install for="2.0 RC3">
    Replace with <install for="2.0.1">

    Find <uninstall for="2.0 RC3">
    Replace with <uninstall for="2.0.1">

Save changes and open next file for editing


install xml
    Find (starts on line 148 and ends on line 233) <file name="$themedir/Packages.template.php">
<operation><!-- view installed list, header -->
<search position="replace"><![CDATA[<th scope="col" class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="49%"></th>]]></search>
<add><![CDATA[<th scope="col" class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', $txt['installed_on'], '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- view installed list, body -->
<search position="before"><![CDATA[$file['version'], '</span></td>]]></search>
<add><![CDATA[
<td><span class="smalltext">', timeformat($file['time_installed']), '.</span></td>]]></add>
</operation>
<operation><!-- browse: available mods, header -->
<search position="replace"><![CDATA[<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'mods', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'mods', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available mods, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available avatar packs, header -->
<search position="replace"><![CDATA[<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'avatars', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'avatars', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available avatar packs, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available language (mod) packs, header -->
<search position="replace"><![CDATA[<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'languages', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'languages', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available language (mod) packs, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available other, header -->
<search position="replace"><![CDATA[<th class="smalltext" width="25%">', $txt['mod_name'], '</th>
<th class="smalltext" width="25%">', $txt['mod_version'], '</th>
<th class="smalltext" width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'other', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'other', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available other, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
</file>


    Replace with <file name="$themedir/Packages.template.php">
<operation><!-- view installed list, header -->
<search position="replace"><![CDATA[<th scope="col" width="25%">', $txt['mod_version'], '</th>
<th scope="col" width="49%"></th>]]></search>
<add><![CDATA[<th scope="col" class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', $txt['installed_on'], '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- view installed list, body -->
<search position="before"><![CDATA[$file['version'], '</span></td>]]></search>
<add><![CDATA[
<td><span class="smalltext">', timeformat($file['time_installed']), '.</span></td>]]></add>
</operation>
<operation><!-- browse: available mods, header -->
<search position="replace"><![CDATA[<th class="lefttext" width="25%">', $txt['mod_name'], '</th>
<th class="lefttext" width="25%">', $txt['mod_version'], '</th>
<th class="last_th" width="49%">]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'mods', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'mods', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available mods, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available avatar packs, header -->
<search position="replace"><![CDATA[<th width="25%">', $txt['mod_name'], '</th>
<th width="25%">', $txt['mod_version'], '</th>
<th width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'avatars', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'avatars', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available avatar packs, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available language (mod) packs, header -->
<search position="replace"><![CDATA[<th width="25%">', $txt['mod_name'], '</th>
<th width="25%">', $txt['mod_version'], '</th>
<th width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'languages', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'languages', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available language (mod) packs, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
<operation><!-- browse: available other, header -->
<search position="replace"><![CDATA[<th width="25%">', $txt['mod_name'], '</th>
<th width="25%">', $txt['mod_version'], '</th>
<th width="49%"></th>]]></search>
<add><![CDATA[<th class="smalltext" width="25%">', sort_params_link($txt['mod_name'], 'other', 'name'), '</th>
<th class="smalltext" width="10%">', $txt['mod_version'], '</th>
<th scope="col" class="smalltext" width="32%">', sort_params_link($txt['installed_on'], 'other', 'time'), '</th>
<th scope="col" class="smalltext" width="32%"></th>]]></add>
</operation>
<operation><!-- browse: available other, body -->
<search position="replace"><![CDATA[ echo '
</td>
<td align="right">';]]></search>
<add><![CDATA[ echo '
</td>
<td>', $package['time_installed'] == 0 ? $txt['not_applicable'] : timeformat($package['time_installed']), '</td>
<td align="right">';]]></add>
</operation>
</file>



Well done ?

OK, pack all 4 files in a .zip file, upload and install via your package manager.

Credits should go to Robbo_
Title: Re: Sortable Packages (and Installed Time)
Post by: Shades. on October 12, 2011, 03:00:11 AM
Worked great...thank you! 8)
Title: Re: Sortable Packages (and Installed Time)
Post by: Inti31 on May 04, 2012, 11:21:45 AM
I downloaded the package for 2.0 RC 3 and did a version runs fine for 2.0.2... - needful mod

all credits to Arantor which build up v.1.3 for 2.0 RC3

it includes german & english language - if it is not allowed to attach that mod feel free to delete it otherwise keep me informed - I am going to remove it...

cheers Inti31

Addition: After clarifying  - here is the mod I build up for 2.0.2 based on Arantors 2.0 RC3 +thx for that.
I  did a fresh install of SMF 2 and installed it by the packet manager and all works fine.
This mod is NOT reviewed by the SMF Team so feel free to use it or not. it comes without warranty.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on May 04, 2012, 11:23:30 AM
You know you're not supposed to post packages without permission, and that the team are supposed to remove attachments, right?

In this case, I expressly give people to build off any mod I published here, so this might help someone. BUT, the team has not reviewed it.
Title: Re: Sortable Packages (and Installed Time)
Post by: Inti31 on May 04, 2012, 11:30:00 AM
okay - nothing happenend - no one downloaded it - I removed my build for 2.0.2

sorry, as I said - thanks for your template which helps me to build my own working version...

bye Inti31
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on May 04, 2012, 11:31:32 AM
Hey... I said you expressly COULD without any problems! It's all good :)

Just that the team haven't reviewed it.
Title: Re: Sortable Packages (and Installed Time)
Post by: Inti31 on May 04, 2012, 11:50:38 AM
hmmh - so I could attach a modified version of yours but I have to state that this version is not reviewed - right?
Sorry for asking, I am not a professional and I am not involved in the rules.

So i have to state that this mod it not reviewed by SMF Team and that it is own risk to use it, right?

I won't take over your mod - all credits is yours, I just changed the code that it fits to the new version.
i did a fresh install of 2.0.2 and tested it only on my own...

cheers Inti31
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on May 04, 2012, 12:06:00 PM
Nope, you don't even have to say that, you can do what you like in this case. But there's no arguing that it is more risk to the user unless they're prepared to review the package and check whether it's OK because it won't have been checked by the team. Most users don't even care about that anyway.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on November 16, 2013, 09:22:59 PM
Fortunately none of this is a problem for SMF 2.1 which has this built in now.
Title: Re: Sortable Packages (and Installed Time)
Post by: butchs on December 15, 2013, 08:02:33 AM
You are making it sound like 2.1 is ready to be released this month?
O:)
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on December 15, 2013, 09:40:06 AM
Beta isn't that far away, when it locks features and we really go bug hunting.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on January 27, 2014, 04:59:36 PM
Also note this package has been updated for 2.0.7 (and I've taken it back over again)
Title: Re: Sortable Packages (and Installed Time)
Post by: PhuriousGeorge on January 27, 2014, 06:27:25 PM
Oh, just noticed the comment regarding this being implemented in 2.1.

/me does the happy dance - 1 less mod to add.
Title: Re: Sortable Packages (and Installed Time)
Post by: Kimmie on August 28, 2014, 03:17:50 PM
Is this working for 2.0.8? Thanks
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on August 28, 2014, 03:28:05 PM
Quote from: Kimmie on August 28, 2014, 03:17:50 PM
Is this working for 2.0.8? Thanks

I see no reason why it wouldn't be working for 2.0.8 other than just not having been tweaked in the installer...
Title: Re: Sortable Packages (and Installed Time)
Post by: Kimmie on August 28, 2014, 08:03:08 PM
Quote from: ♥ on August 28, 2014, 03:28:05 PM
Quote from: Kimmie on August 28, 2014, 03:17:50 PM
Is this working for 2.0.8? Thanks

I see no reason why it wouldn't be working for 2.0.8 other than just not having been tweaked in the installer...

K thanks I will give it a go. If it works, I will just have to remember to uninstall it before I upgrade to 2.1.
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on August 28, 2014, 08:08:31 PM
The upgrade to 2.1 will remove any mods anyway.
Title: Re: Sortable Packages (and Installed Time)
Post by: Kimmie on August 31, 2014, 12:47:12 PM
Quote from: ⬔ on August 28, 2014, 08:08:31 PM
The upgrade to 2.1 will remove any mods anyway.


I didn't realize that, thanks :). Does it remove them from custom themes as well?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on August 31, 2014, 12:48:21 PM
I would be extremely surprised if any 2.0 themes even worked properly on 2.1 without serious work anyway, meaning that when you upgrade you should find new themes.
Title: Re: Sortable Packages (and Installed Time)
Post by: Kimmie on August 31, 2014, 01:14:50 PM
Quote from: ⬔ on August 31, 2014, 12:48:21 PM
I would be extremely surprised if any 2.0 themes even worked properly on 2.1 without serious work anyway, meaning that when you upgrade you should find new themes.


I just recently spent over a month adding new themes to my site and getting all my mods to work on them. No way I will upgrade right now if I have to go through all that again.

Is the code for 2.1 that different from 2.0?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on August 31, 2014, 01:15:28 PM
Considering that 2.1 includes a responsive theme and drops main_block, yes.
Title: Re: Sortable Packages (and Installed Time)
Post by: Kimmie on August 31, 2014, 01:17:21 PM
I don't know what a responsive theme is, could you expand on that a little?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on August 31, 2014, 01:18:39 PM
Means it adapts to mobile and tablet better than a stock theme does.

There's also other changes, such as the profile/messages/alerts area moved to the top of the screen rather than being part of the main menu, on the basis that profile/messages aren't really 'site content' but user content, and then the main menu is left being 'site content' stuff.
Title: Re: Sortable Packages (and Installed Time)
Post by: margarett on August 31, 2014, 06:32:03 PM
In any case, 2.0.x will be supported for a long time so you don't really need to upgrade to 2.1 when it comes out ;)
Title: Re: Sortable Packages (and Installed Time)
Post by: Steve on September 01, 2014, 07:21:55 AM
Just installed this and wanted to say thanks. Works beautifully and will certainly help knowing what order my mods were installed in.

Thanks again. :)
Title: Re: Sortable Packages (and Installed Time)
Post by: Burke ♞ Knight on September 25, 2014, 10:51:25 PM
Arantor

2.0.9 makes a change in Subs-Package.php

Mod has:

<operation>
<search position="before"><![CDATA['version' => $row['version'],]]></search>
<add><![CDATA[
'time_installed' => $row['time_installed'],]]></add>
</operation>


Needs to be:

<operation>
<search position="before"><![CDATA['version' => $smcFunc['htmlspecialchars']($row['version']),]]></search>
<add><![CDATA[
'time_installed' => $row['time_installed'],]]></add>
</operation>
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on September 25, 2014, 10:54:27 PM
I am well aware that 2.0.9 makes changes to the package manager. I know this because I recommended half of them.

I will review this for updating once 2.0.9 is fully released and not before, because I'm aware of the scale of changes.

I suspect I will also have to re-review SimpleDesk for this change too, actually.
Title: Re: Sortable Packages (and Installed Time)
Post by: Burke ♞ Knight on September 25, 2014, 11:32:09 PM
Don't know on that one, as SD was installed earlier.
I found this, when I was redoing a site, and found that I had forgotten to install this mod long ago....LOL
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on September 25, 2014, 11:38:25 PM
Yes, SD will likely have the same issue that caused 2.0.9 to be produced in the way it extends the package manager, so I will need to check.
Title: Re: Sortable Packages (and Installed Time)
Post by: SoehnelS on May 29, 2015, 10:14:17 AM
Works on 2.0.10, THANK YOU!
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on September 22, 2016, 07:16:55 AM
Apologies for resurrecting this thread :D

Installed the mod on my 2.0.11; it all seems fine, except for the fact that all my install mods appear not-installed and there's the Install command next to each of them... any ideas?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on September 22, 2016, 11:20:10 AM
It reads the status if installation from the database, nothing more. It should say exactly the same whether you had the mod installed or not.
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on September 23, 2016, 05:58:28 AM
This is so weird, I wonder what caused them to be marked as not installed! Can you tell me where in the db I can find this info?
Title: Re: Sortable Packages (and Installed Time)
Post by: live627 on September 23, 2016, 06:02:44 AM
log_packages
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on September 23, 2016, 06:03:44 AM
Thanks, will take a look!
Title: Re: Sortable Packages (and Installed Time)
Post by: Illori on September 23, 2016, 06:19:08 AM
http://wiki.simplemachines.org/smf/Manually_setting_a_package_installed_or_uninstalled might be easier.
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on September 23, 2016, 06:20:23 AM
Ooh superb, that! Thanks!!!
Title: Re: Sortable Packages (and Installed Time)
Post by: SaltedWeb on January 09, 2018, 11:03:37 AM
@DougieFresh told me about this mod, this is exactly what I needed no more having to write it all down.

TY

SW
Title: Re: Sortable Packages (and Installed Time)
Post by: landyvlad on January 22, 2018, 09:55:00 PM
Suggested Enhancement

I had an idea of a good potential enhancement for this mod.

It doesn't so much affect me at the moment as I only have a limited number of mods installed, but I know some people's forums have a LOT of mods.

An 'export' button would be handy (perhaps with text or csv options) to save a lot of cut and paste for those people and would allow them to keep a handy list offline and/or have the data in an excel spreadsheet.

Not sure how easy it is to do this (or otherwise) but it's just a suggestion / food for thought.

Cheers.
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on January 23, 2018, 02:58:50 AM
Ooh, I second that. I can't count the times I've copied/pasted that page into an excel file and tried to clean the outcome... :D
Title: Re: Sortable Packages (and Installed Time)
Post by: GL700Wing on January 23, 2018, 04:14:11 AM
Quote from: Gryzor on January 23, 2018, 02:58:50 AM
Ooh, I second that. I can't count the times I've copied/pasted that page into an excel file and tried to clean the outcome... :D
MS Word may be a better option.  I copy/paste the entire table into MS Word (page already formatted as landscape) and use search/replace to remove all the graphics (search for ^g, replace with nothing) followed by Ctrl-A/Ctrl -Shift-F9 to remove all hyperlinks.  I then select the entire table and set the style to normal.

The result is a table that can be sorted on all fields - simples!!  :)

(You can then copy the table to an Excel workbook in which you have multiple sheets to enable you to keep a record of mod installs and deletions).
Title: Re: Sortable Packages (and Installed Time)
Post by: Gryzor on January 23, 2018, 04:27:18 AM
Gotta remember this advise next time I do it - thanks for the tip!
Title: Re: Sortable Packages (and Installed Time)
Post by: landyvlad on January 23, 2018, 06:38:05 PM
Cheers Kathy ! :)
Title: Re: Sortable Packages (and Installed Time)
Post by: pepa on February 22, 2018, 07:15:35 PM
Here is a total newbie question in relation to installing/uninstaling mods.  I was unaware that there had to be an order.  One mod I want to uninstall is throwing up errors when the initial check is done, so I can't proceed.  Just installed Arantor's mod.  The mod I want to uninstall is the most recent one installed ... so here's my question:

"Do I have to uninstall ever previous mod in the order listed by Arantor's mod (oldest to newest) to thne be able to uninstall the mod that's throwing up uninstall errors and will this mean it won't list the uninstall errors when the check is done immediately before uninstall?"
Title: Re: Sortable Packages (and Installed Time)
Post by: SaltedWeb on February 22, 2018, 07:40:24 PM
Depending on how many mods there are on your list, the best way is to uninstall the ones that do not shoot up errors.

I am old school on new sites I write it down in order that installed with no errors and generally in reverse is also no errors at least thats my experience. This mod makes it very easy to do though so now I take a snap of the page and save it :-)
Title: Re: Sortable Packages (and Installed Time)
Post by: pepa on February 22, 2018, 08:03:01 PM
Quote from: SaltedWeb on February 22, 2018, 07:40:24 PM
Depending on how many mods there are on your list, the best way is to uninstall the ones that do not shoot up errors.

I am old school on new sites I write it down in order that installed with no errors and generally in reverse is also no errors at least thats my experience. This mod makes it very easy to do though so now I take a snap of the page and save it :-)

Only 7 mods installed, 2 of which are the 2.0.15 update and responsive curve, I'm kinda old school and cautious as well.  When I later re-install the un-installed mods I do want, will they just "work" as before?, (I will no doubt have to reconfigure some of them if that's what I had to do initially).
Title: Re: Sortable Packages (and Installed Time)
Post by: pepa on February 22, 2018, 08:07:58 PM
Just checked, other than the last installed mod, which lists errors, the only other one that shows an error is reCaptcha for SMF which states, "unable to find Package File" ... anyone know what that means?
Title: Re: Sortable Packages (and Installed Time)
Post by: Steve on February 23, 2018, 02:55:56 PM
Quote from: pepa on February 22, 2018, 08:07:58 PM... unable to find Package File ...

A quick search for 'unable find package file' turned up this thread which gives the solution as to what to do in the first response:

https://www.simplemachines.org/community/index.php?topic=545057.0

Quote from: pepa on February 22, 2018, 08:03:01 PMWhen I later re-install the un-installed mods I do want, will they just "work" as before?, (I will no doubt have to reconfigure some of them if that's what I had to do initially).

Depends. Some mods need updated for 2.0.15 ... if you get no errors during installation and assuming they were uninstalled correctly and completely and there are no conflicts with other mods then yes, they should work as before.

Note I said 'should'. Always backup before doing anything.
Title: Re: Sortable Packages (and Installed Time)
Post by: pepa on February 24, 2018, 12:40:58 AM
Quote from: Steve on February 23, 2018, 02:55:56 PM
Quote from: pepa on February 22, 2018, 08:07:58 PM... unable to find Package File ...

A quick search for 'unable find package file' turned up this thread which gives the solution as to what to do in the first response:

https://www.simplemachines.org/community/index.php?topic=545057.0

Seems that's not the problem?  I receive that message in the window "View and Remove Installed Packages" from Arantor's mod ... but when I try an uninstall in Browse Packages/Modification Packages I then get a different result of "Error in Package" and one test fails on one file.

So completely different error messages about the same package?
Title: Re: Sortable Packages (and Installed Time)
Post by: landyvlad on March 14, 2018, 11:49:44 PM
Anyone know if this mod is, or will be, compatible with SMF 2.1 ?
Title: Re: Sortable Packages (and Installed Time)
Post by: lurkalot on March 15, 2018, 03:53:26 AM
Quote from: landyvlad on March 14, 2018, 11:49:44 PM
Anyone know if this mod is, or will be, compatible with SMF 2.1 ?

Not sure, but I thought this was a stock feature in 2.1 now.
Title: Re: Sortable Packages (and Installed Time)
Post by: landyvlad on March 18, 2018, 11:41:57 PM
It could well be, I'm not sure, It'd be even better if that is the case :)
Anyway, no biggie, I'll just wait and see.
Title: Re: Sortable Packages (and Installed Time)
Post by: landyvlad on September 07, 2021, 12:56:47 AM
Anyone know if the functions of this mod are built in to 2.1 ?
Title: Re: Sortable Packages (and Installed Time)
Post by: Arantor on September 07, 2021, 12:59:24 AM
It is.