Changeset 4486


Ignore:
Timestamp:
12/13/09 22:28:25 (10 years ago)
Author:
LucMorizur
Message:

[Event Cats] Continue EN translation ; fix bugs 1324 and 1325

Location:
extensions/event_cats
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r4443 r4486  
    204204  $c = $ec_lists['types_granted']; 
    205205  if (isset($_POST['deny_types'])) 
    206    foreach ($_POST['deny_types'] as $v) $c = $c & ~$v; 
     206   foreach ($_POST['deny_types'] as $v) $c = $c & ~intval($v); 
    207207  if (isset($_POST['deny_generic'])) $c = $c & 7; 
    208208  $q = ($dup_types_exist) ? " 
     
    228228  $c = $ec_lists['types_granted']; 
    229229  if (isset($_POST['grant_types'])) 
    230    foreach ($_POST['grant_types'] as $v) $c = $c | $v; 
     230   foreach ($_POST['grant_types'] as $v) $c = $c | intval($v); 
    231231  if (isset($_POST['grant_generic'])) $c = $c | 8; 
    232232  $q = ($dup_types_exist) ? " 
     
    331331// +-----------------------------------------------------------------------+ 
    332332 
    333 check_DB(); $ec_debug['ec_exist_entries'] = $ec_exist_entries; 
     333check_DB(); 
    334334   
    335335if ( 
  • extensions/event_cats/admin/template/autolog_new.tpl

    r4472 r4486  
    104104             —  
    105105            <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> 
    106               <span style = "font-weight:bold;  font-style:italic;">{'Comment'|@translate}</span> 
     106              <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> 
    107107              <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" 
    108108                onchange = "ec_new_comment_text = this.value;" 
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r4436 r4486  
    447447          SELECT `user_id` 
    448448          FROM `".USER_INFOS_TABLE."` 
    449           WHERE `status` = 'generic';", 
     449          WHERE `status` = 'generic' 
     450            AND `user_id` > 2;", 
    450451          'user_id' 
    451452        ), 
     
    474475        SELECT `user_id`, `level` 
    475476        FROM `".USER_INFOS_TABLE."` 
    476         WHERE `level` IN (".implode(',', $types_granted_ids)."); 
     477        WHERE `level` IN (".implode(',', $types_granted_ids).") 
     478          AND `user_id` > 2; 
    477479      "); 
    478480      while ($row = mysql_fetch_array($result)) { 
     
    512514      SELECT `user_id`, `group_id` 
    513515      FROM `".USER_GROUP_TABLE."` 
    514       WHERE `group_id` IN (".implode(',', $ec_lists['groups_granted_ids'])."); 
     516      WHERE `group_id` IN (".implode(',', $ec_lists['groups_granted_ids']).") 
     517        AND `user_id` > 2; 
    515518    "); 
    516519    while ($row = mysql_fetch_array($result)) { 
  • extensions/event_cats/language/en_UK/plugin.lang.php

    r4472 r4486  
    202202 
    203203// Help banner 
     204// Entries tab 
     205$lang['ec_help_banner1_entries']   = '<ul><li style = "list-style-image:url(plugins/event_cats/icon/disable.png);"><span style = "font-weight:bold;">Make entry outdated</span>: to make a code unusable any more, but with a customized message;</li><li style = "list-style-image:url(plugins/event_cats/icon/nforced.png);"><span style = "font-weight:bold;">Force</span>: to make impossible to reach other pages by modifying the URL;<li style = "list-style-image:url(plugins/event_cats/icon/forced.png);"><span style = "font-weight:bold;">Don\'t force</span>: to be able to use the same code to reach different pages;</li><li style = "list-style-image:url(plugins/event_cats/icon/duplicate.png);"><span style = "font-weight:bold;">Copy</span>: to create a new entry using the same code but heading to a different page;</li><li style = "list-style-image:url(plugins/event_cats/icon/url2.png);"><span style = "font-weight:bold;">Test</span>: to check whether it works or not ;-)&nbsp;;</li><li style = "list-style-image:url(plugins/event_cats/icon/delete.png);"><span style = "font-weight:bold;">Delete</span>: Delete entry;</li><li style = "list-style-image:url(plugins/event_cats/icon/modify.png);"><span style = "font-weight:bold;">Modify</span>: Modify entry.</ul>'; 
     206 
     207// New entry tab, general case 
     208$lang['ec_help_banner1_new_c']   = 'Link here a <span style = "font-weight:bold; font-style:italic;">code</span> to an <span style = "font-weight:bold; font-style:italic;">identified user</span> and to a <span style = "font-weight:bold; font-style:italic;">displayed page</span>; it will create a corresponding URL in tab "Autolog entries", and you will then be able to copy and transmit it to concerned people. (It is too complicated, too heavy to provide here a list of all images, thus you must mark an image identifier ("<span style = "font-weight:bold;">Image id</span>"), if you want to use this field.) <span style = "font-weight:bold;">Generate a username</span> and <span style = "font-weight:bold;">Full auto</span>: select a <span style = "font-weight:bold; font-style:italic;">displayed page</span> first, as the username creation is based on the name of this page. <span style = "font-weight:bold;">Comment</span>: memo, personal note, visible only in administration part. <span style = "font-weight:bold;">Existing code</span>: to use the same code to identify the same account, making it head to another displayed page. Displayed page <span style = "font-weight:bold;">Forced</span>: to impose the displayed page whatever are the parameters <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> in the URL.'; 
     209 
     210// New entry tab, "copy an entry" (duplicate entry) case 
     211$lang['ec_help_banner2_new_c']     = 'If you wish to provide access to another event (thus a different category) to the same group of people for which you had alreday created an entry, you can provide them the same <span style = "font-weight:bold; font-style:italic;">code</span> (of course associated to the same <span style = "font-weight:bold; font-style:italic;">identified user</span>), and head the account to a different <span style = "font-weight:bold; font-style:italic;">displayed page</span>. <span style = "font-weight:bold;">Reset</span> to come back to a "normal" entry creation.'; 
     212 
    204213 
    205214unset($t_ap1, $t_ap2); 
  • extensions/event_cats/language/fr_FR/plugin.lang.php

    r4472 r4486  
    206206 
    207207// New entry tab, general case 
    208 $lang['ec_help_banner1_new_c']   = 'Associez un <span style = "font-weight:bold; font-style:italic;">code</span> à un <span style = "font-weight:bold; font-style:italic;">utilisateur à identifier</span> et à une <span style = "font-weight:bold; font-style:italic;">page à afficher</span>&nbsp;; récupérez l\'URL ainsi construit dans l\'onglet "Entrées autolog" pour le transmettre aux intéressés. (Il est trop lourd, trop compliqué de proposer une liste de toutes les images, aussi devez-vous récupérer le n° d\'identification de l\'image ("Id. image"), si vous voulez utiliser ce champ.) <span style = "font-weight:bold;">Générer un nom d\'utilisateur</span> et <span style = "font-weight:bold;">Tout automatique</span>&nbsp;: sélectionnez d\'abord une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> car le nom d\'utilisateur est construit sur la base de cette page. <span style = "font-weight:bold;">Commentaire</span>&nbsp;: mémo, note personnelle visible uniquement dans l\'administration. <span style = "font-weight:bold;">Code existant</span>&nbsp;: pour identifier le même compte, mais le rediriger vers une autre page. <span style = "font-weight:bold;">Page affichée forcée</span>&nbsp;: pour imposer l\'affichage d\'une page quels que soient les paramètres <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> présents dans l\'URL.'; 
     208$lang['ec_help_banner1_new_c']   = 'Associez un <span style = "font-weight:bold; font-style:italic;">code</span> à un <span style = "font-weight:bold; font-style:italic;">utilisateur à identifier</span> et à une <span style = "font-weight:bold; font-style:italic;">page à afficher</span>&nbsp;; récupérez l\'URL ainsi construit dans l\'onglet "Entrées autolog" pour le transmettre aux intéressés. (Il est trop lourd, trop compliqué de proposer une liste de toutes les images, aussi devez-vous récupérer le n° d\'identification de l\'image ("<span style = "font-weight:bold;">Id. image</span>"), si vous voulez utiliser ce champ.) <span style = "font-weight:bold;">Générer un nom d\'utilisateur</span> et <span style = "font-weight:bold;">Tout automatique</span>&nbsp;: sélectionnez d\'abord une <span style = "font-weight:bold; font-style:italic;">page à afficher</span> car le nom d\'utilisateur est construit sur la base du nom de cette page. <span style = "font-weight:bold;">Commentaire</span>&nbsp;: mémo, note personnelle visible uniquement dans l\'administration. <span style = "font-weight:bold;">Code existant</span>&nbsp;: pour identifier le même compte, mais le rediriger vers une autre page. <span style = "font-weight:bold;">Page affichée forcée</span>&nbsp;: pour imposer l\'affichage d\'une page quels que soient les paramètres <span style = "font-weight:bold; font-style:italic;">&cat=</span>, <span style = "font-weight:bold; font-style:italic;">&img=</span>, <span style = "font-weight:bold; font-style:italic;">&ap=</span> présents dans l\'URL.'; 
    209209 
    210210// New entry tab, "copy an entry" (duplicate entry) case 
Note: See TracChangeset for help on using the changeset viewer.