Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on July 28, 2007, 03:53:42 AM

Title: Sorted Package Manager Listing
Post by: vbgamer45 on July 28, 2007, 03:53:42 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=875)

Sorted Package Manager Listing
Original Author: daniel15 (http://www.simplemachines.org/community/index.php?action=profile;u=9547)
Previous Authors: live627 (http://www.simplemachines.org/community/index.php?action=profile;u=154736)
SMF Version: 2.0.X
Mod Version: 1.2

Description:
This mod will sort the mod listing in the Package Manager into several groups, depending on the state of the package (eg. Installed, Not Installed, Upgradeable, etc.)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2FPackageManagerSort-large.png&hash=d3e1ef58fd626271bf4b6e1c466e6d73) (http://www.dansoftaustralia.net/images/screenshots/smfmods/PackageManagerSort-large.png)

Changelog
Version 1.2
 - Taken over by Runic
 - Support for 1.1 Removed
 - Support for earlier releases of 2.0 removed.

Version 1.0.2
! Fixed template for RC4/5
! Removed excess trailing whitespace

Version 1.0.1
 - Updated to work with SMF 2.0 RC3

Version 1.0
 - Takeover by live627
 - Adds striping to the packages list in SMF 1.1.x
 - Compatible with SMF 2.0 RC2

Version 0.1 Beta
 - Initial public release.

 Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com)
Title: Re: Sorted Package Manager Listing
Post by: vosje505 on July 28, 2007, 06:45:32 AM
Great mod!!!

was looking for something like this for a while now.

Thanks  :D ;D
Title: Re: Sorted Package Manager Listing
Post by: Daniel15 on July 28, 2007, 06:54:25 AM
Glad you like it :)

Quote
was looking for something like this for a while now.
I actually wrote this back in February 2007, and posted it to this forum (in the SMF Team boards). I only recently rediscovered it, cleaned up the code, and released it on the mods site. If I had remembered about it, it would have been uploaded back then (5 months ago)
Oh well :P
Title: Re: Sorted Package Manager Listing
Post by: L.G.S on July 28, 2007, 08:56:55 AM
This should be a core feature.
Title: Re: Sorted Package Manager Listing
Post by: nitsua on July 28, 2007, 10:12:35 AM
this will be a top mod in notime! very nice
Title: Re: Sorted Package Manager Listing
Post by: karlbenson on July 28, 2007, 11:49:18 AM
very useful indeed. wish i'd of had this when testing and installing all the mods.
Title: Re: Sorted Package Manager Listing
Post by: chep on July 29, 2007, 01:22:35 PM
What a fantastic mod.

Once again SimpleMachines outdoes the competition  8)
Title: Re: Sorted Package Manager Listing
Post by: karlbenson on July 29, 2007, 06:25:28 PM
This should be a core feature.
Yep.

I also like how its combined with the $alternate row backgrounds
Title: Re: Sorted Package Manager Listing
Post by: Daniel15 on July 30, 2007, 02:17:46 AM
This should be a core feature.
Yep.

I also like how its combined with the $alternate row backgrounds
Actually, that was something I had on my development version, but I can't remember whether I included that or not in the released version of the mod. If not, I'll add it in a bit later :)
Title: Re: Sorted Package Manager Listing
Post by: texterted on August 03, 2007, 03:15:47 PM
Another awsome mod... cheers!
Title: Re: Sorted Package Manager Listing
Post by: kamili34 on September 03, 2007, 07:19:34 PM
Good job thanks

