By Karen Laksamana on Thursday, 01 February 2018
Posted in General Issues
Replies 3
Likes 0
Views 731
Votes 0
I'd like to modify the email template for invite.php to display the user's real name instead of their username, but I can't figure out what variable to use.

This is the original code:

<?php echo JText::sprintf('COM_EASYSOCIAL_EMAILS_FRIENDS_INVITE_CONTENT', $senderName);?>
</p>


I need to know what to use instead of $senderName to display the Name instead of the Username

Thanks
Hey Bruce,

There are no variables for username when sending e-mail invites as the $senderName is dependent on how you configure EasySocial to display the person's name. From what you have explained, it seems like you have configured EasySocial to use the real name instead of username eh? Or do you only want the username to be used in the invite e-mail?
·
Thursday, 01 February 2018 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
I have EasySocial configured to display their usernames/alias when they are using the site.

When I send out a test invite, it shows my alias/username in the email, not my real name. On the email I want to display their real name where it says 'Hello, Bruce sent you the message below to invite you to join..."

Users have to provide their real name when they register, so it's in the dbase. Is there a way to grab it to display it in the email?
·
Friday, 02 February 2018 02:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bruce,

You might want to go to this file: ../administrator/components/com_easysocial/tables/friendinvite.php and on line 143, change from this:

$params->senderName = $sender->getName();


to this:

$params->senderName = $sender->getName('realname');


http://take.ms/2tyt5

Hope this helps.
·
Friday, 02 February 2018 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post