Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: VipArt on December 06, 2005, 09:04:26 AM

Title: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 09:04:26 AM
Hello,

I installed SMF 1.1. Made all 4 steps during installation of MOS_SMF_BRIDGEv3.19a_SMF1.1b3. I also unpublished old LoginForm module and published mod_smf_login module in Joomla/modules.

The problem is that I see logout link in user menu and I cannot logout while pressing logout.

I know that I should end the old Joomla session in MOS_SMF.php changing code a bit but I cannot find that file? WHere should I get it? Should I upload it manually? From where. Or maybe this file is not the reason of my problem?

thanks in advance
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Kindred on December 06, 2005, 09:30:03 AM
MOS_SMF.php is in your SMF/Sources directory...   it was uploaded in Step 1, when you installed the SMF mod in the package manager.
(although, if you are using RC1, chances are that it was not properly uploaded anyway... so get a copy out of the step 1 archive and upload it.)
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 09:38:24 AM
I found file MOS_SMF.php in the archive smf_mambo3.1.tar.gz. Should that file MOS_SMF.php be in the package or should it be separated, I mean just in directory SMF/Sources?

I edited MOS_SMF.php in that archive and saved but got the same result with logout link.

One more thing: I noticed that logout link send the parameter action=mambo_loout. I think this is not correct couse I no longer use mambo, I use joomla. Should I also try to edit core files to correct this?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: chadness on December 06, 2005, 09:51:02 AM
mambo_logout is till the function, that's fine.

To make things easier, you can just download a copy of the fixed MOS_SMF.php from here:
http://www.simplemachines.org/community/index.php?topic=20952.msg410103#msg410103
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:04:06 AM
I downloaded it to SMF/Packages directory, but login/logout still doesnt work. Should I include that file to archive smf_mambo3.1.tar.gz which is also located in SMF/Packages directory?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 10:10:48 AM
QuoteThe problem is that I see logout link in user menu and I cannot logout while pressing logout.

Unpublish that as well.  It will log you out of Joomla only.

QuoteI downloaded it to SMF/Packages directory, but login/logout still doesnt work. Should I include that file to archive smf_mambo3.1.tar.gz which is also located in SMF/Packages directory?

It appears you have uploaded the package, but not installed the package.  Unlike the Mambo/Joomla component installation, the SMF package manager does not upload and install all at once.  After uploading the package, you still must install it.  Go back to your SMF package manager, and install the package, which will now be in the list of packages.
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:22:16 AM
I installed the package. It appears as  "Mambo Integration" near "Modification Packages" with version name 1.0

What else could be wrong? And What do you mean to unpublish the "Logout" link?

P.S. So I didn't get the point. Should files "mambo.mod", "MOS_SMF.php" and "package-info.xml" be in the archive "smf_mambo3.1.tar.gz" (which is located it SMG/Packages) or should they be separated and located in directory SMF/Packages?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:28:39 AM
Also I have noticed that the "Logout" link refers to http://mysite.com/~myusername/joomla/index.php?option=com_smf&Itemid=53&action=mambo_logout&returnurl=0;sesc=012a3def6890ec7475387047771e9f00

do you notice that ";" before sesc parameter? Is everything ok with this. Shouldn't be the separator between parameters "&" ?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 10:34:16 AM
QuoteI installed the package. It appears as  "Mambo Integration" near "Modification Packages" with version name 1.0

What are the links to the right of that?

QuoteAlso I have noticed that the "Logout" link refers to http://mysite.com/~myusername/joomla/index.php?option=com_smf&Itemid=53&action=mambo_logout&returnurl=0;sesc=012a3def6890ec7475387047771e9f00

do you notice that ";" before sesc parameter? Is everything ok with this. Shouldn't be the separator between parameters "&" ?

The semi-colon is correct.
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:38:41 AM
Uninstall, List Files, Delete.

I checked if this component works. It certainly does because when I register through Joomla "register" link, the user is created not only in joomla database, but also in "smf_members" table. Also I can login to Forum accessing it directly. But I cannot login from my joomla site...

Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 10:41:48 AM
Can you PM me a URL?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:42:57 AM
http://stekas.com/~vipart/joomla/index.php?option=com_smf&Itemid=53&lang=8859-1
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 10:48:44 AM
There is definitely something wrong with the installation of that package.

Can you uninstall it, and try installing it again?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 10:58:50 AM
Ok. I uninstalled package succesfully. Then I Downloaded it and only when I tried to "Apply mod" I got the following error :
"You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"

I chmod 777 all files in Packages directory. The package I'm trying to install is "smf_mambo3.1.tar.gz" file from step1 directory from "MOS_SMF_BRIDGEv3.19a_SMF1.1b3".

What I'm doing wrong?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 11:01:12 AM
The Packages directory will need to be 777 as well, not just the files in it.
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 11:12:28 AM
it definitely is
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 11:19:04 AM
The files changed by the mod are index.php and Subs.php, which are in the SMF root, and Sources folders.  Can you make sure that both of those folders, and both of those files are also 777?
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 11:28:44 AM
I did, but the result is the same... :(
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 11:42:06 AM
Then you may need to make the changes manually.

Here's how:

Unzip the smf_mambo3.1.tar.gz.  Upload the file MOS_SMF.php to your sources directory, and follow the <search for>, <replace>, and <add after> tags in the mambo.mod file to make the necessary changes to index.php and Subs.php.
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 06, 2005, 11:44:04 AM
I tried to install that package outside joomla page, I mean directly from forum, then I got this error.

When I tried to install package from Joomla page, everything went ok. I just hadn't time to check if everything is ok with the login
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: Orstio on December 06, 2005, 11:46:58 AM
It will be OK, once you upload MOS_SMF.php to your Sources directory.  It currently has a file size of 0 bytes.  ;)

You are best to use the one attached here:

http://www.simplemachines.org/community/index.php?topic=20952.msg410103#msg410103
Title: Re: Joomla/smf_1-1-rc1 logout problem
Post by: VipArt on December 07, 2005, 04:45:05 AM
Thank you guys for your help, appreciate it. You were right, everything went OK when I uploaded the MOS_SMF.php to Sources dir. Thanks.