I add you polish language.
Title: Re: Sorted Package Manager Listing
Post by: Daniel15 on September 07, 2007, 04:43:51 AM
kamili34, thanks for the translation, I'll add it to the package soon. :)
Title: Re: Sorted Package Manager Listing
Post by: Garry1953 on September 07, 2007, 08:19:12 PM
Works great.
Thanks.
Title: Re: Sorted Package Manager Listing
Post by: falguni1 on December 30, 2007, 06:17:30 AM
it is working nice, I am getting this error

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "Sorted Package Manager Listing":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Packages.php    Test successful
2.    Execute Modification    ./Themes/default/Packages.template.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Test failed
5.    Execute Modification    ./Themes/default/languages/Modifications.german-utf8.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
Title: Re: Sorted Package Manager Listing
Post by: TrueSatan on December 30, 2007, 06:21:46 AM
Manual installation into the failed file is required...you can use the automatic install to do the rest.
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on April 21, 2008, 12:05:28 AM
Another great mod from Daniel.
Cheers mate :)
Title: Re: Sorted Package Manager Listing
Post by: 58tbird on August 02, 2008, 02:18:25 AM
Will this work with 1.1.5?  Thanks!
Title: Re: Sorted Package Manager Listing
Post by: Marcus Forsberg on August 30, 2008, 04:52:48 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: Sorted Package Manager Listing
Post by: Nibogo on September 11, 2008, 08:25:11 PM
Excelent mod , i dont know why this is not a feature of smf 2.0
Title: Re: Sorted Package Manager Listing
Post by: Blastyr on November 07, 2008, 09:48:40 PM
I'd like to see this updated to work without modification on SMF 1.1.7. I like to think I know my way around PHP, but I'm not really that comfortable messing with code I've never seen before, especially since it's on a forum for which I don't have access to the files to make backups before I try running my hacked-up install.xml.
Title: Re: Sorted Package Manager Listing
Post by: kizer on November 08, 2008, 03:01:19 AM
Yep I had to uninstall this mod to install 1.1.7 went to reinstall it and well it doesn't look like it would be an easy fix.
Title: Re: Sorted Package Manager Listing
Post by: Finny on November 13, 2008, 01:34:23 PM
Yes. It looks like it is making a problem upgrading to 1.1.7.

When I go to ujinstall it, I get:

Type Action Description
1. Execute Modification ./Sources/Packages.php Test successful
2. Execute Modification ./Themes/default/Packages.template.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
4. Execute Modification ./Themes/default/languages/Modifications.german.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.german-utf8.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.turkish.php Test failed
7. Execute Modification ./Themes/default/languages/Modifications.russian.php Skipping file



So I would have to do a manual uninstall in the ./Themes/default/languages/Modifications.english.php file.

What do I take out or fix to do this?

Thanks.
Title: Re: Sorted Package Manager Listing
Post by: Finny on November 14, 2008, 04:22:56 PM
I did a manual uninstall of the area of code in ./Themes/default/languages/Modifications.english.php, then I used the package manager to uninstall this. Even though there was still an arror in the ./Themes/default/languages/Modifications.english.php I did it anyway.

I was then able to upgrade from 1.1.6 to 1.1.7 without issue.
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on November 15, 2008, 03:44:50 AM
@ Finny

You will need to manually add the language edits to each of those files which failed.

So you may install the mod even though it says failed...

Then

Add this to the bottom of your   Modifications.english.php  before the  ?>
Code: [Select]
// --- Sorted Package Manager Listing ---
$txt['pkgstate_cannot_install'] = 'Can\'t install';
$txt['pkgstate_cannot_uninstall'] = 'Installed - Not Uninstallable (no uninstall section for this version of SMF)';
$txt['pkgstate_cannot_uninstall_2'] = 'Installed - Not Uninstallable';
$txt['pkgstate_cannot_upgrade'] = 'Not Upgradeable';
//$txt['pkgstate_install'] = 'Installable';
$txt['pkgstate_install'] = 'Not Installed';
//$txt['pkgstate_uninstall'] = 'Installed - Uninstallable';
$txt['pkgstate_uninstall'] = 'Installed';
$txt['pkgstate_upgrade'] = 'Upgradeable';

$txt['pkgstatehelp_cannot_install'] = 'These mod can not be installed on your current SMF version. You may want to contact the mod author and ask if they can update it to support the latest SMF version.';
$txt['pkgstatehelp_cannot_uninstall_2'] = 'These mods are installed, but the authors were lazy and did not make them uninstallable. You\'ll need to uninstall them manually.';
$txt['pkgstatehelp_cannot_upgrade'] = 'These mods are installed, and an upgrade is available. However, something is preventing the upgrade from working successfully.';
$txt['pkgstatehelp_install'] = 'These mods are not installed. The mods specify that they\'re compatible with your SMF version.';
$txt['pkgstatehelp_uninstall'] = 'These mods are currently installed, and may be uninstalled.';
$txt['pkgstatehelp_upgrade'] = 'A previous version of these mods is installed. Installing the new version will upgrade your current installation.';

