latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Customer Registration based on ID

Home Forums Community Forum Customer Registration based on ID

This topic contains 1 reply, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Thursday Feb 14th, 2013 at 1:41 am #41670

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Feb 15th, 2013 at 5:50 am #41819
Staff Member
You could import the Users ahead of time with s2Member® Pro.
See: Dashboard -› s2Member® -› Import/Export -› User/Member Importation

When you do the import, you can just put in fake email addresses if you like, so the import will succeed. Maybe run them like this: user1@example.com, user2@example.com, etc. Same thing with Usernames perhaps (or maybe create Usernames that match up with the IDs you mentioned). Passwords will be generated automatically by s2Member, or you can specify what you like (either way is fine).

Once you’ve imported them, you could associate data with these accounts, such as a custom access token or whatever you’d like to call it. This would be a secret token for each of these Users, which grants access to the account via links you would distribute to these people.

So you might have a link like this: /?free_access_token=xxxxxxxxxxxxxxxxxxxxxx

Of course you will need a custom script that matches the access token to the actual WP User account so you can log them in, or provide any additional first-time access functionality (like requesting an email address or something). Anyway, just an idea :-)

See: http://codex.wordpress.org/Function_Reference/wp_set_auth_cookie
See: http://codex.wordpress.org/Function_Reference/update_user_option
See also: http://codex.wordpress.org/Function_Reference/get_user_option
See also: http://codex.wordpress.org/Function_Reference/get_users
See also: Knowledge Base » Changing Roles/Capabilities via PHP

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.