Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4638

    Thank you for the kind words 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4636

    Hi Lee,
    for @mention, There is no direct way to identify. It is possible to do a search on the activity_content using

    
    bp_activity_find_mentions( $content)
    

    This function will return an array of mentioned user names or false if none found.

    Hope you can take from there.

    PS: Doing an search for mention on all activity will not be very efficient, I will recommed another approach(Like when the activity is created, check for mention and store a meta, then use this meta later).

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4635

    Thank you Lee. It is a pleasure to help 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] How to Identify a Group Post #4632

    Hi Lee,
    Thank you for posting.
    We can write a function like below to do check for ourself.

    
    function lee_is_group_activity( $activity = null ) {
    	
    	global $activities_template;
    	
    	if ( ! $activity ) {
    		$activity  = $activities_template->activity;
    	}
    	
    	if ( $activity && $activity->component == 'groups' && $activity->type == 'activity_update' ) {
    		return true;
    	}
    	
    	return false;
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Leigh,
    My apologies for missing your email.

    Can you please check 1.0.7 and let me know if it works for you or not? Since BuddyPress added header image support, I thought people will not need this plugin. Since I have got a few more messages related to this plugin, I will be supporting it in future

    https://buddydev.com/plugins/bp-custom-background-for-user-profile/

    Please let me know if it works for you or not? Also, If not, what are the problems you are facing?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Thank you.

    Will multi select/multiple checkbox work for you? Still, we can’t have multiple fields(using any existing solution as member types can be either set or appended and the plugin will not know whatto do, may override the other fields data).

    If multiple select does not work, I can suggest some other strategy.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Shortcodes in BP Activity Stream #4626

    Thank you.
    I am marking it as a resolved.

    PS: Please only mark a reply as private if it contains any sensitive information.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Corey,
    Thank you. I am glad I was able to help 🙂
    Marking this topic as resolved now.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Shortcodes in BP Activity Stream #4622

    Hi Carleton,
    Welcome to BuddyDev.

    The problem lies with the BuddyPress. It strips the shortcode while creating excerpt.

    Please put the following code in your bp-custom.php

    
    function buddydev_disable_shortcode_filtering_in_activity( $args ) {
    	
    	$args['filter_shortcodes'] =false;
    	
    	return $args;
    }
    add_filter( 'bp_after_create_excerpt_parse_args', 'buddydev_disable_shortcode_filtering_in_activity' );
    

    It will allow your users to post shortcodes in the activity stream. Please do let me know if it works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Corey,
    Please upgrade the message privacy plugin too
    https://buddydev.com/plugins/buddypress-message-privacy/

    Please let me know if this update solved your issue or not?

    Thank you
    Brajesh