Now click [HERE] (http://custom.simplemachines.org/mods/index.php?mod=875), look where it says  "Download this mod"  to the right, and use the drop menu to select your version of smf(1.1.7), then click submit.
Scroll down till you see the edits for the other failed language files, and make the necessary adjustments to those templates.
Title: Re: Sorted Package Manager Listing
Post by: Blastyr on November 15, 2008, 12:04:17 PM
??? The 1.1.7 patch shouldn't interfere with automated installation with regard to the language files. I installed the patch before I attempted to install this mod. The test of the language file was successful; the test that failed was on "./Themes/default/Packages.template.php". The 1.1.7 patch made a change to this file that makes automated installation of Sorted Package Manager Listing impossible.

Here is the section of the file that is affecting automated installation of the mod:
Code: [Select]
foreach ($context['available_mods'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>
', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>
</td>
</tr>';
}

echo '
</table>
</td>
</tr>';
}

And here is the operation in install.xml which is failing as a result of changes made in SMF 1.1.7 to that file:
Code: [Select]
<operation>
<search position="replace"><![CDATA[
foreach ($context['available_mods'] as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>
', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>
</td>
</tr>';
}

echo '
</table>
</td>
</tr>';
}
]]></search>
<add><![CDATA[
foreach ($available_mods as $i => $package)
{
echo '
<tr>
<td>', ++$i, '.</td>
<td>', $package['name'], '</td>
<td>
', $package['version'];

if ($package['is_installed'] && !$package['is_newer'])
echo '
<img src="', $settings['images_url'], '/icons/package_', $package['is_current'] ? 'installed' : 'old', '.gif" alt="" width="12" height="11" align="middle" style="margin-left: 2ex;" />';

echo '
</td>
<td align="right">';

if ($package['can_uninstall'])
echo '
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ' ]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ' ]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>
</td>
</tr>';
}

echo '
</table>
</td>
</tr>';
}
}
]]></add>
</operation>

I've installed quite a few mods on the forum I help maintain. This mod would make managing all of those packages a lot easier, but I don't have the proper access to do a manual installation or make a backup before running a hacked installer.
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on November 15, 2008, 02:52:32 PM
Yep, I had the same issue.
After manually adding the code, I kept getting a session timed out error while trying to do anything in the packages area(adding, uninstalling, delete).
I was too tired to read through the code, and dont know enough to fix it anyway, so I like you, will wait for the solution.

...but I don't have the proper access to do a manual installation or make a backup before running a hacked installer.

Thats a new one for me.
If I have a site, I'd usually enjoy having access to those areas lol

If you can get to your packages/backup  folder, then you can use the   "BEFORE Sorted Package Manager Listing"   backup.
But you need access to that :-\
Good luck :)
Title: Re: Sorted Package Manager Listing
Post by: Blastyr on November 15, 2008, 07:48:25 PM
...but I don't have the proper access to do a manual installation or make a backup before running a hacked installer.

Thats a new one for me.
If I have a site, I'd usually enjoy having access to those areas lol

If you can get to your packages/backup  folder, then you can use the   "BEFORE Sorted Package Manager Listing"   backup.
But you need access to that :-\
Good luck :)
That's exactly my point. If I had access to the files, I could make a backup and put the board into maintenance mode at like 2 AM when no one is on while I monkey around with the code trying to get the mod to work. Then, if I got it to work, I could fix the package and attach it here.

I'm just an admin, though; I'm not the one who started the community. The founder is a friend of mine, but he won't give me or the other admin FTP access, and for good reason. He only gets one FTP account with his hosting plan, and there's more than just this board in his document root.

So, I guess we're both SOL until someone who knows what they're doing can fix this. :-\
Title: Re: Sorted Package Manager Listing
Post by: HR on December 28, 2008, 05:46:37 PM
Modification for 1.1.7 (sessions inserted).
IF its still of interest
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on December 28, 2008, 06:51:00 PM
Good stuff HR.
Thanks mate :)
Title: Re: Sorted Package Manager Listing
Post by: Finny on December 29, 2008, 12:32:44 PM
Worked like a charm.

Thanks for that!

Title: Re: Sorted Package Manager Listing
Post by: Blastyr on December 29, 2008, 01:46:53 PM
Nice. Thanks, man. :)
Title: Re: Sorted Package Manager Listing
Post by: chrisb on December 29, 2008, 08:54:09 PM
error mesaage i am getting once i have edited the Themes/default/Packages.template.php

Code: [Select]
Template Parse Error!
There was a problem loading the /Themes/default/Packages.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected $end in .../Themes/default/Packages.template.php on line 993

