Since 4.0 and the BuddyPress addon, I’m trying to integrate BP even further with AnsPress. I managed to customize the text on BP activity stream, so that it pulls the title of the question like for regular posts.
Fred asked a new question 2 months ago“
The filter for achieving this is already working, so if you like the idea (@rahul?), I can push it to Github to be included in core.
If the team/Rahul prefers that the activity item stays the way it is, then I would like to know how to override buddypress.php because I can’t seem to find it in the templates folder as per instructed on this page. Is there a way to override this file?
Good week to you all!
Sorry for the late reply, I didn’t get a notification. I was quite busy anyway. I just started working on this again but I’m a bit stuck on the way to commit everything in a pull request. My customization is working great by:
- Modifying Anspress/addons/free/buddypress.php. I just change this to this.
- Then adding to bp-custom.php a filter for [Question] and [Answer] to replace it with the post title (see here for the filter).
Everything is working as intended but bp-custom.php is of course not part of AnsPress and is different for every website. When I try to insert my filter in Anspress/addons/free/buddypress.php, I get a blank page.
Any advice on how to be able to insert my filter in buddypress.php so that it works?
This is great, Fred. I was about to request this and found your question.
Please let us know when this has been committed.