Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
AddConfigurationSetting
y2kbg
New
Isnt there any documentation explaining this:
AddConfigurationSetting
how to save and get them?
maybe someone add it to the how to make extensions cause i want a straightforward, and proper, way to use this.
AddConfigurationSetting
how to save and get them?
maybe someone add it to the how to make extensions cause i want a straightforward, and proper, way to use this.
0
This discussion has been closed.
Comments
function AddConfigurationSetting(&$Context, $SettingName, $SettingValue = '1') { $Context->Configuration[$SettingName] = ''; $SettingsManager = $Context->ObjectFactory->NewContextObject($Context, 'ConfigurationManager'); $SettingsFile = $Context->Configuration['APPLICATION_PATH'].'conf/settings.php'; $SettingsManager->DefineSetting($SettingName, $SettingValue, 1); $SettingsManager->SaveSettingsToFile($SettingsFile); }
It will be a while before this is added to Friends 1.0 extension because i am trying to install a 500GB SATA...Windows hates my drive, it hates me... :-( I am now on a computer that has none of correct codeing tools nor and files that I had modded but not uploaded.
*deleted old code* it was wasting space!
*deleted more code as i was not using it anymore*
Edit: ok now i got it working, saving the settings. The Friends extension update should be ready in a few hours. hopefully..