Changeset 3982 for extensions


Ignore:
Timestamp:
Oct 6, 2009, 10:27:54 PM (15 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]
Bug 1177 fixed : Width of excluded email providers list reset to ancient value (80 col)

Bug 1179 fixed : Adding a notice in plugin inline documentation for use of validation groups and status. A default group must be set in Piwigo's groups settings and the "Guest" (or another user) must be set as default for status values.

Bug 1182 fixed : Language tag missing in confirmation email generation

Location:
extensions/NBC_UserAdvManager/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/global.tpl

    r3918 r3982  
    3636        <br><br>
    3737        </li>
     38        <br>
     39                        <div style="text-align: center; font-size: 1.1em; color: red;"><b>{'UserAdvManager_Confirm_Group_Notice'|@translate}</b></div>
     40                        <br>
    3841        <li><label>{'UserAdvManager_No_Confirm_Group'|@translate}</label><br>
    3942                {html_options name="UserAdvManager_No_Confirm_Group" options=$No_Confirm_Group.group_options selected=$No_Confirm_Group.group_selected}
     
    4447        <br><br>
    4548        </li>
     49        <br>
     50                        <div style="text-align: center; font-size: 1.1em; color: red;"><b>{'UserAdvManager_Confirm_Status_Notice'|@translate}</b></div>
     51                        <br>
    4652        <li><label>{'UserAdvManager_No_Confirm_Status'|@translate}</label><br>
    4753                {html_options name="UserAdvManager_No_Confirm_Status" options=$No_Confirm_Status.Status_options selected=$No_Confirm_Status.Status_selected}
     
    6369        </li>
    6470        <li><label>{'UserAdvManager_MailExclusion_List'|@translate}</label><br>
    65         <textarea name="UserAdvManager_MailExclusion_List" id="UserAdvManager_MailExclusion_List" rows="3" cols="30" {$TAG_INPUT_ENABLED}>{$UserAdvManager_MAILEXCLUSION_LIST}</textarea>
     71        <textarea name="UserAdvManager_MailExclusion_List" id="UserAdvManager_MailExclusion_List" rows="3" cols="80" {$TAG_INPUT_ENABLED}>{$UserAdvManager_MAILEXCLUSION_LIST}</textarea>
    6672        </li>
    6773    </ul>
  • extensions/NBC_UserAdvManager/trunk/include/functions_UserAdvManager.inc.php

    r3920 r3982  
    77{
    88  global $conf;
     9  load_language('plugin.lang', NBC_UserAdvManager_PATH);
    910  $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
    1011 
     
    333334                                                pwg_query($query);
    334335     
    335                                                 if ($conf_nbc_UserAdvManager[3] <> -1)
     336                                                if ($conf_nbc_UserAdvManager[3] <> -1) // Delete user from unvalidated users group
    336337                                                {
    337338                                                        $query = "
     
    343344                                                }
    344345           
    345                                                 if ($conf_nbc_UserAdvManager[4] <> -1) // Change user's group
     346                                                if ($conf_nbc_UserAdvManager[4] <> -1) // Add user to validated users group
    346347                                                {
    347                                                         $query = "
    348                                                                 DELETE FROM ".USER_GROUP_TABLE."
    349                                                                 WHERE user_id = '".$data['user_id']."'
    350                                                                 AND group_id = '".$conf_nbc_UserAdvManager[4]."'
    351                                                         ;";
    352                                                         pwg_query($query);
    353        
    354348                                                        $query = "
    355349                                                                INSERT INTO ".USER_GROUP_TABLE."
  • extensions/NBC_UserAdvManager/trunk/language/en_UK/plugin.lang.php

    r3881 r3982  
    1313$lang['UserAdvManager_Mail_Info_true'] = ' Send an information mail to the user when he registes or updates his profile.';
    1414$lang['UserAdvManager_Mail_Info_false'] = ' Turns off the sending of mail.';
    15 $lang['UserAdvManager_MailInfo_Text'] = ' Text used to introduce the email sent to user on his registration or at his profile update.<br>(!!! <b style="text-decoration: blink underline;">WARNING !</b> Use the multi language tags from Extended Description plugin if this plugin is activated !!!)';
     15$lang['UserAdvManager_MailInfo_Text'] = ' Text used to introduce the email sent to user to allow him to validate his email address<br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">WARNING !</b> <b style="color: red;">Use the multi language tags from Extended Description plugin if this plugin is activated !!!)</b>';
    1616$lang['UserAdvManager_No_Casse'] = ' User insensitive';
    1717$lang['UserAdvManager_No_Casse_true'] = ' Make the user account insensitive at the registration and the identification step';
     
    2323$lang['UserAdvManager_Confirm_Mail_true'] = ' Send an email to user to allow him to validate his email and his registration.';
    2424$lang['UserAdvManager_Confirm_Mail_false'] = ' Use the default Piwigo registration system (without registration validation).';
    25 $lang['UserAdvManager_ConfirmMail_Text'] = 'Text used to introduce the email sent to user to allow him to validate his email address<br>(!!! <b style="text-decoration: blink underline;">WARNING !</b> Use the multi language tags from Extended Description plugin if this plugin is activated !!!)';
     25$lang['UserAdvManager_ConfirmMail_Text'] = ' Text used to introduce the email sent to user to allow him to validate his email address<br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">WARNING !</b> <b style="color: red;">Use the multi language tags from Extended Description plugin if this plugin is activated !!!)</b>';
     26$lang['UserAdvManager_Confirm_Group_Notice'] = 'WARNING : Using validation groups requires that you have created at least one user group and is defined "by default" in Piwigo\'s user groups management.';
    2627$lang['UserAdvManager_No_Confirm_Group'] = 'Group to use for the users who haven\'t validated their email address.';
    2728$lang['UserAdvManager_Validated_Group'] = 'Group to use for the users who have validated their email address.';
     29$lang['UserAdvManager_Confirm_Status_Notice'] = 'WARNING : The use of status validation requires that you have kept the "Guest" user with default setting (as user template) for new registered. Note you can set any other user as a template for new registered. Please refer to the Piwigo\'s documentation for more details.';
    2830$lang['UserAdvManager_No_Confirm_Status'] = 'Status to use for the users who haven\'t validated their email address.';
    2931$lang['UserAdvManager_Validated_Status'] = 'Status to use for the users who have validated their email address. Let ------- for using default Piwigo values';
     
    5557$lang['UserAdvManager_ConfirmMail_Remail_true'] = 'Enable email reminder';
    5658$lang['UserAdvManager_ConfirmMail_Remail_false'] = 'Disable email reminder';
    57 $lang['UserAdvManager_ConfirmMail_ReMail_Txt1'] = 'Custom content of the recall message with regeneration of validation key.<br>If left blank, the recall mail will include only the validation link. It is therefore strongly advised to take a little explanatory text. (NB: The text pre-filled with the installation of the plugin is given as an example)<br><br>(!!! <b style="text-decoration: blink underline;">WARNING !</b> Text modification is available <b>ONLY</b> if email reminder is enabled. Use the multi language tags from Extended Description plugin if this plugin is activated !!!)';
    58 $lang['UserAdvManager_ConfirmMail_ReMail_Txt2'] = 'Custom content of the recall message without regeneration of validation key.<br>If left blank, the recall mail will include only the validation link. It is therefore strongly advised to take a little explanatory text. (NB: The text pre-filled with the installation of the plugin is given as an example)<br><br>(!!! <b style="text-decoration: blink underline;">WARNING !</b> Text modification is available <b>ONLY</b> if email reminder is enabled. Use the multi language tags from Extended Description plugin if this plugin is activated !!!)';
     59$lang['UserAdvManager_ConfirmMail_ReMail_Txt1'] = 'Custom content of the recall message with regeneration of validation key.<br>If left blank, the recall mail will include only the validation link. It is therefore strongly advised to take a little explanatory text. (NB: The text pre-filled with the installation of the plugin is given as an example)<br><br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">WARNING !</b> <b style="color: red;">Text modification is available ONLY if email reminder is enabled. Use the multi language tags from Extended Description plugin if this plugin is activated !!!)</b>';
     60$lang['UserAdvManager_ConfirmMail_ReMail_Txt2'] = 'Custom content of the recall message without regeneration of validation key.<br>If left blank, the recall mail will include only the validation link. It is therefore strongly advised to take a little explanatory text. (NB: The text pre-filled with the installation of the plugin is given as an example)<br><br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">WARNING !</b> <b style="color: red;">Text modification is available ONLY if email reminder is enabled. Use the multi language tags from Extended Description plugin if this plugin is activated !!!)</b>';
    5961
    6062
     
    7779/* Mailing */
    7880$lang['infos_mail %s'] = '%s, please find here your information to login the gallery :';
     81$lang['User: %s'] = 'User : %s';
    7982$lang['Password: %s'] = 'Password: %s';
    8083$lang['Add of %s'] = 'Add of %s';
  • extensions/NBC_UserAdvManager/trunk/language/fr_FR/plugin.lang.php

    r3917 r3982  
    1313$lang['UserAdvManager_Mail_Info_true'] = ' Envoyer un mail à l\'utilisateur reprenant ses infos lors de son inscription ou la mise à jour de son profil.';
    1414$lang['UserAdvManager_Mail_Info_false'] = ' Désactive l\'envoi de mail d\'info.';
    15 $lang['UserAdvManager_MailInfo_Text'] = 'Texte utilisé pour l\'introduction du mail envoyé à l\'utilisateur pour son inscription ou la mise à jour de son profil<br>(!!! <b style="text-decoration: blink underline;">ATTENTION !</b> Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)';
     15$lang['UserAdvManager_MailInfo_Text'] = ' Texte utilisé pour l\'introduction du mail envoyé à l\'utilisateur pour son inscription ou la mise à jour de son profil<br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">ATTENTION !</b> <b style="color: red;">Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)</b>';
    1616$lang['UserAdvManager_No_Casse'] = 'Utilisateur insensible à la casse';
    1717$lang['UserAdvManager_No_Casse_true'] = ' Rendre le compte utilisateur insensible à la casse, lors de l\'inscription et l\identification.';
     
    2323$lang['UserAdvManager_Confirm_Mail_true'] = ' Envoyer un mail permettant a l\'utilisateur de confirmer son adresse email et donc son compte utilisateur.';
    2424$lang['UserAdvManager_Confirm_Mail_false'] = ' Système d\'inscription et de mise à jour standard sans confirmation de l\'adresse email.';
    25 $lang['UserAdvManager_ConfirmMail_Text'] = 'Texte utilisé pour l\'introduction du mail envoyé à l\'utilisateur pour confirmer son adresse mail<br>(!!! <b style="text-decoration: blink underline;">ATTENTION !</b> Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)';
     25$lang['UserAdvManager_ConfirmMail_Text'] = ' Texte utilisé pour l\'introduction du mail envoyé à l\'utilisateur pour confirmer son adresse mail<br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">ATTENTION !</b> <b style="color: red;">Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)</b>';
     26$lang['UserAdvManager_Confirm_Group_Notice'] = 'ATTENTION : L\'utilisation des groupes de validation nécessite que vous ayez créé au moins un groupe d\'utilisateurs et qu\'il soit défini "par défaut" dans la gestion des groupes d\'utilisateurs de Piwigo.';
    2627$lang['UserAdvManager_No_Confirm_Group'] = 'Groupe à utiliser pour les utilisateurs qui n\'ont pas encore confirmé leur adresse email';
    2728$lang['UserAdvManager_Validated_Group'] = 'Groupe à utiliser pour les utilisateurs qui ont validé leur adresse email';
     29$lang['UserAdvManager_Confirm_Status_Notice'] = 'ATTENTION : L\'utilisation des status de validation nécessite que vous ayez conservé l\'utilisateur "Guest" pour le paramétrage par défaut (modèle) pour les nouveaux inscrits. A noter : Vous pouvez définir n\'importe quel autre utilisateur comme modèle pour les nouveaux inscrits. Reportez-vous à la documentation de Piwigo pour plus de détails.';
    2830$lang['UserAdvManager_No_Confirm_Status'] = 'Status utilisateur à utiliser pour les utilisateurs qui n\'ont pas encore confirmé leur adresse email';
    2931$lang['UserAdvManager_Validated_Status'] = 'Status utilisateur à utiliser pour les utilisateurs qui ont validé leur adresse email, laissez ------- pour garder la valuer par défaut de PWG';
     
    5557$lang['UserAdvManager_ConfirmMail_Remail_true'] = 'Activer le rappel par mail';
    5658$lang['UserAdvManager_ConfirmMail_Remail_false'] = 'Désactiver le rappel par mail';
    57 $lang['UserAdvManager_ConfirmMail_ReMail_Txt1'] = 'Contenu personnalisé du message de rappel avec regénération de clé de validation.<br>Si laissé vide, le mail de rappel ne comportera que le lien de validation. Il est donc vivement conseillé de saisir un petit texte explicatif. (NB : Le texte pré renseigné à l\'installation du plugin est donné en exemple)<br><br>(!!! <b style="text-decoration: blink underline;">ATTENTION !</b> La modification du texte n\'est possible <b>QUE</b> si le rappel par email est activé. Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)';
    58 $lang['UserAdvManager_ConfirmMail_ReMail_Txt2'] = 'Contenu personnalisé du message de rappel sans regénération de clé de validation.<br>Si laissé vide, le mail de rappel sera vide. Il est donc vivement conseillé de saisir un petit texte explicatif. (NB : Le texte pré renseigné à l\'installation du plugin est donné en exemple)<br><br>(!!! <b style="text-decoration: blink underline;">ATTENTION !</b> La modification du texte n\'est possible <b>QUE</b> si le rappel par email est activé. Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)';
     59$lang['UserAdvManager_ConfirmMail_ReMail_Txt1'] = 'Contenu personnalisé du message de rappel avec regénération de clé de validation.<br>Si laissé vide, le mail de rappel ne comportera que le lien de validation. Il est donc vivement conseillé de saisir un petit texte explicatif. (NB : Le texte pré renseigné à l\'installation du plugin est donné en exemple)<br><br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">ATTENTION !</b> <b style="color: red;">La modification du texte n\'est possible QUE si le rappel par email est activé. Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)</b>';
     60$lang['UserAdvManager_ConfirmMail_ReMail_Txt2'] = 'Contenu personnalisé du message de rappel sans regénération de clé de validation.<br>Si laissé vide, le mail de rappel sera vide. Il est donc vivement conseillé de saisir un petit texte explicatif. (NB : Le texte pré renseigné à l\'installation du plugin est donné en exemple)<br><br><b style="color: red;">(!!! </b><b style="text-decoration: underline; color: red;">ATTENTION !</b> <b style="color: red;">La modification du texte n\'est possible QUE si le rappel par email est activé. Utilisez la méthode multi language du plugin Extended Description si celui-ci est activé !!!)</b>';
    5961
    6062
     
    7779/* Mailing */
    7880$lang['infos_mail %s'] = '%s, voici vos informations pour vous identifier sur la galerie :';
     81$lang['User: %s'] = 'Utilisateur : %s';
    7982$lang['Password: %s'] = 'Mot de passe: %s';
    8083$lang['Add of %s'] = 'Création de %s';
  • extensions/NBC_UserAdvManager/trunk/main.inc.php

    r3920 r3982  
    22/*
    33Plugin Name: NBC UserAdvManager
    4 Version: 2.11.3
     4Version: 2.11.4
    55Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
     
    1717
    1818-- 2.10.3 : Final and fully functional release
    19                         Bug resolved on plugin activation
     19                                                Bug resolved on plugin activation
    2020
    2121-- 2.10.4 : Bug fixed on profiles update
     
    2828
    2929-- 2.10.8 : ConfirmMail page looks better (Sylvia theme only)
    30                         Improved code for checking author on guest comments
     30                                                Improved code for checking author on guest comments
    3131
    3232-- 2.10.9 : Bug fixed - Missing english translation
    33                         Bug fixed - Notice on forbidden characters function use
    34                         Bug fixed - Audit on forbidden characters in username didn't work
    35                         Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one.
     33                                                Bug fixed - Notice on forbidden characters function use
     34                                                Bug fixed - Audit on forbidden characters in username didn't work
     35                                                Adding of email provider exclusion (like *@hotmail.com) - Warning ! -> Known bug : This feature doesn't work on user profile page. So, already registered users can change their email address to a forbiden one.
    3636
    3737-- 2.10.9a : Email provider exclusion is no longer case sensitive
     
    4444
    4545-- 2.10.9e : Compatibility improvement with PHP 5.3 - Some old functions will be deprecated like :
    46                                 ereg replaced by preg_match
    47                                 eregi replace by preg_match with "i" moderator
    48                                 split replace by preg_split
     46                                                        ereg replaced by preg_match
     47                                                        eregi replace by preg_match with "i" moderator
     48                                                        split replace by preg_split
    4949                               
    5050-- 2.10.9f : Compatibility bug fixed when used with DynamicRecentPeriod plugin
     
    5959                                                Bug fixed : Sql syntax error on plugin activation
    6060
    61 -- 2.11.3 : On Patricia's request (french forum), the unvalidated users management tab shows users according with the settings of unvalidated group and / or unvalidated status.
    62                                                 Email providers exclusion list can be set with CR/LF between each entry. The comma seperator (,) is still mandatory.
    63                                                 Bug fixed : Bad translation tag in french language file.
    64                                                 Improvement of unvalidated users management tab - Expired users are displayed in red color text.
     61-- 2.11.3 : On Patricia's request (french forum and bug 1173), the unvalidated users management tab shows users according with the settings of unvalidated group and / or unvalidated status.
     62                                                Feature 1172 : Email providers exclusion list can be set with CR/LF between each entry. The comma seperator (,) is still mandatory.
     63                                                Bug 1175 fixed : Bad translation tag in french language file.
     64                                                Improvement of unvalidated users management tab (feature 1174)- Expired users are displayed in red color text.
     65
     66-- 2.11.4 : Bug 1177 fixed : Width of excluded email providers list reset to ancient value (80 col)
     67                                                Bug 1179 fixed : Adding a notice in plugin inline documentation for use of validation groups and status. A default group must be set in Piwigo's groups settings and the "Guest" (or another user) must be set as default for status values.
     68                                                Bug 1182 fixed : Language tag missing in confirmation email generation
    6569
    6670*/
Note: See TracChangeset for help on using the changeset viewer.