You mean in Mambo template -
index.php you changed this
<!-- Begin Mambo-SMF -->
<?php
define('_MAMBO_SMF', 1);
global $sc, $context;
if (!defined('SMF')) {
if (file_exists($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php"))
require_once ("administrator/components/com_smf/config.smf.php");
if (file_exists($smf_path."/SSI.php"))
require_once ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
?>
<!-- End Mambo-SMF -->
to this
// Begin Mambo-SMF
<?php
define('_MAMBO_SMF', 1);
global $sc, $context;
if (!defined('SMF')) {
if (file_exists($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php"))
require_once ("administrator/components/com_smf/config.smf.php");
if (file_exists($smf_path."/SSI.php"))
require_once ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
?>
// End Mambo-SMF
and in ../administrator/components/com_smf/
smf.class.phpchanged this
function getCode() {
return ""
. $this->MAMBO_SMF_BEGIN."\n"
. "<?phpn"
. "define('_MAMBO_SMF', 1);n"
. "global $sc, $context;n"
to this
function getCode() {
return ""
. "<?phpn"
. $this->MAMBO_SMF_BEGIN."n"
. "define('_MAMBO_SMF', 1);n"
. "global $sc, $context;n"
THX