MyBB Community Forums

Full Version: Thred Visits Counter is counting 2x 1 visit. How can I fix it?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Like the title...
When I visit a thread the I refresjt the thread list, the number of visits on that thread it's increased by 2 visits. How do I fix it so that it will count normally???

I already did all the "Recount & Rebuild", "Rebuild Cache" & "Optimize Database" --> Didn't Work.

The are my Activated plugins:
DefaultEditor (1.0)
Akismet (1.2.1)
Default Post Style (1.0)


Can someone help me with this? Thanks
(2011-04-05, 01:37 PM)neo2504 Wrote: [ -> ]Like the title...
When I visit a thread the I refresjt the thread list, the number of visits on that thread it's increased by 2 visits. How do I fix it so that it will count normally???

I already did all the "Recount & Rebuild", "Rebuild Cache" & "Optimize Database" --> Didn't Work.

The are my Activated plugins:
DefaultEditor (1.0)
Akismet (1.2.1)
Default Post Style (1.0)


Can someone help me with this? Thanks
ACP> Tools and Maintenance > Recount and rebuild>

click go on option: Rebuild Thread Counters.

Open ./showthread.php and find; (around line # 596)
$db->shutdown_query("UPDATE ".TABLE_PREFIX."threads SET views=views+2 WHERE tid='{$tid}'");
and Change it to;
$db->shutdown_query("UPDATE ".TABLE_PREFIX."threads SET views=views+1 WHERE tid='{$tid}'");

Save the file.