3
This is all I've done for it, copied it mostly from the mylinks module :)
xoops_version.php
............code.................
// Config Settings (only for modules that need config settings generated automatically)
// name of config option for accessing its specified value. i.e. $xoopsModuleConfig['storyhome']
$modversion['config'][1]['name'] = 'archive';
// title of this config option displayed in config settings form
$modversion['config'][1]['title'] = '_MI_CHAT_ARCHIVE';
// description of this config option displayed under title
$modversion['config'][1]['description'] = '';
// form element type used in config form for this option. can be one of either textbox, textarea, select, select_multi, yesno, group, group_multi
$modversion['config'][1]['formtype'] = 'textbox';
// value type of this config option. can be one of either int, text, float, array, or other
// form type of 'group_multi', 'select_multi' must always be 'array'
// form type of 'yesno', 'group' must be always be 'int'
$modversion['config'][1]['valuetype'] = 'text';
// the default value for this option
// ignore it if no default
// 'yesno' formtype must be either 0(no) or 1(yes)
$modversion['config'][1]['default'] = '';
// options to be displayed in selection box
// required and valid for 'select' or 'select_multi' formtype option only
// language constants can be used for both array keys and values
//$modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '50' => 50, '100' => 100, '200' => 200, '500' => 500, '1000' => 1000);
$modversion['config'][2]['name'] = 'cabbase';
$modversion['config'][2]['title'] = '_MI_CHAT_CABBASE';
$modversion['config'][2]['description'] = '';
$modversion['config'][2]['formtype'] = 'textbox';
$modversion['config'][2]['valuetype'] = 'text';
$modversion['config'][2]['default'] = '';
$modversion['config'][3]['name'] = 'licensekey';
$modversion['config'][3]['title'] = '_MI_CHAT_LICENSEKEY';
$modversion['config'][3]['description'] = '';
$modversion['config'][3]['formtype'] = 'textbox';
$modversion['config'][3]['valuetype'] = 'text';
$modversion['config'][3]['default'] = '';
$modversion['config'][4]['name'] = 'serverport';
$modversion['config'][4]['title'] = '_MI_CHAT_SERVERPORT';
$modversion['config'][4]['description'] = '';
$modversion['config'][4]['formtype'] = 'textbox';
$modversion['config'][4]['valuetype'] = 'int';
$modversion['config'][4]['default'] = '6667';