2012-01-19, 09:04 PM
Another great update frostschutz. I just wish more people actually used this.
PluginLibrary 13
|
2012-01-19, 09:04 PM
Another great update frostschutz. I just wish more people actually used this.
2012-01-19, 09:07 PM
I think the new features are really cool, but I have some questions.
If the user edits a template in the ACP, MyBB writes the current MyBB version code to the template record. There is no support for user versions (e.g. multiple edits within a given MyBB version/release). I looked at PL6 and noticed it was pushing version = 1 for sid = -2 (master template) but that wont let the Find Updated work since it requires the master version to be g.t. than the edited template version
Lost interest, sold my sites, will browse here once in a while. It's been fun.
2012-01-19, 09:29 PM
(This post was last modified: 2012-01-20, 02:27 AM by frostschutz.)
![]() This just doesn't work for plugin template versions, since plugins can update any time regardless of MyBB version. So instead of using MyBB version numbers, PluginLibrary simply uses 0 or 1 for version numbers and considers any template change as an update. So when PluginLibrary updates a template, it sets the user edited template version to 0. And since the master template has version 1, it'll show up in the updated templates. This works fine in most cases; the only case that is not covered here that I can think of, is importing themes. It's possible to import an outdated plugin template which then won't show up in find updated templates - it's impossible to tell which plugin version it once belonged to because MyBB sets it to the MyBB version instead.
2012-02-08, 11:42 AM
this plugin is not installing what is the problem in it when i install it. nothing happens
2012-02-08, 12:06 PM
![]() Plugins using this library just load it whenever they actually need it.
2012-03-16, 09:44 PM
Can/should we ship PluginLibrary with our plugins? Or should installing it be a requirement?
2012-03-16, 11:17 PM
![]()
2012-03-17, 07:00 PM
A plugin that depends on another plugin (e.g. PluginLibrary), should never ship it in the download. You should just clearly state the dependency in the description.
In an ideal world, you could specify dependencies in your plugin_info() function and boards owners could search & install plugins (including their dependencies) directly from their ACP. Creativity is a drug I cannot live without.
2012-03-30, 02:58 AM
Is there any function to check if a desired patch is applied? I want to hide the *Apply Patch* link if it is already applied just like google seo.
But the example hello plugin doesn´t show that.
2012-04-03, 10:56 AM
![]()
The return value is explained in the documentation. I'll try to put this example into the hello_pl plugin sometime. |
« Next Oldest | Next Newest »
|