Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to show the total number of discussions/comments ~including~ sub-categories

Hi,

I've searched quite a lot, but couldn't find anything to fix this.

In the /categories/ views the X discussions, Y comments counter only show numbers of the first level -- everyone expect to have a total sum of all nested categories within. Atm it may even show "0 discussions 0 comments", altough there are plenty of comments within subcategories. Example: http://forum.eslgaming.com/categories/callofduty -- 0 for "Recruitment", but going into it, there are comments in
http://forum.eslgaming.com/categories/call-of-duty-recruitment

Anyway to change this behaviour?

Thanks!

//jp

Answers

  • Options
    peregrineperegrine MVP
    edited December 2014

    I don't know if your counts are off because they are not updated, or because of the way you set things up.

    look at this and see if that fixes your issue. reset counters.

    http://vanillaforums.org/discussion/comment/219686/#Comment_219686

    if it doesn't fix your issue...

    otherwise post your config.php (remove sensitive data, passwords, email, keys, etc).

    so we can emulate and arrive at a solution possibly.

    FWIW - child category count is reflected in parent on my test forum. In other words if I add a discussion to child category the discussion count is added to the parent as well.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Hi,

    first, thanks for your answer!

    @topic: Re-Calc did not fix the issue.

    My config.php:
    http://pastebin.com/0VLUkgUH

  • Options
    peregrineperegrine MVP
    edited December 2014

    your version in config is 2.1b3 - is that just a remnant?

    are you using vanilla 2.1.6

    when you say re-Calc - do you mean dba/counts

    if you disable the ExcludeCategories, does it fix your counts?

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    edited January 2015

    Hi,

    again, thanks for your help!

    -Version: I'm running 2.1.6, but the index.php, so was the version string in cfg. All updated now.

    -re-Calc: Yes, I ran dba/counts ( and /utility/update and /utility/structure )

    -ExcludeCategories: Disabled

    Tried everything, still wrong/bugged comments counts. :-(

Sign In or Register to comment.