BuddyDev

Search

Buddypress Ajax Registration -> Popup on pageload

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #5580

    Thank you.

    It seems that when the Ajax registration plugin is On, It loads register form in the process triggeres error(As the select2 plugin is not loaded).

    Can you please disable the Select2 integration with the field or force to load select2 plugin on that page too.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5581

    I am sorry but i do not know what you mean by select 2, I am not seeing where to do that, I will keep looking but no luck so far

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5582

    oh on the profile fields maybe i will try

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5583

    YES!! that was it, good job!

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5584

    so back to my first question, is there an easy way I can have the popup load on a particular page? so as soon (or a small delay) after the user hits the page the popup opens

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #5586

    Hi Archaic,
    Thank you.
    Yes, I had provided similar code for one of our members. I am looking at it and will post back.

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5587

    wonderful – thank you, if you are in the need of any extra side-work, please send me an email too

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #5588

    Here is a solution. Not the best one though.

    1. Please Visit Dashboard->settings->BuddyPress->Options
    and un check the box that says

    
     Enable Ajax Loading of Form 
    

    under the BuddyPress Ajax registration setting

    Once you are done with that, you can put the following code

    
        setTimeout( function () {
            show_reg_form();
        }, 1000 );
    

    In the file wp-content/plugins/bp-ajax-registration/_inc/bp-ajax-register.js
    Just after the line

    
       var magnificPopup = jQuery.magnificPopup.instance;
    

    That will show the popup after 1 second on all pages. I will add a more proper APi in future.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5589

    I think you are misunderstanding sorry but I do not want the popup on all pages, only one page, the rest i do not want it to load at all

  • Participant
    Level: Initiated
    Posts: 18
    Archaic Guru on #5590

    like the register buttons that were on the /sign-up page, I want those to point to a specific page, and that page the popup will auto-load only

The topic ‘Buddypress Ajax Registration -> Popup on pageload’ is closed to new replies.

This topic is: not resolved