BuddyDev

Search

[Resolved] Mediapress has overwritten theme's link of BP activity posts

  • Participant
    Level: Master
    Posts: 496
    Daniel on #27114

    Hi guys,

    1. On my website, on the BP activity there is for each post stated “time-since” of the posting in green color. Normally, when somebody clicks the “time since” link in green color, he gets redirected to the activity.

    However, since I am using media press and somebody posts a photo and clicks on the “since time” he gets redirected to mediapress albums, means that mediapress has overwritten that link.

    Could you please help me to get this fixed in order that when clicking on the link always the user gets redirected to the activity and not to mediapress albums?

    2. When opening a picture in lightbox, then I see the whole history of the user wall on the right and I can scroll down, but I only would like to see that particular activity. Is there a way to only show this particular activity without wall history?

    Thank you for your assistance.

    Regards
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #27115
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #27124

    Hi Daniel,
    Thank you for the question.

    1. This is by design.

    Currently, you can disable it by using the following code.

    
    
    // disable MediaPress activity filtering.
    add_action( 'mpp_init', function () {
    
    	remove_filter( 'bp_activity_get_permalink', 'mpp_filter_activity_permalink', 10 );
    } );
    
    

    2. It is not history. It is the comment on that specific media. Currently, there is no way top disable that portion only. You can completely disable the light box from the settings though.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 496
    Daniel on #27136

    Hi Brajesh,

    Thanks for your update, sounds great.

    Just one question, can I just copy paste this code inside the child theme’s functions.php file?

    Thank you for the clarification.

    Have a nice day and regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #27139

    Hi Brajesh,

    I recognized that when I post a Youtube link and I write something in the activity above the Youtube link, I can edit the activity card at anytime, but when I post pictures throug MediaPress, then I cannot edit the card later because the “Edit” button doesn’t show.

    Might you know how I can enable editing when posting Mediapress pictures?

    Thanks for your info.

    Regards
    Daniel

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #27146

    Hi Daniel,
    1. You can put the code in your them,e(or child themes) functions.php
    2. You are most probably using a plugin for editing the activity(ours or others). None of the plugin support editing MediaPress activities.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 496
    Daniel on #27153

    Hi Brajesh,

    Thanks I could apply the code and it’s working 🙂

    Happy New Year 2020 !!!

    Regards
    Daniel

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #27158

    Hi Daniel,
    Thank you for the confirmation.

    Happy New Year 🙂

    Regards
    Brajesh

The topic ‘ [Resolved] Mediapress has overwritten theme's link of BP activity posts’ is closed to new replies.

This topic is: resolved