Announcement

Collapse
No announcement yet.

CMS Articles Unmatched Number of Commenents

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Morrus
    replied
    We have a new 4.2.0 upgrade, and we're having exactly the same problem with thread promotions. Comment count on CMS page does not match comment count when you click through. Yes, all options were selected correctly as above. The above file edit solved the problem perfectly.

    Leave a comment:


  • Robbed
    replied
    I opened a new bug but it was closed.

    It's still in pettition to reopen.

    http://tracker.vbulletin.com/browse/VBIV-14568

    Sebastiano Vassellatti added a comment - 11/Jul/12 02:35 PM

    This bug is in Petition to Reopen status and it will be reopened when the Petition to Reopen queue is reviewed. It is not necessary to create another issue.

    Hopefully it will be fixed for the next update.

    Leave a comment:


  • Zachery
    replied
    Originally posted by Robbed View Post
    VB 4.2.0 as well

    look for line 563 that shows

    vB_Cache::instance()->write($hashkey, $count['comment_count'], 1440,

    change to

    vB_Cache::instance()->write($hashkey, $count, 1440,

    line 565 find

    return $count['comment_count'];

    change to

    return $count;

    Clear system cache under maintenance and it worked for me.
    You should report this as a bug, if you haven't already.

    Leave a comment:


  • silynnie
    replied
    thanks got it works great

    Leave a comment:


  • silynnie
    replied
    I dont understand where do I change these file sguys, in the style and templates ?

    Leave a comment:


  • Farshid.T
    replied
    That worked!

    I was looking at content.php instead of /content/article.php.

    Thanks a lot.

    Leave a comment:


  • Robbed
    replied
    VB 4.2.0 as well

    look for line 563 that shows

    vB_Cache::instance()->write($hashkey, $count['comment_count'], 1440,

    change to

    vB_Cache::instance()->write($hashkey, $count, 1440,

    line 565 find

    return $count['comment_count'];

    change to

    return $count;

    Clear system cache under maintenance and it worked for me.

    Leave a comment:


  • Farshid.T
    replied
    Originally posted by Robbed View Post
    Made these 2 changes and cleared system cache and it works now.

    fix was in bug report

    His quick fix was to edit the function getReplyCount in packages/vbcms/item/content/article.php and change the return value $count['comment_count'] to just $count as $count appears to be an integer

    diff:

    563c563
    < vB_Cache::instance()->write($hashkey, $count['comment_count'], 1440,

    > vB_Cache::instance()->write($hashkey, $count, 1440,
    565c565
    < return $count['comment_count'];

    > return $count;
    I'm using vB 4.2.0 and the implementation of getReplyCount function is different.
    Code:
    	public function getReplyCount()
    	{
    		$this->Load();
    		return $this->replycount;
    	}
    What version are you using?

    Leave a comment:


  • Robbed
    replied
    Same problem all promoted articles display 1 comments when that's not the case

    http://tracker.vbulletin.com/browse/VBIV-14568 - this was closed but the issue isn't fixed.

    - - - Updated - - -

    Made these 2 changes and cleared system cache and it works now.

    fix was in bug report

    His quick fix was to edit the function getReplyCount in packages/vbcms/item/content/article.php and change the return value $count['comment_count'] to just $count as $count appears to be an integer

    diff:

    563c563
    < vB_Cache::instance()->write($hashkey, $count['comment_count'], 1440,

    > vB_Cache::instance()->write($hashkey, $count, 1440,
    565c565
    < return $count['comment_count'];

    > return $count;

    Leave a comment:


  • Farshid.T
    replied
    I have the same problem.
    Counter on the article preview and above article page defers from the counter below article page.

    This happens for some articles only. All Comments option is enabled and the original thread is promoted once only.

    - - - Updated - - -

    More details:
    {vb:raw comment_count} returns the wrong value at vbcms_content_article_preview and vbcms_content_article_page.

    Only the comment counter in {vb:raw comment_block} has the correct number of comments.

    The strange part is that the counter may be correct for few hours or a day but changes to 1 afterward. :-s

    Leave a comment:


  • silynnie
    replied
    Yes I did, select yes for all comments, its just showing the wrong number of comments

    Leave a comment:


  • Lynne
    replied
    Did you promote this article from a thread? On that promotion page is an option on whether to count the comments from the beginning or only since promoting that thread - did you select Yes for All Comments? https://www.vbulletin.com/forum/entr...ost-as-article

    Leave a comment:


  • silynnie
    started a topic [CMS] CMS Articles Unmatched Number of Commenents

    CMS Articles Unmatched Number of Commenents

    I have normally just had my forums as the main page but recenly installed the CMS and inherited some articles from my forum to the CMS.

    All of the Articles have the wrong number of comments attched.

    Click image for larger version

Name:	1.jpg
Views:	1
Size:	32.3 KB
ID:	3723998 This article shows 5 comments but.



    On when you click on the article is actually has 54 comments:

    Click image for larger version

Name:	2.jpg
Views:	1
Size:	33.2 KB
ID:	3723999

    This is on all of my CMS articles:


    I.E On the main page Admins adsense method shows 1 comment: but when I open up the article it actually has 112 Comments ?

    How can this be updated so it is showig the actualy number of comments on the articles ?

    I have also run a few maintance updates with no success.

    Regards Si
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X