build_cfg_template
function for creating MOD's setup page in ACP there is not prefix and suffix option.imagine we want to display a text input that get a number in percent. by using
build_cfg_template
function we can not add a `%` text right after input box so we should manually create inputs and ignore using that function.something like this:
Code: Select all
function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars, $prefix = '', $suffix = '')
{
...
....
$tpl = $prefix . '<input id="' . $key . '" type="' . $tpl_type[0] . '"' . (($size) ? ' size="' . $size . '"' : '') . ' maxlength="' . (($maxlength) ? $maxlength : 255) . '" name="' . $name . '" value="' . $new[$config_key] . '"' . (($tpl_type[0] === 'password') ? ' autocomplete="off"' : '') . ' />' . $suffix;
...
...