BlackBox registration mail

Started by Kodemikkel, March 07, 2015, 06:04:58 AM

Previous topic - Next topic

Kodemikkel

First of all, I'm not sure if this is posted in the right board. If not, my apologies.

I've installed a custom theme to SMF, BlackBox.
I just encountered one problem; since there is no EmailTemplate.english.php I wonder how (if possible) to edit the automated registration email users recieve?
I've tried copying the file from the Default theme and editing it, but with no luck.
I'm running SMF version 2.0.9, and BlackBox version 2.0.6

It would be a great help if anyone told me how to edit the email.
Thanks in advance!

margarett

Hi and welcome to sm.org ;)

Language files usuall just exist in default theme's folder. All themes use these. So just edit this file in default theme, it will be used everywhere ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

Quote from: margarett on March 07, 2015, 06:46:19 AM
Language files usuall just exist in default theme's folder. All themes use these. So just edit this file in default theme, it will be used everywhere ;)

I've tried this aswell, but it doesn't seem to work. The email still remains the same.

margarett

English (non-UTF8) is the only language you're using? Are you sure you're editing the correct variable?

There is a mod for editing the mail templates through the admin panel, maybe you can try it? ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

Okay, I feel slightly stupid now. I figured out that I edited the wrong variable, as you said.

But I also have another problem, the forumname {FORUMNAME} is just showing as blank.

Any idea about this?

Kodemikkel

Okay, it didn't work, even when I edited the right variable. I'm quite lost now.

margarett

It has to work... The only possibility is your server has some cache in place that prevents your modification to be immediately available... But if that's the case, just wait some minutes
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

Okay, I've now waited a good 12 hours.

It still doesn't work..

The editing I've done to the /themes/Default/languages/EmailTemplates.english.php are:


'register_activate' => array(
/*
@additional_params: register_activate
REALNAME: The display name for the member receiving the email.
USERNAME: The user name for the member receiving the email.
PASSWORD: The password for the member.
ACTIVATIONLINK:  The url link to reactivate the member's account.
ACTIVATIONLINKWITHOUTCODE: The url to the page where the activation code can be entered.
ACTIVATIONCODE:  The code needed to reactivate the member's account.
FORGOTPASSWORDLINK: The url to the "forgot password" page.
@description:
*/
'subject' => 'Welcome to {FORUMNAME}',
'body' => 'Welcome {USERNAME}, and thank you for registering at {FORUMNAME}. If you ever forget your password, you can reset it by visiting {FORGOTPASSWORDLINK}.

Before you can login, you first need to activate your account. To do so, please follow this link:

{ACTIVATIONLINK}

Should you have any problems with activation, please visit {ACTIVATIONLINKWITHOUTCODE} use the code "{ACTIVATIONCODE}".

{REGARDS}',
),


But I still get this message:

"Thank you for registering at . Your username is Test. If you forget your password, you can reset it by visiting <link>.

Before you can login, you first need to activate your account. To do so, please follow this link:

<link>

Should you have any problems with activation, please visit <link> use the code <code>.

Regards,
The Team."

The only changes I've done is replacing the links with "<link>" and the activation code with "<code>". The rest of the message is exactly as I receive it.


margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

Here is the file, I'm sure there's something I'm missing out on.

Also, as I mentioned, the forumname does not display in the email I'm recieving.

margarett

I tested with SMF clean file and got this:
QuoteThank you for registering at My Community. Your username is test2. If you forget your password, you can reset it by visiting http://localhost/smf2/index.php?action=reminder.

Before you can login, you first need to activate your account. To do so, please follow this link:

http://localhost/smf2/index.php?action=activate;u=3;code=357695b0c1

Should you have any problems with activation, please visit http://localhost/smf2/index.php?action=activate;u=3 use the code "357695b0c1".

Regards,
The My Community Team.

I tested with your file and I got this
QuoteWelcome test3, and thank you for registering at My Community. If you ever forget your password, you can reset it by visiting http://localhost/smf2/index.php?action=reminder.

Before you can login, please activate your account by clicking the following link:

http://localhost/smf2/index.php?action=activate;u=4;code=a215fee309

Should you have any problems with the activation, please visit http://localhost/smf2/index.php?action=activate;u=4 and enter the code "a215fee309".

Regards,
The My Community Team.
Is it correct?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

Quote from: margarett on March 11, 2015, 06:29:52 PM
I tested with SMF clean file and got this:
QuoteThank you for registering at My Community. Your username is test2. If you forget your password, you can reset it by visiting http://localhost/smf2/index.php?action=reminder. [nofollow]

Before you can login, you first need to activate your account. To do so, please follow this link:

http://localhost/smf2/index.php?action=activate;u=3;code=357695b0c1 [nofollow]

Should you have any problems with activation, please visit http://localhost/smf2/index.php?action=activate;u=3 [nofollow] use the code "357695b0c1".

Regards,
The My Community Team.

I tested with your file and I got this
QuoteWelcome test3, and thank you for registering at My Community. If you ever forget your password, you can reset it by visiting http://localhost/smf2/index.php?action=reminder. [nofollow]

Before you can login, please activate your account by clicking the following link:

http://localhost/smf2/index.php?action=activate;u=4;code=a215fee309 [nofollow]

Should you have any problems with the activation, please visit http://localhost/smf2/index.php?action=activate;u=4 [nofollow] and enter the code "a215fee309".

Regards,
The My Community Team.
Is it correct?

Yes, it is correct. But it isn't working properly for me. I have no idea why.

Your filepath is Themes/Default/languages/EmailTemplates.english.php?

margarett

Do you have any MOD for editing the email templates installed?

Also, I noticed that {FORUMNAME} isn't translated in your forum, but it was on mine.

My guess is that there is probably something weird with your setup, maybe you can install a second SMF in a sub-folder and test there?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kodemikkel

I do not have any mods for editing the templates, as I can't find any that are compatible with SMF 2.0.9.
Also, what do you mean that {FORUMNAME} isn't translated?

As for installing a second SMF in a sub-folder, it's entirely possible, but I would rather not.

Illori

in server settings in admin panel, do you have your forum name set?

Kodemikkel

Quote from: Illori on March 12, 2015, 11:18:55 AM
in server settings in admin panel, do you have your forum name set?

Yes I do.

Kodemikkel

#17
The forum name was set, but I went to the server settings in the admin panel and clicked 'Apply'.

That fixed it. I guess it just needed an update.

Thanks for all the help!

Advertisement: