News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

joomla 1.0.8+SMFForum+Docman+Orstio Bridge

Started by clarensio, March 08, 2006, 11:06:18 AM

Previous topic - Next topic

clarensio

Joomla 1.0.8
SMF forum 1.1 rc2
DOCMan v1.3 RC2
Bridge Orstio (updated for joomla 1.0.8 --> Forum)

SMF Forum OK
Continuous Docman to say me (although is "public" and the user have correctly done the login) : you Have to be able to enter you the section. 

Help me??? 

Kindred

are you CERTAIN that you have applied the correct hack to allow the bridge to work with Joomla  1.0.8?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

afonic

Log out and then in again. It should then work.

Orstio

QuoteBridge Orstio (updated for joomla 1.0.8 --> Forum)

Do you have a bridge version number?

clarensio

#4
Quote from: Orstio on March 08, 2006, 06:19:05 PM
QuoteBridge Orstio (updated for joomla 1.0.8 --> Forum)

Do you have a bridge version number?

Bridge Mambo, Joomla SMF 1.1.2.zip [nofollow] aka 3.20 Update 1/13/06

Quote from: Kindred on March 08, 2006, 01:57:17 PM
are you CERTAIN that you have applied the correct hack to allow the bridge to work with Joomla  1.0.8?

Quote
Try this:

In smf.php, find this in the integrate_login function:

Code:

   //Let's make sure this works in both Mambo and Joomla
   $sessionCookieName = md5('site' . $mosConfig_live_site);
   setcookie($sessionCookieName, '', -3600, '/');


Add this after:

Code:

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

Quote from: afonic on March 08, 2006, 04:46:59 PM
Log out and then in again. It should then work.
Experienced abundantly and continuous not to work

I forgot something. ..???  :P

Karma

i have the same problem ... did the batch .. but the problem is still there

Kindred

that was Orstio's first fix...   Predator (one of the joomla devs) has posted a better fix.   Please read the combined readme post.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

clarensio

Quote from: Kindred on March 09, 2006, 08:02:08 AM
that was Orstio's first fix...   Predator (one of the joomla devs) has posted a better fix.   Please read the combined readme post.
You report yourself to this alteration?
Quote
his fix from Predator (one of the Joomla people) is for correcting v1.1.2 (aka 3.20) to work with the new login structure of Joomla 1.0.8.

In joomla/components/com_smf/smf.php, find this in the integrate_login function:

components/com_smf/smf.php starting at line 443 ( function integrate_login):

Code:

$lifetime = time() + (60 * $cookielength);
   
//Let's make sure this works in both Mambo and Joomla
$sessionCookieName = md5('site' . $mosConfig_live_site);
setcookie($sessionCookieName, '', -3600, '/');


Add after this:

Code:

// For Joomla 1.0.8 compatibility
global $_VERSION;
   
if (isset($_VERSION) && $_VERSION->DEV_LEVEL >= '8'){
   $remCookieName    = mosMainFrame::remCookieName_User();
   $remCookieValue = mosMainFrame::remCookieValue_User( $username ) . mosMainFrame::remCookieValue_Pass( $passwd );
   setcookie( $remCookieName, $remCookieValue, $lifetime, '/' );
}



and function integrate_logout at the top of the function:

Code:

setcookie('usercookie[username]', $username, time() - 3600, '/');
setcookie('usercookie[password]', '', time() - 3600, '/');
setcookie('sessioncookie' , '' , time() - 3600 , '/');

//Let's make sure this works in both Mambo and Joomla
$sessionCookieName = md5('site' . $mosConfig_live_site);
setcookie($sessionCookieName, '', time() - 3600, '/');


Add after this:

Code:

//For Joomla 1.0.8 compatibility
global $_VERSION;
   
if (isset($_VERSION) && $_VERSION->DEV_LEVEL >= '8'){
         $lifetime       = time() - 86400;
         $remCookieName    = mosMainFrame::remCookieName_User();
         setcookie( $remCookieName, ' ', $lifetime, '/' );
}

Why had I some doubts.. about the numbers of row that I did not find myself.. 

Advertisement: