Required fields for organiser

Home Forums Calendar Products Community Events Required fields for organiser

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1573449
    lucy maddison
    Participant

    Hi,
    I want to make sure that all events are submitted with and organisers name, email and phone as required fields. I have the following code, not sure if this is correct. Also as mentioned in a previous ticket that hasn’t been replied to. I want the default organiser field to be blank but it comes up with Streatham festival every time
    Thanks

    add_filter( ‘tribe_events_community_required_fields’, ‘my_community_required_fields’, 10, 1 );

    function my_community_required_fields( $fields ) {

    if ( ! is_array( $fields ) ) {
    return $fields;
    }

    $fields[] = ‘organizer’;
    $fields[] = ‘venue’;
    $fields[] = ‘EventStartDate’;
    $fields[] = ‘Email’;
    $fields[] = ‘Phone’;

    return $fields;
    }

    #1573938
    lucy maddison
    Participant

    Hi, I have removed Email and Phone as they were causing some issues. Can I get a response to this please. Its really important the the email and phone are required

    Thanks!

    #1575107
    Cliff
    Member

    Hi, Lucy.

    For reference, the other thread of yours I found was https://theeventscalendar.com/support/forums/topic/default-organiser-not-working/

    https://theeventscalendar.com/knowledgebase/required-fields-for-events-submission-form/ is our article regarding this topic. It provides the how-to for what you’re wanting to do. See the “Customizing Required Organizer Fields” section of this article, and then let me know if you have any follow-up questions on this topic.

    #1575878
    lucy maddison
    Participant

    Hi Cliff,
    Thanks for your reply. I am well aware of that link to information. It does not answer my question. I have set up my form to have required fields for email and phone and that works. However it would be great if when the submission Email notification is sent through it has not just that name of the organiser but also the email and phone number.
    I am desperate to get this sorted. I am no php expert and no links to information is going to help me I just need to know the correct code and where to put it.

    Thankyou

    #1576619
    Cliff
    Member

    Please know that providing customizations is not part of our support, per our Scope of Support / Terms. We can point you in the right direction and help discuss pros and cons of various options (if you have alternative ideas), but we do not provide custom code solutions because each customer’s need is different.

    On occasion, we provide snippets to override how something works. We try to keep this to a minimum and aim for snippets that are reusable by many or fix something that’s broken while awaiting the actual plugin’s update to fix the issue permanently.

    Additionally, Themer’s Guide (our “how-to” walk-through video may prove helpful) types of customizations are the most difficult to provide a snippet for because it means sharing an entire PHP file. Therefore, we almost always avoid providing code solutions for such questions.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    ===

    All that being said, here’s some information to try to help you along with your current customization question(s):

    The email that Community Events sends comes from /wp-content/plugins/the-events-calendar-community-events/src/views/community/email-template.php

    In order to customize the email that comes through, you’ll have to follow our Themer’s Guide (links are above) to customize/override this file.

    #1592123
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Required fields for organiser’ is closed to new replies.