Xoops Bridge Beta 2

Started by Orstio, May 27, 2007, 08:39:39 PM

Previous topic - Next topic

Kindred

#80
erk...

oops
hmmm....  how do I remove the custom sessions now? :)

edit- found it...
UPDATE `xoops_config` SET `conf_value` = '0' WHERE `xoops_config`.`conf_id` =53 LIMIT 1 ;

edit 2-

interesting... as sooon as I turned OFF the custom sessions, the XOOPS system recongized that I WAS logged in... (no additional action, just a refresh)
Сл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."

Orstio

OK, your problem with the assignments by reference is in the kernel/user.php:

    function &getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler =& xoops_gethandler('member');
            $this->_groups =& $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }


Should be:

    function getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler = xoops_gethandler('member');
            $this->_groups = $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }

Kindred

interesting...


now it logs me into SMF but never into XOOPS

BTW: Existing SMF user (created in SMF) is not imported or recognized by XOOPS
Сл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."

Orstio

Quotenow it logs me into SMF but never into XOOPS

Right.  That's because SMF is wiping out the Xoops session info.

I wonder, what if you did this instead:

    function getGroups()
    {
        if (empty($this->_groups)) {
            $member_handler =& xoops_gethandler('member');
            $this->_groups = $member_handler->getGroupsByUser($this->getVar('uid'));
        }
        return $this->_groups;
    }


QuoteBTW: Existing SMF user (created in SMF) is not imported or recognized by XOOPS

That is weird.  It should definitely be working...the code is there in integrate_login.

Kindred

I updated the function to that...
no effect - same situation log into SMF and not XOOPS.


Ok... this time it worked (porting a user)   I must have done something wrong the first time.
Сл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."

broham

Quoteno effect - same situation log into SMF and not XOOPS.
That's how it is with SMF 1.1.3.
All is well with SMF 1.1.2, but 1.1.3 kills Xoops sessions.  You will not resolve that issue with SMF 1.1.3 until Orstio finds the work-around.
SMF + Xoops dude, yeah!  Good stuff.

HEB XI 1

Quote from: broham on June 27, 2007, 07:31:06 PM
*I am using Xoops 2.0.16 and SMF 1.1.2

<snip>

• Upload the smf file to the modules folder.
• Go to Xoops admin, and install like any other module.
• Configure the modules preferences with the path to the smf directory, like /home/name/public_html/SMFdirectory - then,
choose to have the forum wrapped or not.
• In Xoops admin, configure your blocks.  Make the SMF login block visible, and the Xoops system login block invisible
(logging in MUST take place in the bridge login block to be signed into Xoops and SMF at the same time).
• In Xoops admin, configure groups permissions , making sure anonymous users have access to the SMF login block AND access
rights to the SMF module.  Do the same with registered users.  Admin should be fine by default, but double check.
• In Xoops admin, system general preferences, be sure you have custom sessions ON.

This should get you close to success, but now you need to check your SMF server settings.

Core Configuration
• Your forum url should be that of the SMF module
• Your path and Sources directory should be the actual stand alone forum

Feature Configuration
• Enable local storage of cookies - unchecked
• Use subdomain independent cookies - CHECKED
• Enable compressed output - unchecked
• Use database driven sessions - CHECKED

I was under the impression that 1.1.2 works fine with this bridge??

I had SMF 1.1.3 ... had problems, found this thread and thought 1.1.2 would do the trick, so I deleted 1.1.3 and installed 1.1.2 instead (initial web setup - no members/posts, so no biggie)

Went thru and did as broham outlined - step by step ... still get a blank content section when trying to wrap Xoops around SMF, and still get weird login stuff on SMF when not wrapping - like when I'm in the admin section it asks for my password after clicking save on whatever settings page I'm on.

Is there something I'm missing?  This is all a fresh install of everything ... brand new site, not yet live ... blah blah.

Orstio

A URL is helpful.

The need to continuously login in the admin panel usually indicates an incorrect setting in SMF regarding local storage of cookies or subdomain independent cookies or database driven sessions.

lesterspiff

I'm on 1.1.3 and having these same problems. I tried to find a download of 1.1.2, but the site won't let me get it.

