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: 25331
    Brajesh Singh on in reply to: Share from within site to Buddypress #21847

    Hi Vivek,
    Thank you for the question. We don’t have any solution for it.

    I do recommend looking at imath’s implementation here

    https://github.com/imath/bp-reshare

    This should work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] Google Maps for Groups #21839

    Hi Val,
    My apologies for the delayed reply. We have moved our office and it delayed ur support for last 7-8 days.

    I am asking @ravisharma to look into it and get back to you today/tomorrow with updates.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Michaël,
    You don’t need to deactivate it for us.
    We do not do automatic upgrades. WE do provides you the option to one click update but the behaviour of automatic update is handled by WordPress.

    Are you getting all your plugins updated automatically? If yes, Please look at this

    https://codex.wordpress.org/Configuring_Automatic_Background_Updates

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: Enable threaded (nested) comments. #21836

    Marking closed as per the earlier message.

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Vivek,
    I am sorry, There was an issue with the previous code. It should be

    
    $redirect_to = bp_core_get_user_domain($user->ID ) .'profile/edit/group/2/';
    

    I had missed the last single quote.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Thank you for the patience.

    It is coming today or tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Yes. That means time limit will be for ever.

    Please allow me to ask one of my team members to write an addon for this. It makes more sense as a plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Thank you.

    We have two approaches.

    1. We can use a translation tool to replace ‘report’ with   or space and it will work.
    2. Or we can filter the button markup and update it

    
    
    /**
     * Filter Moderation button for activity/comment.
     *
     * @param string $button button markup.
     * @param array  $args args.
     *
     * @return string
     */
    function bpmts_custom_button_filter( $button, $args ) {
    
    	if ( ! isset( $args['item_type'] ) || ! in_array( $args['item_type'], array( 'bp_activity', 'bp_acomment' ) ) ) {
    		return $button;
    	}
    	$label = '<span>' . __( 'Report', 'buddypress-moderation-tools' ) . '</span>';
    
    	$use_bp_button_markup = $args['use_wrapper'];
    	$wrapper_tag          = $args['wrapper_tag'];
    	ob_start();
    
    	?>
    	<a href="#" data-item-id="<?php echo esc_attr( $args['item_id'] ); ?>"
    	   data-item-type="<?php echo esc_attr( $args['item_type'] ); ?>"
    	   data-context="<?php echo esc_attr( $args['context'] ); ?>"
    	   data-context-id="<?php echo esc_attr( $args['context_id'] ); ?>"
    	   class="bpmts-report-button <?php echo $args['link_class']; ?>"><?php echo $label; ?></a>
    
    	<?php
    	$button = ob_get_clean();
    	if ( $use_bp_button_markup ) {
    		$button = "<{$wrapper_tag} class='bpmts-moderation-button-wrap bpmts-type-{$args['item_type']}-button generic-button {$args['wrapper_class']}'>{$button}</{$wrapper_tag}>";
    	}
    
    	return $button;
    }
    
    add_filter( 'bpmts_report_button', 'bpmts_custom_button_filter', 10, 2 );
    
    

    You may put it in your child theme or bp-custom.php and then use css to hide the span wrapping the text.

    That should do it. Please give it a try and let me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Mic,
    Thank you.

    1. Can you please disable the Share plugin temporarily. It has incorrect markup and is leading the report button to the next line(we are putting lower priority to show the report button as last. That makes the button affected by other plugin’s issues).

    Please do and I will share some css. It is simple.

    Regards
    Brajesh