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: 25394

    Hi Brandon,
    I am not sure if I replied to this other thread or missed it.

    If it is not working for underscore, it is most probably caused by some validation code. Ajax registration does not do anything to stop a user from using _. Is there any chance that you are using a plugin or code that puts restrictions on username/email or validates them and avoids underscore.

    The ajax registration plugin is incapable of doing it as we simply use validate_username and is_email which are both WordPress provided validators.

    Please check and let me know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Sujee,
    You can use the following code

    
    /**
     * Conditionally update the landing tab.
     */
    function buddydev_set_member_type_based_default_component() {
    
    	if ( bp_is_user() && bp_has_member_type( bp_displayed_user_id(), 'admissions-counselor' ) ) {
    		define( 'BP_DEFAULT_COMPONENT', 'groups' ); //change groups with the slug of the tab you want to be default.
    	}
    }
    
    add_action( 'bp_init', 'buddydev_set_member_type_based_default_component',3 );
    
    

    Please make sure to change ‘groups’ with the slug of the tab you want to be default for the member type.

    Hope this heleps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Julia,
    Thank you for clarifying.

    The text is not part of BuddyPress.
    is there a chance that you are using one of the following plugins?

    – BuddyPress Activity As Wire
    – BuddyPress Wall
    – Buddy Wall

    Most probably one of these plugins have that code.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: Ajax registration – form has gone whacky #14581

    Marking it resolved as the discussion is there on email. Please flee free to reopen in future.

    Ragrds
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Thank you for marking it resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Sujee,
    Thank you. I will post the code today.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    The problem might be related to upload capability.

    The plugin does add the upload and edit_post cap to users(using user_has_cap filter) if it is a BuddyPress page.

    For non BuddyPress age, you may want to filter on

    
    bsfep_enable_upload_filters
    
    

    and return true for your page.

    For example,

    
    
    add_filter( 'bsfep_enable_upload_filters', '__return_true' );
    
    

    Will do it in all cases(I will suggest avoiding that and enabling it specific to your cases).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Brendan,

    Please add the option

    
    
    allow_upload'=> true,
    
    

    to the above setting.

    Hope that helps.

    EDIT:- I see you already have it, I am looking further.

    Regards
    Brajesh

    • This reply was modified 8 years ago by Brajesh Singh. Reason: noted that the setting was already there
  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] "Links xprofile" & NEW PLUGIN #14570

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    I am sorry but I am unable to be of much help with 3rd party plugins(specially if they are not BuddyPres, WooCommerce or the very popular ones).

    If it is about changing roles, I can help but I will need you to rephrase the question and specify the goals.

    Thank you
    Brajesh