BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Oliver,

    Thank you for the acknowledgement. I am glad that you have solved the issue on your own. Please let me know if any kind of assistance is needed in future.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] pay per post button display #50348

    Hello Tosin,

    Please try the following code:

    
    <?php if ( is_user_logged_in() && is_singular( 'post' ) ) : ?>
    	<div id="call-to-action" class="promote-action-btn">
    		<?php
    		$post_id = get_the_ID();
    		$label   = esc_html( '+ 10X Views - Promote Your Post ₦' );
    
    		echo do_shortcode( "[bblpro_ppp_promote post_id={$post_id} label={$label}]" );
    		?>
    	</div>
    <?php endif; ?>
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Slight Issue With BuddyPress Member Types Pro #50347
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Cristi,

    Thank you for your generosity and good wishes. Seeing Chandrayaan-3 land on the moon would be one of the most memorable things for us here. It was awe-inspiring.

    I am working on the updates for Pay Per post. It will take a few days as I have some travel lined up this Sunday. Please allow me to share it by the end of Tuesday.

    Thank you

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Slight Issue With BuddyPress Member Types Pro #50319

    Hello Casper,

    Try the following code and let me know if it helps or not.

    
    add_filter( 'bp_core_fetch_avatar_no_grav', function ( $no_grav, $params ) {
    
    	if ( 'user' !== $params['object'] ) {
    		return $no_grav;
    	}
    
    	$user_member_types = (array) bp_get_member_type( $params['item_id'], false );
            
            // Replace with your member types.
    	$mtypes_with_default_avatars = array( 'student', 'teacher' );
    
    	if ( array_intersect( $mtypes_with_default_avatars, $user_member_types ) ) {
    		return true;
    	}
    
    	return false;
    }, 15, 2 );
    
    

    Please give it a try.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Buddyblog Pro not allowing image posts #50306

    Hello Kim,

    Thank you for sharing the error. It is an error given by WordPress. Please let me know if you are able to upload the same media file under the Media section. It is just to debug so that we can know the actual issue.

    Also, please let me know if your user has the allowed role under the upload as well as edit setting of BuddyBlog Pro.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Buddyblog Pro not allowing image posts #50303

    Hello Kim,

    Sorry for the inconvenience. Please share the error message you are getting so that We can help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Buddyblog pay per post question #50301

    Hello Tosin,

    Yes, You can remove the code. With the latest version of the plugin. We have a setting that allows the site admin to enable forcefully emptying the cart before adding post product. You can find this setting under the Edit form screen.

    Regards
    Ravi

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

    Hello Tosin,

    Thank you for the acknowledgement. I am glad that you fixed the problem on your own.

    Regards
    Ravi