Changeset 1702 for trunk/plugins/admin_advices
- Timestamp:
- Jan 8, 2007, 9:52:58 PM (17 years ago)
- Location:
- trunk/plugins/admin_advices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/admin_advices/admin_advices.tpl
r1694 r1702 1 1 <!-- $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>4 2 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%;"> 7 8 <!-- BEGIN More --> 8 <dd> {More.ADVICE} </dd>9 {More.ADVICE} <br /> 9 10 <!-- 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> 11 18 </div> -
trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php
r1697 r1702 82 82 83 83 Case 4 : 84 $adv[] = 'Show I TPC Data from your picture:';84 $adv[] = 'Show IPTC Data from your picture:'; 85 85 $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . 86 86 ' in ./tools/<br />' . 87 87 ' 2 - Rename it as sample.jpg.<br />' . 88 88 ' 3 - Run ./tools/metadata.php<br />' . 89 ' 4 - Analyse results to determine which I TPC fields could be' .89 ' 4 - Analyse results to determine which IPTC fields could be' . 90 90 ' useful for your visitors.'; 91 91 $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; … … 357 357 '<br />2 - Rename it as sample.jpg.' . 358 358 '<br />3 - Run ./tools/metadata.php' . 359 '<br />4 - Analyse results to determine which I TPC fields ' .359 '<br />4 - Analyse results to determine which IPTC fields ' . 360 360 'could be used to override database fields.'; 361 361 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; 362 362 $adv[] = 'Advanced users make documentation efforts prior ' . 363 363 'to upload their pictures.<br />' . 364 'I TPC fields have to be described in ' .364 'IPTC fields have to be described in ' . 365 365 '$conf[\'use_iptc_mapping\']'; 366 366 $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . … … 375 375 '<br />2 - Rename it as sample.jpg.' . 376 376 '<br />3 - Run ./tools/metadata.php' . 377 '<br />4 - Analyse results to determine which I TPC fields ' .377 '<br />4 - Analyse results to determine which IPTC fields ' . 378 378 'could be used to override database fields.'; 379 379 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; -
trunk/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php
r1697 r1702 54 54 switch ($id_adv) { 55 55 Case 1 : 56 $adv[] = ' Current value: public. ';56 $adv[] = 'Valeur actuelle : public. '; 57 57 $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; 58 58 $adv[] = 'You will have more time to describe and check your pictures.'; … … 60 60 $adv[] = 'If you choose private, time to distribute authorization.'; 61 61 $adv[] = 'Your new category will be well prepared.'; 62 $adv[] = '*** FIXME *** Conseil à traduire'; 62 63 $cond = ($conf['newcat_default_status'] !== 'public'); 63 64 $confk = 'newcat_default_status'; … … 65 66 66 67 Case 2 : 67 $adv[] = ' Current value: ' . (string) $conf['slideshow_period'] . '.';68 $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; 68 69 $adv[] = 'This value could be too small for low band connections.'; 69 70 $adv[] = 'Think about higher value like 4.'; 71 $adv[] = '*** FIXME *** Conseil à traduire'; 70 72 $cond = ( $conf['slideshow_period'] < 4 ); 71 73 $confk = 'slideshow_period'; … … 73 75 74 76 Case 3 : 75 $adv[] = ' Current value: ' . implode(', ', $conf['file_ext']) . '. ';77 $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; 76 78 $adv[] = 'Should never contains extensions which can be executed'; 77 79 $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; 78 80 $adv[] = 'Think about higher value like 4.'; 81 $adv[] = '*** FIXME *** Conseil à traduire'; 79 82 $cond = ( in_array('php',$conf['file_ext']) ); 80 83 $confk = 'file_ext'; … … 82 85 83 86 Case 4 : 84 $adv[] = 'Show I TPC Data from your picture:';87 $adv[] = 'Show IPTC Data from your picture:'; 85 88 $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . 86 89 ' in ./tools/<br />' . 87 90 ' 2 - Rename it as sample.jpg.<br />' . 88 91 ' 3 - Run ./tools/metadata.php<br />' . 89 ' 4 - Analyse results to determine which I TPC fields could be' .92 ' 4 - Analyse results to determine which IPTC fields could be' . 90 93 ' useful for your visitors.'; 91 94 $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; 92 95 $adv[] = 'Advanced users would take care of $lang values and impacts' . 93 96 ' on templates.'; 97 $adv[] = '*** FIXME *** Conseil à traduire'; 94 98 $cond = true; 95 99 $confk = 'show_iptc_mapping'; … … 97 101 98 102 Case 5 : 99 $adv[] = ' Current value: ' . (string) $conf['top_number'] . '.';103 $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; 100 104 $adv[] = 'This value is maybe too high for low connections, ' . 101 105 'think about 25-50 depending on your thumbnail sizes.'; 106 $adv[] = '*** FIXME *** Conseil à traduire'; 102 107 $cond = ( $conf['top_number'] > 50 ); 103 108 $confk = 'top_number'; … … 105 110 106 111 Case 6 : 107 $adv[] = ' Current value: ' . (string) $conf['top_number'] . '.';112 $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; 108 113 $adv[] = 'One? It could be too low for random pictures, ' . 109 114 'think about 5-10 depending on your thumbnail sizes.'; 115 $adv[] = '*** FIXME *** Conseil à traduire'; 110 116 $cond = ( $conf['top_number'] < 2 ) ? true : false; 111 117 $confk = 'top_number'; … … 113 119 114 120 Case 7 : 115 $adv[] = ' Current value: ' . (string) $conf['anti-flood_time'] . '.';121 $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; 116 122 $adv[] = 'For normal flow processing, your value is probably too high. ' . 117 123 'Reasonable value is 60 (default).' ; 124 $adv[] = '*** FIXME *** Conseil à traduire'; 118 125 $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; 119 126 $confk = 'anti-flood_time'; … … 121 128 122 129 Case 8 : 123 $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; 130 $adv[] = 'Valeur actuelle : ' 131 . (string) $conf['calendar_datefield'] . '.'; 124 132 $adv[] = 'Authorized values are ' . 125 133 "'date_creation' or 'date_available'" . 126 134 ', otherwise you can get unpredictable results.' ; 135 $adv[] = '*** FIXME *** Conseil à traduire'; 127 136 $cond = ( !in_array($conf['calendar_datefield'], 128 137 array('date_creation','date_available')) ); … … 134 143 // Then it's Ok, you can use date_creation by default for calendar 135 144 // else ... Advice 136 $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; 145 $adv[] = 'Valeur actuelle : ' 146 . (string) $conf['calendar_datefield'] . '.'; 137 147 $adv[] = "'date_creation'" . ' is NOT filled by ' . 138 148 'any activated use metadata mapping fields.'; … … 149 159 '=> \'DateTimeOriginal\', ...<br />' . 150 160 '3 - Finally, a new task is up to you: Metadata synchronization.' ; 161 $adv[] = '*** FIXME *** Conseil à traduire'; 151 162 $cond2 = ( $conf['use_exif'] and 152 163 isset($conf['use_exif_mapping']['date_creation']) ); … … 159 170 160 171 Case 10 : 161 $adv[] = ' Current value: false.';172 $adv[] = 'Valeur actuelle : false.'; 162 173 $adv[] = 'Not useful, private status is better, so code ' . 163 174 '$conf[\'newcat_default_visible\'] = true;' ; 175 $adv[] = '*** FIXME *** Conseil à traduire'; 164 176 $cond = !$conf['newcat_default_visible']; 165 177 $confk = 'newcat_default_visible'; … … 167 179 168 180 Case 11 : 169 $adv[] = ' Current value: true.';181 $adv[] = 'Valeur actuelle : true.'; 170 182 $adv[] = 'Any new subscriber has access to High Resolution pictures. ' . 171 183 'Is it what you want? No, so try ' . 172 184 '$conf[\'newuser_default_enabled_high\'] = false;' ; 185 $adv[] = '*** FIXME *** Conseil à traduire'; 173 186 $cond = $conf['newuser_default_enabled_high']; 174 187 $confk = 'newuser_default_enabled_high'; … … 176 189 177 190 Case 12 : 178 $adv[] = ' Current value: ' . (string) $conf['level_separator'] . '.';191 $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; 179 192 $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; 193 $adv[] = '*** FIXME *** Conseil à traduire'; 180 194 $cond = ( $conf['level_separator'] == ' / ' ); 181 195 $confk = 'level_separator'; … … 183 197 184 198 Case 13 : 185 $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; 199 $adv[] = 'Valeur actuelle : ' 200 . (string) $conf['paginate_pages_around'] . '.'; 186 201 $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . 187 202 '$conf[\'paginate_pages_around\'] = 2; <br />' . 188 203 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; 204 $adv[] = '*** FIXME *** Conseil à traduire'; 189 205 $cond = (($conf['paginate_pages_around'] < 2) 190 206 or ($conf['paginate_pages_around'] > 12)); … … 193 209 194 210 Case 14 : 195 $adv[] = ' Current value: ' . (string) $conf['tn_width'] . '.';211 $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; 196 212 $adv[] = 'Should be a close value to your thumbnail width.' . 197 213 $adv[] = 'Usual range is between 96 and 150, ' . 198 214 'about $conf[\'tn_width\'] = 128;'; 215 $adv[] = '*** FIXME *** Conseil à traduire'; 199 216 $cond = (($conf['tn_width'] < 66) 200 217 or ($conf['tn_width'] > 180)); … … 203 220 204 221 Case 15 : 205 $adv[] = ' Current value: ' . (string) $conf['tn_height'] . '.';222 $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; 206 223 $adv[] = 'Should be a close value to your thumbnail height.' . 207 224 $adv[] = 'Usual range is between 96 and 150, ' . 208 225 'about $conf[\'tn_height\'] = 128;'; 226 $adv[] = '*** FIXME *** Conseil à traduire'; 209 227 $cond = (($conf['tn_height'] < 66) 210 228 or ($conf['tn_height'] > 180)); … … 217 235 ';<br />' . 218 236 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; 237 $adv[] = '*** FIXME *** Conseil à traduire'; 219 238 $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); 220 239 $confk = 'tn_height'; … … 222 241 223 242 Case 17 : 224 $adv[] = ' Current value: true.';243 $adv[] = 'Valeur actuelle : true.'; 225 244 $adv[] = 'For security reason, please set ' . 226 245 '$conf[\'show_version\'] = false;'; 246 $adv[] = '*** FIXME *** Conseil à traduire'; 227 247 $cond = $conf['show_version']; 228 248 $confk = 'show_version'; … … 230 250 231 251 Case 18 : 232 $adv[] = ' Current value: true.';252 $adv[] = 'Valeur actuelle : true.'; 233 253 $adv[] = 'For a lighter gallery just have a look to ' . 234 254 '$conf[\'show_thumbnail_caption\'] = false;'; 255 $adv[] = '*** FIXME *** Conseil à traduire'; 235 256 $cond = $conf['show_thumbnail_caption']; 236 257 $confk = 'show_thumbnail_caption'; … … 238 259 239 260 Case 19 : 240 $adv[] = ' Current value: true.';261 $adv[] = 'Valeur actuelle : true.'; 241 262 $adv[] = 'For a lighter gallery just have a look to ' . 242 263 '$conf[\'show_picture_name_on_title\'] = false;'; 264 $adv[] = '*** FIXME *** Conseil à traduire'; 243 265 $cond = $conf['show_picture_name_on_title']; 244 266 $confk = 'show_picture_name_on_title'; … … 246 268 247 269 Case 20 : 248 $adv[] = ' Current value: true.';270 $adv[] = 'Valeur actuelle : true.'; 249 271 $adv[] = 'If you do NOT have any category descriptions just have ' . 250 272 'a look to $conf[\'subcatify\'] = false;'; 273 $adv[] = '*** FIXME *** Conseil à traduire'; 251 274 $cond = $conf['subcatify']; 252 275 $confk = 'subcatify'; … … 254 277 255 278 Case 21 : 256 $adv[] = ' Current value: true.';279 $adv[] = 'Valeur actuelle : true.'; 257 280 $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' . 258 281 'but analyze if you can avoid for performance reasons.' ; 282 $adv[] = '*** FIXME *** Conseil à traduire'; 259 283 $cond = $conf['allow_random_representative']; 260 284 $confk = 'allow_random_representative'; … … 262 286 263 287 Case 22 : 264 $adv[] = ' Current value: ' . (string) $conf['prefix_thumbnail'] . '.';288 $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; 265 289 $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; 266 290 $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; … … 275 299 'See our wiki configuration page for more information about ' . 276 300 './include/config_<strong>local.inc.php</strong>.'; 301 $adv[] = '*** FIXME *** Conseil à traduire'; 277 302 $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); 278 303 $confk = 'prefix_thumbnail'; … … 280 305 281 306 Case 23 : 282 $adv[] = ' Current value: ' . (string) $conf['users_page'] . '.';307 $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; 283 308 $adv[] = 'Unless you have a low band connection, you can draw up ' . 284 309 '$conf[\'users_page\'] to a higher value ' . 285 310 'if you have more than 20 members.'; 311 $adv[] = '*** FIXME *** Conseil à traduire'; 286 312 $cond = ( $conf['users_page'] < 21 ); 287 313 $confk = 'users_page'; … … 289 315 290 316 Case 24 : 291 $adv[] = ' Current value: true.';317 $adv[] = 'Valeur actuelle : true.'; 292 318 $adv[] = 'Should be false, only few webmasters have to set ' . 293 319 '$conf[\'mail_options\'] = true; <br />' . 294 320 'A specific advice you can get from an advanced ' . 295 321 'user on our forum in some mailing issues.' ; 322 $adv[] = '*** FIXME *** Conseil à traduire'; 296 323 $cond = $conf['mail_options']; 297 324 $confk = 'mail_options'; … … 299 326 300 327 Case 25 : 301 $adv[] = ' Current value: true.';328 $adv[] = 'Valeur actuelle : true.'; 302 329 $adv[] = 'Should be false, only PWG dev Team have to set ' . 303 330 '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; 331 $adv[] = '*** FIXME *** Conseil à traduire'; 304 332 $cond = $conf['check_upgrade_feed']; 305 333 $confk = 'check_upgrade_feed'; … … 310 338 . 'items.'; 311 339 $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; 340 $adv[] = '*** FIXME *** Conseil à traduire'; 312 341 $cond = ( count($conf['rate_items']) < 4 ); 313 342 $confk = 'rate_items'; … … 321 350 '<br />Reduce excessive rating and change your ' . 322 351 '$conf[\'rate_items\'].'; 352 $adv[] = '*** FIXME *** Conseil à traduire'; 323 353 $cond = ( count($conf['rate_items']) > 6 ); 324 354 $confk = 'rate_items'; … … 326 356 327 357 Case 28 : 328 $adv[] = ' Current value: true.';358 $adv[] = 'Valeur actuelle : true.'; 329 359 $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' 330 360 . '<br />Some Professional photographers choose false ' . … … 333 363 '<strong>use</strong>_iptc (have a look on metadata page ' . 334 364 'on our wiki.'; 365 $adv[] = '*** FIXME *** Conseil à traduire'; 335 366 $cond = $conf['show_iptc']; 336 367 $confk = 'show_iptc'; … … 338 369 339 370 Case 29 : 340 $adv[] = ' Current value: true.';371 $adv[] = 'Valeur actuelle : true.'; 341 372 $adv[] = 'Documentalists and professionnal photographers would ' . 342 373 'set it true, but beginners should leave it ' . … … 348 379 '<strong>use</strong>_iptc (have a look on metadata page ' . 349 380 'on our wiki.'; 381 $adv[] = '*** FIXME *** Conseil à traduire'; 350 382 $cond = $conf['use_iptc']; 351 383 $confk = 'use_iptc'; … … 353 385 354 386 Case 30 : 355 $adv[] = ' How to deal withIPTC:';387 $adv[] = 'Comment gérer les IPTC:'; 356 388 $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . 357 389 '<br />2 - Rename it as sample.jpg.' . 358 390 '<br />3 - Run ./tools/metadata.php' . 359 '<br />4 - Analyse results to determine which I TPC fields ' .391 '<br />4 - Analyse results to determine which IPTC fields ' . 360 392 'could be used to override database fields.'; 361 393 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; 362 394 $adv[] = 'Advanced users make documentation efforts prior ' . 363 395 'to upload their pictures.<br />' . 364 'I TPC fields have to be described in ' .396 'IPTC fields have to be described in ' . 365 397 '$conf[\'use_iptc_mapping\']'; 366 398 $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . 367 399 '<strong>use</strong>_iptc_mapping must be totally different.'; 400 $adv[] = '*** FIXME *** Conseil à traduire'; 368 401 $cond = true; 369 402 $confk = 'use_iptc'; … … 371 404 372 405 Case 31 : 373 $adv[] = ' How to deal withIPTC:';406 $adv[] = 'Comment gérer les IPTC:'; 374 407 $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . 375 408 '<br />2 - Rename it as sample.jpg.' . 376 409 '<br />3 - Run ./tools/metadata.php' . 377 '<br />4 - Analyse results to determine which I TPC fields ' .410 '<br />4 - Analyse results to determine which IPTC fields ' . 378 411 'could be used to override database fields.'; 379 412 $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; … … 385 418 $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . 386 419 '<strong>use</strong>_iptc_mapping must be totally different.'; 420 $adv[] = '*** FIXME *** Conseil à traduire'; 387 421 $cond = true; 388 422 $confk = 'use_iptc_mapping'; … … 390 424 391 425 Case 32 : 392 $adv[] = ' Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' )393 . '.';426 $adv[] = 'Valeur actuelle : ' 427 . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; 394 428 $adv[] = 'Should be true, some information from your camera ' . 395 429 'can be displayed.'; … … 403 437 '<strong>use</strong>_exif (have a look on metadata page ' . 404 438 'on our wiki.'; 439 $adv[] = '*** FIXME *** Conseil à traduire'; 405 440 $cond = true; 406 441 $confk = 'show_exif'; … … 408 443 409 444 Case 33 : 410 $adv[] = ' How to deal withEXIF:';445 $adv[] = 'Comment gérer les EXIF:'; 411 446 $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . 412 447 '<br />2 - Rename it as sample.jpg.' . … … 419 454 $adv[] = 'In any case, <strong>show</strong>_exif_mapping and ' . 420 455 '<strong>use</strong>_exif_mapping must be totally different.'; 456 $adv[] = '*** FIXME *** Conseil à traduire'; 421 457 $cond = true; 422 458 $confk = 'show_exif_mapping'; … … 424 460 425 461 Case 34 : 426 $adv[] = ' Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' )462 $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) 427 463 . '.'; 428 464 $adv[] = 'Documentalists and professionnal photographers would ' . … … 434 470 '<strong>use</strong>_exif (have a look on metadata page ' . 435 471 'on our wiki.'; 472 $adv[] = '*** FIXME *** Conseil à traduire'; 436 473 $cond = true; 437 474 $confk = 'use_exif'; … … 439 476 440 477 Case 35 : 441 $adv[] = ' How to deal withEXIF:';478 $adv[] = 'Comment gérer les EXIF:'; 442 479 $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . 443 480 '<br />2 - Rename it as sample.jpg.' . … … 453 490 $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . 454 491 '<strong>use</strong>_iptc_mapping must be totally different.'; 492 $adv[] = '*** FIXME *** Conseil à traduire'; 455 493 $cond = true; 456 494 $confk = 'use_exif_mapping'; -
trunk/plugins/admin_advices/main.inc.php
r1699 r1702 1 1 <?php /* 2 2 Plugin Name: Admin Advices ! 3 Version: 1.0.0 3 4 Author: PhpWebGallery team 4 5 Description: Give you an advice on the administration page. … … 36 37 PHPWG_ROOT_PATH.'/plugins/admin_advices/admin_advices.tpl') 37 38 ); 39 40 // Random Thumbnail 41 $query = ' 42 SELECT * 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 } 38 60 $advice_text = array_shift($adv); 39 61 $template->assign_vars(
Note: See TracChangeset
for help on using the changeset viewer.