Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Table for Options
Linc
Admin
I've noticed there's no "options" table in the database schema.
If I'm making an addon that has a few options in the dash, where am I supposed to store those settings? Should every addon get a new database table even if it needs nothing more than to store a few values?
Again drawing on my limited Wordpress plugin experience, there's a wp_options table with columns option_name and option_value, which is a flexible way for plugin authors to store simple things like dash settings without adding tables.
Would it be appropriate to create one in the default installation of Vanilla 2 or Garden to encourage a standard way of doing this?
If I'm making an addon that has a few options in the dash, where am I supposed to store those settings? Should every addon get a new database table even if it needs nothing more than to store a few values?
Again drawing on my limited Wordpress plugin experience, there's a wp_options table with columns option_name and option_value, which is a flexible way for plugin authors to store simple things like dash settings without adding tables.
Would it be appropriate to create one in the default installation of Vanilla 2 or Garden to encourage a standard way of doing this?
0
Comments
$Config = Gdn::Factory(Gdn::AliasConfig); $Path = PATH_CONF . DS . 'config.php'; $Config->Load($Path, 'Save'); $Config->Set('Routes'.'.friends/requests', "friendslist/friends/requests"); $Config->Save($Path);
That may help you. Its some code i was using to change the config file for routes.
Enjoy