Support Forum

Adding comments on buddypress activity as answers in simple press topics

YJ yann maitre-jean
yann maitre-jean
Member

Hello all!

 

Sorry for my bad english.

In my configuration, new topics and new post are in buddypress activity feed.

Is there a possibility, when anyone comment a post in bp activity feed, to add this comment as a topics response in forum?

 

Thank you!

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

no, not currently…  frankly, didnt even know you could comment on an activity stream… eek

and actually seems a bit odd – and would be difficult to add since bp comments on activity are threaded… they would end up being out of sequence within the forum topic (every comment would be added at the end and not with the original posting)…

YJ yann maitre-jean
yann maitre-jean
Member

Ok, thank you.

So, how to have, in bp activity stream, only “xxx created the topic… in forum…” and no the “description ” with read more link?

MP Mr Papa
Mr Papa
Member

not entirely sure what you are asking…  but will try…

if you only want new topics and not replies/posts, you can change that option in the forum – components – buddypress options panel…

if you want to change the content of the activity to be a link, I am not sure that is really feasible…  neither buddypress or our integration provide a filter for such an action…   buddypress does fire an action when the activity has been added (bp_activity_add) so you could hook in there, but then you would have to access the database and manually adjust the post content…

perhaps adding a filter on our integration plugin to allow changing of the activity data could be added in the future…

sorry…

YJ yann maitre-jean
yann maitre-jean
Member

Ok, thank you.

I just found a solution.

Simply comment the line 23 in sp-buddypress-activity.php

 

//$activity_content = addslashes($newpost[‘postcontent_unescaped’]);

MP Mr Papa
Mr Papa
Member

not really a “fix”…  you will lose those changes anytime we update the plugin (and some are planned)…   we dont advocate changing plugin core code anymore than you would change WordPress core code…  so just remember your change so you can remake it…