[4725] Manual Registration in English_British version

Started by Chas Large, January 31, 2010, 08:12:31 AM

Previous topic - Next topic

Chas Large

Hello,

Have just discovered some missing text in the EmailTemplates.english_british.php file.

When attempting to manually register a member and then send the e-mail I received the error:

"The email template "admin_register_activate" could not be found."

I searched the EmailTemplates.english.php file and found this template was there:

'admin_register_activate' => array(
/*
@additional_params:
USERNAME: The user name for the member receiving the email.
ACTIVATIONLINK:  The url link to activate the member's account.
ACTIVATIONLINKWITHOUTCODE: The url to the page where the activation code can be entered.
ACTIVATIONCODE: The activation code.
@description:
*/
'subject' => 'Welcome to {FORUMNAME}',
'body' => 'Thank you for registering at {FORUMNAME}. Your username is {USERNAME} and your password is {PASSWORD}.

Before you can login, you must first activate your account by selecting the following link:

{ACTIVATIONLINK}

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

{REGARDS}',
),
'admin_register_immediate' => array(
'subject' => 'Welcome to {FORUMNAME}',
'body' => 'Thank you for registering at {FORUMNAME}. Your username is {USERNAME} and your password is {PASSWORD}.

{REGARDS}',
),


Copying this across to the .english_british template file allowed me to complete the manual registration successfully.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

philcross


Hi

I have that problem.

I copied the text across but wasnt sure where to add it so put it between the "instruction" text at the top (so I could find it easily later if needed).

But, its not working for me.

Where should the code go please?

Thanks

Chas Large

If you've found that missing text in the emailtemplates.english.php file then you can see what the code is before and after it. Find tha same place in the emailtemplates.english_british.php file and place it there.

Of course this will only fix the problem if you've set your default forum language to English British and finally, this was a reported bug in SMF2.0 RC2 so if you're using other versions it may not help.

If you are using another version, try reinstalling the language pack.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

philcross


Hi

Thanks for the quick reply.

I just double checked and pasted the code into the correct place.

But, even after refreshing the forum I still get the same message.

Will try the language pack re-install and go from there.

philcross


In the end I decided to upload the language pack and stick with US-English and it all works.

Would be good to have my native and proper British English working though.

:'(


Chas Large

Try removing all the english_british files and then reinstalling the e_b language pack.

You haven't set tu e_b utf-8 have you, rather than just e_b?
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

philcross


yes, I did

but I added that code to both versions of british.


Chas Large

OK Phil.
I don't use utf-8 but I think that the utf-8 language packs only work if you've set your forum set to use utf-8 and have converted the database to it. See this topic

Generally, there is no need to use utf-8 unless you have to because of language issues. So if you have not converted your forum to Utf-8 as shown in the link above, uninstall any utf-8 set in your language settings, then download the generic english_british language pack for the ISO-8859-1 character set. This download is for the e_b generic language pack for SMF 2
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Arantor

Is this still an issue in 2.0 RC3 with English British?
Holder of controversial views, all of which my own.


Norv

philcross: Please note also that when changing language files, it may be necessary to use Admin > forum maintenance > clear cache, to see the changes being applied.

As far as I can see in the language editor, the template does not exist yet in English_british files, so it is still a problem. Thank you for the report, it should be fixed, sure.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

GravuTrad

On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

jonte0


GravuTrad

#12
For all the languages.

Some files are not updated correctly by the tool for RC3. Our new devs are working to update them in our translation tool.
On a toujours besoin d'un plus petit que soi! (Petit!Petit!)


Think about Search function before posting.
Pensez à la fonction Recherche avant de poster.

Chas Large

#13
I can confirm this error is still present in RC5. Just tried to register a member manually and got the same error:
The email template "admin_register_activate" could not be found.

And I can confirm that the code is still missing from the current English_British Language file as above.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Antechinus

#14
Ok, we should check all the languages files then. I've just looked in EmailTemplates.arabic.php and that has it. Will check a couple of others now.

(In case you're wondering, I use Arabic for RTL testing)

ETA: Confirmed for RC5 Real English and Real English UTF8. Houston, we have a problem.

Tracking to Mantis. 0004725: Some files missing 'admin_register_activate' => array

Relyana

The issue should be fixed now in the Language Editor for English British. I'll check all language packs so we can get this solved a.s.a.p..


Chas Large

My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

SlammedDime

I'd be more curious to know why SMF isn't rolling back to the default English version (unless plain English was removed from the installation of your SMF)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Chas Large

Quote from: SlammedDime on May 19, 2011, 02:47:38 PM
I'd be more curious to know why SMF isn't rolling back to the default English version (unless plain English was removed from the installation of your SMF)
Nope, both Plain English AND English British are both there, I just added the English British files as directed like anyone else and switched to English British in the Languages settings area.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

[SiNaN]

The "fallback to English" feature won't work with Email Templates because of their file structures. That's a known issue and planned to be fixed in the version after 2.0 final.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: