Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate: how to have affiliates automatically logged in *without* eMember?
Tagged: automatic login, WP Affiliate
- This topic has 11 replies, 3 voices, and was last updated 12 years, 6 months ago by Roger MacRae.
-
AuthorPosts
-
April 25, 2012 at 7:14 am #6171Chris AitkenMember
Today I purchased WP Affiliate and will be integrating with my WP eStore and WP PDF Stamper products. My site, however, runs on Wishlist Member.
I have only told my affiliates about how to access affiliate information from within our site (I’m using the [wp_affiliate_view] shortcode. Is there a way to make WP Affiliate automatically login a member, assuming the affiliate ID is identical to the WordPress user ID and the user is logged into WordPress?
Thanks, Chris
April 26, 2012 at 12:01 am #44410adminKeymasterHi Chris, At the moment there is no option for the affiliate plugin to log the user into WordPress automatically
April 26, 2012 at 4:10 am #44411Chris AitkenMemberThanks for the quick reply. When I re-read my question, I realized I wasn’t totally clear! What I was trying to ask is the following:
If I have a user already logged into WordPress using the same ID as their affiliate ID, and I’m using the [wp_affiliate_view] shortcode, is there a way to make WP Affiliate automatically login the user to WP Affiliate without having them click the Login button and enter exactly the same username/password as their WordPress ID/password?
Thanks, Chris
April 26, 2012 at 12:51 pm #44412adminKeymasterThat is something I can look into.. it should be doable.
April 29, 2012 at 7:03 am #44413Chris AitkenMemberThanks so much! That would be incredibly helpful … please let me know if there is any additional information I can provide.
Cheers, Chris
May 6, 2012 at 8:58 am #44414Roger MacRaeMemberI would love to see this as well
May 10, 2012 at 8:07 am #44415adminKeymasterI have added an option for this. You can use the newly added option to automatically log in a logged in WP user into the corresponding affiliate account (if they have one). Get a new build of the plugin from here:
https://support.tipsandtricks-hq.com/update-request
Then do the following to enable this option:
1) Open the “wp_aff_advanced_configs.php” file and look for the following line of code:
define('WP_AFFILIATE_AUTO_LOGIN_WP_USERS', '0');
2) Once you find it change it to the following:
define('WP_AFFILIATE_AUTO_LOGIN_WP_USERS', '1');
That should do it.
May 15, 2012 at 8:30 pm #44416Roger MacRaeMemberawesome awesome awesome. Now is there a way to have people automatically added as affiliates when are added as a wordpress user?
May 16, 2012 at 2:31 am #44417adminKeymasterNo but I will look into that. (You can import your WordPress users as affiliates though)
May 18, 2012 at 12:24 am #44418Roger MacRaeMemberyeah and while the import is a great option for the moment it is not viable for the long term. It would be great if you could just have new users automatically added.
May 23, 2012 at 5:31 am #44419adminKeymasterWe have completed this feature work so whenever a WordPress user is created an affiliate account will also get created for that user. You can find the settings for this feature in the following area:
WP Affiliate Settings -> WP User Settings tab
May 23, 2012 at 10:45 am #44420Roger MacRaeMemberThat’s awesome. Thank you very much. Now just one more thing. Can we make this work both ways.
What I mean by both ways is:
If they register as a wordpress user they are automatically added as an affiliate if they aren’t one already.
or
If they register as an affiliate they are automatically registered as a wordpress user if they aren’t one already.
-
AuthorPosts
- You must be logged in to reply to this topic.