1
mrgym
module admin preferences
  • 2003/10/14 19:01

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


I think I've spotted module preferences in the xoops_config table (conf_modid is modules.mid, conf_name, conf_value?).

Where do the values come from that are inserted into this table? I've searched wffaq,news, etc for examples and don't see these prefs in xoops_version. admin/menu.php contains obvious menu entries but NOT preferences.

thanks!

2
Mithrandir
Re: module admin preferences

I see
$modversion['config'][3]['name'] = 'displaynav';
$modversion['config'][3]['title'] = '_MI_DISPLAYNAV';
$modversion['config'][3]['description'] = '_MI_DISPLAYNAVDSC';
$modversion['config'][3]['formtype'] = 'yesno';
$modversion['config'][3]['valuetype'] = 'int';
$modversion['config'][3]['default'] = 1;

$modversion['config'][4]['name'] = 'anonpost';
$modversion['config'][4]['title'] = '_MI_ANONPOST';
$modversion['config'][4]['description'] = '';
$modversion['config'][4]['formtype'] = 'yesno';
$modversion['config'][4]['valuetype'] = 'int';
$modversion['config'][4]['default'] = 0;


and many more in xoops_version.php (ver 2.03, though)

3
mrgym
Re: module admin preferences
  • 2003/10/15 12:43

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Ahhhhh! There it is. I should have seen it! (sorry -- I must have been asleep in my seat yesterday) That's a very clever way of injecting variables at install.

Thank you!!!

I now have a valid db schema, xoops_version for install, dynamically placing submenu items, and am querying variables and placing them into xoopsTpl forms.

On to XOOPS forms!

Login

Who's Online

151 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits