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

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, 12:24   #1 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Parameters in mambo 450 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!
Sponsored Links
Old 21.12.2004, 00:19   #2 (permalink)
Baby Mamber
 
Join Date: Sep 2004
Posts: 15
Rank is on a distinguished road
Default Re: Parameters in mambo 450 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!
 

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
TUTORIAL: How to INTEGRATE Mambo modules into non-MOS static php pages in your site marcnyc Mambo 4.5 'How Do I' Questions 10 28.02.2006 04:23
Best methods for managing multiple Mambo installs. coling Mambo 4.5 'How Do I' Questions 7 14.12.2005 10:20
there is a module rewrite for mambo 4.5 (1.0.9)? Bodom Mambo 4.5 'How Do I' Questions 11 06.12.2004 15:56
Draft Press Statement unity Community Smalltalk 50 30.09.2004 21:53
Announce new mambo module ip2info Alikon Community Announcements 4 18.07.2004 18:24


All times are GMT +2. The time now is 01:39.

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.