× Joomla Facebook Connect support forum

Topic-icon Replace Joomla Core Login with JFBCLogin

Active Subscriptions:

None
13 years 2 weeks ago #9533 by nchamtie
Is there a way to replace the core joomla login with JFBConnect Login module? I would like to create a page where the only way to see it is to connect through facebook. I created the page and made it only visible to registered users but now it takes me to the joomla core login, I would like to replace that with the JFBLogin module and disable the user login and only leave "Connect with Facebook" button. Is that possible?
The topic has been locked.
Support Specialist
13 years 2 weeks ago #9541 by alzander
The best, easiest, and 'right' way to do that is to create a template override for the core Joomla login page. To do so, you'd simply copy
/components/com_user/views/login/tmpl/default_login.php
to
/templates/<YOUR_TEMPLATE>/html/com_user/login/default_login.php

Then, edit the copied file, which has Joomla's normal login. Here, you can remove the existing form, add your own "Welcome" text, and then add {JFBCLogin} whereever you want the Login With Facebook button to appear.

This is the best way because it won't be destroyed when you upgrade Joomla and all "You must be logged in to .." pages redirect to this page, so you should be covered.

Hope this helps, and good luck!
The topic has been locked.
Active Subscriptions:

None
13 years 2 weeks ago #9547 by nchamtie
Thank you Alzander :-)
The topic has been locked.
Support Specialist
13 years 2 weeks ago #9551 by alzander
No problem. It's what we do :)

Hope that got you fixed up nicely, but if you need anything else, just let us know. After you've used JFBConnect for a bit, please consider leaving a rating and review on the Joomla Extension Directory:
extensions.joomla.org/extensions/social-...ook-integration/7215

Best of luck to you,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12997 by dsa787

alzander wrote: The best, easiest, and 'right' way to do that is to create a template override for the core Joomla login page. To do so, you'd simply copy
/components/com_user/views/login/tmpl/default_login.php
to
/templates//html/com_user/login/default_login.php

Then, edit the copied file, which has Joomla's normal login. Here, you can remove the existing form, add your own "Welcome" text, and then add {JFBCLogin} whereever you want the Login With Facebook button to appear.

This is the best way because it won't be destroyed when you upgrade Joomla and all "You must be logged in to .." pages redirect to this page, so you should be covered.


I think I have a similar question but not 100% sure. When a user registers at my site and confirms his registration then the landing page shows the Joomla Login form and not the JFBC form so if a user then uses his username and password to login the site then the Joomla Profile shows upon login. My question is shall I also use the instructions above to change that to show JFBC instead.

Also if I am not using the redirect where would the user go at that point?

PS. since I replied to this topic my post appears in Joomla 1.5 but I'm actually using Joomla 1.6

Thank you
The topic has been locked.
Support Specialist
12 years 8 months ago #13065 by alzander
Yes, if you want to add the Login With Facebook button to the standard Joomla login page, the instructions above would work for you. If not, let us know, but I think the file names for the main com_user component are the same in 1.5 and 1.6.

As for the redirect when the user logs in from that page, if you have the "Enable Returning User Redirection" set to 'no', they'd be left on the same page. Joomla, however, will change it to show that the user is logged in and provide a logout button for them.. so while not necessarily where you want them to be, it won't be confusing either by showing them another login form and making them unsure if they really had just logged in.

Hope that helps, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #13067 by dsa787
Thank you. Actually we wanted to add the JFBC login form, not just the button and we were able to add that successfully. For the redirect we actually used a single redirect after Joomla registration but left it at "No Redirect" for the FB registration.

Thanks again!
The topic has been locked.
Support Specialist
12 years 8 months ago #13068 by alzander
No problem. Your subscription allows us to provide our high level of support, so thank you!

Finally, please consider leaving a review on the Joomla Extension Directory for JFBConnect and our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Should you need anything else, just let us know, and good luck,
Alex
The topic has been locked.