× Joomla Facebook Connect support forum

Topic-icon Customize Login

Active Subscriptions:

None
15 years 5 months ago #6652 by fb_100000501858606
Hello,

Scenario:
I would like to change the login to only show on the top right of the web page a short status text:
- if user not logged in, then logme in link & facebook connect button via {JFBCLogin}
- if user logged in, then display avatar image & logme out link
The actual login page would be on a separate page. Similar to many web site. For example Amazon uses a similar procedure by having such a login menu on top of their site.

Environmnet:
JFBC 3.1, Community Builder.

Question:
1) Where to start: Better to customize Cumminity Builder login & add {JFBCLogin}button OR JFBC login?
2) If JFBC ... how? Is there a easy way to get that? Could be two menus. One shown for not logged in and one for logged in. Should be possible via module assignment. Would basically only need a login and a logout link... (?)

Any thouights. I guess there are some best practises on that as there are quite few sites out there having a similar approach.

Rgds
Lars
The topic has been locked.
Active Subscriptions:

None
15 years 5 months ago #6653 by fb_100000501858606
Replied by fb_100000501858606 on topic Customize Login
As a workaround for the moment I've created my own small module using approach described here
lab11.com/blogs/Adding-a-Login-Logout-li...Joomla-Template.html
The topic has been locked.
Support Specialist
15 years 5 months ago #6657 by alzander
Replied by alzander on topic Customize Login
Great to hear you got started somewhere. I think custom is probably the route you want to use. We have the { JFBCLogin} tag now, so you can use that to insert the "Login With Facebook" button, and then individually add any other text or links you want to as needed. Our Login module isn't super flexible right now, and that's something we want to improve in an upcoming release. However, with such specific needs, we probably won't have every option you need.

If you are changing code though, you can likely use our JFBCLogin module as a starting point and just remove the features you don't need. You can do this easily using a template override, which will prevent your changes from being overwritten if you upgrade. For information on how to create a template override, see the bottom section of the below article:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

Good luck, and let us know if you have any specific questions on how to implement something!
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #6671 by fb_100000501858606
Replied by fb_100000501858606 on topic Customize Login
Thanks. I will send you the customized module. Maybe you can use it.


Rgds
Lars
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #6747 by fb_100000501858606
Replied by fb_100000501858606 on topic Customize Login
So I built my own module + changed yours. When I tried to override your module using the documentation you provided
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions
I don't think my php file was picked up. Do I need to clean any cache or so?
The topic has been locked.
Support Specialist
15 years 4 months ago #6768 by alzander
Replied by alzander on topic Customize Login
Yes, cleaning cache is recommended. The template override should be picked up automatically. If it's not, make sure that the permissions on that file are readable. If that doesn't work, send us the path to the file, and we'll tell you if it looks right.

Thanks!
The topic has been locked.