How to change welcome greeting

How to change welcome greeting

How can you change the welcome greeting? The choice is fullname or username. But some people have long names and then when you add the word 'welcome', this may take up a lot of horizontal space and will not look good on mobile. So how can I just show a person's first name without the word 'welcome'?

Rene

fb_1582987308
Rene
useravatar
Offline
56 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to change welcome greeting

Two issues:

1. The language key 'MOD_SCLOGIN_WELCOME' defines the "Welcome" portion of the message. You can set that key to an empty string.

2. Joomla does not differentiate between first name and last name for the user's name. If you look at the com_users DB table, there's only one field called 'name'. To do what you're asking would require custom code to break apart that name. We don't do this in SCLogin. However, you can create a template override of the logout.php file and add PHP code to split the name by spaces yourself. However, this may be error prone dependent on the format of the name / language / etc.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3543 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to change welcome greeting

Thanks Melissa.

Rene

fb_1582987308
Rene
useravatar
Offline
56 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11497
Total Polls:
0
Total Posts:
48402
Posts today:
1
User Info
 
Total Users:
47468
Newest User:
hannatee
Members Online:
2
Guests Online:
823

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program