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

BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 915
    Tosin on in reply to: [Resolved] Disable activity comment button #45817

    it worked

    Thanks

  • Participant
    Level: Guru
    Posts: 915
    Tosin on in reply to: Buddypress woocommerce restriction #45816

    Hello Brajesh,

    I would definitely love to try the upcoming plugin but what i currently have in mind is more of a one time purchase product solely to activate new users, i’m try to tie this product with an affiliate program using affiliate WP plugin

  • Participant
    Level: Guru
    Posts: 915
    Tosin on in reply to: [Resolved] BuddyBlog Pro: Pre-Sales Question #45778

    this would really be an awesome feature.

    privacy support for the follow plugin would also be cool

  • Participant
    Level: Guru
    Posts: 915
    Tosin on in reply to: buddyblog medium editor not displaying embeds #45760

    Hello Brajesh,

    Any update on this request

    Thanks

  • Participant
    Level: Guru
    Posts: 915

    Is it possible to send email on post expiration.

    EXAMPLES

    1. Your sponsored post has expired. (EMAIL SUBJECT)

    Hello {post_author|get_user_display_name},

    Your Post titled ‘{post_title}’ has expired and is no longer sponsored..
    If this post is still relevant, you can log in to {site_url} and renew this post as featured.

    2. Your expired Post has been renewed and published. (EMAIL SUBJECT)

    Hello {post_author|get_user_display_name},

    Your post titled ‘{post_title}’ has been renewed and is visible on site again.

    To view your post you can use the link below:
    {$post.ID|get_permalink}

  • Participant
    Level: Guru
    Posts: 915

    Hello Brajesh,

    I would like to add to my former suggestion pending when you are about to update the plugin.

    NEW ADDITIONAL SUGGESTION

    Kindly see the screenshot below for adding promote button to activity updates

    https://ibb.co/WyTBz6n

    FORMER SUGGESTIONS
    https://ibb.co/jhqnK8D
    https://ibb.co/s1QYtJW

    Thanks

  • Participant
    Level: Guru
    Posts: 915

    Hello Ravi,

    The plugin features worked perfectly

  • Participant
    Level: Guru
    Posts: 915

    Ravi thank you very much it worked. I’m really grateful for the outstanding support you provide.

    Im testing the features now, I will update you tomorrow.

  • Participant
    Level: Guru
    Posts: 915

    Thanks Ravi,

    After updating the plugin the (publish-post) page crashed, but i was eventually able to isolate the problem to the code you sent before. I think the code is not compatible with the latest pay per post update.

     /**
     * Enable BuddyBlog dropdown submission type.
     */
    add_action( 'bblpro_form_after_form_fields', function ( $form_id, $post ) {
    
            if ( ! bblpro_ppp_is_form_pay_per_post_enabled( $form_id ) || $post->post_status == 'published' ) {
                    return;
            }
        $submission_type = get_post_meta( $post->ID, '_bblpro_submission_type', true );
    
            ?>
        <div class="bbl-form-field-container bbl-form-field-type-submission-type-container">
            <div class="bbl-form-field bbl-form-field-select">
                <label for="bbl_custom_field"
                       class="bbl-field-label bbl-field-label-type-select"><?php esc_html_e( 'Submission Type', 'sb-buddyblog-custom' ); ?></label>
                <select name="bblpro-post-submission-type" id="bblpro-tax-selectbox-submission-type" class="postform">
                    <option value="free" <?php selected( $submission_type, 'free' ) ?>><?php esc_html_e( 'Free Post' ); ?></option>
                    <option value="sponsored" <?php selected( $submission_type, 'sponsored' ) ?>><?php esc_html_e( '30 Days | Sponsored Post - ₦50,000' ); ?></option>
                </select>
            </div>
        </div>
            <?php
    }, 10, 2 );
    
    add_action( 'bblpro_post_submitted', function ( $post_id, $form_id, $post_data ) {
    
            if ( ! bblpro_ppp_is_form_pay_per_post_enabled( $form_id ) ) {
                    return;
            }
    
            if ( isset( $_POST['bblpro-post-submission-type'] ) && 'free' == $_POST['bblpro-post-submission-type'] ) {
                    update_post_meta( $post_id, '_bblpro_submission_type', sanitize_text_field( $_POST['bblpro-post-submission-type'] ) );
                    add_filter( 'bblpro_ppp_skip_post_purchase', '__return_true' );
            }
    
    }, 9, 3 ); 
  • Participant
    Level: Guru
    Posts: 915

    I saw a solution to 1 at https://www.wpbeginner.com/plugins/how-to-restrict-media-library-access-to-users-own-uploads-in-wordpress/

     // Limit media library access
      
    add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' );
     
    function wpb_show_current_user_attachments( $query ) {
        $user_id = get_current_user_id();
        if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
    ') ) {
            $query['author'] = $user_id;
        }
        return $query;
    }