GatherPress / gatherpress-buddypress

GNU General Public License v2.0
0 stars 0 forks source link

Adding an event should behave like adding a post for BuddyPress Activity #1

Open patriciabt opened 4 months ago

patriciabt commented 4 months ago

Is your enhancement related to a problem? Please describe.

When we add a post in a site which has BuddyPress activated, an entry goes into that person's Activity. Same when we comment on that post.

It should be then same when we add an event on GatherPress, or add a comment to an event, so GatherPress would be compatible with BuddyPress. It should look for the BuddyPress settings about posts and comments (see capture) and behave the same.

It will be essential for the .org integration so adding events are listed on our user profiles. And maybe the same when someone is added as a speaker for a specific event, once we have that feature.

I have no idea how it works and will leave that to developers :D

Designs

Here are the BuddyPress settings and the resulting Activity entry (with my post called "Adding a post goes to Activity" :)

image

image

Describe alternatives you've considered

No response

Code of Conduct

carstingaxion commented 4 months ago

I never worked with BuddyPress, but made a fast search and would say, the docs are understandable and clear on how to add custom activities. That should be easy to implement for GatherPress.

https://codex.buddypress.org/plugindev/post-types-activities/

Not, that I want to immediately start working on this, but I would suggest a separate plugin a la gatherpress-with-buddypress to bundle all code relevant to that plugin. This makes it reusable for people outside of dotorg and should be also easy to combine into a specific gatherpress-dotorg-compatibility plugin later on for our use-case.

carstingaxion commented 3 months ago

Try this as a starting-point in wp-content/mu-plugins:

<?php
/*
Plugin Name: Buddypress & GatherPress
Description: Integrate into Post Types Activities
*/

add_post_type_support( 'gatherpress_event', 'buddypress-activity' );