11
Goofster
Re: Problem adding auto-generated module config options to module
  • 2004/4/6 22:05

  • Goofster

  • Just popping in

  • Posts: 6

  • Since: 2004/4/6 1


Quote:

Mithrandir wrote:
default value for the port should be an int, i.e. without quotes.

However, this should not break it for you.

Are you getting any errors in php debug? What does the transcript say on module installation/update regarding module config?

I'm just thinking out loud, now - but have you updated the module since you added the config items?


yay! thanks for thinking out loud man. I had no idea I had to update the module....that worked!

that made my day, unfortunately my day is over now :)

Roel

ps. THANKS!

12
Mithrandir
Re: Problem adding auto-generated module config options to module

We really should have a quick guide as to what xoops_version.php can contain and when things are invoked

In general the following things are only updated from xoops_version.php on update/installation:
Blocks
Templates
Configuration preferences (including options - so taking options in a select menu from the database is NOT recommended)
Notifications
Comments
Search

While the main menu submenu items ARE taken from xoops_version.php on runtime.

13
Daigoro
Re: Problem adding auto-generated module config options to module
  • 2004/4/6 22:11

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Mithrandir,
So what you say is that everybody could put whatever they want into the xoops_version.php file?
I had expected that there would be some rules about what to put there and how to put it there.

Looking at the following code (which I copies from one of the pervious messages in this thread):
$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'] = '';


... it appears to be to be fairly structured and commonly useable, so I thought there were some rules about how to add config variables to the modules.

Best regards (and good night!),
Daigoro

14
Mithrandir
Re: Problem adding auto-generated module config options to module

Well, what I meant was that anything RELEVANT can be put in the xoops_version.php

I don't recommend putting just anything in there - but if you need a commonly available setting in your module, then by all means, use the structure to add a configuration preference.

Login

Who's Online

906 user(s) are online (52 user(s) are browsing Support Forums)


Members: 0


Guests: 906


more...

Donat-O-Meter

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

Latest GitHub Commits