Welcome Guest, Not a member yet? Register   Sign In
FreakAuth Light - customize activation email?
#1

[eluser]tpiscotti[/eluser]
Hello!

I'm currently using FreakAuth Light for user registration. My client wants the activation email to display the first name (or first and last name) in the first line of the email (the welcome line..."Welcome, Tony!" for example).

Right now it uses the username by default: "Welcome, myusername1234!"

I'm trying to find the bit of code where I can customize this.

I tried just updating the variable in the activation email from the default:

Code:
<?=$this->lang->line('FAL_welcome')?> <?=$user_name?>,

...

to

Code:
<?=$this->lang->line('FAL_welcome')?> <?=$first_name?>,

...

but this produces an error in the email that gets generated which looks like this:

Code:
Welcome, <div style="border:1px solid #990000;padding-left:20px;margin:0 0
10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>
<p>Message: Undefined variable: first_name</p>
<p>Filename: email/activation_email.php</p>
<p>Line Number: 1</p>

</div>,

Thank you for your new member registration.

...

I guess I figured I could use any of the fields being passed from the registration form, but apparently the form data that is available to use for the activation email is being defined elsewhere(?).

Can anyone point me in the right direction?

Thank you very much in advance!

- Tony
#2

[eluser]TheFuzzy0ne[/eluser]
I would give it a shot, but the FreakAuth Web site appears to be down for me...

There should be a controller method that processes the user sign-up data, and sends an Email when it's done. If you can find that method and paste it in here, I might be able to assist.
#3

[eluser]tpiscotti[/eluser]
Hi~

Thanks for the response! I will try to pin down what looks to be the related controller code. I guess, technically, if I can find it I can try to adjust it myself. It wasn't so much that I couldn't adjust the code, it's that I couldn't locate the code I needed to adjust. However, I'm sure I'll need some assistance on this so I'll post whatever I find.

Thanks again!

-Tony




Theme © iAndrew 2016 - Forum software by © MyBB