984: <input type="text" size="50" name="ftp_path" id="ftp_path" value="', $context['package_ftp']['path'], '" style="width: 99%;" />
985: </td>
986: </tr>
987: </table>
988:
989: <div align="right" style="margin: 1ex;"><input type="submit" value="', $txt['smf154'], '" /></div>
990: <input type="hidden" name="sc" value="', $context['session_id'], '" />
991: </form>
992: </div></div>';

993: ?>

994:
995:
Title: Re: Sorted Package Manager Listing
Post by: chrisb on December 29, 2008, 09:11:41 PM
Parse error: syntax error, unexpected $end in /home/cxtxtsju/public_html/forum/Themes/default/Packages.template.php on line 994

Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on December 29, 2008, 10:34:17 PM
Are you usin [THIS] (http://www.simplemachines.org/community/index.php?topic=185219.msg1856332#msg1856332) updated package?
Title: Re: Sorted Package Manager Listing
Post by: chrisb on December 31, 2008, 09:57:52 PM
we are using the updated version from hr and still getting these issues
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on December 31, 2008, 11:24:48 PM
There were areas you did not edit properly eg.
Code: [Select]
foreach ($context['available_mods'] as $i => $package)
should be
Code: [Select]
foreach ($available_mods as $i => $package)
there were a few others, closing brackets etc etc..

try the attached template.
Title: Re: Sorted Package Manager Listing
Post by: HR on January 01, 2009, 12:03:49 AM
There were areas you did not edit properly eg.
Code: [Select]
foreach ($context['available_mods'] as $i => $package)
should be
Code: [Select]
foreach ($available_mods as $i => $package)
Hmm using 1.1.7 and not having issue one with the package above. As I pointed out all I added was the session calls

there were a few others, closing brackets etc etc..

try the attached template.
Title: Re: Sorted Package Manager Listing
Post by: rexdelsar on January 14, 2009, 03:48:31 AM
I installed this package last year without any problem. Now I tried to upgrade to 1.1.7 but testing failed. I deactivated this package and 1.1.7 patch installed successfully. However,  I am now getting this error in my package manager:

Quote
Fatal error: Cannot use object of type xmlArray as array in /home/upvisaya/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 436

My package manager does not load properly now and I can't even reactivate this package because of that. What did I do wrong?
Title: Re: Sorted Package Manager Listing
Post by: Sabre™ on January 14, 2009, 10:30:08 AM
Are you using [THIS] (http://www.simplemachines.org/community/index.php?topic=185219.msg1856332#msg1856332) version?
Title: Re: Sorted Package Manager Listing
Post by: [unplugged] on January 14, 2009, 10:21:14 PM
This mod seems to work good in SMF 2 Beta 4 with only minor manual edits (mainly due to it searching for $strings that have been renamed in 2b4). ;) The only thing I see that doesn't seem to be working correctly is the alternating background colors for the list items.

Nice mod!


EDIT: It seems that the links, [ Apply ][ List ] [ Delete ] etc, aren't working correctly and so send you back to main page.
 99% working then. ;)
Title: Re: Sorted Package Manager Listing
Post by: rexdelsar on January 22, 2009, 02:00:31 AM
Are you using [THIS] (http://www.simplemachines.org/community/index.php?topic=185219.msg1856332#msg1856332) version?
Nope.. I think I'm using the version prior to that.

Anyway, I solved the problem by doing a manual uninstall of the package, afterwhich I can reinstall this updated version. Thanks!
Title: Re: Sorted Package Manager Listing
Post by: Tinny on March 27, 2009, 08:47:12 AM
I was having problems trying to install this on smf 1.1.8

Fixed it :D

If anyone needs it, the attached file works on smf 1.1.8
Title: Re: Sorted Package Manager Listing
Post by: Ashdaw on June 17, 2009, 08:34:53 AM
I had the added this mod to a friends site 2 years ago and lately I had been having trouble adding other mods and I finally found that this mod had the change added to the packages.template.php in the wrong spot, as soon as I manually removed it, no more trouble.

I will download the File you have added here Tinny and see if will be ok. :)
Title: Re: Sorted Package Manager Listing
Post by: timned88 on July 17, 2009, 06:23:40 AM
can this be made for 2.0 rc1.2?  I miss having this mod on-board!
Title: Re: Sorted Package Manager Listing
Post by: timned88 on August 07, 2009, 07:43:40 AM
can this be made for 2.0 rc 1.2?  i really miss this mod...
Title: Re: Sorted Package Manager Listing
Post by: Naveeddil on August 22, 2009, 12:27:24 PM
Hello Dear!
it is working fine after installing this Mod Manually (Manual Installation due to conflict with other Mods)
but i'm getting an error as highlited in Attached file
while i'm also sowing the code for the package.template.php (i think it is the place from where this problem arissed)

