28.06.2007, 14:22
Eine neue Erweiterung wurde veröffentlicht: Thread Viewer
Zitat:Show any member that visit current thread in the bottom of any thread.
Zitat:Show any member that visit current thread in the bottom of any thread.
$query=$db->query("SELECT uid FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid");
$userlist='';
while($record=$db->fetch_array($query))
{
$user=$db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid=".$record['uid']);
$r=$db->fetch_array($user);
$userlist.=$sep."<a href=\"member.php?action=profile&uid=$r[uid]\">".
(format_name($r[username], $r['usergroup'], $r['displaygroup']))."</a>";
$sep=' , ';
}
$query=$db->query("SELECT uid, time FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid");
$userlist='';
while($record=$db->fetch_array($query))
{
$user=$db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid=".$record['uid']);
$r=$db->fetch_array($user);
$userlist.=$sep."<a href=\"member.php?action=profile&uid=$r[uid]\">".
(format_name($r[username], $r['usergroup'], $r['displaygroup']))."</a> (".my_date($mybb->settings['timeformat'], $record['time']).")";
$sep=' , ';
}
Susanne schrieb:Super! Vielen Dank! Ich habe nur "['timeformat']," in "['dateformat']," verändert.Ich dachte du wolltest die Zeit und nicht das Datum?
ORDER BY u.lastactive DESC
$query=$db->query("SELECT uid FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid");
$query=$db->query("SELECT uid, time FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid");
$query=$db->query("SELECT uid FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid ORDER BY time DESC");
$query=$db->query("SELECT uid, time FROM ".TABLE_PREFIX."threadviewer WHERE tid=$tid ORDER BY time DESC");