Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 25

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 18.12.2004, 16:14   #1 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Parameters in module

Hello,

I want to achieve the following:

I made a module for mambo 451a and want to convert it to mambo 450.

In mambo 451a it is easy to use parameters because you can define them in your XML file.

In mambo 450 its different.

I managed to make the module for 450 but by default the parameter are "blanc" in your module screen where you want to edit the parameters. Therefore the variables in my module are also blanc so it won't display correctly until Ii manually fill in alle the parameters.

Is there a way to handle this automaticly and also to show them directly after installing the module in the parameter section?

Thanks in advance,

Rank
Rank is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 18.12.2004, 17:06   #2 (permalink)
Elite Mamber
 
twysm's Avatar
 
Join Date: Apr 2004
Location: /dev/peru/lima
Posts: 1,008
twysm can only hope to improve
Send a message via ICQ to twysm Send a message via MSN to twysm Send a message via Yahoo to twysm
Default Re: Parameters in module

There is a field in the modules mysql table(mos_modules) called params, with the installer you should be able to do a query with your module config.
__________________
www.ezwp.com
www.diginetperu.com
twysm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.12.2004, 17:26   #3 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Re: Parameters in module

Quote:
Originally Posted by twysm
There is a field in the modules mysql table(mos_modules) called params, with the installer you should be able to do a query with your module config.
Thank you for your reply,

I'm relative new to PHP so is it possible to help me on this how to do it with the installer query?

Regards,

Rank
Rank is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.12.2004, 17:49   #4 (permalink)
Elite Mamber
 
twysm's Avatar
 
Join Date: Apr 2004
Location: /dev/peru/lima
Posts: 1,008
twysm can only hope to improve
Send a message via ICQ to twysm Send a message via MSN to twysm Send a message via Yahoo to twysm
Default Re: Parameters in module

What are your params config?
__________________
www.ezwp.com
www.diginetperu.com
twysm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.12.2004, 20:48   #5 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Re: Parameters in module

Hello,

I tried the following but it didn't work:

<install>
<queries>
<query>
INSERT INTO `mos_modules` VALUES (NULL, 'MX', '', 2, 'left', 0, '0000-00-00 00:00:00', 1, 'mod_mx', 0, 1, 1, 'test1=1\n' 'test2=2', 1);
</query>
</queries>
</install>

If I do it manually in phpMyadmin it works.

I want to automaticly fill the parameters during the installation of the module.

Thanks in advance for anyone who can help me on this.

Regards,

Rank
Rank is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21.12.2004, 00:18   #6 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Re: Parameters in module

It's solved with the following code right after de valid mos or die code:

$color = @params->color ? $params-color : 'black';

etc. for the rest of the parameters.

What it does is when no parameters are send, the value is "black" .

In case the parameters are set, the value changes to the ones send by the module.

Sometimes it's so simple....

Ragards,

Rank
Rank is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change module parameters from the frontend Achilleas Mambo 4.5.1 'How Do I' Questions 2 22.02.2005 12:41
Parameters in mambo 450 module Rank Mambo 4.5 'How Do I' Questions 1 21.12.2004 00:19
how to pass parameters 'dynamically' to module? pawcio.g Module Development 0 12.10.2004 00:33
Latest Events module - are there Parameters that allow you to customize its output jabby Module 'How Do I' Questions 8 11.09.2004 23:40
module parameters question maddunr Module 'How Do I' Questions 4 09.09.2004 23:24


All times are GMT +2. The time now is 14:36.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.