opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

add filter for user_ID in badgeos_bp_trigger_event #58

Closed cherbst closed 8 years ago

cherbst commented 8 years ago

I need this to implement the extension talked about in #57 . Besides, I think this is a good approach to make badgeos_bp_trigger_event more generic. Also lines https://github.com/opencredit/BadgeOS-Community-Add-on/blob/master/includes/rules-engine.php#L41:L47 could be rewritten using this filter.

tw2113 commented 8 years ago

Gonna leave open, but not merge in yet due to foremenetioned need to discuss things. Feel free to modify as necessary for your own usage at the moment.

cherbst commented 8 years ago

This would need modification after #59 is merged.

tw2113 commented 8 years ago

Added an almost matching version to the master branch. I changed the filter name a little bit.