Voici les modifs que j'ai fait de mon côté :
Dans includes/functions_forumdisplay.php :
Code PHP:
// thread last reply date/time
$thread['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], true);
$thread['lastposttime'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
// post reply date/time (for search results as posts mainly)
// Modif par Krikitu, le 30/03/2006
// if ($thread['postdateline'])
// {
// $thread['postdate'] = vbdate($vbulletin->options['dateformat'], $thread['postdateline'], true);
// $thread['posttime'] = vbdate($vbulletin->options['timeformat'], $thread['postdateline']);
// }
if ($thread['dateline'])
{
$thread['postdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], true);
$thread['posttime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
}
else if ($thread['postdateline'])
{
$thread['postdate'] = vbdate($vbulletin->options['dateformat'], $thread['postdateline'], true);
$thread['posttime'] = vbdate($vbulletin->options['timeformat'], $thread['postdateline']);
}
else
{
$thread['postdate'] = '';
$thread['posttime'] = '';
}
Et dans le template "threabit" :
Code:
$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>Par<b>
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
</if>
</b>, le $thread[postdate]
</div>
Résultat dans les images jointes. L'une représente l'affichage des messages d'un forum et l'autre la liste des messages par utilisateur.
La date affichée dans la liste des messages est la date de création du sujet, bien sûr.