2013-01-07, 03:26 PM
When releasing plugins it would be nice if developers could have some built-in method for versioning. If the Admin has another option for plugins that would appear when an upgrade was necessary. This would execute an upgrade script within the plugin.
Maybe add optional two functions to plugins: _is_upgraded and _upgrade
Developers could check the version and provide different methods of installation based on the current version. If it were made so that the plugin itself were responsible for determining if upgrade were necessary (_is_upgraded) then it would be a simple matter for the developer to look for certain elements of the installation to determine version.
_is_upgraded would be ignored if _is_installed was false (no link in ACP)
So the developer could release a new plugin and instruct the users to overwrite existing files and then Upgrade. The benefit being that user settings could be maintained while still updating to the latest software (much like MyBB upgrades).
Just something I've been mulling over . . .
Maybe add optional two functions to plugins: _is_upgraded and _upgrade
Developers could check the version and provide different methods of installation based on the current version. If it were made so that the plugin itself were responsible for determining if upgrade were necessary (_is_upgraded) then it would be a simple matter for the developer to look for certain elements of the installation to determine version.
_is_upgraded would be ignored if _is_installed was false (no link in ACP)
So the developer could release a new plugin and instruct the users to overwrite existing files and then Upgrade. The benefit being that user settings could be maintained while still updating to the latest software (much like MyBB upgrades).
Just something I've been mulling over . . .