Previous Thread
Next Thread
Print Thread
Rating: 10
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Here's another "how to" for Admins.

When a new user registers at your site, they receive a very generic "Welcome" Private Message and an email confirming their password.

You can customize these messages with a few simple edits to your language files.

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.

To modify the Welcome Private Message:

- Open the /languages/english/adduser.php file (or whatever language you use).

- Look for this line:
$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.";

- Edit the text between the quotes to whatever you wish.
  Tips:
  - You may use <br /> to add a line break to the text.
  - 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.


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.

To modify the Welcome Email Message:

This email comes looking something like this:

Someone from the ip address '1.2.3.4.5' registered the Username "testing". The password for this Username is "testing".

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.

- Open the /languages/english/adduser.php file (or whatever language you use).

- Look for this line:
$ubbt_lang['PASS_BODY1'] = "Someone from the ip address";

- Edit the text between the quotes to whatever you wish.
  Tips:
  - You may use \n to add a line break to the text.
  - 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.


By customizing these two messages, you can make an extra special first impression on your new users.

Hope this helps!


Sponsored Links
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Right on Josh. I really enjoy reading the tweaks and recommendations you post.

I'd like to see what others have decided on inputting in these two fields.

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....

Thanks again Josh.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
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".

(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.)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK -

In /languages/english/generic.php you'll see:

$ubbt_lang['INTRO_SUB2'] = "Welcome";


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.


As per the # that the Welcome PM comes from -

In adduser.php find this:

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 -> do_query($query);<br />


Note the number "2" above - change it to the usernumber of the person you want the welcome PM to come from.

Joined: Jun 2003
Posts: 131
Journeyman
Journeyman
Offline
Joined: Jun 2003
Posts: 131
Josh...wish I had noticed this thread sometime ago! (Would have saved some time...)

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! Tony

Sponsored Links
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Josh, or anyone else out there....have you tried this with 6.4 or is there alternate methods of doing this?

Thanks.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
6.3 and higher, you can edit all wordlets right from the Admin menu. Very user friendly.

Admin -> Edit a Language File


Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
woot. something new for me. thanks josh

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
[]JoshPet said:
6.3 and higher, you can edit all wordlets right from the Admin menu. Very user friendly.

Admin -> Edit a Language File

[/]

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.

Of course this may be a bug

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....)
Joined: Sep 2005
Posts: 136
Journeyman
Journeyman
Offline
Joined: Sep 2005
Posts: 136
Or you can go into the Languages section and search for the key boards, edit from inside the control panel wink

Sponsored Links
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
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

Joined: Jan 2000
Posts: 5,830
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,830
Likes: 20
Leave it to ash to be fashionably (4 years) late...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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....)

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,570
Posts293,918
Members13,848
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,830
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 81
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2023 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)