[Forum] Ajouter un champ du profil - Localisation

Bonsoir,
J'ai bien lu la FAQ - Forum : Ajouter un champ du profil
http://www.kwsphp.org/index.php?mod=multi-faq&action=faq&id=8#Qfaq63
Mais pour quelqu'un comme moi qui ne code pas c'est dangereux !
Pouvez vous m'indiquer si le code suivant est bon avant que je fasse une bêtise
Merci


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  5. {
  6.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  7.     <tr>
  8.         <td style="width:100%;">
  9.             <div style="text-align:left;">';
  10.                 open_table();
  11.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  12.                     <tr>
  13.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.''.(!empty($TabInfoProfil['localisation']) ? '<br />'.$TabInfoProfil['localisation'].'' : '').'</td>
  14.                         <td style="width:75%; vertical-align:top">
  15.                             <span class="forum_date">'.$date.'</span>
  16.                             <hr />
  17.                             <p>'.$message.'</p>';
  18.                             if (!empty($signature))
  19.                             {
  20.                                 echo '<hr />
  21.                                 <p>'.$signature.'</p>';
  22.                             }
  23.                             if (!empty($contact))
  24.                             {
  25.                                 echo '<hr />
  26.                                 <p>'.$contact.'</p>';
  27.                             }
  28.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  29.                         </td>
  30.                     </tr>
  31.                 </table>
  32.                 <br />' ;
  33.                 close_table();
  34.             echo '</div>
  35.         </td>
  36.     </tr>';
  37. }
  38.  
  39. #####!!!#####
  40. ?>


Code original de greenday
[hide=toto]
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
  5. {
  6.     echo '<!--  Contenu des posts du forum (forum_rep_mid)  -->
  7.     <tr>
  8.         <td style="width:100%;">
  9.             <div style="text-align:left;">';
  10.                 open_table();
  11.                 echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
  12.                     <tr>
  13.                         <td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.'</td>
  14.                         <td style="width:75%; vertical-align:top">
  15.                             <span class="forum_date">'.$date.'</span>
  16.                             <hr />
  17.                             <p>'.$message.'</p>';
  18.                             if (!empty($signature))
  19.                             {
  20.                                 echo '<hr />
  21.                                 <p>'.$signature.'</p>';
  22.                             }
  23.                             if (!empty($contact))
  24.                             {
  25.                                 echo '<hr />
  26.                                 <p>'.$contact.'</p>';
  27.                             }
  28.                             echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
  29.                         </td>
  30.                     </tr>
  31.                 </table>
  32.                 <br />' ;
  33.                 close_table();
  34.             echo '</div>
  35.         </td>
  36.     </tr>';
  37. }
  38.  
  39. #####!!!#####
  40. ?>
[/hide]


Sujet écrit par lboubou le lundi 1er mars 2010 à 23:50

[ Imprimer ] - [ Fermer la fenêtre ]