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: 25480
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Hi Carsten,
    If you ceate a js file, you will need the code to load it too.

    Since it is just 2 lines of code, My suggestion will be to put it in one of the js file provided by theme. Look for a file named buddypress.js and you can put the code inside the dom ready section there. If you are using a custom theme, you may ask there(or check their documents) to see if there is any custom js file supported.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: [Resolved] buddypress Deactivate Account Plugin #18919

    Hi Jeff,

    Please remove the code from p-deactivate-functions.php and put it in wp-content/plugins/bp-custom.php

    If there is no bp-custom.php, please create a php file named bp-custom.php

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Hi Irina,
    on 4.9.8 it is part of the core.

    My guess is it is either Youzer or the theme. Try disabling Youzer and then checking it.

    If that does not work and if the site is still in development, please try switching theme and checking again.

    Let me know what you find there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Buddyblog category/tag display #18917

    Hi Irina,

    The Form supports dropdown but BuddyBlog does not uses it currently. If you can tell me the taxonomy(category, tags or custom taxonomy), I can help with some code to make it use selectbox.

    I will add it as a setting option in future version of BuddyBlog.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Sure, Here is the functiona updated again.

    
    
    function mktbn_user_register( $user_id )
    {
    	if ( function_exists( 'mikakoo_log' ) ) {
    		mikakoo_log( 'user_register: ' . $user_id );
    	}
    
    	if ( ! empty( $_POST['MemberType'] ) && function_exists( 'bp_set_member_type' ) ) {
    		bp_set_member_type( $user_id, $_POST['MemberType'] );
    	}
    
    	$user = get_user_by( 'id', $user_id );
    
    	// if member type submitted and valid user and the person adding user is super admin
        // then set role too.
    	if ( $user && ! empty( $_POST['MemberType'] ) && is_super_admin() ) {
    	    $user->set_role($_POST['MemberType'] );
    	}
    
    }
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    HI Jeff,
    Thank you. Your code is correct. If it is giving 500 error, It means one of the used function does not exist.

    I have slightly modified the function, Please change the function with this one and then let me know if it works or not?

    
    
    function mktbn_user_register( $user_id )
    {
    	if ( function_exists( 'mikakoo_log' ) ) {
    		mikakoo_log( 'user_register: ' . $user_id );
    	}
    
    	if ( ! empty( $_POST['MemberType'] ) && function_exists( 'bp_set_member_type' ) ) {
    		bp_set_member_type( $user_id, $_POST['MemberType'] );
    	}
    
    }
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Hi Jeff,
    Please share the complete code for function mktbn_user_register()

    Most probably there is some syntaxt error causing it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Hi Irina,
    Thank you for posting.

    I am sorry for the inconvenience.

    Is there anything special about the site like are you on WordPress 5.0 beta? Is there any chance that you are not using the tinymce editor?

    Also, which theme it is? Is it some custom theme? Are they adding any visual posting section on their own?

    About the upload:- If it only happens sometimes, It is most probably a hosting or some plugin throwing notice causing it. If it happens all the time, Please enable WP_DEBUG and let me know the error.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: font awesome icons in tabs #18905

    Thank you Phil.
    Please allow me a few hours to check this function and get back to you.

    Regards
    Brajesh