Plugin Author
r-a-y
(@r-a-y)
How are you creating group subforums?
I don’t think group subforums are officially supported in the BuddyPress module of bbPress yet.
Hi,
you are right – they are not officialy supported. However, they do work very well. The only thing is that you have to create them in the backend, as the frontend has no options to create subforums.
I use my buddypress installation as a workspace for cultural associations – they need these feature as groupforums have a lot of threads. The admins do create these subforums for the group owners.
There is only one minor issue with subforums: When registering an activity, bbpress cant find the group the subforum belongs to. Therefore it publishes activity in the sitewide activity stream instead of the group’s activity stream.
In detail, the bbpress activity hook looks for the groupid which the forumid belongs to. As it cant find a groupid for the sub-forumid, it thinks that it is a normal forum , not a group forum. I fixed the code to check also the parent forum and parent-parent-forum, if they do belong to a group. If there is a group, it knows that it is a group forum.
I have published the (rather small, but not very elegant) fix here: https://bbpress.trac.wordpress.org/ticket/2191
Plugin Author
r-a-y
(@r-a-y)
The fix I originally added was because bbPress did not save complete activity items into the database. It would save an initial activity item and update it later. This does not gel with GES.
This might have changed in subsequent new releases of bbPress. I need to test this.
—
I have published the (rather small, but not very elegant) fix here: https://bbpress.trac.wordpress.org/ticket/2191
Yeah, your code doesn’t look very nice because of the various parent forum ID lookups. Perhaps bbPress needs a better function to grab all parent forum IDs instead?
Yes, if bbpress would have a a better found to grab all parent forum IDs instead, it would be better. I would do it but my knowledge of the wordpress framekwork is to minor…
Its a pity: The feature is there and it works. But as it seems bbpress authors are not interested in fixing that little bug, as the feautre is not officialy supported. And the subforum fix is not in the roadmap either… However, its there and people use it – even though its not supported…
Apologies for this being unrelated to the OP issue, but I just wanted to say ‘thank you’ to @freiwerk for the code referenced above in /ticket/2191. I have been looking for literally days trying to find a way or workaround to get group subforums to post to the respective Group Activity stream.
I just needed to ask Google the question in a different way. 🙂
Note: I would agree with the sentiment that it’s a shame that this excellent feature is not officially supported.
Thanks!