Christounet
14/04/2006, 02h05
Description
Ce hack permet d'ajouter la date de création du post dans forumdisplay et search
Conception
Auteur du Hack / Author Of Hack : Christounet
Version vBulletin Requise / Version vBulletin Required : vB 3.5.4
Testé / Tested: Oui
editer forumdisplay.php
chercher:
// get info from thread
$thread = process_thread_array($thread, $lastread["$thread[forumid]"]);
ajouter après:
$thread['postudate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
$thread['postutime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
editer search.php (pour l'affichage dans derniers messages)
chercher:
// build thread data
$thread = process_thread_array($thread, $lastread, $foruminfo['allowicons']);
$realthreadid = $thread['realthreadid'];
ajouter après:
$thread['postudate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
$thread['postutime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
ensuite modifier le template threadbit
chercher
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
ajouter après
- $thread[postudate] $thread[postutime]
et voila !
http://img98.imageshack.us/img98/8139/fd7jk.jpg
Note Importante : j'ai changé le nom des éléments en postudate et postutime, car je me suis apperçu que ces noms (postdate et posttime) etaient déjà utilisés dans vBulletin ;)
Ce hack permet d'ajouter la date de création du post dans forumdisplay et search
Conception
Auteur du Hack / Author Of Hack : Christounet
Version vBulletin Requise / Version vBulletin Required : vB 3.5.4
Testé / Tested: Oui
editer forumdisplay.php
chercher:
// get info from thread
$thread = process_thread_array($thread, $lastread["$thread[forumid]"]);
ajouter après:
$thread['postudate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
$thread['postutime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
editer search.php (pour l'affichage dans derniers messages)
chercher:
// build thread data
$thread = process_thread_array($thread, $lastread, $foruminfo['allowicons']);
$realthreadid = $thread['realthreadid'];
ajouter après:
$thread['postudate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline'], 1);
$thread['postutime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);
ensuite modifier le template threadbit
chercher
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
ajouter après
- $thread[postudate] $thread[postutime]
et voila !
http://img98.imageshack.us/img98/8139/fd7jk.jpg
Note Importante : j'ai changé le nom des éléments en postudate et postutime, car je me suis apperçu que ces noms (postdate et posttime) etaient déjà utilisés dans vBulletin ;)