Using Parameters within a Mambot
Like with modules or menus it is possible to add parameters to the standard Mambot configuration. These parameters have to be extracted thru the standard parameter handling.

For a detailed overview of the parameter definition within the Mambot XML file please see the section about parameters. To load the configured parameters within the Mambot see the following example.
function botTinymceEditorInit() {
  global $mosConfig_live_site, $database;
 
  // load tinymce mambot parameters
  $query = "SELECT id FROM #__mambots WHERE element = 'tinymce' AND folder = 'editors'";
  $database->setQuery( $query );
  $id = $database->loadResult();
  $mambot = new mosMambot( $database );
  $mambot->load( $id );
  $mambotParams =& new mosParameters( $mambot->params );
 
  $theme = $mambotParams->get( 'theme', 'basic' );
 
...
}
The configuration of the parameters will be done thru the Administrator interface.
Last Updated ( Friday, 11 February 2005 )