Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Joomla 1.0.9 - will require new bridge?

Aloittaja brother7, toukokuu 18, 2006, 11:28:40 AP

« edellinen - seuraava »

brother7

According to the Joomla Developer blog, Joomla 1.0.9 beta2 has been released.  Will Bridge 1.1.4 be compatible with Joomla 1.0.9 or will a new Bridge 1.1.5 be required?

Orstio

I don't see anything just offhand that would render 1.1.4 incompatible.

Joomla 1.5 will require a new bridge, however.

rrhode

I am testing the latest version of Joomla 1.0.9 beta4 with the 1.1.4 bridge.

I am facing the no user menu issue.  I tried changing the "DEV_LEVEL >= '8'){" to "DEV_LEVEL >= '9'){" under the "//Joomla 1.0.8 compatibility" but that doesnt seem to work.

Is it because Joomla is using a different cookie again?  I am not sure how to change it. I am sure it is not a big change though.


rrhode

#3
I also tried this...

//Joomla 1.0.9 compatibilty
if (isset($_VERSION) && $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->DEV_LEVEL >= '9'){
$lifetime = time() + 365*24*60*60;
$remCookieName = mosMainFrame::remCookieName_User();
$remCookieValue = mosMainFrame::remCookieValue_User( $row->username ) . mosMainFrame::remCookieValue_Pass( $row->password ) . $row->id;
setcookie( $remCookieName, $remCookieValue, $lifetime, '/' );
}


But that didn't seem to work either for some strange reason.  I pulled that code right out of the joomla.php file.

Correction ??? modified it to this also and didnt work...

//Joomla 1.0.9 compatibilty
if (isset($_VERSION) && $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->DEV_LEVEL >= '9'){
$lifetime = time() + 365*24*60*60;
$remCookieName = mosMainFrame::remCookieName_User();
$remCookieValue = mosMainFrame::remCookieValue_User( $username ) . mosMainFrame::remCookieValue_Pass( $passwd ) . $row->id;
setcookie( $remCookieName, $remCookieValue, $lifetime, '/' );
}

Orstio

In your includes folder, there is a file named version.php.  In that, what is the value of $_VERSION->DEV_LEVEL ?  Is it "9", or is it "9 beta 4" ?

rrhode

 :D

/** @var string Product */
var $PRODUCT = 'Joomla!';
/** @var int Main Release Level */
var $RELEASE = '1.0';
/** @var string Development Status */
var $DEV_STATUS = 'Beta 4';
/** @var int Sub Release Level */
var $DEV_LEVEL = '9';
/** @var int build Number */
var $BUILD = '$Revision: 3760 $';
/** @var string Codename */
var $CODENAME = 'Sunshine';
/** @var string Date */
var $RELDATE = '31 May 2006';


All those things seem to match up in there. 

I have recently noticed that they may have changed the login structure a bit somehow.

I was looking through the changelogs and have noticed on the svn they recently made one update to the beta4 since it was released and it made me realize that they are adding some extra options to shut login off or something.  I dont quite understand what it all is yet.

* Add ability to totally disable access to frontend login page
* Add ability to disable frontend user params


Orstio

OK, and you are aware that the Joomla side of the bridge login is case sensitive?  If your username is RrhOde, you cannot login as rrhode?

rrhode

It logs into SMF but doesn't seem to be logging into Joomla.  I turned debug on in Joomla and am getting something odd in the queries that may be an idea of where to start but I can't find it in any files anywhere.


3
DELETE FROM jos_session
WHERE (
( time < '1149334206' )
AND guest = 0
AND gid > 0
) OR (
( time < '1149334206' )
AND guest = 1
AND userid = 0
)

4
SELECT *
FROM jos_session
WHERE session_id = 'f5c824db47eabd54dee9158a44a95c47'

5
UPDATE jos_session SET `time`='1149335106',`userid`='0',`usertype`='',`username`='',`gid`='0',`guest`='1' WHERE session_id='f5c824db47eabd54dee9158a44a95c47'


I notice the values are all nothing.  0 and '' but I am not sure if this is the problem at all.  I just thought it was odd that it seems to be setting a session with no usertype or username when I feel it should have one there.  So I am not sure if that helps or not.

This is what come up immediately after logging in as a registered usertype regular Joomla user.

I am using SMF and the SMF bridge registration and login module.  Also, I want to install CB since it looks like you have put some nice support for it in there as well but I don't have it installed yet.

It looks like they are preparing for the stable release of 1.0.9 at this point and so I think what I have on the site is up to date from their svn as of now and is what will possibly be the final version.  At least it is extremely close to it anyway.

Here is one other thing I noticed... I the Joomla php it seems slightly different where the initSession function is.

Here is a comparison of the two which I did that may be of use.  I do not know what to do but I am trying to figure it out and I thank you very much for your help with it so far.

The top ones with the < are what has been removed and the next ones with the > are what was added.


