Home › Forums › Calendar Products › Community Events › Remove country fields and enlarge the title case Events community submission
- This topic has 6 replies, 3 voices, and was last updated 11 years, 7 months ago by
Leah.
-
AuthorPosts
-
July 23, 2014 at 1:49 pm #490733
artencite
ParticipantHello,
I just acquired the community events plugin. I would like to make some changes to the submisssion form.
1 : I would like to enlarge the “title” case and clear it by default
2 : in the text space i got some words that appear [tribe_community_events] by default and i would like to remove it.
3 : Finally i would like to remove the country and state fields.
It’s a bit complicated for me I’m new as webmaster (or webnewbie).July 24, 2014 at 9:38 am #498118Barry
MemberHi – hope you’re enjoying the plugin so far 🙂
For much of your questions some working knowledge of safely customizing the plugin is going to be needed – and so reading through our Themer’s Guide is definitely recommended.
I would like to enlarge the “title” case and clear it by default
I’m not quite clear about what element you wish to target here – is it the Titre (obligatoire)Â text for the title field, or the text within the field itself?
in the text space i got some words that appear [tribe_community_events] by default and i would like to remove it.
OK, I see. This is a bug and we hope to address it in a future release. That said, it only occurs if you have to embed the submission form using the shortcode.
Would it be possible for you to switch to using so-called “pretty permalinks”, which avoids the need for a shortcode and so avoids this problem altogether?
Finally i would like to remove the country and state fields.
OK – so the key to this is setting up custom templates (the Themer’s Guide linked to above covers this). In this specific case, the community/modules/venue.php template is the one to look at and you would remove the following section:
<tr class="venue"> <td> <label for="EventCountry"> <?php _e( 'Country', 'tribe-events-community' ); ?>: </label> </td> <td> <select class="chosen" name="venue[Country]" id="EventCountry"> <?php foreach ( TribeEventsViewHelpers::constructCountries() as $abbr => $fullname ) { echo '<option value="'. esc_attr( $fullname ) .'" '; if($abbr == '') echo "disabled='disabled' "; selected( $venue_country == $fullname ); echo '>'. esc_html( $fullname ) .'</option>'; } ?> </select> </td> </tr><!-- .venue --> <tr class="venue"> <?php if ( !isset( $venue_stateProvince ) || $venue_stateProvince == '' ) $venue_stateProvince = -1; ?> <td> <label for="StateProvinceText"> <?php _e( 'State or Province', 'tribe-events-calendar' ); ?>: </label> </td> <td> <input id="StateProvinceText" name="venue[Province]" type="text" name="" size="25" value="<?php echo ( isset( $venue_province ) && $venue_province != '' && $venue_province != -1 ) ? esc_attr($venue_province) : ''; ?>" /> <select class="chosen" id="StateProvinceSelect" name="venue[State]"> <option value=""><?php _e( 'Select a State', 'tribe-events-community' ); ?></option> <?php foreach ( TribeEventsViewHelpers::loadStates() as $abbr => $fullname ) { echo '<option value="' . esc_attr($abbr) .'" '; selected( $venue_state == $abbr ); echo '>'. esc_html( $fullname ) .'</option>'. "\n"; } ?> </select> </td> </tr><!-- .venue -->Does that help?
July 24, 2014 at 1:31 pm #499067artencite
ParticipantThank you for your help, i can go on a little bit.
I give you details for the 1 :
the title fields is already filled with : “soumettre un Ă©vènement” and the field in the case is really too short.
For the second point : I would be grateful if you can give me some links to learn about “pretty links”.
Concerning the third point you resolved it ! Thanks a lot !!July 24, 2014 at 1:57 pm #499166Barry
MemberAwesome – glad that part is resolved 🙂
the title fields is already filled with : “soumettre un évènement” and the field in the case is really too short.
Ah, I see. In that case the problem is pretty much identical (in nature) to the 2nd issue you raised and can probably be resolved by switching to pretty permalinks.
For the second point : I would be grateful if you can give me some links to learn about “pretty links”.
Definitely – please see here.
Unless for some reason your hosting environment does not allow pretty permalinks, this is a much better way to go and is normally as simple as visiting the Permalink Settings screen, selecting %postname% or some other pattern and saving the changes.
With that done, you should find that you can reach the Community Events submission page at:
…/events/community/add
The actual link will be available via the admin toolbar, so check their first.
Does that help?
July 24, 2014 at 3:11 pm #499388artencite
ParticipantHello,
You have resolved all my problems ! Thanks a lot !July 25, 2014 at 6:19 am #505612Barry
MemberExcellent, I’m glad that helped 🙂
In that case I’ll go ahead and close this thread but if we can help with anything else please don’t hesitate to create new threads as needed. Also, last but not least, if you had a moment and wished to leave a review on our plugin review page that would definitely be appreciated.
Thanks again!
September 26, 2014 at 11:56 am #768930Leah
MemberHi there,
I just wanted to let you know that we were able to work on this issue for our upcoming 3.8 release. Keep an eye out on your site for an update announcement! If you update and are still seeing this problem, please post a new thread so we can check it out. Thank you for your patience while we got this fix in place.
Best,
Leah
and the team at Modern Tribe -
AuthorPosts
- The topic ‘Remove country fields and enlarge the title case Events community submission’ is closed to new replies.
