Changeset 11254


Ignore:
Timestamp:
Jun 6, 2011, 10:11:56 PM (13 years ago)
Author:
Eric
Message:

Bug fixed on comments modification : Validation was required even is user is in an "auto validated" group. -- Only for Piwigo 2.2.3 !! --
Short refactory for admin panel.

Version 2.2.6 hard coded for publication (only compatible with Piwigo 2.2.3)

Location:
extensions/Comments_Access_Manager
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_Access_Manager/admin.php

    r11070 r11254  
    129129    'CM_PATH'                       => CM_PATH,
    130130    'CM_CFA'                        => $conf['comments_forall'],
     131    'CM_VALIDATION'                 => $conf['comments_validation'],
    131132    'CM_VERSION'                    => $conf_CM[0],
    132133                'CM_NO_COMMENT_ANO_TRUE'        => $conf_CM[1]=='true' ?  'checked="checked"' : '' ,
  • extensions/Comments_Access_Manager/changelog.txt

    r11214 r11254  
    1414     
    1515      2.2.5 - Bug fixed : Validation was always need even if "Validation" option was unset.
     16
     17      2.2.6 - Bug fixed related with piwigo's bug 2323 : Validation was still needed on comments modification
     18              Admin panel refactory
  • extensions/Comments_Access_Manager/language/en_UK/help/plugin.lang.php

    r11070 r11254  
    2222By default, when <b>&quot;comments all&quot;</b> and the validation of comments are enabled, the comments of all registered users are subject to validation by an administrator before being visible on the gallery. With this option, you can allow members of a group of your choice to post comments without such prior approval is required.';
    2323// --------- End: New or revised $lang ---- from version 2.2.2
     24
     25
     26// --------- Starting below: New or revised $lang ---- from version 2.2.6
     27$lang['CM_CommentsValidationOffTitle'] = '&quot;Validation&quot; for comments is disabled';
     28$lang['CM_CommentsValidationOffTitle_d'] = 'Enable this option to see, here, the extended parameters.';
     29// --------- End: New or revised $lang ---- from version 2.2.6
    2430?>
  • extensions/Comments_Access_Manager/language/en_UK/plugin.lang.php

    r11070 r11254  
    2121// --------- End: New or revised $lang ---- from version 2.2.1
    2222
     23
    2324// --------- Starting below: New or revised $lang ---- from version 2.2.2
    2425$lang['CM_CommentsForAll'] = '"Comments for all" option is <b style="color:red;">enabled</b>';
    2526$lang['CM_CommentsForRegistered'] = '"Comments for all" option is <b style="color:red;">disabled</b>';
    2627// --------- End: New or revised $lang ---- from version 2.2.2
     28
     29
     30// --------- Starting below: New or revised $lang ---- from version 2.2.6
     31$lang['CM_CommentsValidationOn'] = '"Validation" for comments is <b style="color:red;">enabled</b>';
     32$lang['CM_CommentsValidationOff'] = '"Validation" for comments is <b style="color:red;">disabled</b>';
     33// --------- End: New or revised $lang ---- from version 2.2.6
    2734?>
  • extensions/Comments_Access_Manager/language/fr_FR/help/plugin.lang.php

    r11070 r11254  
    2222Par défaut, lorsque les <b>&quot;commentaires pour tous&quot;</b> et la validation des commentaires sont activés, les commentaires de tous les utilisateurs inscrits sont soumis à validation par un administrateur avant d\'être visibles sur la galerie. Avec cette option, vous pouvez autoriser les membres d\'un groupe de votre choix à poster des commentaires sans que cette validation préalable ne soit nécessaire.';
    2323// --------- End: New or revised $lang ---- from version 2.2.2
     24
     25
     26// --------- Starting below: New or revised $lang ---- from version 2.2.6
     27$lang['CM_CommentsValidationOffTitle'] = 'L\'option &quot;Validation&quot; pour les commentaires est désactivée';
     28$lang['CM_CommentsValidationOffTitle_d'] = 'Activez l\'option pour accéder, ici, aux paramètres étendus.';
     29// --------- End: New or revised $lang ---- from version 2.2.6
    2430?>
  • extensions/Comments_Access_Manager/language/fr_FR/plugin.lang.php

    r11070 r11254  
    2727$lang['CM_CommentsForRegistered'] = 'L\'option "Commentaires pour tous" est <b style="color:red;">désactivée</b>';
    2828// --------- End: New or revised $lang ---- from version 2.2.2
     29
     30// --------- Starting below: New or revised $lang ---- from version 2.2.6
     31$lang['CM_CommentsValidationOn'] = 'L\'option "Validation" pour les commentaires est <b style="color:red;">activée</b>';
     32$lang['CM_CommentsValidationOff'] = 'L\'option "Validation" pour les commentaires est <b style="color:red;">désactivée</b>';
     33// --------- End: New or revised $lang ---- from version 2.2.6
    2934?>
  • extensions/Comments_Access_Manager/main.inc.php

    r11214 r11254  
    22/*
    33Plugin Name: Comments Access Manager
    4 Version: 2.2.5
     4Version: 2.2.6
    55Description: Gérer l'accès aux commentaites - Manage comments access
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=545
  • extensions/Comments_Access_Manager/template/admin.tpl

    r11070 r11254  
    5353              {'CM_Enable'|@translate}
    5454
    55           <br><br>
    56 
    57           </li>
     55          </li>
     56
     57        {if !$CM_VALIDATION}
     58          <div class="FieldTitle">
     59            <p class="cluetip" title="{'CM_CommentsValidationOffTitle'|translate}|{'CM_CommentsValidationOffTitle_d'|translate}">
     60              {'CM_CommentsValidationOff'|@translate}
     61            </p>
     62          </div>
     63          <div class="cm_hide">
     64        {/if}
     65
     66        <br><br>
     67
     68          <div class="FieldTitle">
     69              {'CM_CommentsValidationOn'|@translate}
     70          </div>
     71
     72        <br><br>
    5873
    5974          <li>
     
    89104
    90105          </li>
     106      {if !$CM_VALIDATION}
     107        </div>
     108      {/if}
    91109        </ul>
    92110      </fieldset>
     
    137155          </li>
    138156
     157        {if !$CM_VALIDATION}
     158          <div class="FieldTitle">
     159            <p class="cluetip" title="{'CM_CommentsValidationOffTitle'|translate}|{'CM_CommentsValidationOffTitle_d'|translate}">
     160              {'CM_CommentsValidationOff'|@translate}
     161            </p>
     162          </div>
     163          <div class="cm_hide">
     164        {/if}
     165
     166        <br><br>
     167
     168          <div class="FieldTitle">
     169              {'CM_CommentsValidationOn'|@translate}
     170          </div>
     171
     172        <br><br>
     173
    139174          <li>
    140175            <label class="cluetip" title="{'CM_ValidCommTitle'|translate}|{'CM_ValidCommTitle_d'|translate}">
     
    169204
    170205          </li>
     206      {if !$CM_VALIDATION}
     207        </div>
     208      {/if}
    171209        </ul>
    172210      </fieldset>
Note: See TracChangeset for help on using the changeset viewer.