I'm new to PHP so please Help that what should i do to remove the error
I edited the code and added
Code: [Select]
$context['session_id'], ' because on the page it were giving session error and Expiration
.
.
.
Code from template file (where i think i missed something)
Code: [Select]
<a href="', $scripturl, '?action=packages;sa=uninstall;package=', $package['filename'], ';sesc=', $context['session_id'], '">[ ', $txt['smf198b'], ' ]</a>';
elseif ($package['can_upgrade'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package_upgrade'], ';sesc=', $context['session_id'], '"]</a>';
elseif ($package['can_install'])
echo '
<a href="', $scripturl, '?action=packages;sa=install;package=', $package['filename'], '">[ ', $txt['package11'], ';sesc=', $context['session_id'], '"]</a>';

echo '
<a href="', $scripturl, '?action=packages;sa=list;package=', $package['filename'], '">[ ', $txt['package14'], ' ]</a>
<a href="', $scripturl, '?action=packages;sa=remove;package=', $package['filename'], ';sesc=', $context['session_id'], '"', $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : '', '>[ ', $txt['package52'], ' ]</a>

PLEASE HELP
Title: Re: Sorted Package Manager Listing
Post by: postfix on November 07, 2009, 01:34:33 PM
It didn't work with SMF-1.1.10   :'(
Title: Re: Sorted Package Manager Listing
Post by: Cal O'Shaw on February 20, 2010, 11:49:07 PM
Hello,

What was the change made to this package today?  Ownership change?  I have a version that is working under 1.1.11 and am wondering if I should replace with this one (seems unlikely, but wanted to ask)?

If you are open to suggestions, could you make some indication (lines or alternating shades) to make it easier to hit the correct button when choosing to take an action?  There's that wide unmarked space between the left-justified Package names and the right-justified action buttons, and it's easy, when one has, say, 33 packages, for the mouse to drift up or down when trying to click the proper button.

Grazie,

Cal
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 22, 2010, 10:47:38 PM
Only ownership change
Title: Re: Sorted Package Manager Listing
Post by: Robin1989 on February 23, 2010, 09:35:13 AM
will it be updated to work with 2.0 with the new owner
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 23, 2010, 11:21:04 PM
Tomorrow I will update it
Title: Re: Sorted Package Manager Listing
Post by: timned88 on February 24, 2010, 02:37:23 PM
looking forward to it.
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 24, 2010, 10:44:38 PM
Update 1.0:

Adds striping to the packages list in SMF 1.1.x
Compatible with SMF 2.0 RC2

@timned88: Try the version emulator. I have not tested this mod with SMF 2.0 RC1.2
Title: Re: Sorted Package Manager Listing
Post by: Bugo on February 25, 2010, 12:01:04 PM
Russian translation:
Code: [Select]
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// --- Sorted Package Manager Listing ---
$txt['pkgstate_cannot_install'] = 'Неудачная установка';
$txt['pkgstate_cannot_uninstall'] = 'Установленные - Неудаляемые (нет секции удаления для этой версии SMF)';
$txt['pkgstate_cannot_uninstall_2'] = 'Установленные - Неудаляемые';
$txt['pkgstate_cannot_upgrade'] = 'Необновляемые';
$txt['pkgstate_install'] = 'Неустановленные';
$txt['pkgstate_uninstall'] = 'Установленные';
$txt['pkgstate_upgrade'] = 'Обновляемые';
$txt['pkgstatehelp_cannot_install'] = 'Эти моды не могут быть установлены на текущую версию SMF. Вы можете попробовать связаться с автором каждого мода и попросить его обновить свой продукт для поддержки последней версии SMF.';
$txt['pkgstatehelp_cannot_uninstall_2'] = 'Эти моды установлены, но авторы были настолько ленивы, что даже не сделали их удаляемыми. Вам придётся удалять эти моды вручную.';
$txt['pkgstatehelp_cannot_upgrade'] = 'Эти моды установлены и для них доступны обновления. Однако что-то мешает им обновиться.';
$txt['pkgstatehelp_install'] = 'Эти моды не установлены. Возможно, некоторые из них не совместимы с Вашей версией SMF.';
$txt['pkgstatehelp_uninstall'] = 'Эти моды уже установлены и могут быть удалены.';
$txt['pkgstatehelp_upgrade'] = 'Установлены предыдущие версии этих модов. Установка новой версии мода обновит текущую.';
]]></add>
</operation>
</file>
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 25, 2010, 05:24:29 PM
Thank you. Is that utf-8 or both?
Title: Re: Sorted Package Manager Listing
Post by: Bugo on February 25, 2010, 07:56:00 PM
Thank you. Is that utf-8 or both?
It's possible (both), but in different files - encoded with ANSI and UTF8 encoded separately. Example:

file russian-utf8.xml (encoded to UTF8 without BOM):
Code: [Select]
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// --- Sorted Package Manager Listing ---
$txt['pkgstate_cannot_install'] = 'Неудачная установка';
$txt['pkgstate_cannot_uninstall'] = 'Установленные - Неудаляемые (нет секции удаления для этой версии SMF)';
$txt['pkgstate_cannot_uninstall_2'] = 'Установленные - Неудаляемые';
$txt['pkgstate_cannot_upgrade'] = 'Необновляемые';
$txt['pkgstate_install'] = 'Неустановленные';
$txt['pkgstate_uninstall'] = 'Установленные';
$txt['pkgstate_upgrade'] = 'Обновляемые';
$txt['pkgstatehelp_cannot_install'] = 'Эти моды не могут быть установлены на текущую версию SMF. Вы можете попробовать связаться с автором каждого мода и попросить его обновить свой продукт для поддержки последней версии SMF.';
$txt['pkgstatehelp_cannot_uninstall_2'] = 'Эти моды установлены, но авторы были настолько ленивы, что даже не сделали их удаляемыми. Вам придётся удалять эти моды вручную.';
$txt['pkgstatehelp_cannot_upgrade'] = 'Эти моды установлены и для них доступны обновления. Однако что-то мешает им обновиться.';
$txt['pkgstatehelp_install'] = 'Эти моды не установлены. Возможно, некоторые из них не совместимы с Вашей версией SMF.';
$txt['pkgstatehelp_uninstall'] = 'Эти моды уже установлены и могут быть удалены.';
$txt['pkgstatehelp_upgrade'] = 'Установлены предыдущие версии этих модов. Установка новой версии мода обновит текущую.';
]]></add>
</operation>
</file>

