Association not working

Hi guys,

We use a plugin to display a modal login/register form. I’m not sure what’s going on but it seems that new users are not tied to their referring affiliate when they create a new account.

Since I was under the impression the plugin uses the standard way to log/register users according to the WP Codex I’m a bit surprised but this is most likely related to the use of the plugin. I have created a new user using the default WP page without the modal login plugin and the user was associated with the right affiliate.

Would there be anything I can forward to the plugin author for them to patch this issue or is there maybe something we can do to force the association with new users?

URL : http://nationhats.staging.wpengine.com/

Modal login : http://codecanyon.net/item/white-label-login-for-wordpress/12248905?s_phrase=modal%20wordpress&s_rank=8

Thank you!

Regards,
B


Comments

15 responses to “Association not working”

  1. Hi Bastien,

    You can then try to init ajax only on failed logins.
    For example with wp_authenticate_user.

    Cheers

  2. Hey George,

    So I did again several tests today and I found that this problem is related to a setting in White Label Login.

    In the tab “Troubleshooting”, there’s a field to define the “Ajax URL” below “Ajax Returning 403”. I had to define this URL because sometime, if you typed a wrong password, the loading wheel would hang forever and does nothing. I think this forced to trigger the ajax call.

    However, it seems that to define the ajax init hook to “init” instead of “default (wp)” causes Affiliate Permanent to miss the registration and doesn’t link the user.

    Is there something we can do to preserve this setting in WLL and maintain a proper association with Affiliate Permanent?

    Kind regards,
    B

  3. Hey George,

    Thanks a lot for the snippet. I have added it to our functions.php and did two tests through WLL, one with manual register and one registering through G+ login. None of my tests associated the user with the referrer even with this function. The user meta key was also not added.

    I’ll do more tests tomorrow on TwentyFifteen and without any plugins. There’s something fishy going on…

    Let’s keep in touch, I appreciate your patience. Have a great evening!

    Kind regards,
    B

  4. Hi Bastien,

    I’ve sent you a custom snippet by mail, which basically adds the referrer to a new user.

    Please, put it in your theme’s functions.php file and try again.

    Kind regards,
    George

  5. You mentionned having an outdated version of WLL, here’s a link to download the latest version : https://www.dropbox.com/s/lm6cbzt4p4ri0uz/codecanyon-12248905-white-label-login-for-wordpress.zip?dl=0

  6. Hello George,

    I can see the user George (ID#50) in the wp_users table, however there are very few user meta and the “permanent_referrer_affiliate_id” key doesn’t exist (the query returns nothing).

    Here’s a screenshot of the usermeta : http://www.awesomescreenshot.com/image/924122/678787ad9996e87d64c61e7e73aff116

    Kind regards,
    B

  7. Hi Bastien,

    Yes it worked with Affiliates Enterprise, Affiliates Permanent and White Label Login. The point is though that i have an outdated version of White Label Login.

    I’ve recently registered a new user george. I want you to check in your database in the table wp_usermeta, what is the meta_key=’permanent_referrer_affiliate_id’ for user id 50. Or if you are familiar with SQL run this query in your phpMyAdmin
    SELECT * FROM `wp_usermeta` WHERE user_id='50' AND meta_key='permanent_referrer_affiliate_id'

    Thanks!

  8. Hey George,

    Hope you’re doing great. Question for you… You said you managed to make the permanent association work with the login plugin outside of our installation, is that correct?

    I just tried with only Affiliate Enterprise, Affiliate Permanent, Cornerstone (required by the theme) and White Label Login but it didn’t work.

    I even tried with TwentyFifteen and without Cornerstone but it didn’t work as well.

    When you said it worked, you mean it worked with the login plugin?

    Kind regards,
    B

  9. Hello George,

    Thank you for the heads up. I’ll wait for your feedback.

    Kind regards,
    B

  10. Hi Bastien,

    Although it works on my installation, i haven’t found the reason yet why it is not working on your side.

    I will let you know asap.

    Cheers

  11. Hi George,

    Hope you’re doing good. Have you had the chance to look at what might be going on here?

    Thank you!

    Best regards,
    B

  12. Hi Bastien,

    I will check your login plugin and let you know.

    Thanks for sending the admin access.

    Cheers

  13. Hello George,

    Sure thing! I sent you the credentials.

    Thank you for your help.

    Kind regards,
    B

  14. Hi Bastien,

    Can i have a look to the plugin since it’s a premium plugin?

    You can send your admin credentials to george@itthinx.com.

    Kind regards,
    George

Share