Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Add email message to YaBB (Read 4092 times)
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Add email message to YaBB
Mar 15th, 2012 at 4:42am
Print Post  
Does anyone know if it's  possible to add a new email message to YaBB. I would like a seperate email message sent to new users who are manually added to the forum by the admin. As it is now, they get the same email that a user gets when they join on their own.

Hope I explained this right.

Thanks in advance.
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Add email message to YaBB
Reply #1 - Mar 15th, 2012 at 5:27am
Print Post  
Not really tested, but try this:

In Admin/Admin.pl find:

Code
Select All
        my $message = &template_email($welcomeregemail, {'displayname' => $member{'regrealname'}, 'username' => $reguser, 'password' => $member{'passwrd1'}}); 


And replace with (so, just add the highlighted):

Code
Select All
        my $message = &template_email($welcomeregemailadmin, {'displayname' => $member{'regrealname'}, 'username' => $reguser, 'password' => $member{'passwrd1'}}); 


Then in Languages/English/Email.lng find:

Code
Select All
$welcomeregemail = qq~Welcome, {yabb displayname}!

Your user ID is {yabb username}, and your password is {yabb password}.

You can log in using your displayname ({yabb displayname}), your Email address, or your user ID ({yabb username}).

You may change your password after you login by clicking on the User CP tab at the top of the {yabb mbname} main page: {yabb scripturl} and then click the Profile tab, click on Edit Profile (you will need to enter your password as a security measure).

Regards,
The {yabb mbname} team~; 


And add after - this will be the email which is sent when adding a member from the Admin Center, so you'll obviously want to change the text to whatever you want:

Code
Select All
$welcomeregemailadmin = qq~Welcome, {yabb displayname}!

Your user ID is {yabb username}, and your password is {yabb password}.

You can log in using your displayname ({yabb displayname}), your Email address, or your user ID ({yabb username}).

You may change your password after you login by clicking on the User CP tab at the top of the {yabb mbname} main page: {yabb scripturl} and then click the Profile tab, click on Edit Profile (you will need to enter your password as a security measure).

Regards,
The {yabb mbname} team~; 

  
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Add email message to YaBB
Reply #2 - Mar 15th, 2012 at 5:32am
Print Post  
Sounds simple enough. Hopefully it works. I'll try it out in the morning.

Thanks.
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Add email message to YaBB
Reply #3 - Mar 15th, 2012 at 5:36am
Print Post  
Okay, no worries.
  
Back to top
 
IP Logged
 
westwegoman
New Member
*
Offline


I Love YaBB 2!

Posts: 46
Location: Westwego, La.
Joined: Feb 10th, 2012
Gender: Male
Re: Add email message to YaBB
Reply #4 - Mar 15th, 2012 at 12:51pm
Print Post  
Works perfect Smiley
  


If they're big enough to hook, they're big enough to cook!!!!
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Add email message to YaBB
Reply #5 - Mar 15th, 2012 at 5:44pm
Print Post  
Great! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint