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.

Limit number of users per registration form

Home Forums Community Forum Limit number of users per registration form

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

Topic Author Topic
Posted: Tuesday Jun 18th, 2013 at 1:54 pm #52133
David Ryan
Username: dryan1144

We’re using pro forms to create free registration for employees from different companies.

Each form has a different custom capability (company name) so that we can keep track of who is signing up from which company. So far so good.

Here’s my question: is there a way to limit the number of registrations for a particular pro form? We only want a maximum of X number of employees to sign up through their unique registration form. After that, disable the form.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Jun 19th, 2013 at 6:56 am #52196

There isn’t a feature for that, no. You could write some PHP that queries the database to find all the users that have that ccap, and based on the result, show or not the pro-form.

Or you could implement a counter that gets updated with every registration (the Registration Notification would help), and check that counter before showing the pro-form.

[hilite path]Dashboard -› s2Member® -› API / Notifications -› Registration Notifications[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]

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.