Jonathan
Forum Replies Created
-
Version 3.16.2 is working.
Thanks for the fast turn around!
Forum: Plugins
In reply to: [REST API Log] Are these logs truly accurate?They said every 15 seconds.
But the REST API Log Entries are showing it more like every 108ms…
However, when viewing the site under the Network tab it shows every 15 seconds.
Console Error:
widgetopts.global.js?ver=4.0.5:7 Uncaught ReferenceError: widgetopts10n is not definedI’d prefer to change it for branding purposes.
We are self-hosting the plugin and keeping everything internal.
Would be different if it was a SaaS type solution.
Apparently some plugins can change their cookie settings by redefining them within wp-config?
Still love SliceWP over all others!!!
Forum: Plugins
In reply to: [New Relic Reporting for WordPress] DeprecatedYea I unfortunately have to disable this due to all the “Constant FILTER_SANITIZE_STRING is deprecated in” errors I’m seeing. This is with running php 8.1.
Shame there’s still no response from dev or team to this after 4 months.function gamipress_cslicewp_referral_signup( $user_id ) { $affiliate_id = slicewp_get_referrer_affiliate_id(); // If new registered user has come from an affiliate, then trigger it if( $affiliate_id ) { // Get user id from affiliate id $affiliate_user_id = slicewp_get_affiliate( $affiliate_id ); // Trigger referral sign up event to award the affiliate that gets the new user do_action( 'gamipress_cslicewp_referral_signup', $affiliate_id, $affiliate_user_id, $user_id ); // Trigger become an user through an affiliate event to award the referral that becomes as a new user do_action( 'gamipress_cslicewp_register_referral', $affiliate_id, $user_id, $affiliate_user_id ); } } add_action( 'user_register', 'gamipress_cslicewp_referral_signup' );
Interestingly, the second trigger works.
If a user signs up with affiliate code then they get the reward.
But the first part, to reward the affiliate, still does not work. Perhaps because I made it so members only become affiliates using a gravityforms form? Not at registration?
Got 50% ??
Works perfect!
IMO this should be an addon to remind new sign ups especially due to the mlm component.
The original is
function gamipress_affwp_referral_signup( $user_id ) { $affiliate_id = affiliate_wp()->tracking->get_affiliate_id(); // If new registered user has come from an affiliate, then trigger it if( $affiliate_id ) { // Get user id from affiliate id $affiliate_user_id = affwp_get_affiliate_user_id( $affiliate_id ); // Trigger referral sign up event to award the affiliate that gets the new user do_action( 'gamipress_affwp_referral_signup', $affiliate_id, $affiliate_user_id, $user_id ); // Trigger become an user through an affiliate event to award the referral that becomes as a new user do_action( 'gamipress_affwp_register_referral', $affiliate_id, $user_id, $affiliate_user_id ); } } add_action( 'user_register', 'gamipress_affwp_referral_signup' );
Has something to do with their “$affiliate_id = affiliate_wp()->tracking->get_affiliate_id();” not sure if that’s the same as SliceWP parent or linked customer?
I have the regular get affiliate ID in there already but something wasn’t working.
I got everything except for 1 line of code
https://codefile.io/f/JfTQM0ohYg
This can be a separate addon or until they release an upgrade:
1. If a user signs up from an affiliate then we can reward them, instead of just signing up on their own.
2. Reward the affiliate when someone signs up using their linkGot some code from the wpaffiliate addon and converted it to the best of my non-dev ability for slicewp
https://codefile.io/f/JfTQM0ohYg
I think something like this can work?!
*Correction, going through their affiliatewp plugin the trigger is:
'gamipress_affwp_referral_signup' => __( 'Referral sign up', 'gamipress-affiliatewp-integration' ),
Doesn’t look like there’s much to it but I’ll leave the devving up to the devs ??
This works!
But now, how can I make it so they place the affiliate ID/slug into an input field which then automatically adds the user under that specific affiliate?
Could do this with gravityforms or regular html.
Worked perfectly!!!
Yes, custom html/submit button is perfectly fine!
Thank you.
The roles are given throughout the onboarding process. This way, users that don’t reach a certain role within a specific time get deleted or “cleaned” to prevent spam or fake emails.
I had something similar with awp to convert a user based on a gravityform entry. Maybe apply something similar, when user completed # form then make affiliate?
I can also create an entirely blank gravityforms form with just the submit button and make it visible to users with the specific role. Then clicking on it will simply activate their affiliate access. Could even apply to standard html button?
*Separate question, when a user is deleted from WP, will they also be deleted as an affiliate? or must we manually delete them?