Joomla 1.0.9 and SMF bridge 1.1.4 forum *FIX*

Discuss the development and implementation of Joomla! components here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
guardian2k1
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Feb 21, 2006 2:09 pm

Joomla 1.0.9 and SMF bridge 1.1.4 forum *FIX*

Post by guardian2k1 » Tue Jun 06, 2006 1:59 pm

For anyone planning to upgrade to Joomla 1.0.8/9 I recommend applying this fix from Orstio.  Saves you buying a new keyboard later:P

For the 1.1.4 bridge, one small change needs to be made for the Joomla 1.0.9 upgrade.  Find this in smf.php (may require unpacking 1.1.4 first, making the change then zipping it backup again) (in the integrate_login function):

Code: Select all

	//Joomla 1.0.8 compatibility
	
	if (isset($_VERSION) && $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->DEV_LEVEL >= '8'){
		$remCookieName 	= mosMainFrame::remCookieName_User();
                        $remCookieValue = mosMainFrame::remCookieValue_User( $username ) . mosMainFrame::remCookieValue_Pass( $passwd );
		setcookie( $remCookieName, $remCookieValue, $lifetime, '/' );
	}
and replace it with this:

Code: Select all

	//Joomla 1.0.8 compatibility
	
	if (isset($_VERSION) && $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->DEV_LEVEL >= '8'){
		$remCookieName 	= mosMainFrame::remCookieName_User();
						//Joomla 1.0.9 compatibility
                        if ($_VERSION->DEV_LEVEL>='9')
							$remCookieValue = mosMainFrame::remCookieValue_User( $username ) . mosMainFrame::remCookieValue_Pass( $passwd ) . $row['id'];
                        else
							$remCookieValue = mosMainFrame::remCookieValue_User( $username ) . mosMainFrame::remCookieValue_Pass( $passwd );
		setcookie( $remCookieName, $remCookieValue, $lifetime, '/' );
	}
Then uninstall/reinstall the component.  Alternatively, you can hunt down the smf.php file in your site and change it.  If you happen to find it, please let me know?  Please send your thanks to Orstio for getting the fix out quickly

User avatar
rotor
Joomla! Intern
Joomla! Intern
Posts: 96
Joined: Fri Sep 02, 2005 8:21 am
Location: Australia

Re: Joomla 1.0.9 and SMF bridge 1.1.4 forum *FIX*

Post by rotor » Sat Jun 10, 2006 2:18 am

smf.php is in root/components/com_smf .... it's the Joomla component part of the Bridge ...
To be humble, is to know your place... to be humiliated, is to be put in your place ...


Locked

Return to “Components”