• Resolved justaniceguy

    (@justaniceguy)


    Let me first say thanks for creating such a light, simply and effective referral plugin. All other are robust and complicated with loads of features many sites do not need.

    I was wondering if you could find a little time to update plugin with a shortcode which will display usernames of members who have been registered using referral link of a member. So no any kind of dashboard or complicated overview that would require a lot of your time but simple shortcode for listing only. As I can see at the moment there is only shortcode to display number of users being registered using referral link.

    I am aware that there are action hooks within documentation but I am not so tech/coding guy so I have no idea how to use them. By looking at youtube tutorials it seems I will need days to figure out how to write them while I am pretty much sure you can write that piece of code in less than 15 minutes.

    Hopefully you will also keep confirming/updating plugin compatibility check with latest WP version so many other WP users who need such light members referral solution like this one is will be using it (being compatible with latest WP).

    Looking forward to see your reply.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author shalior

    (@shalior)

    you’re welcome. happy to see its useful for you.

    thanks for your suggestion.

    i will release version 1.1 with the shortcode you described and some other features in a week.
    good luck.

    Thread Starter justaniceguy

    (@justaniceguy)

    Great news! I am looking forward to see new version.

    By the way, my suggestion was only common logic and not rocket science ?? What user need with referral plug in basically are only two things. Which members have been referred by which member (as a site owner and a person who runs referral program it is important that I know who referred who) and which members I have referred (as a site member, so each member can see his referrals). Everything else like statistics in numbers, time, dates is additional plus but is not crucial for basic plug in.

    Thank you once again and I will mark this thread as resolved as soon as new plugin version comes out.

    Cheers ??

    Thread Starter justaniceguy

    (@justaniceguy)

    Hey Shalior, do you have any info regarding new plug in version? Is it coming anytime soon?

    I would really love to use it since is simple and effective at the same time.

    Thread Starter justaniceguy

    (@justaniceguy)

    It seems that I will still have to wait for a plugin version 1.1 since this, latest one, does not include features I have suggested/asked for.

    By the way, I can confirm that a week ago there was absolutely no plugin that is able to do this.

    In case you have bigger, more serious plans with the plugin, it may help to know that it will be the only one that support such function while being light, simple and free.

    Cheers.

    Plugin Author shalior

    (@shalior)

    Hey. version 1.1 finally is up. new shortcode to show invited users list is included. however, it does not have styles you need to write some css your self. also there are some hooks related to this shortcode wich makes it easy for customization. i leave topic open for a while to see if you have any suggestions.

    that one-week took way too long, sorry for that.

    Hello @shalior,

    I’ll echo @justaniceguy’s comment that it’s nice to have a light weight plugin. I did implement the list of referred users on a site but what is displayed are the user login names as opposed to their friendly display names. Anyway to either change this to a list of user names, extend the shortcode with an option or create a new shortcode? Think you would just do something like the following:

    // Get user data by user id
    $user = get_userdata( $user_id );

    // Get display name from user object
    $display_name = $user->display_name;

    It also would be nice to see the referral code for a given user displayed in the user admin area.

    Question, and maybe I should have created a new ticket, but where do you store the referral code in the db as I may want to include this in some other way via code.

    Ah, one last question, what does the “Expiration time(hours)” setting do? Can’t imagine the referral code expires in that time as it defaults to 10 hours. I’d want the referral code to not expire, so, more like an affiliate code.

    Thanks again!

    Jeff

    Plugin Author shalior

    (@shalior)

    Hi @lambje
    there is actually an undocumented filter to change the text used in the list,
    wp_referral_code_invited_user_text
    using this filer you can change the caption to whatever you want. use this snippet to change to user’s display name:

    
    add_filter('wp_referral_code_invited_user_text' , function ($user_login, $user_id){
    	// Get user data by user id
    	$user = get_userdata( $user_id );
        // Get display name from user object
    	$display_name = $user->display_name;
        return esc_html( $display_name);
    } , 10, 2);
    

    It also would be nice to see the referral code for a given user displayed in the user admin area.

    there is a section in ‘Wp-Admin->Users->Some User->Wp Referral Code section’ which shows all data regarding referral code.

    Question, and maybe I should have created a new ticket, but where do you store the referral code in the db as I may want to include this in some other way via code.

    you should use the class WP_Referral_Code located in /includes folder. I suggest reading class methods. it’s pretty simple and gives you all functions you need regarding the referral codes. the meta key is ‘wrc_ref_code’

    one last question, what does the “Expiration time(hours)” setting do?

    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 hope you get was I meant by this.
    happy to see you liked the plugin. it whould be nice if you leave the plugin a rating. thanks.

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

    Thanks @shalior – I’ll look through everything but think you covered it all very nicely and I truly appreciate it!

    Thread Starter justaniceguy

    (@justaniceguy)

    At last few words from me. Unfortunately i have an (small/big issue). I am not using default wordpress login address but instead the one generated by ultimate membership plugin. While plugin correctly generates ref link from the default login address it does not generate it from the changed one (register url from the plugin settings page).

    I have something like https://sitename.com/register/ and after i put it in the settings plugin generate the same address without ref code (it stays the same clear registration link).

    From my point of understanding i believe that this issue should not be hard to correct. However, since i am not the coder i don’t know how to correct it.

    By the way, plugin version that i have used/tested few months ago did not have this issue.

    Looking forward to see your reply (and or anyone other who could help me to resolve this). Thank you.

    Site is running on latest wp, updated plugins, premium evolve plus theme and is hosted at namecheap.

    • This reply was modified 3 years, 10 months ago by justaniceguy. Reason: Improving issue description
    Plugin Author shalior

    (@shalior)

    @lambje you’re welcome.

    @justaniceguy hi again, how are you checking the link generation? is it in copy link box? the [wp-referral-code var=”ref_link”] shortcode?
    I couldn’t reproduce the bug.

    • This reply was modified 3 years, 10 months ago by shalior.
    Thread Starter justaniceguy

    (@justaniceguy)

    I have created a page and placed the shortcode within text block. That is the dumbest and easiest way to have it displayed.

    What i haven’t mentioned is that copy link box does not work in any case (default register url or my own. I just have so called “copy icon” within the box showed at the page but link is not displayed at all.

    I am at work so its a bit complicated to check console for eventual errors. Will do that in 2 hours (as soon as i come back home) and post it here if there is any error.

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

    (@shalior)

    Also try with another user. Thanks

    • This reply was modified 3 years, 10 months ago by shalior.
    Thread Starter justaniceguy

    (@justaniceguy)

    @shalior : First part of your last reply has been deleted so I can not see what were suggestions. Anyway, I am the owner and the admin of the site so i was doing everything with no restrictions of any kind due to site role etc.

    I have logged into another user account and i am not getting the friendly copy box (its copy icon displayed without the link) neither the referral link is generated. In case of ref link it’s shown my site registration link only without ref part.

    Right after I have installed plugin and haven’t edited ref url in the plugin settings link were generated correctly. Once I have edited reg url (into mine) i was not able to get new ref links.

    It came to my mind that plugin generates new ref links after changing it’s length so i have tried to change the setting by putting 8 letters for a ref link instead of default 6. I was hoping that plugin will reset itself by doing that but unfortunately issue stayed ??

    I have checked the console and I don’t see it throws any errors related to plugin. However, I am using WPBakery Page builder (premium updated) that throws bunch of errors but as far as i can notice everything is shown and working properly.

    Also, if i can recall correctly you have mentioned debugger in previous reply. Not sure if i was doing the right way but i cant find nothing related to wp referral code plugin in my site sources within debuger. Yet, no idea how to use it in order to provide you more details.

    • This reply was modified 3 years, 10 months ago by justaniceguy.
    Thread Starter justaniceguy

    (@justaniceguy)

    So I went into my mail trash, found your previous non edited reply and saw you are asking for debug log file. So, i had to google a bit and found out that wp plug in quiery monitor should do the job (display bugs).

    If you have any hints regarding it, how to use it or where to look for bug please provide me with the details.

    And an BIG thank you & apologize from me because of spent time with me and the issue i have.

    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.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Registered members (referral) list that user has referred’ is closed to new replies.