BuddyDev

Search

[Resolved] Ajax Registration

  • Participant
    Level: Master
    Posts: 496
    Daniel on #14931

    Hi,

    the Ajax registration plugin is successfully working on my computer, tablet and iphone but all the new registered users that have registered on our website have used the old register page form from the theme.

    I can’t explain how this is possible as when I click on the Register button, then automatically opens the Ajax register form. (Only when loading a page on the website and clicking too fast on the register button then it loads the old register form from the theme).

    In fact, I just don’t understand why every single new member on our website has registered through the theme’s register form. (The problem is that the activation email is not sending out automatically when they register with the theme’s register form, means I have to go to Dashboard Menu “Manage Signups” and I have to resend the activation email.)

    What I need to add is when users register with Ajax registration form they are immediately activated and the process of sending an activation email is not happening which is OK. Only when registering with the old form they receive an activation email and I would like to find a solution in order that the activation email goes out automatically again when the user registers with the theme’s register form.

    Would be cool if might you could have a look at it?

    Thank you.

    Regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #14978

    Hi,

    We had now new registrations over the weekend and I realized, the new members all have yahoo emails and they registered not with Ajax registration but with the old theme registration. But the problem is as explained above they don’t get activation emails anymore when registering with the old form. Only when I send them out manually they get the activation email.

    To get the bug out, we need some specialists and we also will pay extra your provided service of course.

    (Fyi- I have contacted the theme support as well and they said that the email is not going out automatically anymore when registering with the theme registration form because there is a new installed plugin which causes this problem, but they don’t know which plugin this could be.)

    Might you have the time to have a look at the problem this week?

    Thank you.

    Kind regards,
    Daniel

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #14996

    HI Daniel,
    Please allow me to look into it. I will need 24-48 hours to investigate and assist.

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15001

    Hi Brajesh,

    That’s awesome thank you.

    Thanks again.

    Regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15064

    Hi Brajesh,

    Actually, we had new user registrations the last days with different emails (not only Yahoo emails) and ALL OF THEM registered with the Theme Registration form and NONE did register with the BuddyPress Ajax Form. Means all the new registrations did not get Activation Emails automatically. I have sent them manually the Activation Email but the problem is that these new users do not activate their account anymore as probably it took them too long time until they have received the Activation email.

    Could you please have a look at this very inconvenient situation please?

    Thank you for your Help!

    Kind regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15069

    Hi Brajesh,

    We really need to have this fixed as soon as possible as our website is depending on new user registrations and every single new user registers through the theme’s registration form and doesn’t get an email for activation.

    Could you please inform me when you will have time to assist?

    Thank you in advance.

    Regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15082

    Hi Brajesh,

    Today I went to an internet café and have accessed the website with Chrome and Firefox browser, just to check how the Register function works outside.

    On both browsers appeared the Ajax Register Form when clicked on the Register button which is good.

    Does this mean that Ajax Register form sometimes does use mail activation method and sometimes does use automatic registering?

    This looks like a real mystery. Well, I have spent so many hours on trying to find out the reason without a clue.

    Would be cool if you could have a look at it when you have time.

    Thanks.

    Regards,
    Daniel

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15084

    Hi Brajesh,

    Apologies for writing another post, but I have explained the problem to the theme’s support team if they could help and I have received the following answer that I would like to forward you:

    This is their response:

    I think it could probably caused by the ‘BP Ajax Registration’ plugin. Because as you had said, the ‘BP Ajax Registration’ plugin automatically activates the account of the user when the user had used the ‘Registration Form’ of the said plugin. It activates the account automatically without having the user to activate his or her account through an activation email.

    I think the best solution would be to change the code inside BP Ajax Registration in order that when the user registers with BP Ajax Registration plugin, that the user also receives an activation email, the same as when he registers with the theme’s register page.

    Do you think this would be possible to do ?

    Thank you for your analysis.

    Regards,
    Daniel

    • This reply was modified 5 years, 11 months ago by Daniel.
  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #15089

    Hi Daniel,
    I am sorry I have been way from forums for last few days.

    It is possible that the ajax registration may prevent normal registration emails from being sent in the auto activation mode.

    I am not sure why the users are registering from normal register page(they have direct link?), but there is a solution to it

    
    
    /**
     * Only enable hook filtering if doing ajax.
     * 
     * @param $do
     *
     * @return bool
     */
    function buddydev_only_hook_on_ajax_register( $do ) {
    	return defined( 'DOING_AJAX' );
    }
    add_filter( 'bpajaxr_is_auto_activation_mode', 'buddydev_only_hook_on_ajax_register' );
    
    

    If we add this line to our bp-custom.php, the ajax registration will only be enabled when handling ajax request and won’t cause any issue with the normal flow.

    Please put this in the bp-custom.php and then check.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 496
    Daniel on #15100

    Hi Brajesh,

    I have tried the code you have provided and it is working!

    That’s so awesome!!! You have no idea how our team is happy about it!!!

    Thank you so much for taking care of it!!!

    As mentioned above we would like to send to BuddyDev a commission for the provided service. (Our budget for May has been already reached this month but we will set up a payment per the month of June and we pay our suppliers within the first week of the coming month which is July 2018.)

    As I couldn’t find your payment connections on the website please send by email your payment connections or Paypal in order that I can give it to our accountant.

    Thanks again, that’s really awesome for us!!!

    Best regards,
    Daniel

You must be logged in to reply to this topic.

This topic is: resolved