Automatic Package Version Emulation (SMF 2.0.x Only)

Started by dougiefresh, March 01, 2016, 06:58:02 PM

Previous topic - Next topic

dougiefresh

Link to Mod



AUTOMATIC PACKAGE VERSION EMULATION v1.6
By Dougiefresh -> Link to Mod



Introduction
This mod just makes it a little easier to install mods that were written exclusively for earlier versions of SMF!!!  How?  Well, continue reading!

This mod determines what version of Simple Machines Forum software (SMF) is needed to be emulated in order to install the mod and alters the install/upgrade/uninstall link so that the necessary forum version is included automatically, making mod installation a bit easier.  It also displays what version is going to be emulated in the install/upgrade/uninstall link.

Inspiration
This feature was backported from the SMF 2.1 Beta 2 software, which has similar functionality built in.  However, no code from SMF 2.1 Beta 2 was used in the making of this mod.

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

Furthermore, SMF 2.1 will not be supported, as it already has this functionality built in.

Changelog
The changelog can be viewed at XPtsp.com.

License
QuoteCopyright (c) 2016 - 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.

live627


margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin


lurkalot

#5
Nice mod.  8) Haven't tried it yet, so a quick question.

Does it work in reverse, I mean when uninstalling mods will the uninstall links also show without having to set emulation manually? 

Edit: I mean mods installed prior to installing this one.

dougiefresh

They should be able to uninstall without setting the emulation beforehand.  In my tests, I was able to do so effortlessly....  And I tested with 10 mods....

Steve

DO NOT pm me for support!

aegersz

I love this one too ... you're one hell of a programmer !!
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

dougiefresh

UPDATE:  I've discovered an issue with this mod.  When you set a specific version to emulate, the mod completely ignores the version that was set....

Steve

Is that an FYI for us so we know you're aware of it and are working on a fix?
DO NOT pm me for support!

dougiefresh

Quote from: Steve on August 12, 2017, 05:40:59 PM
Is that an FYI for us so we know you're aware of it and are working on a fix?
Yep.

dougiefresh

Uploaded v1.1 - August 14th, 2017
o Fixed issue where user-selected version emulation was ignored.
o Fixed issue where text was displayed before templates started.

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

TiPsY

I've gotten this error on the upper left side after trying to uninstall: http://i.imgur.com/ZXxo1vN.png

Now, I couldn't find the origin but I reversed that from the package backups, any info on how to install the new version without getting this for uninstalling the previous one?

dougiefresh

Quote from: TiPsY on August 15, 2017, 01:15:00 PM
I've gotten this error on the upper left side after trying to uninstall: http://i.imgur.com/ZXxo1vN.png

Now, I couldn't find the origin but I reversed that from the package backups, any info on how to install the new version without getting this for uninstalling the previous one?
You will have to edit Themes/default/Packages.template.php and remove everything before <?php.  The new version should solve that particular issue with the Package Manager template....

mysimplesite

Thanks for the great mod. Can't wait to try it out. Installed flawlessly.

dougiefresh

Uploaded v1.2 - August 19th, 2017
o Fixed undefined element error in Sources/Sub-Packages.php.
o Fixed undefined element error in Themes/default/Packages.template.php.

dougiefresh

UPDATE:  I'm aware that version 1.2 is still screwed up....  Packages that require emulation are not being caught by the mod.  I'm working on a solution....

efk

Expecting to try stable version. About copyrights, is this mod free for use?

Advertisement: