BuddyDev

Search

Ajax Registration – Normal link but only for Log In

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #24882

    Hi Brajesh,

    I’ve installed Ajax Registration and it looks good.

    I only want to use it for logging in right now.

    My top menu requires a normal html link in order to work. I.e. it is not a WordPress Menu item.

    How do I write a normal html link so that it only pops open the Log In? I don’t want the option to Register or Reset password to appear in the modal.

    I made a link with the modal working, but it also showed the Register and Reset Password links (I have them disabled in the plugin’s settings). Also, I made my link in a WordPress Menu item but I can’t place it in my theme using that method (not in the location I want), it has to be an html link.

    Secondarily, how would I write a normal html link to log a User out of WordPress? It must be simple but I can’t work it out 🙂

    Many thanks,
    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #24888

    Hi Mike,
    You can use any html link for the login trigger. Add a css class or id to the element and put it in the BP Ajax Registration Login selectors setting.

    Also, I am not sure of the plugin showing registration box.

    Here is what I see when I disable registration/Forget password

    https://i.imgur.com/cNTIJ7G.png

    Please make sure you have the Ajax Registration settings updated.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #24894

    HI Brajesh,

    I have the Ajax Registration settings updated but I still see the registration and password reset fields.

    Have a look:

    https://technicskeyboard.com/test-page/

    It says “Log In” on the black menu.

    Now (in Opera) it is going behind my menu. I think it was ok in Chrome earlier. But you see it has register box?

    Perhaps Socializer is interfering? (but I have registration turned off in that too).

    Many thanks,
    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #24896

    Hi Mike,
    Please edit the nav item and remove the ‘bp-signup’ class from it.

    Please add ‘bp-login’ to it. The please visit Settings->BuddyPress Ajax Registration->Login and add it like ‘, .bp-login a’

    That should fix it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #24897

    without quotes.

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #24902

    Hi Brajesh,

    I put bp-login in the menu.

    Next in Settings->BuddyPress Ajax Registration->Login I added ‘, .bp-login a’, didn’t work. Then I added ‘, .bp-login, .bp-login a’ but it’s not working. Maybe my theme is breaking it.

    Thanks,
    Mike

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #24904

    PS I should mention, I was trying to get it to work today and I did exactly what you described but it didn’t work. Then I put bp-signup in the menu, to be the same as your documents because I thought I better start from there. Then it worked (but with the register popup), so I posted to you. Just for you to know I’m not lazy lol. No, seriously, I’m just telling you in case it helps to understand what’s wrong.

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #24905

    Hi MIke,

    Thank you for sharing the details.

    1. You have added the class to the menu item correctly and I can check that.

    2. As suggested, you need to add the following

    
    .bp-login a
    

    after putting a comma after the existing selectors in the “Login” panel selector option. If you do it. It will work.

    Currently, It is not there,

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #24906

    Hi Brajesh,

    No I tried that earlier and again after you told me, it’s not working.

    Please see this page with picture.

    https://technicskeyboard.com/test-page/

    many thanks,
    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #24932
    This reply has been marked as private.

You must be logged in to reply to this topic.

This topic is: not resolved