× Joomla Facebook Connect support forum

Topic-icon Joomla Welcome Message after Facebook Connect

Active Subscriptions:

None
Hello,
I have installed the JFBconnect component successfully and have it configured just to just the FB authentication when logging in. After logging in I get a "welcome, Josh" message along with the logout button on the line below it. Is there configurable way to modify this or do i need to go into the source code of Joomla and fix this. In the normal login module, it allows me to adjust the greeting. How do I do this with JFBconnect?

Josh
The topic has been locked.
Support Specialist
13 years 2 months ago #7846 by alzander
In the language file for the login module, en-gb.mod_jfbclogin.ini (if you're using English), you'll see a WELCOME= string. The username will always be at the end, but the initial greeting can be specified. Unfortunately, if you want a different ordering, yes, you'd need to modify the code a little. To do so, you'd want to create a template override of the mod_jfbclogin module. Then, at line 110, you'll see the greeting text (with the hardcoded username at the end) that you can change.

To create a template override, see the last section of the article below:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

Hope this helps, and good luck!
The topic has been locked.
Support Specialist
13 years 2 months ago #7848 by mel
I was actually already working on improving the greeting for the JFBCLogin module to be more similar to the core Login module, when Alex told me about this post.

The line of code to override (for mod_jfbclogin/tmpl/default.php) should now be:
echo JText::sprintf('WELCOME', $user->get('name'));

The language file (for en.GB_mod_jfbclogin.ini) will now be something like this:
WELCOME=Welcome %s,

For the greeting, the 3.2 release will update the greeting portion to 1) have an option to use username/name 2) show/hide the greeting and 3) make the login message more configurable like the core language file.

If you hadn't already figured it out, hope those snippets make it easier.
The topic has been locked.
Active Subscriptions:

None
Thank you, thank you, thank you! I genuinely appreciate the incredible support here. I've used hundreds of 3rd party components with Joomla! and your support and integration is without a doubt the most professional. It's nice to know that someone else is sifting through code on a Saturday night!

Keep up the great work Sourcecoast! I'm a lifetime customer.
Josh
The topic has been locked.
Support Specialist
13 years 2 months ago #7852 by alzander
No problem Josh, it's what we do. Glad you like it, and glad we still enjoy working on a Saturday night as well :)

Let us know how it goes, and if you have any suggestions or feedback, we're all ears!
The topic has been locked.