• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Wrong topics and posts counting

Scheduled Pinned Locked Moved Technical Support
6 Posts 4 Posters 2.5k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • leksarL Offline
    leksarL Offline
    leksar
    wrote on last edited by leksar
    #1

    Hello.

    I have a category "Hafen" on my forum mtgm.ru and the counter says it's only 3 topics in there, but i also have a category histories which is subcategory of subcategory of hafen. And looks like nodebb doesn't see the connection between those two. The "last comment" section doesn't work with this subcategory too.

    pichaliteP 1 Reply Last reply
    0
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    replied to leksar on last edited by
    #2

    @leksar I think the topic/post counter only includes first level of subcategories.

    leksarL 1 Reply Last reply
    0
  • leksarL Offline
    leksarL Offline
    leksar
    replied to pichalite on last edited by
    #3

    @pichalite well, obviously. And it's just wrong if you ask me. Let's look another example
    JVP1VTV.png
    This is subcategory of main category. The counter says there is no topics, but it has a subcategory with 3 topic in there. So that counter is not working too. As a result, we went to the forum and see that it's empty even if we open category. In fact there are a lot of topics and posts. Is it right ? I don't think so.

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #4

    What version are you running?

    leksarL 1 Reply Last reply
    0
  • leksarL Offline
    leksarL Offline
    leksar
    replied to a_5mith on last edited by
    #5

    @a_5mith ubuntu 14.04 nodebb 0.7.2 redis 3:3.0.1-1chl1~trusty1

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #6

    Yeah the calculation doesn't work for subcategories, one reason is we don't have a recursive function to get all children and calculate the counts also we don't have a list of children category ids per category so without adding that this is difficult to achieve.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development