6,12c6,11
< // purge expired sessions
< $session->purge('core');
< // purge expired frontend logged sessions only - expiry time set in Global Config
< //$session->purge(intval( $this->getCfg( 'lifetime' ) ), $and );
< // purge expired frontend guest sessions only - expire time fixed at 15 mins
< //$and = "\n AND guest = 1 \n AND userid = 0";
< //$session->purge( 900, $and );
---
> // purge expired frontend logged sessions only - expiry time set in Global Config
> $and = "\n AND guest = 0 \n AND gid > 0";
> $session->purge(intval( $this->getCfg( 'lifetime' ) ), $and );
> // purge expired frontend guest sessions only - expire time fixed at 15 mins
> $and = "\n AND guest = 1 \n AND userid = 0";
> $session->purge( 900, $and );
17c16
< $sessioncookie = strval( mosGetParam( $_COOKIE, $sessionCookieName, null ) );
---
> $sessioncookie = mosGetParam( $_COOKIE, $sessionCookieName, null );
21c20
<
---
> //echo mosMakePassword(32);
44,60c43,55
< $url = strval( mosGetParam( $_SERVER, 'REQUEST_URI', null ) );
< // stop sessions being created for requests to syndicated feeds
< if ( strpos( $url, 'option=com_rss' ) === false && strpos( $url, 'feed=' ) === false ) {
< $session->guest = 1;
< $session->username = '';
< $session->time = time();
< $session->gid = 0;
< // Generate Session Cookie `value`
< $session->generateId();
<
< if (!$session->insert()) {
< die( $session->getError() );
< }
<
< // create Session Tracking Cookie set to expire on session end
< setcookie( $sessionCookieName, $session->getCookie(), false, '/' );
< }
---
> $session->guest = 1;
> $session->username = '';
> $session->time = time();
> $session->gid = 0;
> // Generate Session Cookie `value`
> $session->generateId();
>
> if (!$session->insert()) {
> die( $session->getError() );
> }
>
> // create Session Tracking Cookie set to expire on session end
> setcookie( $sessionCookieName, $session->getCookie(), false, '/' );
64,67c59,62
< $remCookieValue = strval( mosGetParam( $_COOKIE, $remCookieName, null ) );
<
< // test if cookie is correct length
< if ( strlen($remCookieValue) > 64 ) {
---
> $remCookieValue = mosGetParam( $_COOKIE, $remCookieName, null );
>
> // test if cookie is correct length
> if ( strlen($remCookieValue) == 64 ) {
71d66
< $remID = substr( $remCookieValue, 64  );
75c69
< $this->login( $remUser, $remPass, 1, $remID );
---
> $this->login( $remUser, $remPass, 1 );


It does log into Joomla when I log in through the Joomla login module.

Orstio

#8
LainaaIt logs into SMF but doesn't seem to be logging into Joomla.

Yes, that is exactly what the case sensitivity issue does.

Can I see a URL?

rrhode

#9
Why yes you can :)

link removed

you have to have the index.php there because there is a static html site at the domain as well but it doesn't need to be there and once this one is done it won't be there.

Orstio

OK, how about this:


//Joomla 1.0.8 compatibility

if (isset($_VERSION) && $_VERSION->PRODUCT == 'Joomla!' && $_VERSION->DEV_LEVEL >= '8'){
$remCookieName = mosMainFrame::remCookieName_User();
                          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, '/' );
}

rrhode

Well I have some wonderful news.  It worked!!!

Thank you very much Oristo.  I appreciate it. 

Now people will know what to do when 1.0.9 comes out officially :)

iqapps

Hi

Where you put this code..I mean which line in joomla.php file. Does this code replace some current code in joomla.php file?


Regards
IQAPPS

rrhode

#13
I can't believe the file wasn't actually mentioned up there after all that :-\

It is the file joomla/components/com_smf/smf.php

Somewhere near line 500 if I remember correctly. 

The one in the integrate_login function.

Orstio is awesome  :D

Sorry for spelling your name wrong again. Doh!  I have a problem with that sometimes.

brother7

Just to clarify...

Changes should be made to com_smf/smf.php, around line 659.  If you're using an editor without line numbering capability, doing a text search for "1.0.8" will get you there.

zigzag

Hi,

Does this apply just to 1.09 beta or do we need to make the version change with the 1.09 update released today?

rrhode

Still working for me in the stable version.   ;)

Bigguy

#17
I just upgraded to 1.0.9 and it all went great. Now, though all the modules I had installed from this page don`t seem to work. Is there away to get them working or do I have to wait until they are updated. ???

EDIT: I`m also getting loads of erros in other components like this in DOCman:

LainaaNotice: Only variables should be assigned by reference in /home/*****/public_html/new/components/com_docman/docman.php on line 367

Notice: Only variables should be assigned by reference in /home/****/public_html/new/components/com_docman/docman.php on line 377

Notice: Only variables should be assigned by reference in /home/*****/public_html/new/components/com_docman/docman.php on line 367

Notice: Only variables should be assigned by reference in /home/*****/public_html/new/components/com_docman/docman.php on line 377

Notice: Only variables should be assigned by reference in /home/*****/public_html/new/administrator/components/com_docman/classes/DOCMAN_utils.class.php on line 125

X-Ception

i had the same issue, i removed the bridge - nothing, unpublished the login module and published the CB module and all was fine, will await for update on bridge
Joolo.net social community and irc network / Yowzar - random subject forum


Advertisement: