Forum Replies Created

Viewing 15 replies - 46 through 60 (of 80 total)
  • Plugin Author shalior

    (@shalior)

    thank you for the suggestions, I agree this is needed. I’ll update the plugin as soon as I find some time.

    When the administrator removes the user, the results of the shortcode ([wp-referral-code var=”invited_count”] and [wp-referral-code var=”invited_list”]) are synchronized????

    no they’re not at the moment.

    Plugin Author shalior

    (@shalior)

    Hi, Yes it is. Actually I’ve made the plugin with this in mind.

    Plugin Author shalior

    (@shalior)

    you’re welcome

    Plugin Author shalior

    (@shalior)

    The new update may fix your problem. if it doesn’t I can’t help, unfortunately.
    you need to debug by disabling other plugins.
    and wp members does not have a hook for approved users, which means if the code above does not work, it’s not doable.

    • This reply was modified 3 years, 8 months ago by shalior.
    Plugin Author shalior

    (@shalior)

    My requirement is that user A will invite someone by his unique 6 digit code. User B will use that code while registering on the website (I am using the ultimate member’s registration form).

    by default, the plugin does this, this is the main function of this plugin actually. if you need to only count when users got approved in UM paste this code in functions.php

    the code you posted does similar function, but it’s not for the new version so use the code I mentioned.

    Plugin Author shalior

    (@shalior)

    you’re welcome. thank you very much for submitting a review, this really helps to improve and maintain the plugin.
    best of lucks.

    Plugin Author shalior

    (@shalior)

    Hi, the snippet you’re using is for UM plugin.
    use this instead, it’s untested let me know if it works or not.

    add_filter( 'wp_referral_code_validate_submission', function ($result){
        return false;
    }, 1, 1);
    
    add_action( 'wp_referral_code_before_refer_submitted', function ( $new_user_id, $referrer_user_id){
        update_user_meta( $new_user_id, 'shalior_referrer_id', $referrer_user_id);
    }  , 10 , 2);
    
    add_action( 'wpmem_user_activated', 'shalior_wpmem_after_user_is_approved', 10, 1 );
    function shalior_wpmem_after_user_is_approved( $user_id ) {
        $referrer_user_id = get_user_meta( $user_id, 'shalior_referrer_id', true);
        update_user_meta( $user_id, 'wrc_referrer_id', $referrer_user_id );
    
        wp_referral_code_add_user_to_referrer_invite_list($user_id , $referrer_user_id);
    }
    Plugin Author shalior

    (@shalior)

    Hey, I tested the shortcode with WP 5.7, works as expected for me.
    it’s a problem from your side probably. if you send me console log of your browser while you’re on a page with the shortcode, i’ll be able to help.

    Plugin Author shalior

    (@shalior)

    Hey, Sorry for repling late.
    the plugin does what you need but seems you’ve found a issue. how does your link looks like? I need more info about how you’re usign plugin in order to help.

    Where I have to put those 2 codes?
    Is there anything in the code that I need to change?

    can you mention exactly which codes you are talking about?
    generally you should place snippets in functions.php of your child theme.

    Plugin Author shalior

    (@shalior)

    Hey, don’t be, I’d be happy to help.
    currently, the plugin doesn’t have this feature. I think it’s a cool little feature to be in the next version.
    this helper function can help you if you’re with wp development wp_referral_code_add_user_to_referrer_invite_list( $user_id, $referrer_id )

    Plugin Author shalior

    (@shalior)

    Hi
    you should place the snippet in your child theme’s functions.php file. this way it won’t change during updates. google ‘wordpress child theme generator’ and use one of results to make a child theme if you dont have already.

    I was wondering if you are planning to publish updated version of the plugin that will contain this peace of code

    I’m planning to include famous plugins integration modules, including this one, but not in the near future. i’m too busy these days.

    ywc

    Plugin Author shalior

    (@shalior)

    thank you for your interest. it motivates me to continue maintaining this project. Goodluck.

    Plugin Author shalior

    (@shalior)

    And a quick question. Is there any maximum expiration limit of the link? I would like to have it eternal so when i share it with someone it can be used as affiliate link and that 3rd site/person can refer members as long as thier users are clicking the link and coming to my site. In my case I have placed a number that equals 10 years.

    the link is permanent. this is what the option does: let’s say a user hits a referral link but doesn’t register right away. maybe he browses the site for a couple of hours or leaves the site and comes back after some time and then registers. you can set that delay with this option. if the user registers after 10h his registration won’t count in the referral system. for this feature, the plugin uses browser cookies to save refer code and later capture it to find out who has referred this user. I’ll change the option’s title. it seems misleading.

    To be precise, new user is listed even before confirming/activating his e-mail address but better something than nothing

    check this out link

    I can not see their referral code

    you can actually, wp-admin->users->chose a user-> wp referral section.

    regarding your issue, can you share your registration link? (you can email it to me if you don’t want it to be public [email protected]) seems like your link have something special in it. i can’t think of anything else at this point.

    • This reply was modified 3 years, 10 months ago by shalior.
    Plugin Author shalior

    (@shalior)

    first verify that there is a refer code with this shortcode:
    [wp-referral-code var=”ref_code”]

    the plugin uses add_query_arg() WordPress core function to generate links. if the refer code exists and your registration link is valid the bug comes from this function. it works fine with a link like https://sitename.com/register/.

    no problems. you’re welcome.

    Plugin Author shalior

    (@shalior)

    Also try with another user. Thanks

    • This reply was modified 3 years, 10 months ago by shalior.
Viewing 15 replies - 46 through 60 (of 80 total)