Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: higherauthority on March 08, 2010, 10:04:50 PM

Title: Quick question
Post by: higherauthority on March 08, 2010, 10:04:50 PM
Long ago when i was using Joomla with SMF I had some issues with the template on joomla after installing the bridge.

There was something called a joomla/mambo tag cleanup utility
This seemed to help me with many of my issues with wrapped selected.

Does anyone know if there is one for smf 2.0 and mambo 4.6.5?
Title: Re: Quick question
Post by: Orstio on March 08, 2010, 11:41:12 PM
You shouldn't need it.  The bridge for SMF 2.0 cleans up the tags automatically.  Just make sure the SMF_header_include mambot is published.
Title: Re: Quick question
Post by: higherauthority on March 08, 2010, 11:50:09 PM
When i publish that I get this 

Notice: Undefined variable: configuration in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 110

Fatal error: Call to a member function get() on a non-object in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 110


I have seen a few different posts with the directions word for word on how to properly configure the bridge.  i saw it once I know its here.  It listed what modules and such needed to be published. Can you point me to a more recent post for 2.0 RC3 and mambo 4.6.5  is it the same?  I asume it is i just cant find it


Title: Re: Quick question
Post by: Orstio on March 09, 2010, 01:08:40 AM
You're getting that error even when the mambot is not published, you just don't see it because it's suppressed. 

Add $configuration to the list of globals on line 52 of mod_smf_login.php to fix the error.

The SMF_header_include mambot should always be published.

The other mambots are dependent on your personal choices of login and registration methods.
Title: Re: Quick question
Post by: higherauthority on April 02, 2010, 03:42:14 AM
I did this

if (!defined('_VALID_MOS'))

die('Direct Access to this location is not allowed.');



global $configuration, $smf_path, $bridge_reg, $maintenance, $sourcedir, $context, $user, $settings ;

$configuration =& mamboCore::getMamboCore();

$database =& mamboDatabase::getInstance();

$mainframe =& mosMainFrame::getInstance();

// Get the configuration.  This will tell Mambo where SMF is, and some integration settings


I then get an error

QuoteNotice: Undefined variable: configuration in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 219

Fatal error: Call to a member function get() on a non-object in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 219
Title: Re: Quick question
Post by: Orstio on April 02, 2010, 09:59:00 AM
You did that where in what file?
Title: Re: Quick question
Post by: higherauthority on April 02, 2010, 01:03:08 PM
sorry I forgot to include more details  its mod_smf_login.php     it was line 55   Line 52 is blank.   Im using dreamweaver for some reason line numbers everyone else refers to are not exact.   

I added as stated above

I just added $configuration (shown in red)

LINE (52) for me 55     of mod_smf_login.php

global  $configuration, $smf_path, $bridge_reg, $maintenance, $sourcedir, $context, $user, $settings ;

I tried it this way too

global $smf_path, $bridge_reg, $maintenance, $sourcedir, $context, $user, $settings, $configuration;



Now I get the


Notice: Undefined variable: configuration in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 219

Fatal error: Call to a member function get() on a non-object in /home1/computi1/public_html/manew/modules/mod_smf_login.php on line 219


Link  http://midwestairsofters.org/
Title: Re: Quick question
Post by: Orstio on April 02, 2010, 01:20:03 PM
Open the file in NotePad and see what Dreamweaver did to it.

You might want to download a fresh copy from the downloads page.

In the future, keep in mind that Dreamweaver can do some funky things to PHP files, and should not be used to edit them.
Title: Re: Quick question
Post by: higherauthority on April 02, 2010, 01:26:59 PM
That was it.        In notepad line 52 was way different.       Thank you