News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Blank Page with Mambo integration.

Started by macximian, January 16, 2006, 07:12:40 PM

Previous topic - Next topic

macximian

First off Sorry if this has already been discussed, but i tried searching and  couldn't really find anything the solved this problem.

here are my details:
Mambo V-> 4.5.3.h http://macximian.homeip.net:8888
SMF V. ->1.0.5 http://macximian.homeip.net:8888/smf
absolute path: /Users/www/smf/

I have "successfully" Installed the Components through the Mambo backend and have added a menu under home link. When you click on the "Forum" link the SMF board shows just fine under guest. I have it wrapped at the moment. The problem I have is that when I login using the SMF Login Module all I get is a blank page. The url that is showing in the address is

http://macximian.homeip.net:8888/index.php?option=com_smf&Itemid=55&action=mambo_login

The options I have set for the SMF-Forum Component is:
Absolute Path: /Users/www/smf/
SMF Forum Integration: Wrapped
SMF Forum Integration: Use SMF Registration

The options I have for the Login Module:
Title:  Login Form
Show title: Yes
Position:    Left
Module Order:    4
Access Level:    Public
Published:   Published
Login Redirection URL:     Back to the SMF Main Page     
Logout Redirection URL: Back to the Mambo HomePage.

I have Added the required Code to the Template Just before the </head> tag and also the line of code just before the </body> tag. I have also Unpublished the default Mambo Login Module.

I have read the instructions several times and can't seem to figure out whats wrong. Mambo and SMf are using the Same database and I also have Gzip turned. It was off before. The Menu Link is point to Component - SMF Forum.

I have checked the Error Logs in SMF admin and there is nothing there as of yet.

Can Anybody help out a Newbie??? All is appriciated. If any more info is need let me know

Orstio


macximian

Yeah i guess that would help wouldn't it...

MOS_SMF_BRIDGEv3.19a_SMF1.1b3 is the version of the bridge i downloaded.

Thanks

Orstio

MOS_SMF_BRIDGEv3.19a_SMF1.1b3 is for SMF 1.1 beta 3, beta 4, and RC1.

For SMF 1.0.5, you need this bridge:

http://mamboforge.net/frs/download.php/6472/MOS_SMF_BRIDGEv3.19a_stable.zip

macximian

Super!!!

I uninstalled the previous Package, Mambo Components,  and Mambo Modules. I then Installed the version you said I needed.

When i installed the SMF Package I got a failure message about the ./Sources/Subs.php but i knew it was okay because i had double checked the perms were set to 777. I then installed the components and the module "Successfully"

However, i ran into a slight problem here in that the entire page was blank. and only the first part of the source was displaying when i select "view source". I did get this fixed in case any body runs into this. I went into the Mambo Backend and went to the SMF component config and changed it to not be wrapped. I saved the settings and double checked the Code for the template i left from before. The page loaded successfully. I then went back to the Mambo Backend and swapped it back to be wrapped. And it's working Now. I can even log in and all seems to be well.

Thanks for your help.

-Steve

macximian

Hmmm... Maybe I spoke too soon?

Although everythin seems that it was working fine. It now appears as though the smf-login seems to be working. It is not telling mambo that i am logging in. When i click on a link that is set to registered. i get a page that says:
QuoteYou are not authorized to view this resource.
You need to login.

Any Ideas on this???

Orstio

Copied from Kindred's Combined Readme:

In MOS_SMF.php, we need to end the old Joomla session.  Because the name of the session cookie changed in Joomla (and Mambo 4.5.3), we need to change the code a bit:

Find (for login and logout functions...):


setcookie ("sessioncookie","",-3600, "/" );


Replace with:


    $sessionCookieName = md5( 'site'.$GLOBALS['mosConfig_live_site'] );
setcookie ($sessionCookieName,"",-3600, "/" );



macximian

Quotesetcookie ("sessioncookie","",-3600, "/" );
Replace with:
$sessionCookieName = md5( 'site'.$GLOBALS['mosConfig_live_site'] );
               setcookie ($sessionCookieName,"",-3600, "/" );

I added the code that you specified to MOS_SMF.php but now when i try to login i get a blank screen.

Also on a sidenote does the name of the cookies i specify in SMF config matter? I ask because you mentioned the cookiename in mambo/joomla has changed.

macximian

UPDATE: I emptied my Cookies from Firefox and reloaded the page. Logged in and seems okay.

thanks again for your help

Advertisement: