voici un bout de code de mon blog qui permet d'afficher les derniers commentaires
Code : Tout sélectionner
function commentList()
{
global $blog;
$this->comments = $blog->getComments('','DESC',dc_lastcomments_display);
if (!$this->comments->isEmpty())
{
echo '<ul>';
while(!$this->comments->EOF())
{
echo $this->formatLine($this->comments);
$this->comments->moveNext();
echo '<br />';
}
echo '</ul>';
}
}Code : Tout sélectionner
echo '<br />';Mon problème qu'il y aussi un saut de ligne après le dernier commentaire
Comment pourrais-je l'éviter ?
Merci pour votre aide !
Billboc