So if you go to the dashboard, it will tell you where your php.ini file is under system snapshot. From there you want to make sure that display_errors = on
Ok. Sounds good. Normally right before the version number it has the actual path to php.ini
I did another test and this is the error message:
Parse error: syntax error, unexpected '<', expecting end of file in /www/usersc/scripts/during_user_creation.php on line 28
On line 28 the <?php tag is located
20 $db->update('users',$theNewId,['phone'=>Input::get('phone')]);
21 $db->update('users',$theNewId,['challenges'=>Input::get('challenges')]);
22 $db->update('users',$theNewId,['membership'=>Input::get('membership')]);
23 $db->update('users',$theNewId,['orig_chos_day'=>Input::get('orig_chos_day')]);
24 $db->update('users',$theNewId,['message'=>Input::get('message')]);
25 $db->update('users',$theNewId,['ecname'=>Input::get('ecname')]);
26 $db->update('users',$theNewId,['ecphone'=>Input::get('ecphone')]);
27
28 <?php
$params = array(
'sitename' => $settings->site_name,
);
$to = rawurlencode("my@emailaddress.com");
$subject = 'You got a new user!';
$body = email_body('_email_newuser.php',$params);
email($to,$subject,$body);
?>
So you're already in php, which means you don't need <?php on line 28. Just delete it.
Awesome. Glad it is working.
Don't worry about the views thing being in users. That feature dates back to UserSpice 2.0, so all email views are just stored in that folder.
So, to include more info in your email, 2 things need to happen.
1. You have to add the variables that you want to add in that params array. You can see the full example in one of the earliest messages in this thread, but for instance, if you want the email, you can add this to $params.
'email' => rawurlencode($userdetails->email),
2. Then, whatever is on the left side of the array is the variable name inside the email, so we just added 'email' which means you change the body of users/views/_email_newuser.php to something like
<p>You just got a new user on <?=$sitename?>. Their email address is <?=$email?></p>
Make sense?