(Edit)
En fait j'ai modifié la fonction date, pour l'avoir en français directement :
- Code: Tout sélectionner
// Traitement de la date post
setlocale(LC_TIME, 'fr_FR');
$date_last_post = strftime("%A %e %B %Y %H:%M", $last_topic_data[$i]['post_time']+(3600));
$lien_profil = ( $last_topic_data['user_id'] != -1 ) ? "<a href=\"".append_sid("$urlPath/profile.php?mode=viewprofile&u=".$last_topic_data[$i]['user_id'])."\" class=\"nav\" >" . $last_topic_data[$i]['username'] . "</a>" : $lang['Guest'];
echo "<li><a href=\"".append_sid("$urlPath/viewtopic.php?t=".$last_topic_data[$i]['topic_id'])."\" class=\"nav\">" . $last_topic_data[$i]['topic_title'] ."</a>
(" . $last_topic_data[$i]['topic_replies'] . " réponses)<br />
<a href=\"" . append_sid("$urlPath/viewtopic.php?p=".$last_topic_data[$i]['topic_last_post_id'] . $start) . "#" . $last_topic_data[$i]['topic_last_post_id'] . "\">Dernière réponse</a>
de " . $lien_profil . ",
le ".$date_last_post."
</li>";
Par contre j'ai ce message là avant l'affichage de ma liste quand j'insère mon fichier avec un "<?php include("last_active_dreams.php"); ?>" à l'endroit voulu :
Warning: Cannot modify header information - headers already sent by (output started at /home/boiteare/www/design/index.php:6) in /home/boiteare/www/reve/includes/sessions.php on line 367
Warning: Cannot modify header information - headers already sent by (output started at /home/boiteare/www/design/index.php:6) in /home/boiteare/www/reve/includes/sessions.php on line 368
Comment le résoudre :- ? Parce que si on fait un tel fichier c'est quand même pour pouvoir l'insérer dans une page classique

.
Sinon je ne comprends pas ce que ton code pour les invités doit changer :- ? Là ça fait comme avant, ça affiche "Anonymous" si c'est un invité, au lieu d'afficher son nom comme dans topics anywhere (qui affiche le pseudo même si c'est un invité; mais je n'ai pas trouvé comme il faisait dans le code, je ne comprends pas assez le php

).