Changeset 42
- Timestamp:
- Jul 26, 2003, 2:55:14 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r26 r42 42 42 'upload_maxfilesize', 'upload_maxwidth','upload_maxheight', 43 43 'upload_maxwidth_thumbnail','upload_maxheight_thumbnail','log', 44 'comments_validation' );44 'comments_validation','comments_forall' ); 45 45 $default_user_infos = 46 46 array( 'nb_image_line','nb_line_page','language','maxwidth', … … 450 450 $vtp->closeSession( $sub, 'param_line' ); 451 451 $vtp->closeSession( $sub, 'line' ); 452 // coments for all ? true -> guests can post messages 453 $vtp->addSession( $sub, 'line' ); 454 $vtp->addSession( $sub, 'param_line' ); 455 $vtp->setVar( $sub, 'param_line.name', $lang['conf_comments_forall'] ); 456 $vtp->addSession( $sub, 'group' ); 457 $vtp->addSession( $sub, 'radio' ); 458 $vtp->setVar( $sub, 'radio.name', 'comments_forall' ); 459 $vtp->setVar( $sub, 'radio.value', 'true' ); 460 $vtp->setVar( $sub, 'radio.option', $lang['yes'] ); 461 $checked = ''; 462 if ( $comments_forall == 'true' ) 463 { 464 $checked = ' checked="checked"'; 465 } 466 $vtp->setVar( $sub, 'radio.checked', $checked ); 467 $vtp->closeSession( $sub, 'radio' ); 468 $vtp->addSession( $sub, 'radio' ); 469 $vtp->setVar( $sub, 'radio.name', 'comments_forall' ); 470 $vtp->setVar( $sub, 'radio.value', 'false' ); 471 $vtp->setVar( $sub, 'radio.option', $lang['no'] ); 472 $checked = ''; 473 if ( $comments_forall == 'false' ) 474 { 475 $checked = ' checked="checked"'; 476 } 477 $vtp->setVar( $sub, 'radio.checked', $checked ); 478 $vtp->closeSession( $sub, 'radio' ); 479 $vtp->closeSession( $sub, 'group' ); 480 $vtp->setVar( $sub, 'param_line.def', 481 $lang['conf_comments_forall_info'] ); 482 $vtp->closeSession( $sub, 'param_line' ); 483 $vtp->closeSession( $sub, 'line' ); 452 484 // number of comments per page 453 485 $vtp->addSession( $sub, 'line' ); -
trunk/include/config.inc.php
r41 r42 62 62 'upload_available', 'upload_maxfilesize', 'upload_maxwidth', 63 63 'upload_maxheight', 'upload_maxwidth_thumbnail', 64 'upload_maxheight_thumbnail','log','comments_validation' ); 64 'upload_maxheight_thumbnail','log','comments_validation', 65 'comments_forall' ); 65 66 66 67 $query = 'SELECT '; -
trunk/language/francais.php
r41 r42 345 345 $lang['conf_comments_validation'] = 'validation'; 346 346 $lang['conf_comments_validation_info'] = 'L\'administrateur valide les commentaires avant qu\'ils apparaissent sur le site'; 347 $lang['conf_comments_forall'] = 'pour tous ?'; 348 $lang['conf_comments_forall_info'] = 'Même les invités non enregistrés peuvent déposer les messages'; 347 349 // $lang['conf_remote_site_title'] = 'Site distant'; 348 350 // end version 1.3 -
trunk/picture.php
r41 r42 625 625 $vtp->closeSession( $handle, 'comment' ); 626 626 } 627 // form action 628 $action = str_replace( '&', '&', $_SERVER['REQUEST_URI'] ); 629 $vtp->setGlobalVar( $handle, 'form_action', $action ); 630 // display author field if the user is not logged in 631 if ( !$user['is_the_guest'] ) 632 { 633 $vtp->addSession( $handle, 'author_known' ); 634 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 635 $vtp->closeSession( $handle, 'author_known' ); 636 } 637 else 638 { 639 $vtp->addSession( $handle, 'author_field' ); 640 $vtp->closeSession( $handle, 'author_field' ); 627 628 if ( !$user['is_the_guest'] 629 or ( $user['is_the_guest'] and $conf['comments_forall'] ) ) 630 { 631 $vtp->addSession( $handle, 'add_comment' ); 632 // form action 633 $action = str_replace( '&', '&', $_SERVER['REQUEST_URI'] ); 634 $vtp->setGlobalVar( $handle, 'form_action', $action ); 635 // display author field if the user is not logged in 636 if ( !$user['is_the_guest'] ) 637 { 638 $vtp->addSession( $handle, 'author_known' ); 639 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 640 $vtp->closeSession( $handle, 'author_known' ); 641 } 642 else 643 { 644 $vtp->addSession( $handle, 'author_field' ); 645 $vtp->closeSession( $handle, 'author_field' ); 646 } 647 $vtp->closeSession( $handle, 'add_comment' ); 641 648 } 642 649 $vtp->closeSession( $handle, 'comments' ); -
trunk/template/default/picture.vtp
r25 r42 163 163 </tr> 164 164 </table> 165 <!--VTP_add_comment--> 165 166 <form method="post" action="{#form_action}"> 166 167 <table style="width:100%;"> … … 180 181 </table> 181 182 </form> 183 <!--/VTP_add_comment--> 182 184 {#frame_end} 183 185 </td>
Note: See TracChangeset
for help on using the changeset viewer.