Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Xarcell on March 07, 2011, 09:24:40 PM

Title: How To Make Grandchild Posts Show In Grandparents Stats
Post by: Xarcell on March 07, 2011, 09:24:40 PM
For SMF 2.0 RC5

Currently, there is an option to "Count child's posts in parent's totals".

While this works, it doesn't show in Grandparent's totals. I have some boards that are 4 children deep. How do I get all those posts show up in the grandparents totals? Is there a simple hack to do this?

Thanks.
Title: Re: How To Make Grandchild Posts Show In Grandparents Stats
Post by: Baby Daisy on March 07, 2011, 11:10:06 PM
Simple, no.
Title: Re: How To Make Grandchild Posts Show In Grandparents Stats
Post by: Xarcell on March 08, 2011, 12:03:18 AM
ok, what about a more complicated way then, lol?
Title: Re: How To Make Grandchild Posts Show In Grandparents Stats
Post by: live627 on March 08, 2011, 12:32:37 AM
You know that HUGE query in Subs-BoardIndex.php that gets executed when on a board index? It'll need modified to allow this. Oh, and it'll perform MUCH worse, too.

Question: Why? Why in the name of $deity should one make a hugely ugly query much slower?
Title: Re: How To Make Grandchild Posts Show In Grandparents Stats
Post by: Xarcell on March 08, 2011, 01:43:10 AM
Quote from: live627 on March 08, 2011, 12:32:37 AM
You know that HUGE query in Subs-BoardIndex.php that gets executed when on a board index? It'll need modified to allow this. Oh, and it'll perform MUCH worse, too.

Question: Why? Why in the name of $deity should one make a hugely ugly query much slower?

Ok, well I don't want to hurt the performance that much. I take your word for it.

Thanks live627, your a champ ;P

BTW, how's the portal coming along?
Title: Re: How To Make Grandchild Posts Show In Grandparents Stats
Post by: live627 on March 08, 2011, 01:55:11 AM
Er, which one? Doesn't matter -- the answer is the same for both.. Pretty much on hold... I have a paid project going on right now.