Quote:
Originally posted by gopherhockey
Anything related to the post count. Post counts still increase. A user will still see hundreds or thousands of new posts since they last visited. The problem is, with all the edits above they are confused when they see XX posts since they last visited, click on view new posts since last online and get the "sorry, there are no new posts since you last visited" message.
Can anyone provide this missing link?
|
By default vb does not tell user there is XX posts since their last visit so I guess what you are asking is to hack Welcome Panel or a similiar hack that displays this info?
If this is welcome panel hack, the solution that ignores your forum in the query above will work for this hack too. So in index.php find,
PHP Code:
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
And replace it as:
PHP Code:
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]' AND forumid!=X");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]' AND forumid!=X");
Enjoy..