News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Bridge Xoops-SMF 1.1 RC3 Beta 1

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

Previous topic - Next topic

Little15

Hey Orstio,

I am having the same problem with the login as others have mentioned. I have 2.0.14 of XOOPS and when I log in, I'm logged in SMF but not XOOPS.  Any ideas for a fix?

Orstio

In your modules/smf folder is a file named index.php.

In that file you will find a function named integrate_login.

At the end of that function is this line:

mysql_select_db($db_name);

What happens if you add this right before it:

if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') {
        setcookie($xoopsConfig['session_name'], session_id(), time()+(60 * $xoopsConfig['session_expire']), '/',  '', 0);
    }

Little15

Quote from: Orstio on August 26, 2006, 12:10:37 AM
In your modules/smf folder is a file named index.php.

In that file you will find a function named integrate_login.

At the end of that function is this line:

mysql_select_db($db_name);

What happens if you add this right before it:

if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') {
        setcookie($xoopsConfig['session_name'], session_id(), time()+(60 * $xoopsConfig['session_expire']), '/',  '', 0);
    }


I tried that and it was still the same.  But I did notice before I did that, if the forum is wrapped it works fine. It is unwrapped that is the problem.
Also I noticed when it adds a user to XOOPS it doesn't like the password when I tried to login under the XOOPS login box.

Orstio

QuoteI tried that and it was still the same.  But I did notice before I did that, if the forum is wrapped it works fine. It is unwrapped that is the problem.

By "unwrapped" do you mean set to unwrapped in the Xoops admin panel, or stand alone?

QuoteAlso I noticed when it adds a user to XOOPS it doesn't like the password when I tried to login under the XOOPS login box.

That will be correct.  SMF hashes its passwords differently than Xoops, and so the password that is entered into the Xoops database is just a dummy.  That's one of the reasons why it is important to use the bridge login block, and not the Xoops default login block.

Little15

Quote from: Orstio on August 26, 2006, 12:33:49 AM
By "unwrapped" do you mean set to unwrapped in the Xoops admin panel, or stand alone?

That is correct. Only when set in the admin panel does it work correctly. When not set in the admin panel does it not login to both.


Quote
That will be correct.  SMF hashes its passwords differently than Xoops, and so the password that is entered into the Xoops database is just a dummy.  That's one of the reasons why it is important to use the bridge login block, and not the Xoops default login block.

OK, I see now! :)

Orstio

QuoteThat is correct. Only when set in the admin panel does it work correctly. When not set in the admin panel does it not login to both.

That's very strange.  Can I see a URL.

Little15

Change that I don't think it was logging me in after all. I would double check but my site is down. I'll have another look when it is up again.

Little15

#267
I checked again but it wasn't logging me in.  I did reinstall the module and maybe it did before, but it certainly doesn't now.

EDIT: I don't know if it may help but XOOPS 2.0.15 has been released.

Orstio

Yes, it helps that you let me know.  ;)

I'll start testing with 2.0.15.  Thanks for the info.  :)

tapirul

don't want to look stupid myself.. but when I try to login in the SMF module I get a blank page..
I am using SMF rc3, xoops 2.0.15, and Firefox.

computrguru

I was looking at the files in the module and in the header.php file I found this line: include XOOPS_ROOT_PATH.'/modules/smf/functions.php';.  I do not see this file in the module at the same location the config file, as mentioned in the header file.

Could this be why there is an issue logging into both SMF and Xoops from the bridge's login?

Jody (computrguru)

davestro

Quote from: tapirul on September 01, 2006, 10:13:52 PM
don't want to look stupid myself.. but when I try to login in the SMF module I get a blank page..
I am using SMF rc3, xoops 2.0.15, and Firefox.

I am using SMF rc3, xoops 2.0.15, and IE6. I get a blank page as well.

Quote from: computrguru on September 01, 2006, 11:54:29 PM
I was looking at the files in the module and in the header.php file I found this line: include XOOPS_ROOT_PATH.'/modules/smf/functions.php';.  I do not see this file in the module at the same location the config file, as mentioned in the header file.

Could this be why there is an issue logging into both SMF and Xoops from the bridge's login?

Jody (computrguru)

I was also looking at the header.php file and noticed the same thing. I am also curious to know if that is part of my issue.


Has anyone got SMF rc3, xoops 2.0.15, and IE6 to work or is it only working with rc2

tapirul

I noticed that for the blank page if I refresh it comes up. Pretty annoying, though

Orstio

I'll be installing 2.0.15 tonight to start working on it.

davestro

Quote from: tapirul on September 07, 2006, 12:01:26 AM
I noticed that for the blank page if I refresh it comes up. Pretty annoying, though

I tried to refresh and still get a blank page. I am using IE6. I am going to try using other browsers to see if it works as well, but a lot of my users use IE6

davestro

Quote from: Orstio on September 07, 2006, 06:27:14 AM
I'll be installing 2.0.15 tonight to start working on it.

That would be great. It does work using Konqueror, but not with IE6 or Firefox. I justed finished testing with Konqueror and it works flawless.

davestro

::chuckles::I know I am posting a lot today.

In the admin/index.php

Find this line roughly line 39:
<td><span class='fg2'><a href="<?php echo $smfUrl['root'];?>/index.php?action=admin"><?php echo _MI_ADMIN;?></a></span></td>

Change to:
<td><span class='fg2'><a href="<?php echo $smfUrl['root'];?>index.php?action=admin"><?php echo _MI_ADMIN;?></a></span></td>

Removed the "/" in front of index.php to prevent the url from having double forward slash after smf: http://www.yoursite.com/modules/smf/ [nofollow]/index.php?action=admin

Doesnt fix my issue, but it maybe part of it.



Orstio


Orstio

Well, I just installed the bridge as it is on the downloads page:

http://www.simplemachines.org/download/?bridges

Onto Xoops 2.0.15, and all works as expected.

Lance_

#279
Orstio,

The file from the download page says alpha2 yet I've downloaded alph3 from the first post here. Which is which??

Cheers.

PS. I run a test site with SMF rc3 and xoops 2.0.15 and all works fine.

Advertisement: