Changing fields and formatting New Event Form

Home Forums Calendar Products Community Events Changing fields and formatting New Event Form

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #959105
    Luciane
    Participant

    Hello I’m using the plugin and would like to know where is the file of the New Events Submission Form. I would like to take off some fields from this form.

    Another question is about the formatting because I changed my theme and now some fields are overlapping. How can I change the css of these fields ?

    Follow the page of my form: http://trilheiros.net/calendario/comunidade/add

    Thanks
    Luciane

    #959234
    Barry
    Member

    Hi Luciane,

    We’re happy to help but we do try to stick to one question per support topic. Let’s look at your first question here and if you can create a new topic for the styling issues that would be appreciated šŸ™‚

    Hello I’m using the plugin and would like to know where is the file of the New Events Submission Form. I would like to take off some fields from this form.

    So the best starting point is our Themer’s Guide, which covers the basics of safely overriding our templates.

    Most of the fields are contained within various files found in the following directory:

    the-events-calendar-community-events/views/community/modules

    There is a template within there called venue.php for instance – this contains fields relating to venues and can be overridden by creating a copy within your theme, like so:

    themes/YOUR_THEME/tribe-events/community/modules/venue.php

    The same applies to all of the other templates.

    Does that help?

    #960221
    Luciane
    Participant

    Hello Barry,

    Thanks for your return!
    I found this file but I did not find the fields that I was looking for so I can make the changes that I need. For example:

    I’d like to delete:
    -Saved Local
    -Saved Organizer

    I’d like to translate:
    – “Organizer Name” to “Nome do Organizador”
    – “Currency Symbol” to “Moeda”
    – “Cost” to “PreƧo”

    I’d like to change:
    – Brazil as a default country
    – The list of States

    Thanks
    Luciane

    #960334
    Barry
    Member

    Hi Luciane,

    I’d like to delete:
    -Saved Local
    -Saved Organizer

    So you’ll be interested in the modules/venue.php and modules/organizer.php templates here – the function calls you need to remove respectively are:

    • tribe_community_events_venue_select_menu()
    • tribe_community_events_organizer_select_menu()

    I’d like to translate:
    – ā€œOrganizer Nameā€ to ā€œNome do Organizadorā€
    – ā€œCurrency Symbolā€ to ā€œMoedaā€
    – ā€œCostā€ to ā€œPreƧoā€

    The best way to do this is configure your WordPress site to operate in the appropriate language – and if you find any translations are missing simply post on our translations forum to share the corrections/additions.

    The WordPress Codex contains a lot of resources about translation which are useful when translating plugins like our own, too.

    I’d like to change:
    – Brazil as a default country
    – The list of States

    You can set a default country via the Events → Settings → Default Content screen. To build a custom list of states you would need to “roll your own” šŸ™‚

    #960444
    Luciane
    Participant

    Hi Barry,

    About the functions, I“ll try to delete them.

    And I“ll post the translations missing on the forum, but while they are actualizated where I can find those titles to translate?

    Another doubt I don“t know what is &rarr? If you could tell where are the files, I could try to change the country and states.

    Thanks
    Luciane

    #960455
    Barry
    Member

    Hi Luciane,

    Once again, we try hard to stick to one question per topic and you’re asking about lots of different things here! If you need further help with translations please do post in the translations forum and someone will be happy to help with that issue.

    Another doubt I don“t know what is &rarr? If you could tell where are the files, I could try to change the country and states.

    Did you see “&rarr” in the notification email when I last updated the topic? If so it may just have been bad formatting in the email, please see my actual response above instead (which was that you can make adjustments to the list of default countries in our settings screen).

    Alternatively, try overriding this section from the modules/venue.php template (if you want to replace the list of US states with regions from another country:

    https://gist.github.com/anonymous/46aad80d2a4c5806a8f9

    We would not recommend that you edit core plugin code, however, and there isn’t really any need to do so here šŸ™‚

    #961222
    Luciane
    Participant

    Hi Barry!

    I didn’t manage to create a new list of states (Its only possible to create a new list of countries at the settings) and the lists of countries are not translated to Portuguese yet… šŸ™
    So I prefere to delete this fields from the New Event Form:
    – keep the country field and delete the list of countries
    – keep the state field and delete the list of states

    Do you know which function calls (and the files) do I need do delete?

    Thanks for your help!

    #961376
    Barry
    Member

    Yes – from within your custom copy of modules/venue.php, remove these sections:

    https://gist.github.com/anonymous/b2f68acf8668c90a63a4

    https://gist.github.com/anonymous/a7a2a410f833af26129f

    Does that help?

    #961505
    Luciane
    Participant

    It works for the states!:)

    But for the country I lost all the field country… I Would like to keep the field in blank (just delete the list of countries). How can I do that?

    Thanks!

    #961517
    Barry
    Member

    Would it work for you to restore the code that generates the country list and simply use that (and of course define a custom list as you already explored)?

    I’m not sure I understand why that won’t work for you, but if you are certain you want a plain text field you would add some code like this:

    <input name="venue[Country]" type="text" value="<?php esc_attr_e( $venue_country ) ?>" />

    #964847
    Barry
    Member

    Hi!

    It’s been a while so I’m going to go ahead and close this topic.

    • Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
    • Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context

    Thanks!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Changing fields and formatting New Event Form’ is closed to new replies.