WordPress.org

Ready to get started?Download WordPress

Forums

Buddypress Xprofile Custom Fields Type
[resolved] restrict registration by birthday (in Buddypress) (4 posts)

  1. picchio89
    Member
    Posted 1 year ago #

    Hi there,
    I'm using buddypress and I've set the birthday field in the registration

    since my site is for child I'd like only people from 9 to 17 years can register.

    it exist any way to stop the registration process if your age doesns't match this criteria?

    thanks

    http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/

  2. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Well, this is not the best thing but the easies way to do this is to only allow people to select those dates. For example if I register today, I only can select a birthdate from 1995 to 2002.

    The other way a little more complicated but better is validating the birthdate. Adding a function to your functions.php in your theme can be enough. I think this post http://code.hyperspatial.com/620/buddypress-signup-form-hook/ can help you.

  3. Andres Felipe
    Member
    Posted 1 year ago #

    Hi, hope this could help

    You can use BP xtra singup plugin is outdated but still works.

  4. smartsite4u
    Member
    Posted 11 months ago #

    I am trying to find the best way to do this as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic