2012-08-31, 02:26 PM
Whether to use it or not, is your decision entirely. The question is whether you want PluginLibrary to do things for you, or do them yourself.
Settings are simple, right? But does your code set disporder correctly, does it prevent duplicates/leftovers, does it handle updates without losing data at all? Do you have a language file for setting translation? Do you want to do this yourself or do you want a function that does it for you?
That's kinda what PluginLibrary is all about. It makes settings easy to create and maintain; it creates templates in a way that allows users to edit and revert them; stuff that's useful for many plugins and which isn't really that simple to implement yourself and not usually covered in tutorials.
I did ask for plugin api functionality to be added to core, back in 2008, and was told to wait for MyBB 2.
There are advantages to it being a third party library, as long as the developer is active anyway: If there is a bug report today, I can release a bugfix tomorrow. No need to wait months for the next MyBB version, and no need to tell admins to update their entire boards instead of just a plugin.
Settings are simple, right? But does your code set disporder correctly, does it prevent duplicates/leftovers, does it handle updates without losing data at all? Do you have a language file for setting translation? Do you want to do this yourself or do you want a function that does it for you?
That's kinda what PluginLibrary is all about. It makes settings easy to create and maintain; it creates templates in a way that allows users to edit and revert them; stuff that's useful for many plugins and which isn't really that simple to implement yourself and not usually covered in tutorials.
I did ask for plugin api functionality to be added to core, back in 2008, and was told to wait for MyBB 2.
There are advantages to it being a third party library, as long as the developer is active anyway: If there is a bug report today, I can release a bugfix tomorrow. No need to wait months for the next MyBB version, and no need to tell admins to update their entire boards instead of just a plugin.