Changeset 9163


Ignore:
Timestamp:
02/10/11 22:54:29 (9 years ago)
Author:
Eric
Message:

Bug 2045 : Missing special tags management
Upgrade default settings on plugin installation to include special tags
Localisation files updated

Location:
extensions/NBC_UserAdvManager/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/del_account.php

    r8065 r9163  
    2222  $conf_UAM = unserialize($conf['UserAdvManager']); 
    2323 
    24   if (function_exists('get_user_language_desc')) 
     24  if (isset($conf_UAM[24]) and $conf_UAM[24] <> '') 
    2525  { 
    26     $custom_text = get_user_language_desc($conf_UAM[25]); 
     26    // Management of Extension flags ([username], [mygallery]) 
     27    $patterns[] = '#\[username\]#i'; 
     28    $replacements[] = $username; 
     29    $patterns[] = '#\[mygallery\]#i'; 
     30    $replacements[] = $conf['gallery_title']; 
     31       
     32    if (function_exists('get_user_language_desc')) 
     33    { 
     34      $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[24])); 
     35    } 
     36    else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[24])); 
    2737  } 
    28   else $custom_text = l10n($conf_UAM[25]); 
    2938     
    3039  $template->assign( 
  • extensions/NBC_UserAdvManager/trunk/language/de_DE/help/plugin.lang.php

    r9160 r9163  
    156156<br><br>Die Ansteuerung dieser Automatisierung wird erreicht, wenn eine Verbindung Nutzer (alle Benutzer!) Auf der Galerie.'; 
    157157$lang['UAM_GTAutoDelTitle'] = 'Benutzerdefinierte Meldung auf gelöschtes Konto'; 
    158 $lang['UAM_GTAutoDelTitle_d'] = 'Dies ist nur gültig, wenn der Benutzer, dessen Konto ist abgelaufen selbst löst die Streichung Mechanismus (selten, aber möglich). Er ist dann der Galerie getrennt und umgeleitet auf eine Seite mit der Löschung seines Accounts und gegebenenfalls die Gründe für die Streichung dieses Absatzes.<br><br> 
    159 Custom Text für die Weiterleitungsseite können in dieses Feld eingegeben werden dass ist kompatibel mit den FCK-Editor und, um mehrere Sprachen zu benutzen, können Sie die Extended description Plugin-Tags verwenden, wenn er aktiv ist.'; 
    160158$lang['UAM_GTAutoGpTitle'] = 'Automatischer Wechsel der Gruppe / Status'; 
    161159/*TODO*/$lang['UAM_GTAutoGpTitle_d'] = 'The automatic change of group or status equivalent to a demotion of the accounts involved and working on the same principle as the group or the status of validation (see &quot;Setting confirmations and validations of registration&quot;). Therefore be to define a group and / or status demoting access to the gallery. If this has already been defined with the use of registration confirmation function, you can use the same group / status.<br><br> 
     
    220218<br><br> 
    221219Um mehrere Sprachen zu benutzen, können Sie die Extended description Plugin-Tags verwenden, wenn er aktiv ist.'; 
     220/*TODO*/$lang['UAM_GTAutoDelTitle_d'] = 'Dies ist nur gültig, wenn der Benutzer, dessen Konto ist abgelaufen selbst löst die Streichung Mechanismus (selten, aber möglich). Er ist dann der Galerie getrennt und umgeleitet auf eine Seite mit der Löschung seines Accounts und gegebenenfalls die Gründe für die Streichung dieses Absatzes. 
     221<br><br> 
     222Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. 
     223<br><br> 
     224Custom Text für die Weiterleitungsseite können in dieses Feld eingegeben werden dass ist kompatibel mit den FCK-Editor und, um mehrere Sprachen zu benutzen, können Sie die Extended description Plugin-Tags verwenden, wenn er aktiv ist.'; 
    222225/*TODO*/$lang['UAM_CustomPasswRetrTitle'] = 'Customize lost password email content'; 
    223226/*TODO*/$lang['UAM_CustomPasswRetrTitle_d'] = 'By default, when a user has lost his password and selects the option of recovery, he receives an email containing only his username and his new password. 
  • extensions/NBC_UserAdvManager/trunk/language/en_UK/help/plugin.lang.php

    r9160 r9163  
    161161<br><br>The triggering of these automation is achieved when connecting users (any user!) to the gallery.'; 
    162162$lang['UAM_GTAutoDelTitle'] = 'Custom message on deleted account'; 
    163 $lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.<br><br> 
    164 Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    165163$lang['UAM_GTAutoGpTitle'] = 'Automatic change of group / status'; 
    166164$lang['UAM_GTAutoGpTitle_d'] = 'The automatic change of group or status equivalent to a demotion of the accounts involved and working on the same principle as the group or the status of validation (see &quot;Setting confirmations and validations of registration&quot;). Therefore be to define a group and / or status demoting access to the gallery. If this has already been defined with the use of registration confirmation function, you can use the same group / status.<br><br> 
     
    225223<br><br> 
    226224To use multiple languages, you can use the Extended description plugin\'s tags if it is active.'; 
     225$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion. 
     226<br><br> 
     227Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. 
     228<br><br> 
     229Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    227230$lang['UAM_CustomPasswRetrTitle'] = 'Customize lost password email content'; 
    228231$lang['UAM_CustomPasswRetrTitle_d'] = 'By default, when a user has lost his password and selects the option of recovery, he receives an email containing only his username and his new password. 
  • extensions/NBC_UserAdvManager/trunk/language/es_ES/help/plugin.lang.php

    r9160 r9163  
    157157<br><br>The triggering of these automation is achieved when connecting users (any user!) to the gallery.'; 
    158158$lang['UAM_GTAutoDelTitle'] = 'Mensaje personalizado en cuenta eliminada'; 
    159 /*TODO*/$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.<br><br> 
    160 Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    161159$lang['UAM_GTAutoGpTitle'] = 'Cambio automático de grupo / estado'; 
    162160/*TODO*/$lang['UAM_GTAutoGpTitle_d'] = 'The automatic change of group or status equivalent to a demotion of the accounts involved and working on the same principle as the group or the status of validation (see &quot;Setting confirmations and validations of registration&quot;). Therefore be to define a group and / or status demoting access to the gallery. If this has already been defined with the use of registration confirmation function, you can use the same group / status.<br><br> 
     
    221219<br><br> 
    222220Para utilizar varios idiomas, puede utilizar las etiquetas para el plugin Extended description si está activo.'; 
     221/*TODO*/$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion. 
     222<br><br> 
     223Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. 
     224<br><br> 
     225Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    223226/*TODO*/$lang['UAM_CustomPasswRetrTitle'] = 'Customize lost password email content'; 
    224227/*TODO*/$lang['UAM_CustomPasswRetrTitle_d'] = 'By default, when a user has lost his password and selects the option of recovery, he receives an email containing only his username and his new password. 
  • extensions/NBC_UserAdvManager/trunk/language/fr_FR/help/plugin.lang.php

    r9160 r9163  
    158158<br><br>Le déclenchement de ces automatismes se réalise lors de la connexion des utilisateurs (n\'importe quel utilisateur !)à la galerie.'; 
    159159$lang['UAM_GTAutoDelTitle'] = 'Message personnalisé de suppression de compte'; 
    160 $lang['UAM_GTAutoDelTitle_d'] = 'Ceci n\'est valable que lorsque l\'utilisateur dont le compte a expiré déclenche lui même le mécanisme de suppression (cas rare mais possible). Il est alors déconnecté de force de la galerie et redirigé vers une page indiquant la suppression de son compte et, éventuellement, les raisons de cette suppression.<br><br> 
    161 Un texte personnalisé pour cette page de redirection peut être saisi dans le champ ci-dessous qui est compatible avec l\'extension FCK Editor. Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.'; 
    162160$lang['UAM_GTAutoGpTitle'] = 'Changement automatique de groupe / statut'; 
    163161$lang['UAM_GTAutoGpTitle_d'] = 'Le changement automatique de groupe ou de statut équivaut à une rétrogradation des comptes concernés et fonctionne sur le même principe que le groupe ou le statut de validation (voir &quot;Paramétrage des confirmations et validations d\'inscriptions&quot;). Il conviendra donc de définir un groupe et/ou un statut rétrogradant l\'accès à la galerie. Si cela a déjà été défini avec l\'utilisation de la fonction Confirmation d\'inscription, on peut utiliser ces mêmes groupe / statut.<br><br> 
     
    222220<br><br> 
    223221Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.'; 
     222$lang['UAM_GTAutoDelTitle_d'] = 'Ceci n\'est valable que lorsque l\'utilisateur dont le compte a expiré déclenche lui même le mécanisme de suppression (cas rare mais possible). Il est alors déconnecté de force de la galerie et redirigé vers une page indiquant la suppression de son compte et, éventuellement, les raisons de cette suppression. 
     223<br><br> 
     224Personnalisez encore plus le contenu avec les balises d\'insertion spéciales : Utilisez la balise <b style=&quot;color: red;&quot;>[username]</b> pour insérer automatiquement le nom de l\'utilisateur destinataire de l\'email. Utilisez la balise <b style=&quot;color: red;&quot;>[mygallery]</b> pour insérer le titre de votre galerie. 
     225<br><br> 
     226Un texte personnalisé pour cette page de redirection peut être saisi dans le champ ci-dessous qui est compatible avec l\'extension FCK Editor. Pour une utilisation multi-langues, vous pouvez utiliser les balises [lang] du plugin Extended Description si celui-ci est actif.'; 
    224227$lang['UAM_CustomPasswRetrTitle'] = 'Personnaliser le contenu du mail sur mot de passe perdu'; 
    225228$lang['UAM_CustomPasswRetrTitle_d'] = 'Par défaut, lorsqu\'un utilisateur a perdu son mot de passe et qu\'il sélectionne l\'option de récupération, il reçoit un email ne contenant que son nom d\'utilisateur et son nouveau mot de passe. 
  • extensions/NBC_UserAdvManager/trunk/language/it_IT/help/plugin.lang.php

    r9160 r9163  
    153153<br><br>The triggering of these automation is achieved when connecting users (any user!) to the gallery.'; 
    154154/* TODO */$lang['UAM_GTAutoDelTitle'] = 'Custom message on deleted account'; 
    155 /* TODO */$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion.<br><br> 
    156 Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    157155/* TODO */$lang['UAM_GTAutoGpTitle'] = 'Automatic change of group / status'; 
    158156/* TODO */$lang['UAM_GTAutoGpTitle_d'] = 'The automatic change of group or status equivalent to a demotion of the accounts involved and working on the same principle as the group or the status of validation (see &quot;Setting confirmations and validations of registration&quot;). Therefore be to define a group and / or status demoting access to the gallery. If this has already been defined with the use of registration confirmation function, you can use the same group / status.<br><br> 
     
    212210<br><br> 
    213211Per utilizzare più lingue, è possibile utilizzare i tag del plugin Extended Description, se esso è attivo.'; 
     212/* TODO */$lang['UAM_GTAutoDelTitle_d'] = 'This is only valid when the user whose account has expired itself triggers the deletion mechanism (rare but possible). he\'s then disconnected of the gallery and redirected to a page showing the deletion of his account and, possibly, the reasons for this deletion. 
     213<br><br> 
     214Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. 
     215<br><br> 
     216Custom text for the redirect page can be entered in this field that is compatible with the FCK Editor and, for multi-languages, you can use the tags [lang] of the plugin Extended description if it\'s active.'; 
    214217/* TODO */$lang['UAM_CustomPasswRetrTitle'] = 'Customize lost password email content'; 
    215218/* TODO */$lang['UAM_CustomPasswRetrTitle_d'] = 'By default, when a user has lost his password and selects the option of recovery, he receives an email containing only his username and his new password. 
  • extensions/NBC_UserAdvManager/trunk/language/lv_LV/help/plugin.lang.php

    r9160 r9163  
    180180<br><br>Šis automātiskais process tiek iedarbināts lietotājiem (jebkuram lietotājam!) pieslēdzoties galerijai.'; 
    181181$lang['UAM_GTAutoDelTitle'] = 'Pielāgots ziņojums par dzēstu kontu'; 
    182 $lang['UAM_GTAutoDelTitle_d'] = 'Šis variants ir iespējams tikai tad, ja lietotājs, kura konta derīguma termiņš ir beidzies, pats ieslēdz dzēšanas mehānismu (rets, bet iespējams gadījums). Tad viņš tiek atslēgts no galerijas un novirzīts uz lapu, kas atspoguļo viņa konta dzēšanas faktu un iespējamo šīs dzēšanas iemeslu.<br><br> 
    183 Pāradresācijas lapai paredzēto pielāgoto tekstu var ievadīt šajā laukā, savietojams ar FCK Redaktora standartu, lai izmantotu multi-valodu režīmu, lietojiet spraudņa paplašinātais apraksts Extended description iezīmes [lang], tikai gadījumā, ja spraudnis aktīvs.'; 
    184182$lang['UAM_GTAutoGpTitle'] = 'Grupas/stausa automātiskā nomaiņa'; 
    185183$lang['UAM_GTAutoGpTitle_d'] = 'Automātiska konta grupas vai statusa maiņa ir ekvivalenta kontu, kas ir iesaistīti un darbojas uz vieniem un tiem pašiem principiem kā validācijas grupas, funkcionalitātes pazemināšanai (skatīt &quot;Setting confirmations and validations of registration&quot;). 
     
    247245<br><br> 
    248246Lai izmantotu vairākas valodas, jūs varat lietot Paplašinātā apraksta spraudņa tagus (gadījumā, ja tas ir aktīvs).'; 
     247/* TODO */$lang['UAM_GTAutoDelTitle_d'] = 'Šis variants ir iespējams tikai tad, ja lietotājs, kura konta derīguma termiņš ir beidzies, pats ieslēdz dzēšanas mehānismu (rets, bet iespējams gadījums). Tad viņš tiek atslēgts no galerijas un novirzīts uz lapu, kas atspoguļo viņa konta dzēšanas faktu un iespējamo šīs dzēšanas iemeslu. 
     248<br><br> 
     249Further customize the content with special inserted tags : Use <b style=&quot;color: red;&quot;>[username]</b> to automatically insert the name of the destination user of the email. Use <b style=&quot;color: red;&quot;>[mygallery]</b> to insert the title of your gallery. 
     250<br><br> 
     251Pāradresācijas lapai paredzēto pielāgoto tekstu var ievadīt šajā laukā, savietojams ar FCK Redaktora standartu, lai izmantotu multi-valodu režīmu, lietojiet spraudņa paplašinātais apraksts Extended description iezīmes [lang], tikai gadījumā, ja spraudnis aktīvs.'; 
    249252/* TODO */$lang['UAM_CustomPasswRetrTitle'] = 'Customize lost password email content'; 
    250253/* TODO */$lang['UAM_CustomPasswRetrTitle_d'] = 'By default, when a user has lost his password and selects the option of recovery, he receives an email containing only his username and his new password. 
  • extensions/NBC_UserAdvManager/trunk/maintain.inc.php

    r9135 r9163  
    1818        global $conf; 
    1919         
    20   $default1 = array('false','false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello. 
     20  $default1 = array('false','false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello [username]. 
    2121         
    22 This is a reminder because a very long time passed since your last visit on our gallery. If you do not want anymore to use your access account, please let us know by replying to this email. Your account will be deleted. 
     22This is a reminder because a very long time passed since your last visit on our gallery [mygallery]. If you do not want anymore to use your access account, please let us know by replying to this email. Your account will be deleted. 
    2323 
    2424On receipt of this message and no new visit within 15 days, we would be obliged to automatically delete your account. 
     
    2626Best regards, 
    2727 
    28 The admin of the gallery.','false','false','false','false','false','Sorry, your account has been deleted due to a too long time passed since your last visit.','Sorry, your account has been deprecated due to a too long time passed since your last visit. Please, use the following link to revalidate your account.',-1,-1,'Thank you for registering at _name_of_site_. Your account has been manually validated by _admin_. You may now log in at _link_to_site_ and make any appropriate changes to your profile. Welcome to _name_of_site_!','false','You have requested a password reset on our gallery. Please, find below your new connection settings.'); 
     28The admin of the gallery.','false','false','false','false','false','Sorry, your account has been deleted due to a too long time passed since your last visit.','Sorry, your account has been deprecated due to a too long time passed since your last visit. Please, use the following link to revalidate your account.',-1,-1,'Thank you for registering at [mygallery]. Your account has been manually validated by _admin_. You may now log in at _link_to_site_ and make any appropriate changes to your profile. Welcome to _name_of_site_!','false','You have requested a password reset on our gallery. Please, find below your new connection settings.'); 
    2929 
    3030  $q = ' 
     
    3535 
    3636 
    37   $default2 = array('false',5,'Hello. 
     37  $default2 = array('false',5,'Hello [username]. 
    3838                 
    39 This is a reminder message because you registered on our gallery but you do not validate your registration and your validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You have again 5 days to validate your registration. 
    40  
    41 Note: After this period, your account will be permanently deleted.','false','Hello. 
    42  
    43 This is a reminder message because you registered on our gallery but you do not validate your registration and your validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by clicking on the link in the message you should have received when you registered. 
    44  
    45 Note: After this period, your account will be permanently deleted.','You have confirmed that you are human and may now use _name_of_site_! Welcome!','Your activation key is incorrect or expired or you have already validated your account, please contact the webmaster to fix this problem.'); 
     39This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key has expired. To still allow you to access to our gallery, your validation period has been reset. You have again 5 days to validate your registration. 
     40 
     41Note: After this period, your account will be permanently deleted.','false','Hello [username]. 
     42 
     43This is a reminder message because you registered on our gallery [mygallery] but you do not validate your registration and your validation key will expire. To allow you access to our gallery, you have 2 days to confirm your registration by clicking on the link in the message you should have received when you registered. 
     44 
     45Note: After this period, your account will be permanently deleted.','You have confirmed that you are human and may now use [mygallery]! Welcome [username]!','Your activation key is incorrect or expired or you have already validated your account, please contact the webmaster to fix this problem.'); 
    4646 
    4747  $q = ' 
Note: See TracChangeset for help on using the changeset viewer.