ZenphotoCMS Forum
default plugins - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: default plugins (/thread-8839.html)



default plugins - tunafish - 2011-07-08

I want to enable / disable the plugins I am using when seting up a new install or upgrade so I don't have to go through them every time.
So in zp-core setup/setup-option-defaults.php
I see the enabled plugins like this:

setOptionDefault('zp_plugin_class-video', 9|CLASS_PLUGIN);

I would like to know what's up with the number (5, 9, 8)?
For example I want to enable the user_login-out.php in the setup I need to add:

setOptionDefault('zp_plugin_user_login-out', ???|CLASS_PLUGIN);

My guess is the number refers to the plugin category?
Template Plugins, Core plugins, Admin utilities




default plugins - tunafish - 2011-07-08

I just realize something... why setting up defaults if I am importing the .sql file.

Doh.




default plugins - acrylian - 2011-07-08

No the number refers to the loading priority.

All plugins set default values but on first enabling and if no options are set (at least they should behave like that).




default plugins - sbillard - 2011-07-08

For updates you need do nothing. Your installation options are unchanged. If you are making a new install that is different. At present there is no way to import just the plugin settings.