and file russian.xml (encoded in ANSI):
Code: [Select]
<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// --- Sorted Package Manager Listing ---
$txt['pkgstate_cannot_install'] = 'Неудачная установка';
$txt['pkgstate_cannot_uninstall'] = 'Установленные - Неудаляемые (нет секции удаления для этой версии SMF)';
$txt['pkgstate_cannot_uninstall_2'] = 'Установленные - Неудаляемые';
$txt['pkgstate_cannot_upgrade'] = 'Необновляемые';
$txt['pkgstate_install'] = 'Неустановленные';
$txt['pkgstate_uninstall'] = 'Установленные';
$txt['pkgstate_upgrade'] = 'Обновляемые';
$txt['pkgstatehelp_cannot_install'] = 'Эти моды не могут быть установлены на текущую версию SMF. Вы можете попробовать связаться с автором каждого мода и попросить его обновить свой продукт для поддержки последней версии SMF.';
$txt['pkgstatehelp_cannot_uninstall_2'] = 'Эти моды установлены, но авторы были настолько ленивы, что даже не сделали их удаляемыми. Вам придётся удалять эти моды вручную.';
$txt['pkgstatehelp_cannot_upgrade'] = 'Эти моды установлены и для них доступны обновления. Однако что-то мешает им обновиться.';
$txt['pkgstatehelp_install'] = 'Эти моды не установлены. Возможно, некоторые из них не совместимы с Вашей версией SMF.';
$txt['pkgstatehelp_uninstall'] = 'Эти моды уже установлены и могут быть удалены.';
$txt['pkgstatehelp_upgrade'] = 'Установлены предыдущие версии этих модов. Установка новой версии мода обновит текущую.';
]]></add>
</operation>
</file>
Title: Re: Sorted Package Manager Listing
Post by: Membre on February 26, 2010, 09:25:13 AM
Spanish_es / Spanish_latin / Spanish ( add utf8 also please :) )

         <add><![CDATA[
// --- Sorted Package Manager Listing ---
$txt['pkgstate_cannot_install'] = No se puede instalar';
$txt['pkgstate_cannot_uninstall'] = 'Instalado - No Desinstalable (no hay seccion de desinstalacion para esta version de SMF)';
$txt['pkgstate_cannot_uninstall_2'] = 'Instalado - No Desinstalable';
$txt['pkgstate_cannot_upgrade'] = 'No se puede Actualizar';
//$txt['pkgstate_install'] = 'Instalable';
$txt['pkgstate_install'] = 'No Instalado';
//$txt['pkgstate_uninstall'] = 'Instalado - No Desinstalable';
$txt['pkgstate_uninstall'] = 'Instalado';
$txt['pkgstate_upgrade'] = 'Actualizable';

$txt['pkgstatehelp_cannot_install'] = 'Este mod no puede ser instalado en tu version actual de SMF. Tu podrias contactar el autor del mod y pedir si puede actualizarlo para que soporte la ultima version del SMF.';
$txt['pkgstatehelp_cannot_uninstall_2'] = 'Estos mods estan instalados, pero los autores fueron vagos y no le hicieron un desinstalador. Tendras que desinstalarlos manualmente.';
$txt['pkgstatehelp_cannot_upgrade'] = 'Estos mods estan instalados y una actualizacion esta disponible. Sin embargo, algo esta deteniendo el correcto funcionamiento de la actualizacion.';
$txt['pkgstatehelp_install'] = 'Estos mods no estan instalados. Los mods son compatibles con tu version de SMF.';
$txt['pkgstatehelp_uninstall'] = 'Estos mods estan instalados y pueden ser desinstalados.';
$txt['pkgstatehelp_upgrade'] = 'Una version previa de estos mods esta instalada. Instalando la nueva version actualizara tu instalacion actual.';
]]></add>
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 26, 2010, 05:52:06 PM
Thanks guys
Title: Re: Sorted Package Manager Listing
Post by: Am' on March 11, 2010, 03:51:44 AM
not compatible with rc3
Title: Re: Sorted Package Manager Listing
Post by: [unplugged] on March 11, 2010, 04:23:45 AM
RC3 has only been out for a couple of days. I'm sure the update is on it's way. The only reason it failed at all is because RC3 wrapped the <h3> tag in <div>'s to help with styling Curve better.

