Home › Forums › Calendar Products › Community Events › Changing fields and formatting New Event Form
- This topic has 10 replies, 2 voices, and was last updated 10 years, 10 months ago by
Barry.
-
AuthorPosts
-
April 28, 2015 at 2:20 pm #959105
Luciane
ParticipantHello 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
LucianeApril 29, 2015 at 7:27 am #959234Barry
MemberHi 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?
May 4, 2015 at 8:21 am #960221Luciane
ParticipantHello 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 OrganizerI’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 StatesThanks
LucianeMay 4, 2015 at 2:27 pm #960334Barry
MemberHi Luciane,
Iād like to delete:
-Saved Local
-Saved OrganizerSo 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 StatesYou 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” š
May 5, 2015 at 4:14 am #960444Luciane
ParticipantHi 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
LucianeMay 5, 2015 at 6:19 am #960455Barry
MemberHi 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 š
May 7, 2015 at 10:31 am #961222Luciane
ParticipantHi 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 statesDo you know which function calls (and the files) do I need do delete?
Thanks for your help!
May 8, 2015 at 3:04 am #961376Barry
MemberYes – 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?
May 8, 2015 at 11:07 am #961505Luciane
ParticipantIt 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!
May 8, 2015 at 12:02 pm #961517Barry
MemberWould 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 ) ?>" />May 25, 2015 at 10:02 am #964847Barry
MemberHi!
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!
-
AuthorPosts
- The topic ‘Changing fields and formatting New Event Form’ is closed to new replies.
