Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Stream member links modification

  • @navinachettri

    Participant

    Hi

    I want to change the link to the activity stream member links. My project involves linking some of the profiles to an external site.

    Can someone guide me which core files lines I need modify?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • @modemlooper

    Moderator

    the file entry.php is an individual activity item.

    How to override bp templates https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    @navinachettri

    Participant

    Thanks @modemlooper

    Understood those two.

    Can you help me achieve the task that I am set out to do i.e. have certain users (say depending on member types) links to external site rather than their buddypress profiles

    It seems that I need to modify bp_activity_action() to modify the links. Apparently this function is defined at bp-activity-template.php (which is not a template file). But this function seems to echo bp_get_activity_action() function taking some array of arguments. And I get lost after that….don’t know really what to do.

    I really could use your help here

    @modemlooper

    Moderator

    The action is hardcoded, there are a few different functions for linking to profiles, this filter will change profile links but there may be links not using bp_core_get_user_domain.

    apply_filters( ‘bp_core_get_user_domain’, $domain, $user_id, $user_nicename, $user_login );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activity Stream member links modification’ is closed to new replies.
Skip to toolbar