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.

cap free member amount

Home Forums Community Forum cap free member amount

This topic contains 3 replies, has 2 voices. Last updated by  Mike (Volunteer Moderator) 3 years, 5 months ago.

Topic Author Topic
Posted: Saturday Aug 3rd, 2013 at 6:03 pm #54854

I’m looking at capping the amount of users that can sign up for the free membership.

Is there a shortcode for this?

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Sunday Aug 4th, 2013 at 5:06 pm #55097
Moderator

I’m looking at capping the amount of users that can sign up for the free membership.

Is there a shortcode for this?

Nothing built-in. However, you can wrap a Shortcode with something like this.

<?php $free_users = count(get_users('role=subscriber')); ?>

<?php if($free_users < 100) { ?>

	[s2Member-Pro-PayPal-Form register="1" /]
	
<?php } else { ?>
	Sorry, we are no longer accepting free registrations.
<?php } ?>

See also: Knowledge Base » ezPHP Plugin for WordPress®

Posted: Monday Aug 5th, 2013 at 5:18 pm #55242

thanks for that.

is that definitely correct? I’m getting the ‘sorry we are no longer accepting…’ message under my pro form currently

Posted: Monday Aug 5th, 2013 at 7:50 pm #55254
Moderator

Thanks for the follow-up :-)

How many free subscribers do you have currently?

Also, do you have a PHP execution plugin running yet?
See: Knowledge Base » ezPHP Plugin for WordPress®

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.