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#Qfaq63Mais 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
<?php
#####!!!#####
-
function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
{
echo '<!-- Contenu des posts du forum (forum_rep_mid) -->
<tr>
<td style="width:100%;">
<div style="text-align:left;">';
open_table();
echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
<tr>
<td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.''.(!empty($TabInfoProfil['localisation']) ? '<br />'.$TabInfoProfil['localisation'].'' : '').'</td>
<td style="width:75%; vertical-align:top">
<span class="forum_date">'.$date.'</span>
<hr />
<p>'.$message.'</p>';
if (!empty($signature))
{
echo '<hr />
<p>'.$signature.'</p>';
}
if (!empty($contact))
{
echo '<hr />
<p>'.$contact.'</p>';
}
echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
</td>
</tr>
</table>
<br />' ;
close_table();
echo '</div>
</td>
</tr>';
}
-
#####!!!#####
?>
Code original de greenday
[hide=toto]
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
<?php
#####!!!#####
-
function forum_rep_mid ($auteur, $message, $signature, $date, $type, $id, $contact=null)
{
echo '<!-- Contenu des posts du forum (forum_rep_mid) -->
<tr>
<td style="width:100%;">
<div style="text-align:left;">';
open_table();
echo '<table style="width:100%; border:0;" cellspacing="0" cellpadding="0" summary="Post">
<tr>
<td style="width:20%; vertical-align:top; text-align:center;">'.$auteur.'</td>
<td style="width:75%; vertical-align:top">
<span class="forum_date">'.$date.'</span>
<hr />
<p>'.$message.'</p>';
if (!empty($signature))
{
echo '<hr />
<p>'.$signature.'</p>';
}
if (!empty($contact))
{
echo '<hr />
<p>'.$contact.'</p>';
}
echo '<div style="text-align:right"><a href="./index.php?'.ax($_SERVER['QUERY_STRING']).'#">Remonter</a></div>
</td>
</tr>
</table>
<br />' ;
close_table();
echo '</div>
</td>
</tr>';
}
-
#####!!!#####
?>
[/hide]