New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Group Categories and restricting which ones display. #3512

    Hi Phill,

    Welcome on BuddyDev.

    Please disable all above plugins except ‘Blog Categories for Groups’ and ‘BP simple front end post’ and assign single category to each group.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Simple Front End Post Form #3495

    Hi Leo,

    It is difficult to navigate the user to the page from where the post was published as it is a custom form and can be called on any places. But we can edit it from BuddyBlog edit form. Please modify the code for registering custom form

    
    function buudydev_post_form() {
    
        $settings = array(
    
            'post_type' => 'post',
            'post_author' =>  bp_loggedin_user_id(),
            'post_status' => 'publish',
            'tax' => array(
                'category' => array(
                    'include' => array( 61 ), //category ids
                    'view_type' => 'checkbox',
                )
            ),
    
            'current_user_can_post' => is_user_logged_in(),
            'show_categories' => true,
            'allow_upload' => true
        );
    
        bp_new_simple_blog_post_form( 'my_custom_form', $settings );
    
    }
    add_action( 'bp_init', 'buudydev_post_form', 4 );
    

    with this code

    
     function buudydev_post_form() {
    
        $settings = array(
    
            'post_type' => 'post',
            'post_author' =>  bp_loggedin_user_id(),
            'post_status' => 'publish',
            'tax' => array(
                'category' => array(
                    'include' => array( 65 ), //category ids
                    'view_type' => 'checkbox',
                )
            ),
            'custom_fields'				=> array(
                 '_my_custom_form' => array( 'type' => 'hidden', 'id' => 'my_custom_form', 'name' => 'my_custom_form', 'default' => 'my_custom_form' )
            ),
            'current_user_can_post' => is_user_logged_in(),
            'show_categories' => true,
            'allow_upload' => 1
        );
    
        bp_new_simple_blog_post_form( 'my_custom_form', $settings );
    
    }
    add_action( 'bp_init', 'buudydev_post_form', 4 );
    
    

    Also we need to override the buddyblog form template by copy “buddyblog/template/buddyblog/edit.php” file to your theme folder “buddyblog/edit.php” after copying, modify the following section

    
       $form = bp_get_simple_blog_post_form( 'buddyblog-user-posts' );
                                
        $form->show();
    

    with

    
      $form_id ='buddyblog-user-posts';
    
        $post_id = bp_action_variable( 0 );
        
        if( ! empty( $post_id ) && ! empty( get_post_meta( $post_id, '_my_custom_form', true ) ) ) {
            $form_id ='my_custom_form';
        }
    
        $form = bp_get_simple_blog_post_form( $form_id );
    

    it will load over custom form instead of BuddyBlog Form.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Simple Front End Post Form #3493

    Hi Leo,

    I am Sorry for the delayed reply.
    Most probably the BuddyBlog settings are conflicting with our custom code(single we are using the BuddyBlog edit form to update).

    We will need to use a different edit/add new form. So, you will need to add an endpoint for that. Do you want me to provide code for it ?

    Thank you
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Simple Front End Post Form #3484

    Hi Leo,

    Welcome back. I will get back to you shortly on this.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Editable Activity and MediaPress #3463

    Hi Leo,

    Thank You for confirming.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Editable Activity and MediaPress #3457

    Hi Leo,

    Please check the following code in your bp-custom.php file and let me know if it is working or not.

    
    function buddydev_add_new_activity_type( $allowed ) {
        
        $allowed[] = 'mpp_media_upload';
        return $allowed;
        
    }
    add_filter('bp_editable_activity_allowed_type', 'buddydev_add_new_activity_type' );
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Photo tagging #3436

    Hi Zabrina,

    Sorry, we do not have photo tagging functionality for MediaPress right now. But we do have plans to integrate this functionality as MediaPress Addon in future.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Simple Front End Post Form #3435

    Hi Leo,

    Thank You for confirming. I am glad that i could help.

    Thank You
    Ravi

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

    Hi Alayna,

    Thank You for posting, Yes you can achieve this functionality using one our free plugin named “BuddyPress Live Notification”. It works exactly like your requirement. Please refer the following Link

    https://buddydev.com/plugins/buddypress-live-notification/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Simple Front End Post Form #3426

    Hi Leo

    Please download form this repositery.

    https://github.com/sbrajesh/buddyblog

    Thank You
    Ravi