After about an hour of tweaking, I managed to get it setup exactly the way I wanted it. Thanks a lot for your help!
Good day!
You are not logged in. Please login or register.
PunBB Forums → Posts by flames
Pages 1
After about an hour of tweaking, I managed to get it setup exactly the way I wanted it. Thanks a lot for your help!
Good day!
Thanks Smartys. I need a little more help since I am not exactly familiar with PHP.
I copied and pasted this code somewhere in the middle of the register.php page:
{
// Load the "welcome" template
$mail_tpl = trim(file_get_contents(PUN_ROOT.'lang/'.$pun_user['language'].'/mail_templates/welcome.tpl'));
// The first row contains the subject
$first_crlf = strpos($mail_tpl, "\n");
$mail_subject = trim(substr($mail_tpl, 8, $first_crlf-8));
$mail_message = trim(substr($mail_tpl, $first_crlf));
$mail_subject = str_replace('<board_title>', $pun_config['o_board_title'], $mail_subject);
$mail_message = str_replace('<base_url>', $pun_config['o_base_url'].'/', $mail_message);
$mail_message = str_replace('<username>', $username, $mail_message);
$mail_message = str_replace('<password>', $password1, $mail_message);
$mail_message = str_replace('<login_url>', $pun_config['o_base_url'].'/login.php', $mail_message);
$mail_message = str_replace('<board_mailer>', $pun_config['o_board_title'].' '.$lang_common['Mailer'], $mail_message);
pun_mail($email1, $mail_subject, $mail_message);
message($lang_register['Reg e-mail'].' <a href="mailto:'.$pun_config['o_admin_email'].'">'.$pun_config['o_admin_email'].'</a>.', true);
}
I checked it and the mail is being sent perfectly.
However, I would like to modify the content of the mail a little. For example, I would like to remove the word "Mailer" from the 'From', remove the line asking them to login to activate and instead have a welcome sentence. Where do I edit the variables in?
Regards.
Hello,
I am sure there should be a way to do this, but I am just not able to figure out where the setting could be. Thing is, I wish to turn off new email verification to bypass the hassle of the users having to register, get a temporary random password and then figure out how to change it. However, I wish to send them an email welcoming them to the community as well as the information about their username and password for future reference. How do I go about accomplishing this?
Thanks!
Hi Paul,
I moved the call for favicon.ico down below the doctype declaration and it worked flawlessly! Thank you so very much! That was really really helpful. I can't thank you enough!
Have a wonderful day!
Paul,
I just changed the position to relative in base.css and this is what I have gotten: no change in FF but more spacing plus the border problem in IE.
I replaced the original skin files (img and style) and also tried replacing the modified footer.php with the original footer.php but the error in IE persists. What else could be wrong?
Thanks!
Hi everyone,
I have been working on giving this forum (my friend's) a better look.
PunBB is 1.2.17 and I installed the SamuiRed skin for 1.2 by Blaux from PunRes.org. I made a lot of edits in the php and even added a line in base.css. I have been working all this while with previews in Firefox and have been extremely happy with the results. My friend takes one look with IE and the right bottom corner is horribly mixed up. The skin as such is previewing perfectly in IE: http://www.punres.org/viewtopic.php?id=3715
I would hate to start all over again for the changes. Would anyone like to hazard a guess as to where exactly I would have messed up to cause such an horrible defect?
Thanks in advance!
Pages 1
PunBB Forums → Posts by flames
Powered by PunBB, supported by Informer Technologies, Inc.