MyBB Community Forums

Full Version: Edit the email activation message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I want to know how to edit the email activation message to where it shows there username and password in their email so it would be like;

Welcome to MyBB (http://www.mybb.com)!

You or someone else have used your email account [email protected] to register an account at MyBB.

To finish the registration process you should visit the following link in the next 24 hours to activate your user account, otherwise the information will be automaticaly deleted by the system and you should apply again:

http://www.MyBB.com/Account/activate

Following is the member information:
-UserName: MyBB
-Password: Password

Is that possible? And also to have the account deleted if that link to activate the account is not activated with the next 24 hours since they have recieved the message, and also is it possible for them not to show up in the members list until they activate there account?
You should be able to edit this message in your language file.

ACP>>Configuration>>Languages (side menu)>>(Find your language)>>Edit>> member.lang.php.

and search for the original phrase and replace it with the new phrase then hit save
What do the {1} {2} {3} {4} {5} {6} {7} {8} mean?
Anyone?
They're placeholders.
How do I edit or change them and add some?
That's a cloudflare page.
How do I edit them or change it and add some?
Have a read of the following taken from the MyBB Docs site. It should explain what you're after Smile

MyBB Docs Wrote:We can also use the PHP Sprintf function in the $lang variable too. This lets us format a certain language string in the way we want to. For example, a language variable of

$l['welcome_back'] = "<strong>Welcome back, {1}</strong>. You last visited: {2}";
We can format this string by using $lang->sprintf:

$lang->welcome_back = $lang->sprintf($lang->welcome_back, $mybb->user['username'], $lastvisit);
$mybb->user['username'] will replace the {1}, and $lastvisit (the time of the user's last visit) will replace the {2}. That means the string will read: Welcome back, User. You last visited: Yesterday, 12:32pm (for example).