It didn't take much to get this installed on my RC3. If you absolutely have to have it right away:

1) Make backups (this should always be step 1).
2) Upload the mod package.
3) Go to package manager and down at the very bottom right corner, select Advanced.
4) Change where is says SMF 2.0 RC2 to SMF 2.0 RC3.
5) Install the mod. (You will get two fails for the Packages.template.php. Ignore these and install anyway.)
6) Upload the attached Packages.template.php (which I have already manually edited) to your Themes/default/ folder.
7) Enjoy the mod.
Title: Re: Sorted Package Manager Listing
Post by: live627 on March 11, 2010, 03:17:49 PM
Okay I have updated this mod to be compatible with SMF 2.0 RC3
Title: Re: Sorted Package Manager Listing
Post by: live627 on May 05, 2011, 02:30:34 AM
1.0.2 is compatible with SMF 2.0 RC5
Title: Re: Sorted Package Manager Listing
Post by: dougiefresh on June 15, 2011, 02:23:51 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  Version 1.0.2 of this mod installed without issues and without emulation.  Hope this info helps someone!
Title: Re: Sorted Package Manager Listing
Post by: live627 on June 16, 2011, 01:13:47 AM
That's great to hear!
Title: Re: Sorted Package Manager Listing
Post by: Eclipse16V on December 29, 2011, 01:05:48 AM
Run on SMF 2.0.2
Is there a feature option to sort the at install date?
Title: Re: Sorted Package Manager Listing
Post by: live627 on December 29, 2011, 01:20:30 AM
No
Title: Re: Sorted Package Manager Listing
Post by: Dylert on August 08, 2012, 05:21:39 PM
Great mod! Thank you! :)
Title: Re: Sorted Package Manager Listing
Post by: ke4obt on January 01, 2013, 11:13:11 AM
I tried to install this mod on a brand-new, clean version of SMF 2.0.3. In the package manager, I don't get the "install" button. On upload it told me that either the file was corrupt or for the wrong version. I did the manual edits and could no longer access my package manager, so I had to reinstall SMF to make sure it was back to a clean version.
I see that this mod was just recently updated, is there a possibility something was missed??
What do I need to do to install this????

