Quote:
Originally Posted by boochaka
To fix the read/unread status of the latest posts change:
< $readtime = $vbulletin->userinfo['lastvisit'];
< if ($vbulletin->userinfo['userid']) {
< $is_new = $vbulletin->db->query_read("SELECT readtime FROM threadread where userid = " .
< $vbulletin->userinfo['userid'] .
< " AND threadid = " .
< $get_new_posts[threadid]);
< while ($times = $vbulletin->db->fetch_array($is_new)) {
< $readtime = $times['readtime'];
< break;
< }
< }
<
< if ($get_new_posts[lastpost] > $readtime)
---
> if ($get_new_posts[lastpost] > $vbulletin->userinfo['lastvisit'])
This changes it from comparing 'last visit' to the actual last time the user read the thread.
beware, I have no idea what kind of performance impact this may cause.
|
On my db it's allready if ($get_new_posts[lastpost] > $vbulletin->userinfo['lastvisit'])
but still When I go to a thread it does not mark it as read.. How can I fix this? Please
Although I select Admin CP -> Settings -> Options -> General Settings -> Thread/Forum Read Marking Type: Change it to Database (automatic forum marking). Still have the problem?