Topic-icon Redirect or refresh issues on login

Active Subscriptions:

None
12 years 7 months ago #12951 by fb_1248644574
Hello, I am using an image to open login in a lightbox using "Modalizer" Then I use a separate image to logout. I have both working, but I am having a couple problems.

After I log in I am redirected inside the popup instead of regular page. Also when I log in I need to manually refresh in order to see my logout image and registered ACL menu items. I am assuming that if I could change the redirect URL to "_top " my page will refresh itself solving both issues but not sure if that is possible. Even if I figured that out I would then be confused as to how to keep the page from redirecting when I want them to stay on the same page. Thank you for any advice.

Ed
The topic has been locked.
Support Specialist
12 years 7 months ago #12952 by alzander
Can you send me the URL of the page with this problem? I'm not sure if what you want to do is possible. If it's really a browser window popup, there may not be an easy way to do what you're looking for as it would be Facebook itself that needs to do the redirect, and we may not be able to have control over it. It's possible though, and when we see the pop-up, we should be able to figure something out.

As for redirecting sometimes and not others, that'd be a bit tougher. Can you let us know when you'd decide what should be happening?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #12982 by fb_1248644574
Hi. I PM'd you the url yesterday. Just let me know if you need any other info.
Thanks,
Ed
The topic has been locked.
Support Specialist
12 years 7 months ago #12989 by alzander
Ed,
For the popup redirecting inside of the frame, try the following change. In /components/com_jfbconnect/includes/jfbconnect.js, look for the login_button_click() function toward the top. Then, change it's redirect from self to top:
top.location = jfbcOptionsPermsUrl;

Hopefully, it's that easy. But if you still have refresh/redirect/login issues after that's done, just let us know, and we'll go from there.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #13017 by fb_1248644574
Alex,

Thank you that was exactly what I was looking for. It closes the lightbox like a charm.

One last thing on this issue though. If you can let me know what files I can find the following in, I can find where to make the [_top] changes myself:

1. Links under login (Forgot Password/register) Or if it is easier for the Forgot Password and Register Submit buttons, that would be ok too.
2. Link to errors for incorrect password/username

Thanks for the awesome support as always and I will be renewing my registration next week. I do have a prepurchase question but I will leave that in the correct forum.
The topic has been locked.
Support Specialist
12 years 7 months ago #13042 by alzander
Glad to hear that worked. You'll have to remember that change, unfortunately, and make it manually in future releases. We can't do it in our releases as we know of multiple frame-based sites using JFBConnect. If we made that change in the component, it would break user's out of all frames on all sites, and that's going to be bad. Just letting you know, and hope that's not too inconvenient.

As for the links you're talking aobut, they can be found in the JFBCLogin module's template file at /modules/mod_jfbclogin/tmpl/default.php. We'd highly recommend you create a template override to make those changes, so they aren't lost when you upgrade. You can learn how to do that in the article below:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

The login module's template is a bit ugly right now. For the 4.1 release (later this year), we're planning an overhaul of it to break the login and logout portion into their own template and generally make things prettier. If you can't find the links you need, or have questions, just let us know!

Good luck,
Alex
The topic has been locked.