Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter yajanssen

    (@yajanssen)

    Need answers to Question 1, 3a and partial 3b.

    Question #2 has been resolved

    Question #3b: My steps –
    I omitted the following in the editor: (this omitted province and country.)

    <tr class="venue">
    	<td><?php _e('Country:','tribe-events-calendar'); ?></td>
    	<td>
    		<?php
    			$countries = TribeEventsViewHelpers::constructCountries( $postId );
    			$defaultCountry = tribe_get_option('defaultCountry');
    			if (isset($_VenueCountry) && $_VenueCountry) {
    				$current = $_VenueCountry;
    			} elseif (isset($defaultCountry[1]) && tribe_get_option('defaultValueReplace')) {
    				$current = $defaultCountry[1];
    			} else {
    				$current = null;
    			}
    		?>
    		<select class="chosen" tabindex="<?php $this->tabIndex(); ?>" name='venue[Country]' id="EventCountry">
    			<?php
    			foreach ($countries as $abbr => $fullname) {
    				echo '<option value="' . esc_attr($fullname) . '" ';
    
    				selected(($current == $fullname));
    
    				echo '>' . esc_html($fullname) . '</option>';
    			}
    			?>
    		</select>
    	</td>
    </tr>
    <tr class="venue">
    	<?php if(!isset($_VenueStateProvince) || $_VenueStateProvince == "") $_VenueStateProvince = -1; ?>
    	<td><?php _e('State or Province:','tribe-events-calendar'); ?></td>
    	<td><input tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceText" name="venue[Province]" type='text' name='' size='25' value='<?php echo ( isset($_VenueStateProvince) && $_VenueStateProvince != '' && $_VenueStateProvince != -1 ) ? esc_attr($_VenueProvince) : esc_attr(''); ?>' />
    	<select class="chosen" tabindex="<?php $this->tabIndex(); ?>" id="StateProvinceSelect" name="venue[State]">
    		<option value=""><?php _e('Select a State:','tribe-events-calendar'); ?></option>
    		<?php
    			foreach (TribeEventsViewHelpers::loadStates() as $abbr => $fullname) {
    				echo '<option value="'.$abbr.'"';
    				if( $_VenueStateProvince != -1 ){
    					selected((( $_VenueStateProvince != -1 ? $_VenueStateProvince : $_VenueState) == $abbr));
    				}
    				echo '>' . esc_html($fullname) . '</option>';
    			}
    		?>
    	</select>
    
    	</td>
    </tr>

    **********************************************8
    Then I added:

    <tr class="venue">
    	<td><?php _e('County:','tribe-events-calendar'); ?></td>
    	<td><input tabindex="<?php $this->tabIndex(); ?>" type='text' name='venue[County]' size='25' value='<?php if( isset($_VenueCounty) ) echo esc_attr($_VenueCounty); ?>' /></td>
    </tr>

    *************************
    What am I missing? When I enter it in my event, it does not take.
    Any way, I can use the taxonomies of my theme “Listings”?

    Hey there, yajanssen. Thanks for the note here and apologies that we’ve taken some time to get you a response here (in general we hit this forum 1x/week, but we missed last week since much of the team was on vacation). We’re back in the saddle now and I’d like to help you out best I can on these.

    Glad to hear you got #2 resolved. For #1, the easiest way to find a resolution without modifying any code would just be to go to Events –> Settings and try the different templating options under the Template tab. The plugin comes with a couple of its own and your theme will likely include some too. Each of those options alter the display on the frontend and chances are you’ll find one that shifts the alignment where you want it. (Though, let me know if not).

    For 3a, you can totally change this but it’d require popping open the events.css file and modifying that. If you are planning on taking this route make sure that you’ve copied events.css to a new ‘events’ folder in your theme directory, and that you’re making the changes there. This way they won’t be overwritten next time there is a plugin update.

    For 3b, are you just saying you want the word “Country” to be capitalized instead of uncapitalized? Or have I missed a step here? Can totally advise you on this but I want to clarify that, as this issue is likely going to require I bring a dev in.

    Thanks for your words, support and patience so far. We really appreciate you using the plugin and will do what we can to get this resolved for you.

    Thread Starter yajanssen

    (@yajanssen)

    3b. Wanted to add County and eliminate CountRy
    Everything else has been done. Thank you.

    Thanks for confirming. It’d probably be easiest to set a display:none for the Country, since given how the plugin is built, you need that to be added for the state to appear properly. Do you know how to do this?

    Thread Starter yajanssen

    (@yajanssen)

    By the way, I posted the 3b. question a lot longer than 1 week ago.

    I totally am confused now. I did alright when I had the event calendar and the community events, except the County (Country without the R).

    Then I got PRO and now everything is mixed up. I will have to start all over again. Nothing is in place. I will try tomorrow. Thank you.

    Hi again yajanssen. Odd, it shows your “3b” question as “posted 1 week ago” here in the dot-org forum. Maybe there’s something amiss with the date/time stamp. Remember that if you’re a PRO user you can post on http://tri.be/support/forums, which are monitored daily rather than the sporadic weekly support offered here.

    In either case, after you’ve done some further testing, let us know over there – where the team can also provide a deeper level of guidance – if the issue persists and we’ll do what we can to get it resolved for you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin: The Events Calendar –’ is closed to new replies.