I figured that I could change the text that appeared between the single quotes without affecting the functionality. I wanted a more customized message for the new member (I'm building a pseudo-membership site). This is what is the default in Signup2.php:
// Setup email to send
$mail_subject = 'Your login details...';
$mail_to = $email;
$mail_message = ''.
'Hello '.$display_name.', Your account information for '.WEBSITE_TITLE.' is:
Username: '.$username.'
Password: '.$new_pass.'Your password has been set to the one above.If you have received this message in error, please delete it immediately.'; // Try sending the email
I was hoping I could change it to:
// Setup email to send
$mail_subject = 'Your login details...';
$mail_to = $email;
$mail_message = ''.
'Dear '.$display_name.', We are excited welcome you as our newest member.Your login information for the '.WEBSITE_TITLE.' is:
Username: '.$username.'
Password: '.$new_pass.'Please login and change your password immediately.You can do this by going to the Administrative panel at mywebsiteurl.com/admin.If you have received this message and did not create an account for our site, please email our site administrator at admin@mywebsiteurl.com and delete this message. We will promptly remove your email address from our database. Thank you and welcome to the '.WEBSITE_TITLE.'.PJ'; // Try sending the email
Once the change is made, the form appears to work, but the email is never sent and the user is never created. The form seems to post but never redirects back to the top level page (the behavior that I was getting when the code is unmodified). I am not a PHP expert here, but there must be a way to modify the core files to make this work.
I am using Coffee Cup HTML Editor which does a good job as a visual editor and seems to work well with PHP. I have used it to modify templates and make other PHP changes in website baker with great success. Everything appears correct in the PHP but there is definitely something wrong since the function never completes.
Any help or even some direction on what to look at next would be appreciated. I'm not even sure where to start.