Changeset 10301


Ignore:
Timestamp:
04/11/11 22:03:50 (9 years ago)
Author:
mistic100
Message:
 
Location:
extensions/Comments_on_Albums
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/admin/template/config.tpl

    r9766 r10301  
    6464        <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="config_submit"/></p> 
    6565</form> 
     66 
     67<p>{'COA_comment_validation_link'|@translate}</p> 
  • extensions/Comments_on_Albums/include/functions_comment.inc.php

    r10213 r10301  
    300300} 
    301301 
    302 /* function update_user_comment_albums($comment, $post_key) 
    303 { 
    304   global $conf; 
    305  
    306   $comment_action = 'validate'; 
    307  
    308   if ( !verify_ephemeral_key($post_key, $comment['image_id']) ) 
    309   { 
    310     $comment_action='reject'; 
    311   } 
    312  
    313   // perform more spam check 
    314   $comment_action = 
    315     trigger_event('user_comment_check', 
    316                   $comment_action, 
    317                   array_merge($comment, 
    318                               array('author' => $GLOBALS['user']['username']) 
    319                               ) 
    320                   ); 
    321  
    322   if ( $comment_action!='reject' ) 
    323   { 
    324     $user_where_clause = ''; 
    325     if (!is_admin()) 
    326     { 
    327       $user_where_clause = '   AND author_id = \''. 
    328         $GLOBALS['user']['id'].'\''; 
    329     } 
    330     $query = ' 
    331 UPDATE '.COA_TABLE.' 
    332   SET content = \''.$comment['content'].'\', 
    333       validation_date = now() 
    334   WHERE id = '.$comment['comment_id']. 
    335 $user_where_clause.' 
    336 ;'; 
    337     $result = pwg_query($query); 
    338     if ($result) { 
    339       email_admin('edit', array('author' => $GLOBALS['user']['username'], 
    340                                 'content' => stripslashes($comment['content'])) ); 
    341     } 
    342   } 
    343 }*/ 
    344  
    345302if (!function_exists('email_admin')) { 
    346303        function email_admin($action, $comment) 
  • extensions/Comments_on_Albums/language/en_UK/plugin.lang.php

    r9766 r10301  
    1313        <br> 
    1414        You can add your owns in the folder <i>plugins/comments_on_pictures/template/s26</i>."; 
    15          
     15$lang['COA_comment_validation_link'] = "Validation (if enabled) of comments on albums is on <a href='admin.php?page=comments&section=albums'>the same page</a> as the comments on pictures."; 
     16 
    1617?> 
  • extensions/Comments_on_Albums/language/fr_FR/plugin.lang.php

    r9766 r10301  
    1313        <br> 
    1414        Vous pouvez ajouter les votres dans le dossier <i>plugins/comments_on_pictures/template/s26</i>."; 
     15$lang['COA_comment_validation_link'] = "La validation (si activée) des commentaires sur les albums ce fait <a href='admin.php?page=comments&section=albums'>sur la même page</a> que pour les commentaires sur les photos."; 
    1516         
    1617?> 
  • extensions/Comments_on_Albums/language/hu_HU/plugin.lang.php

    r9766 r10301  
    1313        <br> 
    1414        Hozzáadhatsz saját mappát a  <i>plugins/comments_on_pictures/template/s26</i> könyvtárhoz."; 
    15          
     15$lang['COA_comment_validation_link'] = "Validation (if enabled) of comments on albums is on <a href='admin.php?page=comments&section=albums'>the same page</a> as the comments on pictures."; 
     16 
    1617?> 
  • extensions/Comments_on_Albums/template/coa_albums.tpl

    r9968 r10301  
    55 
    66<a name="comments"></a> 
     7{if isset($COMMENT_COUNT)} 
    78<div id="comments"> 
    89        {if $COMMENT_COUNT > 0} 
     
    3031        {/if} 
    3132</div> 
     33{/if}{*comments*} 
Note: See TracChangeset for help on using the changeset viewer.