Page 1 of 1

restrict number of posts

PostPosted: November 16th, 2011, 4:19 pm
by harryhayes
Hi Please could you advise if it is possible to use S2 to create memberships restricting users by the number of posts they can make whilst allowing full read access.

ie -
level 0 - can make up to 0 posts
level 1 10 posts
level2 100 posts - etc.

If this is possible, please could you offer some pointers for configuration.

Thanks you

Re: restrict number of posts

PostPosted: November 18th, 2011, 2:14 am
by Cristián Lávaque
Hi Harry.

s2Member doesn't manage access to the admin side of WordPress, and posting is part of it.

You can play with the capabilities to add that ability to the users.
https://wordpress.org/extend/plugins/user-role-editor/
https://codex.wordpress.org/Roles_and_C ... pabilities

You'd also need to do some more customization to add a conditional that checks the user level and number of posts to decide when to remove the capability for that user. viewforum.php?f=37

I hope this helps. :)