BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Andrew,
    Welcome to BuddyDev.

    Thank you for posting the question.

    Though the javascript approach is fine, and I have also posted similar snippets earlier on our forum, Let us see another easy approach today.

    Instead of doing things in javascript, Let us hide the fields you don’t need using css. I hope, yopu can do that step without my help(using display:none in css)

    Now, Here is a fail-proof method. You will need to put this snippet in your bp-custom.php

    
    
    function buddydev_check_update_signup_fields() {
    
        //you can access the superglobal $_POST and set values in it too
        //for example
        $_POST['field_1140'] = $_POST['field_960'];
    
        //and so on
    
    }
    add_action( 'bp_signup_pre_validate', 'buddydev_check_update_signup_fields' );
    
    

    Please give it a try and let me know if this works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Kieran,
    You are most welcome.

    If you plan local notifications, you will need to use bp_notifications_add_notification() to add new notification and please remember to register a dummy component to allow you format notifications for the users.

    Please do let me know how it went, I will be happy to assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Kieran,
    Welcome to BuddyDev.

    What kind of notification you want the users to be notified. Do you want the email notification or the local site notification( Using BuddyPress notification).

    Here is some example code that will give you an start

    
    function buddydev_handle_custom_mention( $activity, $args1=null, $arg2=null,$arg3=null, $user_id = false ) {
    
    	//check if the $user_id is the specific user
    	
    	//if ye, Please use one of the strategies to notify users
    	//to find users, you may use get_users()
    	
    	
    
    }
    add_action( 'bp_activity_sent_mention_email', 'buddydev_handle_custom_mention', 10, 5 );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Not logging member in after signing up #3404

    Hi Travis,

    I will be doing some test today for existing users and will get back to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Force Profile Photo Plugin Message #3403

    Hi Travis,
    I have tested it on your site. It is either the caching or your theme that is causing it. Please try this plugin by disabling others and you will find the culprit.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Renato,
    Thank you for confirming. I am glad it is fixed now.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218

    Hi Renato,
    Welcome to BuddyDev.

    I am sorry for the trouble. I have updated the plugin. Please upgrade to 1.2.2 and then update your translations file.
    https://buddydev.com/plugins/bp-username-changer/

    PS: Please make sure to backup your old translation before upgrade to avoid missing them.

    Let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Pop Up buddypress ajax registration form #3384

    Hi Rahul,
    Apologies for the delayed reply.

    1. Your server seems to send invalid json response. It can be caused by any other plugin/theme code. Please check console after clicking on submit button and you will see server response. Check for the message it shows. That will give you the idea.
    2. Add the field to “Base” or the first Profile field group in User->Profile Fields screen and that will be picked.
    3. Are you using any plugin for terms and conditions. It is not part of default BuddyPress. Please check and disable the plugin and It will be gone.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Not logging member in after signing up #3383

    Hi Travis,
    Thank you.

    There is some issue with either the configuration or something else. I tried two accounts and here is what I found:-

    1. When I registered with a new email that I never used on the site earlier, I got logged in and redirected to this page

    http://i.imgur.com/fLta1Tw.png

    2. When I used my old email(the account that you had deleted), I was not logged in. Instead, I was redirected to this page

    http://i.imgur.com/ZtIZuFw.png

    which appears to have the login/register button.

    Were you trying with new emails or already used one?

    Also, I noted that when I register for the first time, I was redirected to the change avatar page(seems you have force avatar plugin enabled). I had uploaded an avatar for the account you had deleted. Next time when i register with that email and same username, I was not redirected to the change avatar page not it showed my avatar.

    Are you using any caching or account specific plugins?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25218
    Brajesh Singh on in reply to: Not logging member in after signing up #3381

    Hi Travis,
    Thank you for the details.
    I just checked and I got redirected to this page

    http://heavenlygifted.com/search-members/buddytest/profile/change-avatar/

    There was no login/register button(I was logged in). It seems you had some caching issue or something else.

    Please try now, It should work as expected.
    If you find any issue, Please do let me know.

    Thank you
    Brajesh