× Joomla Facebook Connect support forum

Topic-icon Login with Facebook Button on com_user&view=login

Active Subscriptions:

None
11 years 10 months ago #23716 by jefvs
Hey SourceCoasters,
I've been thoroughly enjoying customizing my JFBConnect and am running into an odd spot that I can't seem to get to the bottom of.

I have a custom user login page (template/mytemplate/html/com_user/login/default_login.php) for the page that displays when the user hits a restricted page and prompts them to log in. It is displaying normally - almost. Everything is there as normal just as I coded in my template file (some blurbs and the Joomla login with lost username / lost pw links) but then (as expected based on reading JFB) the Login with Facebook button is also there below. My issue is that I can't figure out where the Login with Facebook button is coming from. It is below the last lines of code from default_login.php so it isn't coming from there and I swear I've looked in every other file. Could anyone point me towards where this is being inserted so I can re-design the page layout and put it somewhere more suitable? It would be greatly appreciated :-)

Also, I found the jfbconnect loginregister view but I don't see where it would be displayed? Am I missing something here heh?

Thanks a ton
J
The topic has been locked.
Support Specialist
11 years 10 months ago #23721 by alzander
J,
The loginregister view is used when you have the Registration Flow set to normal. That page is shown where the user can login to an existing Joomla account or create a new one after they've already clicked the Login with Facebook button.

As for the Login With FB button on your Joomla login page, you're gonna love this, go to Configuration -> Login/Logout and disable "Integrate into Joomla Registration:". The name is a little off (should be "Login") and that will be fixed in the next release. That setting basically throws the {JFBCLogin} tag to the bottom of the login form. Works great for standard templates and basic functionality, but custom implementation is definitely recommended like you're doing.

Hope that helps, and good luck!
Alex
The topic has been locked.