BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Xprofile Character Limit #51758

    Hi Joy,
    I am sorry to hear about that. We may provide some code but it will need you to specify field ids, will that be fine?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] TinyMCE and Buddypress bio #51757

    Hi Joy,
    Thank you for the question.

    There is no straight forward way to achieve it.
    The class BP_XProfile_Field_Type_WordPress_Biography does not offer any way to change the markup from text editor to use wp_editor instead.

    There are solutions like extending this class and overriding edit_field_html and then using the filter bp_xprofile_get_field_types to use the new class.

    Or, TinyMCE can be enabled using javascript.

    But the best way is to request BuddyPress team for it. They only need to do a minor change to make it work exactly like multi line text area and that would be better and maintainable approach.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddy blog pro #51756
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Activity Plus image clean up problem with re-poster. #51755

    Hi,
    I am sorry, I have been guilty of ignoring your post. Though the intention was always to look into the code and assist but as time passed, I just kept missing it.

    The problem you have mentioned is result of how Activity Plus works.

    1. When an activity is deleted, we delete all the media inside that activity.

    The real problem is Activity plus does not store any data about who uploaded a file. It uses activity id as the owner object to determine actions for embedded media.

    This is a problematic approach but we did not design this. We forked this plugin(when It was abandoned by WPMU Dev) to keep supporting the existing user base. Our plugin(MediaPress) handles this kind of situation a lot better as the media ownership information is available.

    Now, the question is:- Is it insecure. Probably not out of the box as users won’t be able to copy paste markup into the activity, so can not claim ownership over other’s media.

    But when you use a plugin like re-share, it can copy the content of the original post and which the current ownership check, It fails to detect the real owner.

    I am sorry but I do not see any solution unless the media is stored in wp attachment. But that will not happen as this is a plugin in long term maintenance and should not be used on new sites in favour of BuddyPress Attachment plugin.

    I had a look at the report plugin and I could not find a way to skip certain activity types. So, I will suggest moving to BP Attachment or MediaPress(temporarily as we are currently not sure about MediaPress’s future with BP Attachment).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Group Activities Notifier on my server #51754

    Hi Occhi,
    Thank you.
    In that case, probably this function

    
    bp_activity_get_activity_id()
    

    is failing. There is an easy solution though. Please allow me to find some time and push the release.

    I will post back by Monday or before with the update.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] BuddyBlog Pro – Post Visibility issues #51753

    Hi Tamar,
    Thank you.
    I am glad it worked as expected.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Peter,
    Thank you for the kind words. You are very generous!
    I am happy to be of assistance!

    I will let you know when we update Community builder for BP 12+ (currently works but needs BP Classic).

    Thank you for considering to renew your plugin purchase. You may renew it from the plugin page when your membership expires.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Featured member plugin – add extra filter option(s) #51742

    Hi Melanie,
    Hope you are doing well.

    I am sorry that we could not assist you earlier. Ravi had assigned it to me but I missed.

    First of all, I would like to clarify that your use case has no relation to Featured members. Are you able to achieve it for default BuddyBoss members directory? I don’t believe that the above snippet would work.

    You can limit/filter using ‘xprofile_query’ for profile fields. It works similar to the meta_query args in WP_Query.(e.g you can pass multi dimensional array of field, comparison operators,

    The problem is BuddyBoss does not support xprofile_query in the bp_has_members() (BuddyPress does). So your code needs fine tuning at 2 places.
    1. We will hook to bp_core_get_users() and
    2. we will update your function to use xprofile_query

    Here is the updated code from your example(Your first part is fine for adding filter, It is the logic part).

    
    // Function to modify the members query based on the selected filter
    function modify_members_query_for_only_a( $query_args ) {
    
    	$type = $query_args['type'];
    	if ( $type === 'only_a' ) {
    		$query_args['xprofile_query'] = array(
    			array(
    				'field'   => '1',
    				'compare' => 'RLIKE',
    				'value'   => '^a'
    			)
    		);
    		//$query_args['field_id'] = '1'; // Adjust 'field_1' to the actual first name field key
    		//$query_args['meta_value'] = 'A%';
    	}
    
    	return $query_args;
    }
    
    // Hook to apply the filter to the members query
    //add_filter( 'bp_after_has_members_parse_args', 'modify_members_query_for_only_a' );
    add_filter( 'bp_after_core_get_users_parse_args', 'modify_members_query_for_only_a' );
    
    

    I have left the old parts to show you the change.

    Please give it a try and let me know if it works for you or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi,
    Thank you for your patience.

    There is a possibility of adding limited support as wpDiscuzz is using WordPress comments internally.

    We can exclude the blocked users when a comment list is being fetched and the user will not see comments from the users they block.

    There are 2 issues though:-

    1. It will lead to a broken experience for comment(e.g missing context in threaded comments)
    2. I am not sure how the wpDiscuzz BuddyPress integration will behave as that is a paid plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddyblog Pro – add/remove visibility option #51740

    Hi Tosin,
    Thank you.

    I do not see a clean way to support custom visibility for posts, at least which are limited to a certain group of people. If we do so, we need to consider privacy in activity as well and BuddyPress lacks custom privacy.

    It is not difficult to limit a posts visibility to certain groups, It is the other consideration that complicate it.

    I am sorry but we do not plan to add any custom visibility in the plugin itself. Once BuddyPress adds follower support, we can supply you with some code to enable follower in the drop down. But marking a post as follower only will mean the activity entry for it will be set to hidden and I am not sure what will happen with the activity entry of blog comments for those posts.

    Regards
    Brajesh