Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter Alphie

    (@jvb1103)

    Anyone??

    Thread Starter Alphie

    (@jvb1103)

    Plugin Author conormccauley

    (@conormccauley)

    Maybe I’m missing something here but why are they trying to enter results for a race that hasn’t happen yet?

    Thread Starter Alphie

    (@jvb1103)

    That’s the problem. The race has a date of Dec 31, 2015. They have all year to enter their times. This user’s birth date year is 1980.

    Plugin Author conormccauley

    (@conormccauley)

    Ok, it sounds like the error message is a little inaccurate but essentially the behaviour is correct, you cannot enter results either before you were born or after the current date.

    Can you elaborate a little why you wish to enter a race result on Dec 31st 2015, is it a competition to predict times or something?

    Thread Starter Alphie

    (@jvb1103)

    I need this plugin to not force date and location fields in the “Create a new event” form. Ideally for me the only required fields when creating an event should be Event Name and Distance. As a workaround I make the event date the last day of the year.

    How can I make the Location and Date fields not required in the “Create an Event” form? At a minimum the date field.

    stefanievalentic

    (@stefanievalentic)

    I’m having the same issue for some events that already took place – 2014 or 2015.

    stefanievalentic

    (@stefanievalentic)

    And this is for multiple users – all birthdates are significantly different. I don’t really have the time to manually enter results for 300 club members. I appreciate this plugin being free, but I would really like it to work without the multiple errors I’ve encountered. I would gladly donate or pay a premium if it wouldn’t mean having to troubleshoot every few days. It’s a great concept but it definitely needs work.

    Thread Starter Alphie

    (@jvb1103)

    Conor, Is there a way to make certain form fields not required when creating an event but required when a user enters their time? If you could just tell me what file to look at or piece of code to alter that would be great.

    Plugin Author conormccauley

    (@conormccauley)

    Hi all. I’ve made a new release which will hopefully fix your problem.

    You will still be alerted if the system can’t determine your age category based on the provided date but it will still accept the date and you can manually select the age category.

    Plugin Author conormccauley

    (@conormccauley)

    Alphie,

    There is no way to configure the plugin to require certain fields or not, there is no real need for it. In your case you’re going to have to edit the plugin yourself.

    If you do not want a certain field required, for example date of event, here are the steps:

    1. Go to and edit the file wp-athletics-functions.php
    2. Find the input field for which you do not want to require a value for. In this case it’s the date of birth input field which has an ID of “addResultDate”.
    3. Remove the class “add-result-required” from the input element.
    4. Remove the class “required” from the label element above it.

    Save the file, and that should be it. You can now enter results without an event date.

    Plugin Author conormccauley

    (@conormccauley)

    To allow events in the future, again I’m not going to release a new version that allows the entry of future events because of this single use-case but you can achieve it by following the steps below.

    1. Go to and edit the file wpa-functions.js
    2. Find line #2173
    3. Comment out this line by adding // to the beginning, i.e it becomes //maxDate: 0,

    Save the file and you can now enter dates up until the end of the year.

    Thread Starter Alphie

    (@jvb1103)

    Re: Required Fields
    Thanks for the steps, Conor. Unfortunately removing the “add-result-required” class still doesn’t allow the user to add data to those fields later when they enter their results.

    Plugin Author conormccauley

    (@conormccauley)

    Alphie, I have tested this and validated it works. Once that class is removed the field is not required, there must be a mistake somewhere.

    I am confused by your wording, you want to allow users to enter a result without a date, correct?

    Thread Starter Alphie

    (@jvb1103)

    Hello,
    Yes, as admin I want to create an event without a location or date. Then the athlete can go in and add that information when they enter their finish times. Right now I can create the event without the date and location but when an athlete goes in to enter their times the location and date fields are empty and locked and they cannot enter data either. I assume I need to unlock those fields on the form they get when they enter their time too? Is that a different location than wp-athletics-functions.php page?

    Thank you!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Error says user wasn't born when race took place’ is closed to new replies.