Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Sir Osis of Liver on October 07, 2019, 09:46:11 PM

Title: Child board posts not counted
Post by: Sir Osis of Liver on October 07, 2019, 09:46:11 PM
One of my regulars just came up with a glitch I've never seen before.  She has a parent board with two child boards, parent is empty, no messages.  When you post in either child board, it posts normally, but isn't added to post count and doesn't show up as latest post.  Is this intentional?
Title: Re: Child board posts not counted
Post by: Antechinus on October 07, 2019, 10:00:03 PM
Yes. It's a performance thing. Gets to be a bit heavy on large sites. There's a setting in admin if you want them counted.
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 07, 2019, 10:30:45 PM
Unless I've missed one, all settings are correct.  If I post test message in parent, child posts are counted and displayed as last post.  If I empty parent, they're not counted and not shown as last post.
Title: Re: Child board posts not counted
Post by: Antechinus on October 07, 2019, 11:26:21 PM
Must admit I've never tried it with an empty parent.
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 07, 2019, 11:31:29 PM
She's using it basically as a title over child forums on board index.  Told her to post something in it, some inroductory info or brief description, that should fix it.
Title: Re: Child board posts not counted
Post by: Arantor on October 08, 2019, 02:12:11 AM
There is a setting in the Manage Boards > Settings page to count child topics, but this only covers one level deep. Any deeper (parent > child > child) isn't ever counted for board index.

You do not need to add a topic to the parent board if there is a single level of child present.
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 08, 2019, 02:25:18 PM
Quote from: Arantor on October 08, 2019, 02:12:11 AM
You do not need to add a topic to the parent board if there is a single level of child present.

"Count child's posts in parent's totals" is checked.  These are second level child boards, posts are only counted if there's a topic in the second level parent.
Title: Re: Child board posts not counted
Post by: Illori on October 08, 2019, 02:29:49 PM
what do you mean by second level child boards?

like

parent board
-> child board
--> grandchild board

if they are grandchild level they are not counted by default. there is a mod that can add this feature though.
Title: Re: Child board posts not counted
Post by: vbgamer45 on October 08, 2019, 04:01:51 PM
Here is the mod by the way https://custom.simplemachines.org/mods/index.php?mod=4210
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 08, 2019, 05:56:42 PM
I'll have to check it again, but main complaint was that grandchild posts are not displayed as latest post if child board is empty, but they are if child has a topic with one post.  You can see the setup here (https://ebook-mecca.com/index.php?PHPSESSID=ga7nks93g0l4nabhn3rlk4hht1&board=82.0).  She's been tinkering with it, will see if I can replicate on test install.
Title: Re: Child board posts not counted
Post by: Kindred on October 09, 2019, 07:24:50 AM
grandchild posts should never show up period - neither in post count, nor in "last post".
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 09, 2019, 12:23:32 PM
The mod works on test install, but not on client forum, she already had it installed.  Will have to uninstall it manually and reinstall, see if that fixes it.
Title: Re: Child board posts not counted
Post by: Kathryn_ on October 14, 2019, 01:54:24 PM
That's exactly what I did I uninstalled and then deleted the last installation then downloaded the mod and reinstalled. I did see that someone said grandchild boards are not counted ,period. I get it...but I am not going to redo the forum..so It will have to stay this way... :) 
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 14, 2019, 09:46:32 PM
Grandchild posts are counted if the mod installs correctly.  You have TCB running, but don't think that should conflict with post count mod. Will try it on test install.

The two mods play nice together on test install.  Just checked your forum, posts in grandchild boards are being counted.
Title: Re: Child board posts not counted
Post by: Kathryn_ on October 15, 2019, 02:00:22 PM
ok ...well i made an intro now I am working on a bigger problem  :)
Title: Re: Child board posts not counted
Post by: Arantor on October 15, 2019, 02:03:02 PM
If it's the newer version of TCB, it definitely will conflict, to the point of breaking the sub-sub-board counting. Personally I'd argue that unless your forum is in the tens of millions of posts, you probably don't need sub-sub-boards...
Title: Re: Child board posts not counted
Post by: Kathryn_ on October 15, 2019, 02:23:16 PM
Oh well is there a setting I am missing to not have subforums on the index at all? Seems I went  through it and can't find a setting for it
Title: Re: Child board posts not counted
Post by: Arantor on October 15, 2019, 02:38:27 PM
No, but the problem with counting isn't subforums, it's subforums-of-subforums. TCB doesn't break that IIRC but it's been so long I don't remember any more.
Title: Re: Child board posts not counted
Post by: Sir Osis of Liver on October 15, 2019, 04:10:19 PM
TCB version 2 works fine with the child child count mod on my install, grandchild posts are counted.
Title: Re: Child board posts not counted
Post by: Arantor on October 15, 2019, 04:10:50 PM
Huh, I assumed the way I wrote it would have broken that, but neat, good to know.