× Joomla Facebook Connect support forum

Topic-icon login redirect into TARGET="_parent" ?

Active Subscriptions:

None
I'm using a rokbox/modal popup on my page to display the JFBConnect module. However it is loading into the iframe. Is there a way to modify it to load into TARGET="_parent"?
The topic has been locked.
Support Specialist
15 years 1 day ago #10793 by alzander
From another thread, I know you'll be sending your site credentials. We may need to see this happening to understand specifically what redirect needs to be changed.

For Rokbox popups, specifically, we added the ability to have a custom image because the default (javascript based) Login With Facebook button wouldn't work in Rokbox pop-ups. However, with the custom image login buttons, we haven't heard of other issues with Rokbox, so hopefully seeing it in action will make it more clear.

For more information about the custom image stuff I was talking about, see the 2nd and 3rd question on the page below:
www.sourcecoast.com/jfbconnect/docs/common-support-questions

Alex
The topic has been locked.
Active Subscriptions:

None
15 years 1 day ago #10797 by fb_592190914
Its not really an issue, just a customization I would like to do. Just check out bit.ly/lD1dTd and click on the join now link. You will see your module in the popup. If you click on facebook button and signup, you are redirected into the same rokbox, it does not break out of the iframe. However, I threw a little javascript this into the article " parent.location.href ="index.php"; "
The topic has been locked.
Active Subscriptions:

None
14 years 11 months ago #11118 by fb_592190914
Just incase anyone else is using rokbox or some other sort of iframe for the facebook connect login module, and does not want the user redirected back into the iframe, you will need to modify the javascript called components/com_jfbconnect/includes/jfbconnect.js

On line 25 you will see this. Look for the word "self"
self.location = jfbcOptionsPermsUrl;

and change it to "parent" like this:
parent.location = jfbcOptionsPermsUrl;
The topic has been locked.