This topic has 16 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #156209
     notright
    Participant

    Help! I’m getting 17 year olds on signing up on my website. They are people who will be 18 this year but haven’t yet turned 18. This is serious as it could land me in a lot of hot water. I’ve tried fiddling with the dates but it doesn’t seem to work. The only way I’ve found is to delete the year 1998 but I don’t want to exclude legitimate 18 year olds.

     

    Also in the members page how do I control the three fields that show up. Right now mine are ‘city’ ‘age’ and ‘marital status’

     

    Please assist and thank you for your past assistance.

    #156315
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156368
     Radu
    Moderator

    Hi,

    Using a plugin that can do this, you can try this one: https://wordpress.org/plugins/age-verify/screenshots/

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #156406
     notright
    Participant

    Thank you

    Now do my second question that was listed on this. How do I change the fields displayed on the members page? Right now it does age marital status and city. I want age marital status and I am a.

    Attachments:
    You must be logged in to view attached files.
    #156511
     Radu
    Moderator

    Hi,

    You can do that using this function

    COPY CODE
    
    function overwrite_mebers_dir_meta() {  
        $marital_status = bp_get_member_profile_data('field=Marital status');
        $marital_status = bp_get_member_profile_data('field=I am a');
        $output['age'] = apply_filters('kleo_bp_meta_after_age', get_member_age(bp_get_member_user_id()));
        $output['marital_status'] = $marital_status;
        $output['i_am_a'] = $i_am_a;
        return $output;
    }
    add_filter('kleo_bp_meta_fields', 'overwrite_mebers_dir_meta');
    

    Make sure to have identical name of the field as how you have added in backend on $marital_status and $marital_status variable and that’s all you should copy the code to function.php of your child theme

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #156517
     notright
    Participant

    Okay so the plug in didn’t work. It’s still allowing 17 year olds that were born in 1999 to register. This is very serious as it could land me in a lot of legal trouble even though we’re not a porn site. Can we please come up with a solution?

    Thank you

    #156606
     Radu
    Moderator

    I see, but the theme hasn’t been built with such as feature and you should search for a plugin that can do that or for a script and to implement it to the site, and we cannot implement that for you since it’s something custom.

    But i can recommend you some things that I found on google

    https://ageverify.co/get-started/ take a look at this or implement this free and standalone solution http://www.jqueryscript.net/other/Website-Age-Verification-Plugin-with-jQuery.html

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #156672
     notright
    Participant

    When I tried to add the code I couldn’t get the marital status to show up so I just removed the code. Now, however, the marital status still doesn’t show up. Please assist. The fields I want to to show up are “age” “I am a/an” “Marital Status”

    #156827
     Radu
    Moderator

    Hi,

    Check the attachment

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #156891
     notright
    Participant

    Sir I have done this. I copied and pasted the link and copied and pasted my marital status profile field and it is still not functioning properly.

    #157090
     Radu
    Moderator

    Hi,

    Please replace the code with this one

    COPY CODE
    
    function overwrite_mebers_dir_meta() {  
        $marital_status = bp_get_member_profile_data('field=Marital status');
        $i_am_a = bp_get_member_profile_data('field=I am a');
        $output['age'] = apply_filters('kleo_bp_meta_after_age', get_member_age(bp_get_member_user_id()));
        $output['marital_status'] = $marital_status;
        $output['i_am_a'] = $i_am_a;
        return $output;
    }
    add_filter('kleo_bp_meta_fields', 'overwrite_mebers_dir_meta');
    

    Let me know
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #157150
     notright
    Participant

    Still no change sir. Will you please log into the site yourself and see what the problem is as I have tried everything and I cannot resolve why its not showing the fields I want it to show?

    #157243
     Radu
    Moderator

    The login credentials not works provide them in a private reply

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #157257
     notright
    Participant
    This reply has been set as private.
    #157583
     Radu
    Moderator

    done please check

    Next time pay attention to the files names

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #157586
     notright
    Participant

    First off I followed your instructions second when I deleted the new code it should’ve reverted to its original form but it didn’t. I don’t know why.

    #157731
     Radu
    Moderator

    I’ve maden yesterday that I cannot do again the same thing, since this should not be covered by support team

    Yesterday works after I’ve looked at it.

    Paste again there the fileds names with copy paste and it works

    Focus

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?