Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add Icon behind User name in Activity Feed


  • alexs
    Participant

    @alexsmoli

    Hi guys,

    I’m looking, but I can not find the correct file/line to add a little icon behind the user names in the activity loop. Could you please direct me there.

    Thanks!
    Alex

Viewing 6 replies - 1 through 6 (of 6 total)

  • danbp
    Participant

    @danbp

    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


    alexs
    Participant

    @alexsmoli

    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


    danbp
    Participant

    @danbp

    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’ );


    alexs
    Participant

    @alexsmoli

    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.


    peter-hamilton
    Participant

    @peter-hamilton

    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(); ?>">


    peter-hamilton
    Participant

    @peter-hamilton

    Although this icon will appear after each member’s name and might look bad when all users have similar icon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add Icon behind User name in Activity Feed’ is closed to new replies.
Skip to toolbar