|Line 65:||Line 65:|
Not compatible with Beta3 use a recent git version.
This module for Gallery 3 can be used to allow administrators to create and implement a policy to allow visitors to register as users. Its strongly encouraged that if you are using this module, you should enable the recaptcha module as well.
This module may be downloaded from the Gallery-contrib git repository here
Click the download button for the module you want. Extract the registration module to your gallery3/modules directory.
Activate the module: Login -> Admin -> Modules. Check the box next to the module.
Click update at the bottom of the page.
Once installed you can enable the user registration policy. Click Admin -> Settings -> User registration.
You can not have a album named 'register'.
Gallery 3 has a great translation mode built-in, but there's a slight trick needed to tweak the register text. Once the translation mode is enabled, you need to click Show All. This is already documented (see localization docs ), but I thought I'd repeat it here anyway. Then, search for the text to change (including the text of the emails it sends) and translate them.
As-is, the register module does not deal with diacritics (accent marks) very well. This is because although most references to ISO-8859-1 were changed to UTF-8 in the core code (see the closed fix ticket ), this was not propagated through to the register module.
In \modules\register\helpers\register.php, search for "8859" and find the line of code near the end. Change:
->header("Content-type", "text/html; charset=iso-8859-1")
->header("Content-type", "text/html; charset=utf-8")
It's important to set the default language of the "guest" user to "none." This will ensure that a new user, who has never been to the site and doesn't yet have any cookies, will get the site in their computer's default language.
The above step will ensure that the login/register screens and the first two emails sent will be in the language of the user's computer. However, this does *not* guarantee the language of the final confirmation email. The language of the final confirmation email is determined by the language of the admin when they approve the new user's request.
The solution is fairly simple: change your current language on your admin account to the language you want the email to be in before you click "approve." As a tip, note that the notification at the top of the admin screen will be given in the language of the new user... all you have to do is copy it.