 |
 |
 |
 |
#226692 - 10/23/02 12:27 AM
Admins: Customize the Welcome PM and Email
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
Here's another "how to" for Admins.<br /><br />When a new user registers at your site, they receive a very generic "Welcome" Private Message and an email confirming their password.<br /><br />You can customize these messages with a few simple edits to your language files. <br /><br />I would recommend customizing the "Welcome" PM to encourage people to complete their profiles and make them aware of things they should take note of on your site. For example, if you have a "newbie" or "getting started" forum, your message might tell them to start there first. <br /><br />To modify the Welcome Private Message:<br /><br />- Open the /languages/english/adduser.php file (or whatever language you use).<br /><br />- Look for this line:<br />$ubbt_lang['WEL_MSG'] = "Welcome to our boards! Please take the time to edit your profile to take full advantage of all of our features.";<br /><br />- Edit the text between the quotes to whatever you wish.<br /> Tips:<br /> - You may use <br /> to add a line break to the text.<br /> - If you need to use the quote mark (") within the text, you need to escape it out by inserting the \ mark before the quotes in your test string, like this: \" Don't do this for the first or the last quote, only quotes within the quotes. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />The user also receives a welcome email, which confirms their username and password. You can add a little custom text to this using the same technique. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />To modify the Welcome Email Message:<br /><br />This email comes looking something like this:<br /><br />Someone from the ip address '1.2.3.4.5' registered the Username "testing". The password for this Username is "testing". <br /><br />Since it inserts variables into the text, the easiest thing to do, is to add text to the beginning of the message. This is the easiest way without modification to the scripts.<br /><br />- Open the /languages/english/adduser.php file (or whatever language you use).<br /><br />- Look for this line:<br />$ubbt_lang['PASS_BODY1'] = "Someone from the ip address";<br /><br />- Edit the text between the quotes to whatever you wish.<br /> Tips:<br /> - You may use \n to add a line break to the text.<br /> - If you need to use the quote mark (") within the text, you need to escape it out by inserting the \ mark before the quotes in your test string, like this: \" Don't do this for the first or the last quote, only quotes within the quotes. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br /><br />By customizing these two messages, you can make an extra special first impression on your new users. <br /><br />Hope this helps! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#226695 - 08/03/03 02:43 AM
Re: Admins: Customize the Welcome PM and Email
[Re: jbiz]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
OK -<br /><br />In /languages/english/generic.php you'll see:<br /><br />$ubbt_lang['INTRO_SUB2'] = "Welcome";<br /><br /><br />That's the subject of the PM. It's in "generic" which Implies the textstring is used elsewhere, but upon searching all the scripts - I didn't find it used by any other script. So you can change the langauge file there. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br />As per the # that the Welcome PM comes from - <br /><br />In adduser.php find this:<br /><br /> <br />// --------------------------------------<br />// Put the message into the Messages table<br /> $query = " <br /> INSERT INTO {$config['tbprefix']}Messages (M_Uid,M_Status,M_Subject,M_Sender,M_Message,M_Sent)<br /> VALUES ('$Uid','$Messstat_q','$Subject_q','[:"red"]2[/]','$Message_q','$date')<br /> "; <br /> $dbh -> do_query($query);<br /><br /><br />Note the number "2" above - change it to the usernumber of the person you want the welcome PM to come from. <img src="/forum/images/graemlins/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|