MyBB Community Forums

Full Version: Variable number of settings possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to setup a plugin with settings like this:
  • Number of fruit: 3
  • Fruit #1 - type orange, state fresh
  • Fruit #2 - type banana, state moldy
  • Fruit #3 - type apple, state fresh

...and then if the admin changes "Number of fruit" to 5, additional settings for Fruit #4 and Fruit #5 could be set?

In other words - the plugin author may not know ahead of time how many settings would be needed.

Reading the plugin docs on settings, it seems like it expects the plugin author to know ahead of time what all possible settings are.