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.

members – Users

Home Forums Community Forum members – Users

This topic contains 2 replies, has 3 voices. Last updated by  Cristián Lávaque 3 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jun 13th, 2013 at 12:31 am #51844

I would like to as a admin create my customers in grups for free with numeric name. For example 555. When is a page created and aprove my customer will be the only one who will create a users and pay membership fee for them. My question is :

1. Customer name – 555
2. When he create a user I would like to that user name automaticly begin with 555- “number” For exaple 555-1 , 555-2 , 555-3 …………

If there is a option in s2member to do this
Thank you!

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Friday Jun 14th, 2013 at 5:35 am #51929
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

s2Member doesn’t have this option available by default no. You would have to hack into s2Member’s registration processes to do this automatically.

See: Knowledge Base » Hacking s2Member® Via Hooks/Filters

This is the file you’re looking for if you’re using Free Registration Pro Forms:

/s2member-pro/includes/classes/gateways/paypal/paypal-registration-in.inc.php

Otherwise, you can hook into the process by filtering the user_register WordPress action hook.

Posted: Friday Jun 14th, 2013 at 6:23 am #51942

No, s2Member doesn’t have a prefix setting for usernames. But if your customer will be adding users manually, he can prefix the usernames manually any way he wants.

Now, to group the customers, instead of the username prefix, he could use a custom profile field, or a custom capability… See:
[hilite path]Dashboard -› s2Member® -› General Options -› Registration/Profile Fields[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Custom Capabilities[/hilite]

Those would make it harder to search for users in a group in your Users list (WP Admin -> Users), but it’d make it simple to protect content based on ccaps using the ccap restriction or conditionals.

I’m not completely sure how you plan to set up the site, but maybe this is also helpful: Video » s2Member (Client Portals?)

Viewing 2 replies - 1 through 2 (of 2 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.