Remove country fields and enlarge the title case Events community submission

Home Forums Calendar Products Community Events Remove country fields and enlarge the title case Events community submission

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #490733
    artencite
    Participant

    Hello,
    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).

    #498118
    Barry
    Member

    Hi – 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?

    #499067
    artencite
    Participant

    Thank 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 !!

    #499166
    Barry
    Member

    Awesome – 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?

    #499388
    artencite
    Participant

    Hello,
    You have resolved all my problems ! Thanks a lot !

    #505612
    Barry
    Member

    Excellent, 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!

    #768930
    Leah
    Member

    Hi 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Remove country fields and enlarge the title case Events community submission’ is closed to new replies.