Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2011, 02:45 AM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Thread/Post view counts are not increasing all stuck at 0 throughout the forum

None of the Views are increasing past couple of weeks
I was forced to open new thread as my earlier query was probably missed and this is an independent issue from what I faced earlier


https://vborg.vbsupport.ru/showthrea...=270286&page=2

already tried

1)Server Settings and Optimization Options -> Update Thread Views Immediately
No change

then i tried

2) Maintenance -> Repair / Optimize Tables -> threadviews table select

got this

threadviews Check Status: OK
threadviews Optimize Status: Table is already up to date
Reply With Quote
  #2  
Old 09-29-2011, 09:19 PM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can any one guide me ?
Reply With Quote
  #3  
Old 09-29-2011, 10:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about Maintenance > Update Counters > Rebuild Thread Information and then Rebuild Forum Information.
Reply With Quote
  #4  
Old 09-30-2011, 02:08 AM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
How about Maintenance > Update Counters > Rebuild Thread Information and then Rebuild Forum Information.
Thanks Lynne
I had already tried that in vain , in fact tried updating all counter
How does that number of view counter logic work ? is that a separate php file may be if i replace that particulate code or file it might stat working? just a thought
I have seen several people on the net with similar issue but no one has responded back how they finally got it fixed
any guidance trail error methods will be greatly appreciated
Reply With Quote
  #5  
Old 09-30-2011, 02:45 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rebuilding the thread information should have fixed the post count issue. The view issue though is just not something that can be fixed by running the counters. I have seen a query that basically just sets them to the post count + 2.
PHP Code:
UPDATE thread
SET views 
replycount 2
WHERE views 
replycount 
(only run after replycount is fixed)
Reply With Quote
  #6  
Old 09-30-2011, 03:19 PM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Rebuilding the thread information should have fixed the post count issue. The view issue though is just not something that can be fixed by running the counters. I have seen a query that basically just sets them to the post count + 2.
PHP Code:
UPDATE thread
SET views 
replycount 2
WHERE views 
replycount 
(only run after replycount is fixed)
Thanks for the response but i was looking for something else :erm:
May be I did not explain properly (attached image this time)
I dont have any issues with Thread Replies Or Post Replies - if i have 3 people reply on thread I see
Replies as 3
My original issue is the Number of times some one views a thread (this counter) i.e Thread views
is always " Views: 1 " its not changing at all

Also I am no expert kindly elaborately explain what I need to do step wise , I did not follow where you want me to put that code and what needs to be changed and its impacts

Reply With Quote
  #7  
Old 09-30-2011, 04:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And that query would change the Views to 6 for the thread that has "Replies: 3" It would not affect the others since Views > Replies.
Reply With Quote
  #8  
Old 09-30-2011, 10:37 PM
ppatil007 ppatil007 is offline
 
Join Date: Nov 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
And that query would change the Views to 6 for the thread that has "Replies: 3" It would not affect the others since Views > Replies.
Unfortunately your response is not very clear & too high level for me to understand
I just want the number of Views to work " Views: 1 "
as shown in the above screenshot it not working its stuck to "1" this should change as per the number of users entering the thread

I dont follow what you want me to do to fix the issue in both you earlier resonse ? what query are you talking about
where should I navigate and what should i fix ? please mention files names / locations

If i have interpreted correct you area asking me to make changes to some code logic in some xyz file

still your logic does not work in case no one replies
SET views = replycount * 2 = 0 which will equal 0 as reply might be 0 but views may be 1000 Views and Replies are independent they dont have any logic or realtionship

PLEASE PLEASE ready my question properly and respond in detail
Thanks for your time :up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04322 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete