Is it possible to force a plugin that is already open to re-open when a hotspot is clicked? Normally when I try to add the plugin with the same name it will be ignored. But if I use removeplugin before addplugin, when the plugin isn't open in first place I get "ERROR: remove - unknown array item". How can I make sure the old plugin is closed, if it exists, and the new one always opens?
How do I replace a plugin?
-
-
Hi Protected,
QuoteHow can I make sure the old plugin is closed, if it exists, and the new one always opens?
I think you could check about a given plugin before doing anything in this way:
Hope this help...
SAlut.
-
Thanks, that seems to be just what I was looking for.
EDIT: Now tested and confirmed to work: if(plugin[name].loaded,removeplugin(name));
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!