Advertisement:

Author Topic: Delete Packages Without Refresh  (Read 1124 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Delete Packages Without Refresh
« on: August 24, 2017, 01:26:12 PM »
Link to Mod


DELETE PACKAGES WITHOUT REFRESH v2.0
By Dougiefresh -> Link to Mod


Introduction
As of this writing, I currently have 187 mod packages in my Package Manager.  Deleting one of them forces a refresh of the screen I'm looking at.  This forces me to start over looking for mods.  This mod fixes this issue.

This mod also fixes the lack of alternating row colors in the avatar, language and other mod sections.

Admin Settings
There are no admin settings.  To remove this, you must uninstall the mod.

Compatibility Notes
This mod was tested on SMF 2.0.14 and SMF 2.1 Beta 3, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported. 

Changelog
The changelog has been removed and can be seen at XPtsp.com.

License
Quote
Copyright (c) 2017, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline pocttopus

  • Jr. Member
  • **
  • Posts: 151
    • @pocttopus on Twitter
Re: Delete Packages Without Refresh
« Reply #1 on: August 25, 2017, 10:31:46 AM »
Introduction
As of this writing, I currently have 187 mod packages in my Package Manager.
...
Is this okay? To use 187 modifications? Isn't that too much for the forum/server?  ???

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Delete Packages Without Refresh
« Reply #2 on: August 25, 2017, 10:37:22 AM »
Is this okay? To use 187 modifications? Isn't that too much for the forum/server?  ???
My forum seems to run okay with that many mods.  It's not like all the mods are focused on a single area of the forum....  Although, at the moment I only have 23 mods installed....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,927
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Delete Packages Without Refresh
« Reply #3 on: August 25, 2017, 03:53:03 PM »
Kindred has mentioned using over 200 mods I believe with no problem. I run nearly a hundred counting custom made ones.
Please do not PM me for support.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Delete Packages Without Refresh
« Reply #4 on: August 25, 2017, 09:11:25 PM »
Uploaded v1.1 - August 25th, 2017
o Fixed corrupted search lines that prevent proper installation on SMF 2.0.x!



@Everybody:  I apologize for releasing a corrupt version that doesn't install!  Evidently my "unmodified" (base) copy of my test forum was changed by accident!  This update fixes the issues that were accidentally introduced during the mod creation/review and not caught....

This mod is going to be rewritten in order to support SMF 2.1 Beta 3, as Package Manager was written quite a bit differently from SMF 2.0.x's Package Manager.  It will also likely require JQuery in order to do its thing on SMF 2.0.x, just so that I don't have to write two different versions of the same mod...  It's a decision I made once I saw how SMF 2.1 Beta 3 attaches the on-click event handlers....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,421
    • XPtsp.com Community
Re: Delete Packages Without Refresh
« Reply #5 on: August 28, 2017, 10:00:36 AM »
Uploaded v2.0 - August 28th, 2017
o Rewrote mod for compatibility with SMF 2.1 Beta 3.
o Added CSS animation to be displayed while processing AJAX request.
o If no packages are in list after a delete, window is reloaded.



UPDATE:  This mod no longer makes any changes to source or templates files.  Instead it uses hooks to accomplish the aims.  It is honestly the version I wish I could have released to begin with....
NOTICE:  My website is back up!

My Free Simple Machines mods on XPtsp.com and Simple Machines Customization Site!
My mods are being uploaded and are available at GitHub as well!

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: Delete Packages Without Refresh
« Reply #6 on: August 28, 2017, 02:53:52 PM »
Kindred has mentioned using over 200 mods I believe with no problem. I run nearly a hundred counting custom made ones.

You are right. Our forum is very very fast and normal. We have 227 installed mods and all are running

SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,117
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Delete Packages Without Refresh
« Reply #7 on: August 28, 2017, 11:45:08 PM »
I have 130+ packaged mods on plus some of my own manual changes.

apart from conflicts when installing new mods or trying to get some old ones off, it all seems to work fine, give or take a few minor bugs.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 754
Re: Delete Packages Without Refresh
« Reply #8 on: September 11, 2017, 12:48:31 PM »
Well hell,  I don't feel so bad running 144...

;)


Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,117
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Delete Packages Without Refresh
« Reply #9 on: September 12, 2017, 08:38:23 AM »
@dougie, that always bothered me too. I can't believe that you went to the trouble of writing, packaging and testing it !

... BUT I am glad that you did ! i have so many old versions of mods on my test system and now i can clean up without forgetting where i was up to.

i like these subtle productivity aids !
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)