View Full Version : thread view is missing
Dominick
01-05-2004, 07:59 PM
forum display doesnt show how many users have viewed a thread. Anyone have a good starting point for me in troubleshooting t his?
Zachery
01-05-2004, 08:03 PM
if doesnt update right away for server issues, if were talking about vB3 to enable it try the ACP altho id suggest leaving it off
Gary King
01-06-2004, 12:44 AM
Wow that's strange, only some of your older threads have the views shown properly, but more recent ones don't. Maybe a hack you installed or something? Try thinking back :)
Dominick
01-06-2004, 01:18 AM
It has gotta be a hack. But I have installed too many to think about which it could be. What php file puts a dbase entry in for viewed thread's?
Gary King
01-06-2004, 07:33 PM
Find the following in your showthread.php (this code is where it inserts the number of views for the thread)// ************************************************** *******************************
// update views counter
if ($vboptions['threadviewslive'])
{
// doing it as they happen
$DB_site->shutdown_query("
UPDATE " . TABLE_PREFIX . "thread
SET views = views + 1
WHERE threadid = " . intval($threadinfo['threadid'])
);
}
else
{
// or doing it once an hour
$DB_site->shutdown_query("
INSERT INTO " . TABLE_PREFIX . "threadviews (threadid)
VALUES (" . intval($threadinfo['threadid']) . ')'
);
}
Dominick
01-07-2004, 09:50 PM
it is all intact.
the code is different from what you posted but the backup file and the main file match.
what line number was that in showthread. I am finding it in line 244
-Dom
Gary King
01-08-2004, 11:11 AM
it is all intact.
the code is different from what you posted but the backup file and the main file match.
what line number was that in showthread. I am finding it in line 244
-Dom
About line 436 for me.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.