thanks in advance,
Flip
Title: Re: Sorted Package Manager Listing
Post by: live627 on January 03, 2013, 06:17:42 PM
Which version did you get? 1.0.2?
Title: Re: Sorted Package Manager Listing
Post by: MoreBloodWine on August 23, 2013, 02:22:29 AM
Sorry to bother you guys, I was wondering if you might consider adding in the functionality of this mod ?

http://custom.simplemachines.org/mods/index.php?mod=2323

Some times I need to uninstall mods and I run in to errors due to them not being uninstalled in the order in which they were installed.

Installed.

1
2
3

Uninstalled.

3
2
1

Anyway, If you could add a Installed category that shows the time they were installed that would be awesome. Only small issue I could maybe see is if the installed list is split up by the currently installed and uninstalable list due to a revision issue.

ex. A mod coded for 2.0.4 cant be uninstalled in 2.0.5 so it's in the uninstallable list but wa say the 5 mod of 20 installed.

Edit: Was thinkin bout this, but maybe add a tickable option that lets a user "combine" the installed/uninstallable list so the ordering thig doesnt become an issue should the requested functionality be added.
Title: Re: Sorted Package Manager Listing
Post by: Arantor on August 23, 2013, 07:18:06 AM
That can't be done without a much larger rewrite of the package manager. Like rewriting most of the browse packages page.
Title: Re: Sorted Package Manager Listing
Post by: MoreBloodWine on August 23, 2013, 09:13:43 PM
That can't be done without a much larger rewrite of the package manager. Like rewriting most of the browse packages page.
Damn, well for the fun of it so I can say I asked, what would you say a fair for both sides price might be to make it a paid thing ?
Title: Re: Sorted Package Manager Listing
Post by: Arantor on August 23, 2013, 09:25:52 PM
Me? I'd charge $200. The rewrite required to do that is enormous.
Title: Re: Sorted Package Manager Listing
Post by: MoreBloodWine on August 25, 2013, 11:38:20 PM
Me? I'd charge $200. The rewrite required to do that is enormous.
Whoda thunk it, and just to add to this mod what the other does heh. Guess I got some saving to do lol.
Title: Re: Sorted Package Manager Listing
Post by: Arantor on August 26, 2013, 05:50:37 PM
If it's so simple, just use the other mod and be done with it.

Oh, and I don't know if it occurred to you or not, but you can always just sort by installed time and mentally ignore the ones that say 'N/A' on them...

(Also, please note, it's not $200 worth of work. It's probably closer to $40 worth of work but that's a measure of how much I don't like going back over my old mods and rewriting them. Keeping a foot rooted in the past means you get ever more reluctant to go forward into the future and create a situation where you don't need this ridiculous farce of a setup in the first place.)
Title: Re: Sorted Package Manager Listing
Post by: NekoJonez on October 31, 2014, 09:40:46 AM
Is there a way to install this mod & this?
http://custom.simplemachines.org/mods/index.php?mod=2323
Title: Re: Sorted Package Manager Listing
Post by: vbgamer45 on October 31, 2014, 09:42:48 AM
Doubt it since both very similiar
Title: Re: Sorted Package Manager Listing
Post by: NekoJonez on October 31, 2014, 09:45:49 AM
Darn, since I would love to see that install time ;)
Title: Re: Sorted Package Manager Listing
Post by: Steve on October 31, 2014, 04:10:52 PM
A combination of the two would be cool. I wonder if Arantor would mind if you added the install time to this mod (if you'd even consider it)?
Title: Re: Sorted Package Manager Listing
Post by: live627 on February 23, 2019, 11:28:27 AM
I've updated this mod so now it shows the installed time. And all columns can be sorted. Also will be compatible with 2.1 RC2 once it rolls out, or the current GitHub nightly build.

https://github.com/live627/PackageManagerSort/releases/download/v1.1/PackageManagerSort_1-1.zip

I've asked vbgamer if I can have this mod back.