Forum Replies Created
-
In reply to: Edit activity content
I also tried this, but it isn’t working either
function mmAddLocationCategory($content, $activity_id) { $activities = bp_activity_get_specific('activity_ids=' . $activity_id); $activity = $activities['activities'][0]; if ($activity->type){ switch($activity->type){ case "bbp_topic_create": $content = $content . "<p class='activity-action'>" . $activity->action . "</p>"; break; case "updated_profile": $content = $content . '<div class="activity-inner"> <a href="' . bp_activity_user_link() . '">"' . $activity->display_name . '</a>   updated profile details.</div>'; break; case "joined_group": $content = $content . '<div class="activity-inner"> <p class="activity-action">' . $activity->action . '</p> </div>'; break; default: $content = $content . "<div class='activity-inner'>" . $activity->action . "</div>"; break; } } return $content; } add_action( 'bp_activity_posted_update', 'mmAddLocationCategory', 10, 3 );In reply to: Comments in activity feeed not workingIs there another way to change the activity cards? for example, modify the information in the activity header?
In reply to: Comments in activity feeed not workingExactly, I tried it and everything worked perfect
In reply to: Comments in activity feeed not workingSo that isn’t the problem because all the other changes in that file work perfectly. Maybe is this a problem in the theme?
In reply to: Comments in activity feeed not workingCan someone help me with this issue? I have no idea what is happening
In reply to: Comments in activity feeed not workingI tried changing to a WP theme and everything worked fine.
In this case, the parent theme does contain BP templates and I modified those files but is possible that everything else changes without any issue and only the comment button fails if the files aren’t in the right child theme folders for BP?In reply to: Add new activity types to directory navThanks @vapvarun, but I honestly can’t see the relation. Please could you explain me a little bit more this function?