Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: ScopeXL on May 19, 2011, 11:16:20 PM

Title: $config_vars option for board selection?
Post by: ScopeXL on May 19, 2011, 11:16:20 PM
I am working on a mod, and am using the nice and simple $config_vars for my admin page. I've pretty much figured out how to create checkboxes, textboxes, int fields, and permission settings. Is there a $config_var I can use for board selection? Basically working the same way permissions do it.

i.e.

$config_vars = array(
array('permissions', 'permission_key'),
);


is there a such thing as array('boards', 'key'), or something similar that will allow the user to select boards from a list of current boards?
Thanks in advance for any help.
Title: Re: $config_vars option for board selection?
Post by: live627 on May 20, 2011, 12:08:10 AM
No. You have to use a query and then add the results to your settings array.
Title: Re: $config_vars option for board selection?
Post by: ScopeXL on May 20, 2011, 01:21:30 AM
Ah, ok. Thank you.