I'll make a short example on how you can easily add your own configuration section to ACP => Configuration => Icy Phoenix.
- First step create a new empty file into includes/mods_settings and call it as you like (you just need to make sure to have the prefix mod_ in front of it). For the benefit of this tutorial we will call it mod_my_brand_new_config_section.php.
- Fill the file with the config entries you need, these entries will be inserted automatically into phpbb_config table (of course table prefix may be different for your own configuration). Here is an example which adds two vars one being YES/NO and the other a TEXT one:
Spoiler: [ Show ]
- You will now need to create language entries for all those new vars, and to do that let's create a brand new lang file so to avoid messing with standard Icy Phoenix files. Again the name could be as you like, but you need to pay attention to the prefix which in this case should be lang_extend_. In this example let's suppose we have only English lang installed (if you have more than one lang you need to replicate this for any lang installed) and we will use this filename: lang_extend_my_brand_new_lang_file.php. Of course the file have to be located into language/lang_english/ folder!
- The content of the file should be something like this:
Spoiler: [ Show ]
- Now that everything has been created, we are ready to use our own vars everywhere in Icy Phoenix by just using:
- $board_config['my_yes_no_var']
- $board_config['my_text_var']
- $board_config['my_yes_no_var']
- Enjoy your new vars!!!
You have created your own config section and vars without having edited a single Icy Phoenix file, did you expect it could be so easy? :mri: