By Julie Kubiak on Monday, 25 April 2022
Posted in General Issues
Replies 9
Likes 0
Views 409
Votes 0
Hi,

When Admins receive the new registration email alerting them of a new person who has signed up to the site, it has the username and email address. Is there any way of adding the persons ‘real name’ to this email?
The user name from the email is respected by this setting from the backend > Easysocial > setting > users > general > User's Name Format .
·
Monday, 25 April 2022 11:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, so how do I add that field to the email?
·
Tuesday, 26 April 2022 17:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually this one already render the user name (screenshot: https://monosnap.com/file/cBCpCCUMMr2TP0ClzeExv9v9jF9f4V )

Since your "User's Name Format" setting set to username, so it will show the new register username instead of full name.
·
Tuesday, 26 April 2022 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Screenshot shows the email that I receive currently, but I want all three fields; the uses real name, their Masquerading As/user name and their email address. Is this possible?
·
Tuesday, 26 April 2022 20:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Julie,

Thank you for your reply.

What you can do is to modify this email template from your EasySocial backend under E-mails -> Template editor and search for moderator.verify.php and click on the email template file name to edit the email content.

In the email content, add below code after line 67:


<tr>
<td style="padding: 5px 0;">
<?php echo JText::_( 'Real Name' ); ?>: <?php echo $firstName . ' ' . $middleName . ' ' . $lastName;?>
</td>
</tr>


Your email template content should look like below after added the above code.


<tr>
<td style="padding: 5px 0;">
<strong><?php echo $name;?></strong>
</td>
</tr>
<tr>
<td style="padding: 5px 0;">
<?php echo JText::_( 'Real Name' ); ?>: <?php echo $firstName . ' ' . $middleName . ' ' . $lastName;?>
</td>
</tr>
<tr>
<td style="padding: 5px 0;">
<?php echo JText::_( 'COM_EASYSOCIAL_EMAILS_USERNAME' ); ?>: <?php echo $username;?>
</td>
</tr>


Please see attached images.

Hope this help.
Sam
·
Wednesday, 27 April 2022 12:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I have Sitelock in place and it's not allowing me to change this file, the way you have outlined, without contacting them. I don't have the time to contact them right now (I know it will be about an hour out of my day, it usually is).

Is there any other way to make this change?
·
Wednesday, 27 April 2022 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Julie,

Thanks for your reply.

Do you mean you do not have write permission to write / update the email template file using EasySocial email template editor?

Please advise.
Sam
·
Wednesday, 27 April 2022 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm getting the following error screen when I save my changes... see screenshot
·
Wednesday, 27 April 2022 19:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Julie,

I apologise for the delay of this response.

I'm getting the following error screen when I save my changes... see screenshot


Regarding the above, I suspect when you attempt to save the changes, when the form is being submitted to your server, the security tool detected the form post data is huge ( maybe due to the email contents ) and thus it block your form submit request.


Anyway, I've attached the modified version of the moderator.verify.php file and please download this modified file and paste the file to folder 'JOOMLA/templates/[your-template]/html/com_easysocial/emails/registration'

If the folders is not there, you will need to manually create the folders and follow the folders structure and place the php file inside registration folder.

Hope this help and have a nice day!
Sam
·
Thursday, 28 April 2022 12:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post