Extension will be nice. It will allow setting of TimeSpan interval, option for excluding closed topics and optionally filtering out selected forums.
For example my forum has a General category, which I'm not interested to read frequently. I need to see only my specified categories in New Posts and Active Discussions.
In details I want New Posts to show posts only from Category #3.
First I added to the request 'show_new' at line 450
'WHERE' => 'f.cat_id=3 AND (fp.read_forum IS NULL OR fp.read_forum=1) AND t.last_post>'.$forum_user['last_visit'].' AND t.moved_to IS NULL',
It works for "New Posts" link that is below the forum nav menu bar but it breaks the New posts link that appear next to the forum title for the forums in other categories.
So my second attempt is to change line 454 to:
if ($value == -1)
$query['WHERE'] .= ' AND f.cat_id=3';
$query['WHERE'] .= ' AND f.id='.$value;
Actually I'm not sure what exactly $value is when searching new posts. I only suppose that $value == -1 when using the top link and $value is the number of the forum when we use the forum link.
Is this correct?
Using PunBB since 2006 at Forex Forum