problem with installing bridge

Started by spokenwords, August 06, 2005, 02:02:40 PM

Previous topic - Next topic

spokenwords

ok, so I go to install the bridge and I go to the package manager and then I install the package and it says all is successful except the modification to /sources/subs.php   I went ahead and installed the rest of the steps (1-4) I also went in and changed the sources/sub.php file as instructed in the mambo.mod file. However, I was unable to find where to install this little section.

<edit file>
$boarddir/index.php
</edit file>

<search for>
cleanRequest();
$context = array();
</search for>

<replace>
cleanRequest();
$context = array();

if (!empty($_REQUEST['option']) && $_REQUEST['option'] == 'com_smf'){
    $Itemid = $_REQUEST['Itemid'];
    $myurl = $GLOBALS['mosConfig_live_site'] ."/". basename($_SERVER['PHP_SELF'])."?option=com_smf&Itemid=" . $Itemid ."&";
    $scripturl = $myurl;   
}
</replace>

<search for>
'maintain' => array('Admin.php', 'Maintenance'),
</search for>

<replace>
'maintain' => array('Admin.php', 'Maintenance'),
'mambo_login' => array('MOS_SMF.php', 'MOS_Login'),
'mambo_logout' => array('MOS_SMF.php', 'MOS_Logout'),
</replace>


so I didn't. Anyways, check out the error I get on my website due to this. Perhaps this isn't the problem perhaps it is.

http://www.spokenwords.net [nofollow]

xenovanis

The error on the Subs.php file indicates usually that the wrong bridge for the version of SMF was installed. There are two bridges:

SMF 1.1 Beta 3 Public: MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip
SMF 1.0.x: MOS_SMF_BRIDGEv3.19a_stable.zip

If you installed the wrong bridge, you should undo your changes (or upload fresh copies of index.php and Subs.php to your forumlocation) and install the correct bridge.
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: