Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Replacing first occurance of [USER_NAME] / [USER_FULLNAME] in registration email with value of user_

I want to do this:
1. Add new user from admin members section
2. Send confirmation email (members_email.php) where code looks like this now:
CodeDownload  
$locale['email_create_message'] = "Hello [USER_NAME],\n
Your account at ".$settings['sitename']." has been created.\n
You can now login using the following details:\n
username: [USER_NAME]\n
password: [PASSWORD]\n\n
Regards,\n
".$settings['siteusername'];


with this:
CodeDownload  
$locale['email_create_message'] = "Hello [USER_FULLNAME],\n
Your account at ".$settings['sitename']." has been created.\n
You can now login using the following details:\n
username: [USER_NAME]\n
password: [PASSWORD]\n\n
Regards,\n
".$settings['siteusername'];


where [USER_FULLNAME] should be replaced with the content of a user_field called user_fullname.

I have tried a lot of possibilites, but it's not working. Would really appreciate a helping hand here ... where to cange - what to change ... you know

Fusion-version: 7.02.x
to call users´s fields you use
CodeDownload  
$userdata['user_fullname']

if the value of that field exist in your user fields table.
Thread Information
Author
Replies
2 posts
Views
789 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, janmol