UBB.Dev
Posted By: JoshPet [6.1] Change Sender of/Text of the Welcome PM - 10/16/2002 6:05 AM
I've seen this asked many times.... and I just put it together for someone over at Infopop Community. Thought I would post here in case anyone ever comes searching for it.

Problem: The "Welcome" PM's come from the first Admin account created, but you want it to come from a different Admin.

Solution:

code:

#################################
### In adduser.php, look for: ###
#################################


// --------------------------------
// Get the Administrator's Username
$query = "
SELECT U_Username
FROM {$config['tbprefix']}Users
WHERE U_Number = 2
";
$sth = $dbh -> do_query($query);



and change the 2 to the user number of the admin you want the Private Messages to come from.

If you don't know the usernumber, you can find out by running this SQL command from your admin menu:

code:

SELECT U_Number
FROM w3t_Users
WHERE U_Username = 'name'




Substitute the username where I have name above.

Also....if your database tables are using a different prefix than the defaul...substitute it for the w3t_

That command will show you the user number.


Problem: You want to customize the text of the Welcome PM new users recieve.

Solution:
To customize the text of that welcome PM, Edit 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.";

of the adduser.php file, Inside your language files.

/languages/english/adduser.php



© UBB.Developers