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.

Limiting Registration To Certain Level

Home Forums Community Forum Limiting Registration To Certain Level

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

Topic Author Topic
Posted: Tuesday Jul 3rd, 2012 at 1:55 am #18126
Ron
Username: dreamjobu

Hi,

I would like to ask for help. We wanted to limit number of registration for our Level 1 to certain number. After reaching the desired number of registrants, we want to show a page that says “Sorry this offer is sold out. Please use our regular membership page for a free 30 day trial”

How can we best accomplished this?

Best,
Ana

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Jul 3rd, 2012 at 7:25 am #18173

Hi Ana.

You’ll need to do a query to know how many Level 1 users you have and then use that in a conditional where you check if it’s above or below the limit you want, and based on that display the corresponding content.

These may be useful:

[hilite pre_code]
$level1_users = get_users('role=s2member_level1');
[/hilite]

http://codex.wordpress.org/Function_Reference/get_users
http://php.net/count
[hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Download Restrictions[/hilite]

I can’t do the actual customization for you, but that should help you or your developer do it. :)

Posted: Tuesday Jul 3rd, 2012 at 8:36 pm #18235
Ron
Username: dreamjobu

Hi Cristian,

Thank you for fast reply. I will try that :)

Best,
Ana

Posted: Wednesday Jul 4th, 2012 at 11:38 pm #18330

Cool. I hope it helps. :)

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