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: [Resolved] comment plugin #21100
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: BuddyPress Activity As Wire #21096

    Hi Max,
    I am sorry, this plugin is not suitable for that purpose.

    BuddyPress User Testimonials does allow writing about the profile owner but the other functionality is not there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: hide mediapress for simple users #21087

    Hi Luigi,
    Welcome to BuddyDev.

    Please define simple users. Is it users with ‘subscriber’ role?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] login redirect issues #21086

    Hi Mike,
    Thank you.
    No problem. I will be glad to assist 🙂

    Have a great night to you too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] login redirect issues #21084

    Thank you Mike.
    If you need me to debug it, I will do that gladly(I will need FTP access though).

    Please let me know if they are able to assist you or not .

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] Mediapress Permalinks #21081

    Hi Ben,
    I am sorry to hear about that. I sure hope that it is better than earlier.

    Looking forward to chat with you.

    My best wishes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] comment plugin #21080
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: [Resolved] comment plugin #21074
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi,
    Welcome to BuddyDev and thank you for asking the question.

    You can do it on bp_signup_validate action. I am showing it with a example. You will need to check for duplicate on your own as I am not sure how are you storing or from which table you want to check for the data(Is it the profile data table?)

    You will also need to know the field id to find the submitted content

    
    /**
     * Validation error.
     */
    function budydev_custom_validate_signup() {
    	$field_id = 32;// please change with your field id.
    	$field    = isset( $_POST[ 'field_' . $field_id ] ) ? trim( $_POST[ 'field_' . $field_id ] ) : '';
    	// validate your field
    	// from database
    	// and if there is any error,
    	// add the error to BuddyPress as
    	buddypress()->signup->errors[ 'field_' . $field_id ] = "Your error message";
    }
    
    add_action( 'bp_signup_validate', 'budydev_custom_validate_signup' );
    
    

    Regards
    Brajesh