ElkArte Community

Extending Elk => Addons => Addons ideas and questions => Topic started by: Cody on December 15, 2017, 09:20:37 pm

Title: Settings During Install
Post by: Cody on December 15, 2017, 09:20:37 pm
The mod Im working on requires a couple settings to be set to work, and I'd rather get them from the admin during install than just use a random default.  I feel like at some point Ive seen a mod do that either in Elkarte or SMF, I just can't remember which one it was to see how it was done.

If its possible, any help would be appreciated.
Title: Re: Settings During Install
Post by: Spuds on December 16, 2017, 09:52:25 am
I'd probably just add an alert/inform message to your mods settings page based on what those settings are with the ability to set them from your page as well (just use the same var names). 

If you don't do this nothing stops the admin from going to the other page and unsettling them unless you mod removes those settings from those areas as well.

Some close examples would be the cache page where it tells you and sets what cache engines you can use based on whats installed.  Or the load management page which you can't change if your not on *nix ... Not exactly what you are asking but UI examples.