BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Stephanie ,
    Thank you for the assistance. I am currently testing it and I will have an update by the day end today.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: BuddyBlog Pro Problem – Images Not Uploading. #53375
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Hide Leave Group button #53374

    Hi,
    Welcome to BuddydDev support forums.

    I am sorry, that code will not work with BuddyBoss. They have additional customization on buttons. It is very much intertwined with their experience.

    I will suggest reaching out to BuddyBoss support for the same to see if they can assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: [Resolved] Anonymous plugin – bugs #53373

    Hi Katrin,
    I am sorry. You are right about the issue it caused.

    At the moment, BuddyPress does not provide the ability to remove the link. There is a filter bp_activity_permalink but if I return empty , It will leave an orphan anchor element in the activity.

    The other solution is to remove the above code and inject a css class using the following code

    
    add_filter( 'bp_get_activity_css_class', function ( $class ) {
    	$activity_id = bp_get_activity_id();
    	if ( ! $activity_id ) {
    		return $class;
    	}
    
    	if ( function_exists( 'bp_is_anonymous_activity' ) && bp_is_anonymous_activity( $activity_id ) ) {
    		$class = $class . ' is-anonymous-activity';
    	}
    
    	return $class;
    } );
    

    Then we can add the folloowing css in custom styles to hide the link.

    
    
    .is-anonymous-activity .activity-header .activity-time-since{ display:none !important;}
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Kevin,
    Welcome to BuddyDev.

    You need to update your code for filtering.
    There is a problem with this.

    
    add_filter('bp_core_current_time','set_gmt');
    function set_gmt ($type,$gmt) {
    	return current_time($type='mysql',$gmt=true);
    }
    

    It should be

    
    add_filter('bp_core_current_time','set_gmt');
    function set_gmt ($time) {
    	return current_time('mysql', false );
    }
    

    and even better(prefixing function to avoid conflict)

    
    add_filter('bp_core_current_time','kevin_set_current_time_local_tz');
    function kevin_set_current_time_local_tz ($time) {
    	return current_time('mysql',false);
    }
    
    

    Please give it a try.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi,
    Welcome to BuddyDev support forums.

    I am sorry, I do not understand your question. You do not need to update js code for the select2 js. You can select and enable select2 from the right side box of the profile field creation/edit page as shown below.

    https://i.ibb.co/db1xz2p/Selection-358.png

    Please help me understand the issue a little better if I am missing something.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Anonymous plugin – rtMedia issue #53370

    Hi Katrine,
    Thank you for trying MediaPress.

    The problem with upload is it needs to be associated with a user. Irrespective of the plugin, the uploads belong to some person and the current implementation of the plugins(RT Media or MediaPress) does not allow showing it without that user references.

    This is going to be huge issue with user experience to enable/disable anonymous activity for media(as it is currently implemented). I will need a few days before sharing the status about achieving it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Kim,
    Thank you for the question.

    Please link me to the post and also provide the name used for the member type(It should be in lowercase, unique identifier of the member type).

    I will be glad to assist further.

    Regards
    Brajehs

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: BuddyBlog Pro error, #53368

    Hi,
    Thank you for reporting the issue.

    I am sorry about it. In recent version of BuddyBoss, the blogs component has been removed from components screen and is enabled from activity settings, That seems to be the issue.

    For a temporary solution, Please visit Dashboard->BuddyBoss->Settings->Activity->Posts in Activity Feeds and enable it for WordPress posts. That will fix it.

    We will update the plugin to ensure that it checks for the state of blogs component before registering activity type.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: [Resolved] Anonymous plugin – bugs #53344

    Hi Katrine,
    Thank you. I am glad the first part did work.

    You may use this code to disable the view discussion for single activity for anonymous activity.

    
    
    /**
     * Disables the view discussion for anonymous activity.
     */
    add_filter( 'bp_activity_permalink', function ( $link, $activity ) {
    
    	if ( function_exists( 'bp_is_anonymous_activity' ) && bp_is_anonymous_activity( $activity->id ) ) {
    		return '';
    	}
    
    	return $link;
    }, 20, 2 );
    
    

    Hope that helps.

    Regards
    Brajesh