News:

Wondering if this will always be free?  See why free is better.

Main Menu

Bridge Xoops-SMF 1.1 RC3 Beta 1

Started by Orstio, December 31, 2005, 03:18:57 PM

Previous topic - Next topic

Orstio

What if you turn on register_long_arrays on the 4.4.4 site?

computerworks

#501
...still looking. That's a php 5 directive, right?

I don't see that line in this php.ini

Should I add it?

computerworks

A little more info... studying the process as the bad login progresses.

After using SMF login and getting SMF error, I look at smf_log_online (with no one else on)

There are 2 entries..one appears to be the bad login, the next looks like a successful login to the forum.
The log_time is within seconds.

The "bad" one has the IP as the session; the "good" one has a long string, indicating a session has started...that's where the SMF login really has worked.

The "bad" one has an ID_MEMBER of zero

The URL of the bad one is:

a:4:{s:6:"action";s:6:"login2";s:2:"sa";s:5:"check";s:6:"member";s:2:"36";s:10:"USER_AGENT";s:50:"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";}





Orstio

Quote:"member";s:2:"36";

That would indicate a $ID_MEMBER value of 36 stored in the session.


computerworks

Quote from: Orstio on January 29, 2007, 06:24:20 PM
Quote:"member";s:2:"36";

That would indicate a $ID_MEMBER value of 36 stored in the session.



Great...that corresponds to the $ID_MEMBER of the user that tried to log on.

Where can I find the "decoder" line that will ID the rest of the items in that URL field?

computerworks

#505
So...how do we attack this?
Can you suggest any debugging tips or tricks?

Anyway to trace?

computerworks

Any way to track the values and variables as they go thru the process?

Any way to run one segment and halt...to look at the values...then the next, etc?

Orstio

The problem here is with sessions.

Try echoing $ID_MEMBER before that code you posted.


computerworks

Quote from: Orstio on January 31, 2007, 05:54:56 PM
The problem here is with sessions.

Try echoing $ID_MEMBER before that code you posted.

$ID_MEMBER has a value of zero when it enters the point of checking for the login error in LogInOut.php

It is set as a global at the start of that file.

Where does it pick up it's value prior?

Orstio

In Load.php, in the function LoadUserSettings().

computerworks

I think we licked the login problem...  :D

magic_quotes_gpc was set to off.

Turning it on eliminated the login error.

Need to test it more...but not tonite.  :-\

Orstio

If that's what it is, then I'll add some code to the bridge to ensure it gets turned on.

computerworks

#512
I am so glad it was resolved... 8)

So...How does that affect the bridge?

One minor detail:

Most users might terminate their session on the XOOPS site, rather than the forum.

Is it possible (or has anyone) put a Logout button on the XOOPS home page that:

  • logs you out of the forum, using SMF logout
  • and lands you back on the XOOPS home page

Orstio

I think in order to do that, you would need to modify this code in Xoops' user.php:

if ($op == 'logout') {
    $message = '';
    $_SESSION = array();
    session_destroy();
    if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') {
        setcookie($xoopsConfig['session_name'], '', time()- 3600, '/',  '', 0);
    }
    // clear entry from online users table
    if (is_object($xoopsUser)) {
        $online_handler =& xoops_gethandler('online');
        $online_handler->destroy($xoopsUser->getVar('uid'));
    }
    $message = _US_LOGGEDOUT.'<br />'._US_THANKYOUFORVISIT;
    redirect_header('index.php', 1, $message);
    exit();
}

aemus

#514
Hi, I have tried what computerworks says and it works fine. ;)
Now, a question:
Can I see in the XOOPS frontpage, the last forum post within a block?.
As can this be done?

Thanks you a lot for your bridge work.  

aemus

#515
How to include SMF recent topics in Xoops block?
I read this:http://www.simplemachines.org/community/ssi_examples.php
and I don't find the solution.

Any advice, please? CMS is XOOPS.

X-Ception

#516
Ok here is an odd scenario for you Orstio,
installed, all fine, activated all great appeared working, added a new theme to forums, set default theme to new one downloaded, changed mine back to the SMF default ( cosmetic for other peeps i prefer the SMF default ).... log out, come back next day to login, wont have it - assume it was a cookie or something that allowed me to login previous day - so asks for best settings for SMF settings here...

Plays with site most of day -> changes to the "new default theme" installed i mentioned above -> goes to homepage -> clicks to forums but still not logged out of those but logged out of xoops so log out of forums, now logged out of both

goes bac to homepage logs in and urm it works ? using the new installed theme, change to the default smf one ( which when that was the default worked fine ) and fails again   :-\

ok further research leads me to say the issue is the SMF login is not terminating thus preventing a xoops login
Joolo.net social community and irc network / Yowzar - random subject forum

Orstio

Quoteok further research leads me to say the issue is the SMF login is not terminating thus preventing a xoops login

Yes, you are correct.  I have yet to make the SMF cookie end when the Xoops session ends.

X-Ception

curious, if i used custom sessions in xoops and renamed the SMF cookie to the same session name, would that help any or would one overwrite the other ?
Joolo.net social community and irc network / Yowzar - random subject forum

Orstio

It probably won't help, but it won't overwrite the session, either.

Advertisement: