shalior
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Referral Code] Plugin Author does not RespondI do still track critical bugs and issues. however my time is limited unfortunately. Is there anything i can help you with?
Forum: Plugins
In reply to: [WP Referral Code] Is this plugin still being maintained?I’m thinking maybe the plugin should have it’s own table/page, Maybe in the next version
Forum: Plugins
In reply to: [WP Referral Code] Is this plugin still being maintained?No problem, Language barrier i guess ??
Click on the user you want to manage, scroll down till you see this
Forum: Plugins
In reply to: [WP Referral Code] Is this plugin still being maintained?Hey, Maintainer here
You’ll find it in the user edit page, WP-admin -> Users -> select one
Forum: Plugins
In reply to: [WP Referral Code] $referrer_user_id is returning incorrectlyI may add this feature to plugin’s core, Hopefully in the next update.
Forum: Plugins
In reply to: [WP Referral Code] $referrer_user_id is returning incorrectlyMy next issue is the plugin is only recording 1 referral per user. Their first referral is recorded, but after 1 person signs up on their referral link it’s basically a dud and won’t trigger anything. Chat GPT doesn’t seem to have an answer for me for this one.
The plugin removes referral cookies after a successful registration. try to test the process with incognito mode. make sure you have a link with
?ref=[user_ref_code]
Forum: Plugins
In reply to: [WP Referral Code] $referrer_user_id is returning incorrectlyHey Justin,
%3D
is urlencoded equivalent of `=
. My guess is somewhere in generating the URL you’re using an encoding of some sort.try to generate the URL with:
$user_link = admin_url( 'user-edit.php?user_id=' . $referrer_user_id);
using the native mail function in WordPress is considered to be bad practice. you’re gonna face problems using it.
also maybe setting mail’s content to text/html solves your issue.
- This reply was modified 1 year, 10 months ago by shalior.
Forum: Plugins
In reply to: [WP Referral Code] AvatarHey, Welcome back pal. np.
It’s okay, this is a free open-source software and it’ll remain this way. Thank you tough.About your request, the below snippet shows the avatar but it needs CSS styling to look nice! Or maybe it is okay already.
48
in code is for the size in pixels.It is NOT tested.
add_filter( 'wp_referral_code_invited_user_text', function ($login, $user_id){ ob_start(); ?> <div class="shalior-avatar-username"> <div><?php get_avatar($user_id, 48) ?></div><div><?php esc_html_e($login); ?></div> </div> <?php return ob_get_clean(); }, 10, 2 );
- This reply was modified 2 years, 1 month ago by shalior.
Forum: Plugins
In reply to: [WP Referral Code] How to retrieve a user’s number of referred users by code?Hello,
$ref_code = new WP_Refer_Code( $user_id ); $count = empty( $ref_code->get_invited_users_id() ) ? '0' : count( $ref_code->get_invited_users_id() );
as name suggests
$count
holds the counting for$user_id
Forum: Plugins
In reply to: [WP Referral Code] Question about invite statsIs there a way to reset the invite referral count? If a referred member cancels their account or deletes it, the referrer number should decrease to reflect current referrals. How would I go about that?
There is actually, I don’t believe it should be default behavior though.
what plugin of yours has account cancelation? I want to get some context so I can send you a PHP snippet.Is there a way to show what member role the referral belongs to?
It is also possible, where do you want to show this info? WordPress admin or the shortcode’s list? below snippet updates shortcode list with display name and roles
add_filter('wp_referral_code_invited_user_text' , function ($user_login, $user_id){ $user = get_userdata( $user_id ); $roles = $user->roles; return esc_html($user->display_name . ' ' . implode(',' , $roles)); } , 10, 2);
Thanks. I like the plugin but a little concerned at the delays in support response. Hope all is well.
Thank you, Everthing is fine it’s just me being super busy.
Forum: Plugins
In reply to: [WP Referral Code] Hook Or Schortcode for UsersHey, Thank you!
The plugin actually has a shortcode for this:
[wp-referral-code var="invited_count"]
You can see a list of available shortcodes on the settings page.
Let me know if you have further questions.No problem. Noticed a bug myself and version 1.4.3 is released.
Make sure to update to the latest version.Thank you for using the plugin. I really appreciate your help with suggestions and bug reports.
Forum: Plugins
In reply to: [WP Referral Code] mannually add referralsThis is released.
Hello, Thank you for reporting. The fix is released. Would please you test again?
Forum: Plugins
In reply to: [WP Referral Code] mannually add referrals@justaniceguy I agree the plugin should have this option.
@reggielee31 have you implemented it? I would appreciate a PR in github
anyways the plugin will have this feature, hopefully, next week.