Member
Member
tunafish   2011-07-08, 08:41
#1

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

Member
Member
tunafish   2011-07-08, 09:36
#2

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

Doh.

Administrator
Administrator
acrylian   2011-07-08, 10:12
#3

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).

Member
Member
sbillard   2011-07-08, 22:25
#4

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.