Quote:
Originally Posted by TTG
Great hack .. clicked install.
How can I exclude certain forum ID's from being shown on the updated list.
I have 4 categorys that provide RSS news feeds and don't want those to appear.
|
Edit /includes/cron/detailedlatestposts.php and add the following...
PHP Code:
and
f.forumid not in (1, 2, 3, 4)
...so that it reads...
PHP Code:
$dlp_query = "
select
t.threadid,
t.title as threadtitle,
f.forumid,
f.title as forumtitle,
t.postuserid,
t.postusername,
p.username,
t.replycount,
t.views
from
" . TABLE_PREFIX . "thread as t
left join " . TABLE_PREFIX . "forum as f on f.forumid = t.forumid
left join " . TABLE_PREFIX . "post as p on p.dateline = t.lastpost and p.threadid = t.threadid
left join " . TABLE_PREFIX . "deletionlog AS d ON d.primaryid = t.threadid and d.type = 'thread'
where
t.open = '1'
and
t.visible = '1'
and
d.primaryid is null
and
f.forumid not in (1, 2, 3, 4)
order by
t.lastpost desc
limit $dlp_limit
";
...replacing 1, 2, 3, and 4 with your four values. Let me know if this does not do the trick.
[EDIT]
Just make sure that whatever ID''syou use are for the forums the posts directly reside in, and not a parent forum, or one that is marked as no-post.