some problem for 1.2.0 final
Welcome, Guest . Please login or register .
December 01, 2008, 07:48:35 PM
Pages: [1 ]
Author
Topic: some problem for 1.2.0 final (Read 4126 times)
landry
Newbie
Karma: +0/-0
Offline
Posts: 5
1. Warning message in the backendWarning: fread(): Length parameter must be greater than 0. in d:\appserv\www\mambo\administrator\components\com_smf\rdf.php on line 66 2. the code add in templates/index.php will make wrong screen output in IE: one column will became many columns. may be because of "<!-- Begin Mambo-SMF -->"and "<!-- End Mambo-SMF -->" 3. my site counter always add one after every hit, there is no this problem in Mambo-SMF Integration 1.0 ----------------------------------------------- os win2k php 4.3.10 mambo 4.5.2 smf 1.0.3 Mambo-SMF Integration 1.2.0 final
« Last Edit: April 07, 2005, 07:08:58 AM by landry »
Logged
cowboy
1. This is still a known minor bug for windows users. I still haven't figure out a solution. This is not a showstopper. You should be fine. 2. I tested this release in my winXP and IE, it's just fine. 3. This is another one that I am not sure. Can you please pm me your site url.
Logged
landry
Newbie
Karma: +0/-0
Offline
Posts: 5
Thanks your reply I already solved problem #2 after i modify "<!-- Begin Mambo-SMF -->" with "//Begin Mambo-SMF" and move "$this->MAMBO_SMF_BEGIN" to the position of after "<?php" in the smf.class.php The problem #3 was only happen in FireFox 1.0.2 after I install Integration 1.2.0 final.
Logged
aravot
Jr. Member
Karma: +0/-0
Offline
Posts: 89
test/test
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.php changed 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
Logged
landry
Newbie
Karma: +0/-0
Offline
Posts: 5
my solution:
class mosSMF { var $MAMBO_SMF_BEGIN = "//Begin Mambo-SMF"; var $MAMBO_SMF_END = "//End Mambo-SMF"; function getCode() { return "" . "<?phpn " . $this->MAMBO_SMF_BEGIN." n " . " define ( '_MAMBO_SMF' , 1 ); n " . " global $sc , $context ; n " . " if (! defined ( 'SMF' )) { n " . " if ( file_exists ( $mosConfig_absolute_path . "/administrator/components/com_smf/config.smf.php\"))\n" . " require_once (\"administrator/components/com_smf/config.smf.php\");\n" . " if (file_exists(\$smf_path.\"/SSI.php\"))\n" . " require_once (\$smf_path.\"/SSI.php\");\n" . "}\n" . "\$sc = &\$context['session_id'];\n" . "\$_SESSION['USER_AGENT'] = \$_SERVER['HTTP_USER_AGENT'];\n" . $this -> MAMBO_SMF_END . "\n\n" . "?> \n"; } }
and then the code in templates/your template/index.php like this
<?php //Begin Mambo-SMF 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 ?>
« Last Edit: April 08, 2005, 12:34:04 AM by landry »
Logged
aravot
Jr. Member
Karma: +0/-0
Offline
Posts: 89
test/test
Thanks I'll give it a try now
Logged
landry
Newbie
Karma: +0/-0
Offline
Posts: 5
The third problem had disappear after i made a clean installing to test.
Logged
Pages: [1 ]