BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29450
  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29448

    It seems that the code completely delate the comments section. It wasn’t quite the point. I meant curl so that they were visible but only after clicking

    • This reply was modified 4 years, 7 months ago by rav.
  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29440

    Hello
    I also use a plugin to build a global activity stram BP Profile Activity Wall
    By Venutius. It’s a bit old but I don’t know an alternative to it. I thought maybe this is causing the problem but when turned off it is still the same.

  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29433

    I have tried something like this but it deletes comments (does not collapse) and the same stream posts are still loading

     
    function hide_comments(){
    
            if ( ! bp_is_activity_directory() ) {
    		return $r;
    	}
    
    	$r['display_comments'] = false;
    
    	return $r;
    }'
    
    add_action( 'bp_after_has_activities_parse_args', 'hide_comments');
    
    • This reply was modified 4 years, 7 months ago by rav.
  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29431

    Hi Ravi

    I added code into functions.php in my child theme.
    I’m trying to get the effect of hiding comments in a member’s activity
    I used the code you sent me a few messages earlier (yesterday).

    • This reply was modified 4 years, 7 months ago by rav.
  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29419

    Hello Brajesh Singh,
    I don’t use Youzer. I’m using the standard version of buddypress 5.2 with the Nouveau template

  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: hiding comments #29417

    Hello,
    Thank you for your response.
    Unfortunately, the code you have published does not work for me.
    Comments still show up after loading more posts.

  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: change the display location of the "what's new" form #27670
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: remove embedding videos #26802

    Hi @Brajesh Singh

    I tried the possibilities that I found on the web:

    wp_oembed_remove_provider ( ‘#http: // (www \.)? YouTube \ .com / watch. * and #’);
    wp_oembed_remove_provider ( ‘#https: // (www \.)? YouTube \ .com / watch. * and #’);
    wp_oembed_remove_provider ( ‘#http: // youtu \ .be /.*# I’);
    wp_oembed_remove_provider ( ‘#https: // youtu \ .be /.*# I’);

    Unfortunately it doesn’t work. Now, however, another question came to my mind.
    Can you change the embedding to display only image instead of video?
    Even for links from YouTube?

  • Participant
    Level: Enlightened
    Posts: 36
    rav on in reply to: Edit activity with the MediaPress graphic #26278

    Hi @Brajesh Singh

    Thank you for your answer.
    I am sorry but I have another question and please answer. When someone comments on a graphic placed in an activity stream, information appears, for example “rav commented on mercime’s photo”
    How do you turn off this notifications on your activity stream?