Addons are custom features that you can add to your Vanilla forum. Addons are created by our community of developers and people like you!
These addons are for people who downloaded and set up their own Vanilla forum. Compare your downloaded version with the version requirements on the right.
If your Vanilla forum is hosted at VanillaForums.com, this addon may already be installed there.
We review addons to make sure they are safe and don't cause bugs. An addon is considered to be "Vanilla Approved" once our review process is complete.
| Version | Released |
|---|---|
| 1 | November 2010 |
/applications folder to install it.We at Wufoo needed a way to define functions for the DB connection strings, but config.php overwrites functions with strings at config save. After a long discussion with the super-helpful guys at VanillaForums, we decided this application was the best way to override this behavior.
I wrote the project to help those who need to set configuration settings in a read/write way on localhost, but in a read-only way in the production environment.
If you’re in a read-only environment, you’re probably frustrated because saving the config.php file throws errors when you attempt to save your settings. You can change this behavior by adding this code around line 375 in class.configuration.php. If the guys from vanilla suggest a better way of handling this problem, I’ll be happy to add it to the application. For now, this is my way. The Config class below is our own. You’ll have to create one to make this work.
if (!is_writable($File)) {
if (Config::jobServerName() == 'local' || Config::jobServerName() == 'dev') {
return TRUE;
} else {
throw new Exception(sprintf(T("Unable to write to config file '%s' when saving."),$File));
}
}