php forum
php mysql forum
php mysql smarty
 
Topic Options
#226692 - 10/23/02 12:27 AM Admins: Customize the Welcome PM and Email
JoshPet Offline
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 />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226693 - 05/02/03 06:22 AM Re: Admins: Customize the Welcome PM and Email [Re: Daine]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Right on Josh. I really enjoy reading the tweaks and recommendations you post. <br /><br />I'd like to see what others have decided on inputting in these two fields.<br /><br />If any of you out there would like to share what you have done, I'd love to see it. I'm not good at creativity....<br /><br />Thanks again Josh.
_________________________
F-Body Hideout
Project Speedy

Top
#226694 - 08/03/03 01:58 AM Re: Admins: Customize the Welcome PM and Email [Re: General_Failure]
Mudpuppy Offline
Journeyman

Registered: 08/16/02
Posts: 113
Loc: Sin City
To take this a little further, how do I change the title of the Welcome PM? In other words, instead of saying "Welcome", I'd like it to say, "Please read this important message".<br /><br />(and while I'm at it, in which file do I specify the ID number of the user that the Welcome PM is from? I don't want it to be from me, the Admin, anymore... I want to pawn the job off to somebody else.)

Top
#226695 - 08/03/03 02:43 AM Re: Admins: Customize the Welcome PM and Email [Re: jbiz]
JoshPet Offline
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 />
Code:
<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 -&gt; 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="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226696 - 08/14/03 10:12 PM Admins can also customize the Welcome Email subject! [Re: Daine]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
Josh...wish I had noticed this thread sometime ago! (Would have saved some time...) <br /> <br />Anyway, might add that in the same language file admins can change the SUBJECT of the welcome email, from "Your password for..." (followed by the name of the board) (field name: PASS_SUB) to whatever they wish...useful on boards where most users enter a password on the new user screen, and where this message is used mostly for conveying other info! <img src="/forum/images/graemlins/smile.gif" alt="" /> Tony

Top
#226697 - 12/20/03 03:58 AM Re: Admins can also customize the Welcome Email subject! [Re: BOOO_YAAA]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Josh, or anyone else out there....have you tried this with 6.4 or is there alternate methods of doing this?<br /><br />Thanks.
_________________________
F-Body Hideout
Project Speedy

Top
#226698 - 12/20/03 04:07 AM Re: Admins can also customize the Welcome Email subject! [Re: General_Failure]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
6.3 and higher, you can edit all wordlets right from the Admin menu. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> Very user friendly.<br /><br />Admin -> Edit a Language File<br /><br /><img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226699 - 12/20/03 09:57 PM Re: Admins can also customize the Welcome Email subject! [Re: Daine]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
woot. something new for me. thanks josh <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
DrChaos
LeetGamers

Top
#226700 - 12/30/03 11:33 AM Re: Admins can also customize the Welcome Email subject! [Re: Daine]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
[]JoshPet said:<br />6.3 and higher, you can edit all wordlets right from the Admin menu. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> Very user friendly.<br /><br />Admin -> Edit a Language File<br /><br /><img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> [/]<br /><br />Just as a warning though - if you enter \n via the admin panel, and then edit the same language file again you will find it now says \\n - edit it again and it now says \\\n and so on - so it might be best to do it via FTP.<br /><br />Of course this may be a bug <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" /><br /><br />There also seems to be a limit - I altered mine to give some helpful tips on deleting cookies etc., and it didn't display a thing, until I reduced the length of the wordlet.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#315571 - 09/07/07 02:40 PM Re: Admins can also customize the Welcome Email subject! [Re: Ian_W]
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 134
Loc: Orlando, FL
Or you can go into the Languages section and search for the key boards, edit from inside the control panel wink
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#315572 - 09/07/07 03:53 PM Re: Admins can also customize the Welcome Email subject! [Re: AshtarRose]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 303
Loc: The Netherlands
Originally Posted By: AshtarRose
Or you can go into the Languages section and search for the key boards, edit from inside the control panel wink


ehr, yes, you can now. Not in 2003 when the last post in this thread was written smile
_________________________

Top
#315581 - 09/08/07 12:53 AM Re: Admins can also customize the Welcome Email subject! [Re: blaaskaak]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Leave it to ash to be fashionably (4 years) late...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316378 - 11/27/07 07:25 AM Re: Admins can also customize the Welcome Email subject! [Re: Gizmo]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
wish ash had told me that in 2003 LOL
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top


Who's Online
0 registered (), 25 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
nick1, Begbie, cenk, MATTO, DougMMcts
13362 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks