× Joomla Facebook Connect support forum

Topic-icon Pop-up doesn't close and redirect

Active Subscriptions:

None
15 years 2 months ago #214 by dan_jericho
Yep,

Im using sh404sef.
The topic has been locked.
Support Specialist
15 years 2 months ago #222 by alzander
Alright, we think we have a solution for the SH404 issues that we've had, but would like to have any of you affected make minor changes to 2 files to test first. If you can't, that's fine, we'll post RC4 with these fixes early this week, but would like to have some wider testing first. Also, if you notice other problems that may be related, post them here.

Cause: Joomla router is converting '&' symbols in the URL to '&' which then is getting sent to Facebook and back again, and SH404 isn't routing these back to the JFBConnect component correctly.

Solution:
In the SH404 configuration, under the "By Component" tab, switch the first column for JFBConnect from "(use default handler)" to "Skip".

Modify the following 2 files:
/components/com_jfbconnect/helpers/facebookhelper.php (~line 26, remove JRoute::_() function call):
function getFacebookUserLoginLink()
{
#return JRoute::_("index.php?option=com_jfbconnect&task=loginFacebookUser");
return "index.php?option=com_jfbconnect&task=loginFacebookUser";
}

/modules/mod_jfbclogin/tmpl/default.php (Add JRoute::_( xxx, false) to 2 function calls)
line 13
Change: var fbUserLoginLink = "<?php print JFBConnectFacebookHelper::getFacebookUserLoginLink(); ?>&return=<?php echo $fbLoginUrl; ?>";
To: var fbUserLoginLink = "<?php echo JRoute::_(JFBConnectFacebookHelper::getFacebookUserLoginLink()."&return=".$fbLoginUrl, false); ?>";

line 30
Change: window.location = 'index.php?option=com_jfbconnect&task=logout&return=<?php echo $logoutUrl; ?>';
To: window.location = '<?php echo JRoute::_('index.php?option=com_jfbconnect&task=logout&return='.$logoutUrl, false); ?>';

Thank you for your patience. Any custom modifications to the login template should not be affected (though the line numbers above may obviously be different). Please post results!
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #223 by dan_jericho
Hi,

Thanks for the fast response. I'll give this a whirl and let you know if it solves the problem.

Thanks again.
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #224 by dan_jericho
Just to follow up, that seems to work ok now, but I will test it further.
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #225 by Clark
Works perfectly for me as well! Thanks for the timely fix Sourcecoast.
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #240 by dan_jericho
Hi,

Ive tested the change and for the most part everything works. But another problem has come up.

When I login thru joomla with an account that is already connected via facebook Im still getting the "Connect this account to facebook" button. When i click it a pop up appears and then I get a "Page cannont be found" within the pop up. Should the "Connect this account to facebook" button not be hidden if the user is already logged in to an account that had been attached to facebook? I am using an account that was created previous to the jfbconnect installation.

Try it on my site urfestival.com

Thanks
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #243 by dan_jericho
Also getting a problem with the activation link when a user tries to create a joomla account which give an error about he facebook component.

If you sign up for an account on my site as a regular joomla user you'll see what i mean.

Thanks
The topic has been locked.
Support Specialist
15 years 2 months ago #245 by alzander
Maybe you've posted it before, but whats your site? I just tried this on our test site (Joomla activation enabled, create new Joomla user, not using JomSocial..) and didn't see any issues.
The topic has been locked.
Active Subscriptions:

None
15 years 2 months ago #246 by dan_jericho
my site is urfestival.com
Im using jomsocial as well
The topic has been locked.
Support Specialist
15 years 2 months ago #253 by alzander
I just tried to create an account on your site, filled out the profile, did not upload a phot, and received the activation link correctly. Clicking it led me to:
<!-- m --><a class="postlink" href="urfestival.com/Activate-account.html?act...866d1d09c12513075f57">urfestival.com/Activate-account. ... 2513075f57
Which states:

Activation Complete!
Your Account has been successfully activated. You can now log in using the username and password you chose during the registration.


What are you seeing?
The topic has been locked.