} else {
$fim = "<img src='".get_image("folder")."' alt='".$locale['561']."' />";
}
$ttdata = dbarray(dbquery("
SELECT tt.forum_id, tt.thread_id, tt.thread_subject, tt.thread_lastpostid, tt.thread_lastuser,
u.user_id, u.user_name, u.user_status
FROM ".DB_THREADS." tt
LEFT JOIN ".DB_USERS." u ON tt.thread_lastuser = u.user_id
WHERE tt.forum_id='".$data['forum_id']."' AND tt.thread_hidden='0'
ORDER BY thread_lastpost DESC"
)
);
echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
$tsubject = "<a href='".FORUM."viewthread.php?thread_id=".$ttdata['thread_id']."&pid=".$ttdata['thread_lastpostid']."#post_".$ttdata['thread_lastpostid']."' title='".$ttdata['thread_subject']."'>".trimlink($ttdata['thread_subject'], 20)."</a>";
echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
echo "On ".$tsubject."<br />\n";
Quote
Skulz wrote:
It has some problems, it only works with old posts, writing a new one would cause this:
20-09-2013 00:33
On
by test
No thread name :|
Category Forum
Content Administration - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions