Login in the forum does not make login in joombla

Started by abutre, June 21, 2006, 06:02:16 AM

Previous topic - Next topic

abutre

When I make login in the forum does not make login in joombla, and Vice Versa.
I Already tried all configurations of  SMF Bridge.

It has somebody that helps me?


Orstio

Version of SMF?  Version of bridge?  Version of Joomla?  URL?

abutre

Quote from: Orstio on June 21, 2006, 06:51:25 AM
Version of SMF?  Version of bridge?  Version of Joomla?  URL?

SMF 1.1 RC2, SMF Bridge 1.1.4, Joomla! 1.0.9 Stable

Orstio

QuoteFor the 1.1.4 bridge, one small change needs to be made for the Joomla 1.0.9 upgrade.  Find this in smf.php (in the integrate_login function):



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



//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, '/' );
}


abutre


Advertisement: