Home arrow Forum some problem for 1.2.0 final
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 05:37:13 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Mambo-SMF 1.2.x
| | | |-+  some problem for 1.2.0 final
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: some problem for 1.2.0 final  (Read 2718 times)
landry
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
some problem for 1.2.0 final
« on: April 07, 2005, 06:20:33 AM »

1. Warning message in the backend

Warning: 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
Editor (cowboy)
Administrator
Joomla Guru
*****

Karma: +86/-23
Offline Offline

Posts: 1144



View Profile WWW
Re: some problem for 1.2.0 final
« Reply #1 on: April 07, 2005, 02:55:23 PM »

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
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: some problem for 1.2.0 final
« Reply #2 on: April 07, 2005, 09:38:43 PM »

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
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Re: some problem for 1.2.0 final
« Reply #3 on: April 08, 2005, 12:12:11 AM »

You mean in Mambo template - index.php you changed this

Code:
<!-- 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

Code:
// 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

Code:
function getCode() {
return ""
. $this->MAMBO_SMF_BEGIN."\n"
. "<?phpn"
. "
define('_MAMBO_SMF'1);n"
. "
global $sc$context;n"

to this

Code:
function getCode() {
return ""
. "<?phpn"
. $this->MAMBO_SMF_BEGIN."
n"
. "
define('_MAMBO_SMF'1);n"
. "
global $sc$context;n"

THX
Logged
landry
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: some problem for 1.2.0 final
« Reply #4 on: April 08, 2005, 12:25:51 AM »

my solution:

Code:
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

Code:
<?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
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Re: some problem for 1.2.0 final
« Reply #5 on: April 08, 2005, 12:35:41 AM »

Thanks I'll give it a try now
Logged
landry
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
Re: some problem for 1.2.0 final
« Reply #6 on: April 08, 2005, 05:04:09 AM »

The third problem had disappear after i made a clean installing to test.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login