Hi @alexsmoli,
you copy the original template file from:
buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php
to the child theme to get this:
your-child/buddypress/activity/entry.php
Reference
Theme Compatibility & Template Files
Hey @danbp thanks!
But it is not exactly what I was looking for…
Have a look here:
http://s2.postimg.org/976iqcmih/screenshot.png
It shows the spot in the activity stream behind the user name. This is the spot in the code which I’m looking for
The place in entry.php:35 is
<div class="activity-header">
<?php bp_activity_action(); ?>
</div>
The function bp_activity_action
is defined in bp_activity_action/bp-activity-template.php:1750
You’ll find many filters in bp_activity_action/bp_activity_actions.php
Line 288: function bp_activity_action_post_update() {
Line 369: add_action( ‘bp_actions’, ‘bp_activity_action_post_update’ );
Line 389: function bp_activity_action_post_comment() {
Line 433: add_action( ‘bp_actions’, ‘bp_activity_action_post_comment’ );
Line 452: function bp_activity_action_mark_favorite() {
Line 467: add_action( ‘bp_actions’, ‘bp_activity_action_mark_favorite’ );
Line 486: function bp_activity_action_remove_favorite() {
Line 501: add_action( ‘bp_actions’, ‘bp_activity_action_remove_favorite’ );
Line 515: function bp_activity_action_sitewide_feed() {
Line 533: add_action( ‘bp_actions’, ‘bp_activity_action_sitewide_feed’ );
Line 546: function bp_activity_action_personal_feed() {
Line 563: add_action( ‘bp_actions’, ‘bp_activity_action_personal_feed’ );
Line 579: function bp_activity_action_friends_feed() {
Line 596: add_action( ‘bp_actions’, ‘bp_activity_action_friends_feed’ );
Line 612: function bp_activity_action_my_groups_feed() {
Line 637: add_action( ‘bp_actions’, ‘bp_activity_action_my_groups_feed’ );
Line 651: function bp_activity_action_mentions_feed() {
Line 674: add_action( ‘bp_actions’, ‘bp_activity_action_mentions_feed’ );
Line 688: function bp_activity_action_favorites_feed() {
Line 709: add_action( ‘bp_actions’, ‘bp_activity_action_favorites_feed’ );
To be honest I am still very lost. I simply want to add something behind the username in the activity stream and can not find the line in the code where I should do that.
You will have to make a buddypress template folder in your theme/child.
“entry.php” is the file you can add an icon, right after the following code which is the username/link.
<a href="<?php bp_activity_user_link(); ?>">
Although this icon will appear after each member’s name and might look bad when all users have similar icon.