Ignore:
Timestamp:
Jan 8, 2007, 9:52:58 PM (17 years ago)
Author:
vdigital
Message:

Minor corrections in admin advices (French is still on going).

Location:
trunk/plugins/admin_advices
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/admin_advices/admin_advices.tpl

    r1694 r1702  
    11<!-- $Id: admin_advices.tpl 939 2005-11-17 20:13:36Z VDigital $ -->
    2 <div  style="padding-left: 2em;">
    3 <h2 style="margin-left: 10em; margin-right: 1em; font-weight: bold; padding-left: 2em;">{lang:About}: {ADVICE_ABOUT}</h2>
    42
    5 <dl style="margin-left: 10em; padding: 2em;">
    6   <dt>{ADVICE_TEXT}</dt>
     3<div style="list-style-type:none; background-color: #fff; margin: 0 1em 0 14.5em; border: 1px solid #69c;">
     4  <h2 style="font-weight: bold; padding-left: 2em;">{lang:About}: {ADVICE_ABOUT}</h2>
     5    <h3 style="text-align: left; padding-left: 3em;">{ADVICE_TEXT}</h3>
     6    <table>
     7    <tr><td style="text-align: left; padding-left: 2em; width:50%;">
    78    <!-- BEGIN More -->
    8     <dd>  {More.ADVICE}  </dd>
     9      {More.ADVICE}  <br />
    910    <!-- END More -->
    10 </dl>
     11    </td><td style="text-align: left; width:30%;">
     12    <!-- BEGIN thumbnail -->
     13    <img class="thumbnail" src="{thumbnail.IMAGE}"
     14               alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}">
     15    <!-- END thumbnail -->
     16  </td></tr>
     17  </table>
    1118</div>
  • trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php

    r1697 r1702  
    8282     
    8383    Case 4 :
    84       $adv[] = 'Show ITPC Data from your picture:';
     84      $adv[] = 'Show IPTC Data from your picture:';
    8585      $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' .
    8686                   ' in ./tools/<br />' .
    8787               ' 2 - Rename it as sample.jpg.<br />' .
    8888               ' 3 - Run ./tools/metadata.php<br />' .
    89                ' 4 - Analyse results to determine which ITPC fields could be' .
     89               ' 4 - Analyse results to determine which IPTC fields could be' .
    9090                   ' useful for your visitors.';
    9191      $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;';
     
    357357               '<br />2 - Rename it as sample.jpg.' .
    358358               '<br />3 - Run ./tools/metadata.php' .
    359                '<br />4 - Analyse results to determine which ITPC fields ' .
     359               '<br />4 - Analyse results to determine which IPTC fields ' .
    360360                                                         'could be used to override database fields.';
    361361      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
    362362      $adv[] = 'Advanced users make documentation efforts prior ' .
    363363                                 'to upload their pictures.<br />' .
    364                                                          'ITPC fields have to be described in ' .
     364                                                         'IPTC fields have to be described in ' .
    365365                                                         '$conf[\'use_iptc_mapping\']';
    366366                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
     
    375375               '<br />2 - Rename it as sample.jpg.' .
    376376               '<br />3 - Run ./tools/metadata.php' .
    377                '<br />4 - Analyse results to determine which ITPC fields ' .
     377               '<br />4 - Analyse results to determine which IPTC fields ' .
    378378                                                         'could be used to override database fields.';
    379379      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
  • trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php

    r1697 r1702  
    5454  switch ($id_adv) {
    5555    Case 1 :
    56       $adv[] = 'Current value: public. ';
     56      $adv[] = 'Valeur actuelle : public. ';
    5757      $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';';
    5858      $adv[] = 'You will have more time to describe and check your pictures.';
     
    6060      $adv[] = 'If you choose private, time to distribute authorization.';
    6161      $adv[] = 'Your new category will be well prepared.';
     62      $adv[] = '*** FIXME *** Conseil à traduire';
    6263      $cond = ($conf['newcat_default_status'] !== 'public');
    6364      $confk = 'newcat_default_status';
     
    6566     
    6667    Case 2 :
    67       $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.';
     68      $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.';
    6869      $adv[] = 'This value could be too small for low band connections.';
    6970      $adv[] = 'Think about higher value like 4.';
     71      $adv[] = '*** FIXME *** Conseil à traduire';
    7072      $cond = ( $conf['slideshow_period'] < 4 );
    7173      $confk = 'slideshow_period';
     
    7375     
    7476    Case 3 :
    75       $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. ';
     77      $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. ';
    7678      $adv[] = 'Should never contains extensions which can be executed';
    7779      $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...';
    7880      $adv[] = 'Think about higher value like 4.';
     81      $adv[] = '*** FIXME *** Conseil à traduire';
    7982      $cond = ( in_array('php',$conf['file_ext']) );
    8083      $confk = 'file_ext';
     
    8285     
    8386    Case 4 :
    84       $adv[] = 'Show ITPC Data from your picture:';
     87      $adv[] = 'Show IPTC Data from your picture:';
    8588      $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' .
    8689                   ' in ./tools/<br />' .
    8790               ' 2 - Rename it as sample.jpg.<br />' .
    8891               ' 3 - Run ./tools/metadata.php<br />' .
    89                ' 4 - Analyse results to determine which ITPC fields could be' .
     92               ' 4 - Analyse results to determine which IPTC fields could be' .
    9093                   ' useful for your visitors.';
    9194      $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;';
    9295      $adv[] = 'Advanced users would take care of $lang values and impacts' .
    9396        ' on templates.';
     97      $adv[] = '*** FIXME *** Conseil à traduire';
    9498      $cond = true;
    9599      $confk = 'show_iptc_mapping';
     
    97101 
    98102     Case 5 :
    99       $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
     103      $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.';
    100104      $adv[] = 'This value is maybe too high for low connections, ' .
    101105               'think about 25-50 depending on your thumbnail sizes.';
     106      $adv[] = '*** FIXME *** Conseil à traduire';
    102107      $cond = ( $conf['top_number'] > 50 );
    103108      $confk = 'top_number';
     
    105110 
    106111     Case 6 :
    107       $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
     112      $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.';
    108113      $adv[] = 'One? It could be too low for random pictures, ' .
    109114               'think about 5-10 depending on your thumbnail sizes.';
     115      $adv[] = '*** FIXME *** Conseil à traduire';
    110116      $cond = ( $conf['top_number'] < 2 ) ? true : false;
    111117      $confk = 'top_number';
     
    113119     
    114120     Case 7 :
    115       $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.';
     121      $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.';
    116122      $adv[] = 'For normal flow processing, your value is probably too high. ' .
    117123                                 'Reasonable value is 60 (default).' ;
     124      $adv[] = '*** FIXME *** Conseil à traduire';
    118125      $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
    119126      $confk = 'anti-flood_time';
     
    121128     
    122129     Case 8 :
    123       $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
     130      $adv[] = 'Valeur actuelle : '
     131             . (string) $conf['calendar_datefield'] . '.';
    124132      $adv[] = 'Authorized values are ' .
    125133                                 "'date_creation' or 'date_available'" .
    126134               ', otherwise you can get unpredictable results.' ;
     135      $adv[] = '*** FIXME *** Conseil à traduire';
    127136      $cond = ( !in_array($conf['calendar_datefield'],
    128137        array('date_creation','date_available')) );
     
    134143      // Then it's Ok, you can use date_creation by default for calendar
    135144      // else ... Advice
    136             $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
     145            $adv[] = 'Valeur actuelle : '
     146             . (string) $conf['calendar_datefield'] . '.';
    137147      $adv[] = "'date_creation'" . ' is NOT filled by ' .
    138148      'any activated use metadata mapping fields.';
     
    149159      '=> \'DateTimeOriginal\', ...<br />' .
    150160      '3 - Finally, a new task is up to you: Metadata synchronization.'  ;
     161      $adv[] = '*** FIXME *** Conseil à traduire';
    151162      $cond2 = ( $conf['use_exif'] and
    152163                                  isset($conf['use_exif_mapping']['date_creation']) );
     
    159170     
    160171     Case 10 :
    161       $adv[] = 'Current value: false.';
     172      $adv[] = 'Valeur actuelle : false.';
    162173      $adv[] = 'Not useful, private status is better, so code ' .
    163174               '$conf[\'newcat_default_visible\'] = true;'  ;
     175      $adv[] = '*** FIXME *** Conseil à traduire';
    164176      $cond = !$conf['newcat_default_visible'];
    165177      $confk = 'newcat_default_visible';
     
    167179     
    168180     Case 11 :
    169       $adv[] = 'Current value: true.';
     181      $adv[] = 'Valeur actuelle : true.';
    170182      $adv[] = 'Any new subscriber has access to High Resolution pictures. ' .
    171183      'Is it what you want? No, so try ' .
    172184                        '$conf[\'newuser_default_enabled_high\'] = false;' ;
     185      $adv[] = '*** FIXME *** Conseil à traduire';
    173186      $cond = $conf['newuser_default_enabled_high'];
    174187      $confk = 'newuser_default_enabled_high';
     
    176189     
    177190     Case 12 :
    178       $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.';
     191      $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.';
    179192      $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';';
     193      $adv[] = '*** FIXME *** Conseil à traduire';
    180194      $cond = ( $conf['level_separator'] == ' / ' );
    181195      $confk = 'level_separator';
     
    183197     
    184198     Case 13 :
    185       $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.';
     199      $adv[] = 'Valeur actuelle : '
     200             . (string) $conf['paginate_pages_around'] . '.';
    186201      $adv[] = 'Usual range is between 2 and 5. To be light, choose ' .
    187202      '$conf[\'paginate_pages_around\'] = 2; <br />' .
    188203      'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;';
     204      $adv[] = '*** FIXME *** Conseil à traduire';
    189205      $cond = (($conf['paginate_pages_around'] < 2)
    190206                              or ($conf['paginate_pages_around'] > 12));
     
    193209
    194210     Case 14 :
    195       $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.';
     211      $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.';
    196212      $adv[] = 'Should be a close value to your thumbnail width.' .
    197213      $adv[] = 'Usual range is between 96 and 150, ' .
    198214                                                         'about $conf[\'tn_width\'] = 128;';
     215      $adv[] = '*** FIXME *** Conseil à traduire';
    199216      $cond = (($conf['tn_width'] < 66)
    200217                              or ($conf['tn_width'] > 180));
     
    203220
    204221     Case 15 :
    205       $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.';
     222      $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.';
    206223      $adv[] = 'Should be a close value to your thumbnail height.' .
    207224      $adv[] = 'Usual range is between 96 and 150, ' .
    208225                                                         'about $conf[\'tn_height\'] = 128;';
     226      $adv[] = '*** FIXME *** Conseil à traduire';
    209227      $cond = (($conf['tn_height'] < 66)
    210228                              or ($conf['tn_height'] > 180));
     
    217235                                 ';<br />' .
    218236                                                         'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
     237      $adv[] = '*** FIXME *** Conseil à traduire';
    219238      $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
    220239      $confk = 'tn_height';
     
    222241
    223242     Case 17 :
    224       $adv[] = 'Current value: true.';
     243      $adv[] = 'Valeur actuelle : true.';
    225244      $adv[] = 'For security reason, please set ' .
    226245                                 '$conf[\'show_version\'] = false;';
     246      $adv[] = '*** FIXME *** Conseil à traduire';
    227247      $cond = $conf['show_version'];
    228248      $confk = 'show_version';
     
    230250
    231251     Case 18 :
    232       $adv[] = 'Current value: true.';
     252      $adv[] = 'Valeur actuelle : true.';
    233253      $adv[] = 'For a lighter gallery just have a look to ' .
    234254               '$conf[\'show_thumbnail_caption\'] = false;';
     255      $adv[] = '*** FIXME *** Conseil à traduire';
    235256      $cond = $conf['show_thumbnail_caption'];
    236257      $confk = 'show_thumbnail_caption';
     
    238259
    239260     Case 19 :
    240       $adv[] = 'Current value: true.';
     261      $adv[] = 'Valeur actuelle : true.';
    241262      $adv[] = 'For a lighter gallery just have a look to ' .
    242263               '$conf[\'show_picture_name_on_title\'] = false;';
     264      $adv[] = '*** FIXME *** Conseil à traduire';
    243265      $cond = $conf['show_picture_name_on_title'];
    244266      $confk = 'show_picture_name_on_title';
     
    246268
    247269     Case 20 :
    248       $adv[] = 'Current value: true.';
     270      $adv[] = 'Valeur actuelle : true.';
    249271      $adv[] = 'If you do NOT have any category descriptions just have ' .
    250272               'a look to $conf[\'subcatify\'] = false;';
     273      $adv[] = '*** FIXME *** Conseil à traduire';
    251274      $cond = $conf['subcatify'];
    252275      $confk = 'subcatify';
     
    254277
    255278     Case 21 :
    256       $adv[] = 'Current value: true.';
     279      $adv[] = 'Valeur actuelle : true.';
    257280      $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' .
    258281               'but analyze if you can avoid for performance reasons.' ;
     282      $adv[] = '*** FIXME *** Conseil à traduire';
    259283      $cond = $conf['allow_random_representative'];
    260284      $confk = 'allow_random_representative';
     
    262286
    263287     Case 22 :
    264       $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.';
     288      $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.';
    265289      $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.';
    266290      $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.';
     
    275299                                                         'See our wiki configuration page for more information about ' .
    276300                                                         './include/config_<strong>local.inc.php</strong>.';
     301      $adv[] = '*** FIXME *** Conseil à traduire';
    277302      $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
    278303      $confk = 'prefix_thumbnail';
     
    280305
    281306     Case 23 :
    282       $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.';
     307      $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.';
    283308      $adv[] = 'Unless you have a low band connection, you can draw up ' .
    284309               '$conf[\'users_page\'] to a higher value ' .
    285310                                                         'if you have more than 20 members.';
     311      $adv[] = '*** FIXME *** Conseil à traduire';
    286312      $cond = ( $conf['users_page'] < 21 );
    287313      $confk = 'users_page';
     
    289315
    290316     Case 24 :
    291       $adv[] = 'Current value: true.';
     317      $adv[] = 'Valeur actuelle : true.';
    292318      $adv[] = 'Should be false, only few webmasters have to set ' .
    293319               '$conf[\'mail_options\'] = true; <br />' .
    294320                                                         'A specific advice you can get from an advanced ' .
    295321                                                         'user on our forum in some mailing issues.' ;
     322      $adv[] = '*** FIXME *** Conseil à traduire';
    296323      $cond = $conf['mail_options'];
    297324      $confk = 'mail_options';
     
    299326
    300327     Case 25 :
    301       $adv[] = 'Current value: true.';
     328      $adv[] = 'Valeur actuelle : true.';
    302329      $adv[] = 'Should be false, only PWG dev Team have to set ' .
    303330               '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ;
     331      $adv[] = '*** FIXME *** Conseil à traduire';
    304332      $cond = $conf['check_upgrade_feed'];
    305333      $confk = 'check_upgrade_feed';
     
    310338             . 'items.';
    311339      $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.';
     340      $adv[] = '*** FIXME *** Conseil à traduire';
    312341      $cond = ( count($conf['rate_items']) < 4 );
    313342      $confk = 'rate_items';
     
    321350                                 '<br />Reduce excessive rating and change your ' .
    322351               '$conf[\'rate_items\'].';
     352      $adv[] = '*** FIXME *** Conseil à traduire';
    323353      $cond = ( count($conf['rate_items']) > 6 );
    324354      $confk = 'rate_items';
     
    326356                         
    327357     Case 28 :
    328       $adv[] = 'Current value: true.';
     358      $adv[] = 'Valeur actuelle : true.';
    329359      $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;'
    330360                               . '<br />Some Professional photographers choose false ' .
     
    333363               '<strong>use</strong>_iptc (have a look on metadata page ' .
    334364                                                         'on our wiki.';
     365      $adv[] = '*** FIXME *** Conseil à traduire';
    335366      $cond = $conf['show_iptc'];
    336367      $confk = 'show_iptc';
     
    338369                         
    339370     Case 29 :
    340       $adv[] = 'Current value: true.';
     371      $adv[] = 'Valeur actuelle : true.';
    341372      $adv[] = 'Documentalists and professionnal photographers would ' .
    342373                                 'set it true, but beginners should leave it ' .
     
    348379               '<strong>use</strong>_iptc (have a look on metadata page ' .
    349380                                                         'on our wiki.';
     381      $adv[] = '*** FIXME *** Conseil à traduire';
    350382      $cond = $conf['use_iptc'];
    351383      $confk = 'use_iptc';
     
    353385                         
    354386     Case 30 :
    355       $adv[] = 'How to deal with IPTC:';
     387      $adv[] = 'Comment gérer les IPTC:';
    356388      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
    357389               '<br />2 - Rename it as sample.jpg.' .
    358390               '<br />3 - Run ./tools/metadata.php' .
    359                '<br />4 - Analyse results to determine which ITPC fields ' .
     391               '<br />4 - Analyse results to determine which IPTC fields ' .
    360392                                                         'could be used to override database fields.';
    361393      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
    362394      $adv[] = 'Advanced users make documentation efforts prior ' .
    363395                                 'to upload their pictures.<br />' .
    364                                                          'ITPC fields have to be described in ' .
     396                                                         'IPTC fields have to be described in ' .
    365397                                                         '$conf[\'use_iptc_mapping\']';
    366398                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
    367399               '<strong>use</strong>_iptc_mapping must be totally different.';
     400      $adv[] = '*** FIXME *** Conseil à traduire';
    368401      $cond = true;
    369402      $confk = 'use_iptc';
     
    371404                       
    372405     Case 31 :
    373       $adv[] = 'How to deal with IPTC:';
     406      $adv[] = 'Comment gérer les IPTC:';
    374407      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
    375408               '<br />2 - Rename it as sample.jpg.' .
    376409               '<br />3 - Run ./tools/metadata.php' .
    377                '<br />4 - Analyse results to determine which ITPC fields ' .
     410               '<br />4 - Analyse results to determine which IPTC fields ' .
    378411                                                         'could be used to override database fields.';
    379412      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
     
    385418                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
    386419               '<strong>use</strong>_iptc_mapping must be totally different.';
     420      $adv[] = '*** FIXME *** Conseil à traduire';
    387421      $cond = true;
    388422      $confk = 'use_iptc_mapping';
     
    390424                       
    391425     Case 32 :
    392       $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' )
    393              . '.';
     426      $adv[] = 'Valeur actuelle : ' 
     427             . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.';
    394428      $adv[] = 'Should be true, some information from your camera ' .
    395429                                 'can be displayed.';
     
    403437               '<strong>use</strong>_exif (have a look on metadata page ' .
    404438                                                         'on our wiki.';
     439      $adv[] = '*** FIXME *** Conseil à traduire';
    405440      $cond = true;
    406441      $confk = 'show_exif';
     
    408443                       
    409444     Case 33 :
    410       $adv[] = 'How to deal with EXIF:';
     445      $adv[] = 'Comment gérer les EXIF:';
    411446      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
    412447               '<br />2 - Rename it as sample.jpg.' .
     
    419454                        $adv[] = 'In any case, <strong>show</strong>_exif_mapping and ' .
    420455               '<strong>use</strong>_exif_mapping must be totally different.';
     456      $adv[] = '*** FIXME *** Conseil à traduire';
    421457      $cond = true;
    422458      $confk = 'show_exif_mapping';
     
    424460                         
    425461     Case 34 :
    426       $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
     462      $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
    427463             . '.';
    428464      $adv[] = 'Documentalists and professionnal photographers would ' .
     
    434470               '<strong>use</strong>_exif (have a look on metadata page ' .
    435471                                                         'on our wiki.';
     472      $adv[] = '*** FIXME *** Conseil à traduire';
    436473      $cond = true;
    437474      $confk = 'use_exif';
     
    439476                       
    440477     Case 35 :
    441       $adv[] = 'How to deal with EXIF:';
     478      $adv[] = 'Comment gérer les EXIF:';
    442479      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
    443480               '<br />2 - Rename it as sample.jpg.' .
     
    453490                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
    454491               '<strong>use</strong>_iptc_mapping must be totally different.';
     492      $adv[] = '*** FIXME *** Conseil à traduire';
    455493      $cond = true;
    456494      $confk = 'use_exif_mapping';
  • trunk/plugins/admin_advices/main.inc.php

    r1699 r1702  
    11<?php /*
    22Plugin Name: Admin Advices !
     3Version: 1.0.0
    34Author: PhpWebGallery team
    45Description: Give you an advice on the administration page.
     
    3637          PHPWG_ROOT_PATH.'/plugins/admin_advices/admin_advices.tpl')
    3738        );
     39       
     40// Random Thumbnail
     41      $query = '
     42SELECT *
     43  FROM '.IMAGES_TABLE.'
     44  ORDER BY RAND(NOW())
     45  LIMIT 0, 1
     46;';
     47      $result = pwg_query($query); 
     48      $row = mysql_fetch_assoc($result);
     49      if ( is_array($row) )
     50      {
     51        $template->assign_block_vars(
     52          'thumbnail',
     53           array(
     54             'IMAGE'              => get_thumbnail_url($row),
     55             'IMAGE_ALT'          => $row['file'],
     56             'IMAGE_TITLE'        => $row['name'],
     57           )
     58         );
     59      }     
    3860      $advice_text = array_shift($adv);
    3961      $template->assign_vars(
Note: See TracChangeset for help on using the changeset viewer.