I got the smf login block to show up on the front page and it allows the login to smf but not xoops. I looked in the index and it says
Quoteecho ob_xoopsfix($buffer);
but I still get a blank page when I try to wrap the forum in the xoops template. There's no problem if I don't wrap.

lesterspiff

#89
I finally got the site to allow me to download 1.1.2 through wget and installed it, but I still can't get SMF to wrap into xoops.

I have triple checked all the stuff in broham's instructions and gone over all the stuff in the replies to kindred and I still can't get it to log me into either system. When I log into the forum at the forum's address it works fine, but on /modules/smf with the wrap turned off, it says my password is incorrect. I went successfully through the forgotten password process, but it still won't let me log in to smf and because of that I never make it into xoops.

I can't tell if there is something still wrong with my session settings, but AFAIK I have tried everything suggested on this thread.

There are 3 basic situations here:

  • Login through the smf login box on xoops front page: "An Error Has Occurred! You were unable to login. Please check your cookie settings. "
  • Login through site/modules/smf: "Password incorrect"
  • Change site url on smf back to site/forum and login there: everything OK


Orstio

Quote from: lesterspiff on August 07, 2007, 10:01:51 PM
I finally got the site to allow me to download 1.1.2 through wget and installed it, but I still can't get SMF to wrap into xoops.

I have triple checked all the stuff in broham's instructions and gone over all the stuff in the replies to kindred and I still can't get it to log me into either system. When I log into the forum at the forum's address it works fine, but on /modules/smf with the wrap turned off, it says my password is incorrect. I went successfully through the forgotten password process, but it still won't let me log in to smf and because of that I never make it into xoops.

I can't tell if there is something still wrong with my session settings, but AFAIK I have tried everything suggested on this thread.

There are 3 basic situations here:

  • Login through the smf login box on xoops front page: "An Error Has Occurred! You were unable to login. Please check your cookie settings. "
  • Login through site/modules/smf: "Password incorrect"
  • Change site url on smf back to site/forum and login there: everything OK


Can we see a URL?

lesterspiff

Only on an IP now, but it's hxxp:209.235.214.38 [nonactive]

SMF is at hxxp:209.235.214.38/forum [nonactive]

Orstio

What did you use as your path to SMF in the bridge config?

lesterspiff

the full path to the forum dir all the way up from root: /var/www/BR/public/htdocs/forum/

htdocs is the apache root folder for the xoops files and the forum directory

The login box and the "SMF Module for Xoops" both take me there when wrap is off, but the login won't take when going in through xoops. I'd also like to figure out how to get the wrap working if possible.

If you want to try logging in I can PM you with a temporary admin password if it would make it easier for you.

lesterspiff

Here's something else that's a little weird. I changed the SMF cookie name and cleared out my cookies, but I think this probably would have happened before:
When I enter a user that doesn't exist, I get Database Error: Table 'BR_xoops.smf_members' doesn't exist
File: /var/www/BR/public/htdocs/forum/Sources/LogInOut.php
Line: 213

The xoops DB is called BR_xoops and the SMF DB is BR_smf, both have the same user privs
I checked Settings.php in SMF and Mainfile.php in xoops and the config file in the SMF bridge module directory and there doesn't seem to be any reason anything would assume the smf_members table would be in the Xoops database.

Orstio

What control panel did your host provide for you?

lesterspiff

I'm administering a linux/apache server directly through SSH and PhpMyAdmin, no control panel.

Orstio

And you are absolutely sure that both database users have access to the other database?  Or perhaps, like with Plesk, there are two database users with the same name and password, but they are considered two distinct users by the system?

lesterspiff

#99
Both databases are set up for the same user on localhost. The output from mysql shows only one user with that name/domain combination. I reloaded mysql's privileges and it hasn't changed anything.

If I put anything random in the username field of the SMF login block for xoops, and leave the password blank, I get the forum saying "You didn't enter your password". If I do the same with something in the password field, I get the error where it's trying to use the wrong database.
If I enter the administrator username it tries to authenticate the user, but says I can't log in and to check the cookie settings. But if I go to the actual forum address, It has logged me in. It just won't read the cookie or session variable that says I'm logged in while I'm using the bridge.

Advertisement: