Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 11:03:48 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155497 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Modifying the Signup2 Page  (Read 512 times)
pparks

Offline Offline

Posts: 17


« on: April 20, 2009, 01:42:34 AM »

Greetings:

I want to modify the email that is received by someone who is registering for an account on my WB 2.7.0 based website. I have found in the code where the content for the email is generated. Every time I try to change it, the signup form doesn't complete (i.e. - the email isn't sent, the new account isn't created). Has anyone had any experience changing WB so that the new site account member receives a custom welcome email?

Phil Parks
Pearland, TX
Logged
LuuQ

Offline Offline

Posts: 96



WWW
« Reply #1 on: April 21, 2009, 10:02:28 PM »

What exactly did you change in there?
Logged
pparks

Offline Offline

Posts: 17


« Reply #2 on: April 22, 2009, 01:08:48 AM »

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:

Code:
   // 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:

Code:
   // 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.
Logged
doc
Guest
« Reply #3 on: April 22, 2009, 06:46:20 AM »

Hi,

was the mail send before you changed the text? If yes, the error is most likely with a missing open/closing ' or a missing . for the concatenated text.

Christian
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!