PDA


View Full Version : (3.5) - vBa 2.0 - New Posts counts ALL posts


kall
07-13-2005, 05:31 AM
I am using database-style read marking.

Apparently there have been 21,245 posts since my last visit.

'sup?

Zachery
07-13-2005, 09:11 AM
In modules/welcomeblock.php

Find


$getnewposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= '$vbulletin->userinfo[lastvisit]'");
Change it too

$getnewposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= '{$vbulletin->userinfo[lastvisit]}'");


Save and let me know.

kall
07-13-2005, 06:05 PM
*thumbsup*

That did the trick. :)

Kaelon
07-19-2005, 01:57 AM
Excellent. This should be fixed in the stock distribution, shouldn't it?

XtremeOffroad
08-16-2005, 02:41 AM
I was having the same prob, Thanks for the fix.

Basscat
09-01-2005, 06:44 PM
Same problem here! Thanks