BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: [Resolved] BUDDYBLOG REDIRECT #40627

    Just a quick reminder the redirect should only occur when a post has been successfully PUBLISHED, no redirect should occur when a post is saved as a DRAFT

    Hope to see this feature soon

    Thanks

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: [Resolved] BUDDYBLOG REDIRECT #40596

    Thanks

    Will it be possible to change the redirect to first and subsequent redirects.
    Example

    Redirect user to custom page (publishing-guidelines) for the first article published then all other subsequent published articles are redirected to the url of post published

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Buddyblog category and tag adjustment #40582

    Thanks for the update

    1. I just noticed that settings option to exclude categories does not work with this update.
    Categories have been selected to be excluded but the categories are still available in the post editor.
    Please note that im using the medium editor.

    2. Also with this update will it be possible to restrict users to select only one post category

    Thanks

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Buddypress user contact form feature suggestion #40415

    OK well understood, thanks for the feedback.

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Buddypress user contact form feature suggestion #40404

    FEATURE SUGGESTION 2

    I want to display the (contact me) link in the nav bar for logged out users but when the link is clicked by non logged in user the should be redirected to custom page (login)

    This enables gusets to know that they can message members but only if they login.

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Buddyblog category and tag adjustment #40370

    will this update be coming anytime soon

    thanks

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Buddyblog confirm action for publishing #40369

    reminder

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Share post as activity suggestions #40331

    Gentle reminder sir, thanks

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: buddypress better search github #40258

    OK thanks but do you have an alternative search plugin to recommend which works with buddypress

    SearchWP https://searchwp.com/ does not work with buddypress

  • Participant
    Level: Guru
    Posts: 885
    Tosin on in reply to: Donation feature for buddypress #40238

    thats exactly my point see image https://ibb.co/HNZrFBy

    Sorry for the trouble

    This is my code

    
     add_filter( 'the_content', function ( $content ) {
    
    	// Our donation page link.
    	if ( ! is_page( 36918 ) || ! isset( $_GET['user_id'] ) || ! $_GET['nonce'] ) {
    		return $content;
    	}
    
    	$user = get_user_by( 'id', absint( $_GET['user_id'] ) );
    
    	if ( ! $user || ! wp_verify_nonce( $_GET['nonce'], 'donate-' . $user->ID ) ) {
    		return $content;
    	}
    
    	$bank_name               = xprofile_get_field_data( 3217, $user->ID );
    	$account_number          = xprofile_get_field_data( 3218, $user->ID );
    	$account_name            = xprofile_get_field_data( 3219, $user->ID );
    	$paystack_url            = xprofile_get_field_data( 3220, $user->ID );
    	$crypto_currency_name    = xprofile_get_field_data( 4447, $user->ID );
    	$crypto_currency_address = xprofile_get_field_data( 4446, $user->ID );
    
    	$missing_details = array();
    
    	// Replace field id with your one mandatory for donation. If empty return your message.
    	if ( empty( $bank_name ) ) {
    		$missing_details[] = __( 'Bank name has not been provided' );
    	}
    	if ( empty( $account_number ) ) {
    		$missing_details[] = __( 'Account number has not been provided' );
    	}
    	if ( empty( $account_name ) ) {
    		$missing_details[] = __( 'Account name has not been provided' );
    	}
    	if ( empty( $paystack_url ) ) {
    		$missing_details[] = __( 'Paystack URL has not been provided' );
    	}
    	if ( empty( $crypto_currency_name ) ) {
    		$missing_details[] = __( 'Cryptocurrency name has not been provided' );
    	}
    	if ( empty( $crypto_currency_address ) ) {
    		$missing_details[] = __( 'Cryptocurrency address has not been provided' );
    	}
    
    	$render_shortcode = false;
    
    	if ( $bank_name || $account_number || $account_name || $paystack_url || $crypto_currency_name || $crypto_currency_address ) {
    		$render_shortcode = true;
    	}
    
    	if ( ! $render_shortcode ) {
    		return $content . __( 'This member has not provided any payment details, the following payment details are missing: ' ) . join( ' & ', $missing_details );
    	}
    
    	ob_start();
    
    	// Replace group_id to your group id.
    	echo do_shortcode( "[bpsc-user-avatar user_id={$user->ID}]" );
    	echo do_shortcode( "[bpsc-user-display-name user_id={$user->ID}]" );
    	echo do_shortcode( "[bp-shortcodes-profile user_id={$user->ID} group_id=2]" );
    
    	$shortcode_content = ob_get_clean();
    
    	return $content . $shortcode_content;
    } );