fix for modules to work with mambo 4.6 and the beta bridge...

Started by Kindred, November 13, 2006, 12:36:08 PM

Previous topic - Next topic

Kindred

at the beginning of each module is a set of code, just after the comments (text marked with asterisks) there is a section of code that tells the system how to get to SMF.

so, fomr the first line of code, down to
if (!defined('SMF'))
{   
   require_once($smf_path . '/SSI.php');   
}

replace with this:



if (!defined('_VALID_MOS'))
die('Direct Access to this location is not allowed.');

// Get the configuration.  This will tell Mambo where SMF is, and some integration settings
$database->setQuery("
SELECT `variable`, `value1`
FROM #__smf_config
");
$variables = $database->loadRowList();

foreach ($variables as $variable){
$variable_name = $variable[0];
$$variable_name = $variable[1];
}

if (!defined('SMF'))
{
require_once($smf_path . '/SSI.php');
}
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: