Contributions
Easy Configuration File
This contribution is compatible with anything.
I also use it for other projects.
It is a Universal one-file configuration script.
While developing, I got tired of making changes to the database or making entire configuration-pages for all the settings I was creating, so I created this file.
It can be used as temporary solution, but turned out usable enough to use in a production site too.
Features:
- Generates/Displays settings in tabs, separated by headings
- Generates/Displays a help tooltip for each option
- Uses Textfields and various Dropdowns (seconds, numbers, yes/no, colors, align....)
- Save settings as a variable or a define
- Saves a configuration file to be directly included
- Configuration file is automatically commented
- Ability to Delete entries that are also found in the DataBase
Options to set:
- SettingsFile: File to save the settings to
- DeleteDB: Set to anything to delete duplicate values from DataBase
- CommentPre: Text to add to each comment
- Settings: Array with all the settings. Contains: Tab => Heading => Row => Option => Option Settings
The file has some example settings to get you started.
The Official Support Thread is located here: http://forums.oscommerce.com/topic/358905-contribution-easy-configuration-file/
| 30 Jun 2010 |
There was a small bug in the 'get_yesno' Input-option (the default yes/no always returned 0)
Made a couple of changes to fix this.
| 29 Jun 2010 |
| 19 May 2010 |
Note: Contributions are used at own risk.
