vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   thread view is missing (https://vborg.vbsupport.ru/showthread.php?t=59753)

Dominick 01-05-2004 07:59 PM

thread view is missing
 
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)
PHP Code:

// *********************************************************************************
// 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

Quote:

Originally Posted by Dominick
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.


All times are GMT. The time now is 10:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01011 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete