Hey BOP,
I was looking for a way to do this for my product site and found your mod. I was sort of confused by the code so I ended up writing my own plugins, but seeing as this mod came from 3.x, the code might just be a little out of date. Anyway, below is how I did it. It requires three plugins and does not need a post in the master forum; it also displays the post counts correctly etc.
hook: forumdisplay_start
PHP Code:
if (in_array($foruminfo['forumid'], $masterForums)) {
// *Tell* the forum it will contain threads! >=)
$foruminfo['cancontainthreads'] = true;
}
hook: forumdisplay_query_threadscount
PHP Code:
if (in_array($foruminfo['forumid'], $masterForums)) {
$childForums = implode(', ', $foruminfo['childlist']);
// Add an OR IN(children) condition and the default thread count query ones.
$hook_query_where .= "OR forumid IN($childForums)
AND sticky = 0
$prefix_filter
$visiblethreads
$globalignore
$limitothers
$datecut";
}
hook: forumdisplay_query_threadid
PHP Code:
if (in_array($foruminfo['forumid'], $masterForums)) {
$childForums = implode(', ', $foruminfo['childlist']);
// Same deal for the thread id query.
$hook_query_where .= "OR forumid IN($childForums)
AND sticky = 0
$prefix_filter
$visiblethreads
$globalignore
$limitothers
$datecut";
}
Here it is in action. Hope you found this useful!