Quote:
Originally Posted by KevinL
Is there any way I can get this to show only whats going on in ONE thread each day? Kinda like a chat but from a thread? Kinda like live topic?
Some insight on this would be great!
Thanks
|
In
spy.php, change this:
PHP Code:
$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
$extra
ORDER BY dateline DESC
LIMIT 25
");
to this:
PHP Code:
$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
AND spy.threadid = 999999
$extra
ORDER BY dateline DESC
LIMIT 25
");
Basically just adding the
AND spy.threadid = 999999 part where 999999 is the threadid.