Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on March 11, 2019, 10:15:45 AM

Title: Count Child Child Boards Posts
Post by: vbgamer45 on March 11, 2019, 10:15:45 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4210)

Count Child Child Boards Posts

Counts n level child board posts, and shows the last post updated as well.
Adds a setting under Modification Settings for child board posts for max search depth. Will convert when upgraded to SMF 2.1

Note: This mod requires that [Count child's posts in parent's totals] from the boards settings has to be enabled


Tip and Trick Converted to Mod from RF-FH
https://www.simplemachines.org/community/index.php?topic=365862.msg3005499#msg3005499

License: BSD License
Title: Re: Count Child Child Boards Posts
Post by: -Rock Lee- on March 11, 2019, 12:48:53 PM
I do not quite understand ... I will have to install it in a test to find out :P. @vbgamer45 nice work!


Regards!
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on March 11, 2019, 12:51:12 PM
If you have  board then a child board then another child board.
And someone posts in the last child board. That post will now be visible on the board index and you can go deeper depending on the depth setting entered.
It is similar to the one in SMF 2.1.x
Title: Re: Count Child Child Boards Posts
Post by: -Rock Lee- on March 11, 2019, 05:19:03 PM
Now I understand thank you very much for the explanation :D


Regards!
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on March 11, 2019, 05:20:57 PM
Glad to help.
Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 10, 2019, 09:35:43 AM
Hi, I have just found this mod and it was exactly what I was looking for. I installed it, kinda works but there seems to be a problem. It shows more posts when in fact there are less posts. Not the number it shows. To better understand what I'm saying I  will attach some prints.

Currently the total number of topics and posts on my forum is 365 posts in 133 topics. But in the print you will see that there are 503 posts in 120 topics (there are not so many in that category, just 262 posts and 68 topics). Can you please explain and help me solve this issue ?
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on September 10, 2019, 09:40:29 AM
Do you have any unapproved posts?
How many posts does each subcategory have under it?
Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 10, 2019, 09:45:13 AM
Quote from: vbgamer45 on September 10, 2019, 09:40:29 AM
Do you have any unapproved posts?
How many posts does each subcategory have under it?

I don't have any unapproved posts, members cand post without approval from administration. I'll attach another print ! The total amount of posts and topics in that whole category is: 262 posts and 68 topics

Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 10, 2019, 04:39:39 PM
So can anyone help me with this one ?
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on September 10, 2019, 04:43:11 PM
Please give time. I haven't had any time to look in dept. Check back in a day or so.
I basically just ported the changes from 2.1 to 2.0
Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 10, 2019, 06:01:49 PM
Quote from: vbgamer45 on September 10, 2019, 04:43:11 PM
Please give time. I haven't had any time to look in dept. Check back in a day or so.
I basically just ported the changes from 2.1 to 2.0

Sure no problem, I just wanted to make sure if anyone is trying to figure something out. I'll wait for your response, thank you :)
Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 17, 2019, 03:47:47 AM
So is there any way to solve this ? Anyone ?
Title: Re: Count Child Child Boards Posts
Post by: Twix ! on September 26, 2019, 04:54:02 PM
Is someone actually going to help me solve this problem ? If nothing can be done just tell me, don't make me wait for nothing.
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on September 26, 2019, 05:00:11 PM
I don't think anything can be done.
Title: Re: Count Child Child Boards Posts
Post by: dalslandan on November 11, 2019, 04:40:00 PM
Thanks, mod works well on 2.0.15.

Mr Twix's issue doesn't make any sense to me.
My recommendation would have been to remove the mod, and if not fixed try checking the database manually to try clearing up where the numbers are not adding up.
Title: Re: Count Child Child Boards Posts
Post by: aegersz on November 18, 2019, 03:08:06 PM
The mod (i installed) says:

QuoteNote: This mod requires that [Count child's posts in parent's totals] from the boards settings has to be enabled

but where is that setting to be found, please ?
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on November 18, 2019, 03:28:00 PM
Admin -> Board Settings
Title: Re: Count Child Child Boards Posts
Post by: aegersz on November 18, 2019, 03:29:51 PM
Got it, thanks !
Title: Re: Count Child Child Boards Posts
Post by: Westwegoman on August 24, 2022, 09:01:21 PM
I installed this mod but it doesn't make the post of a child, child board show up in the "latest post" section on the forum home page.

I even set the level to 4 in the modification settings area to make sure I went down far enough.

Did I misinterpret what this mod does?
Title: Re: Count Child Child Boards Posts
Post by: vbgamer45 on August 24, 2022, 09:11:17 PM
It would appear in this area on the board index only.
Title: Re: Count Child Child Boards Posts
Post by: Westwegoman on August 24, 2022, 10:07:37 PM
Quote from: vbgamer45 on August 24, 2022, 09:11:17 PMIt would appear in this area on the board index only.

Ok. Thanks. I was thinking something different.