Forum Replies Created
-
AuthorPosts
-
March 21, 2018 at 9:06 am in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1484928
inhouse
ParticipantAh, while you’re wrong about the caching plugin (there is no cache plugin installed), you are right about the redirection plugin. I found redirects which I have just deleted on the live site and development site. Now I am able to load recurring event pages correctly. Thanks for your help on this!
March 20, 2018 at 8:36 am in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1483949inhouse
ParticipantHere’s a fresh screenshot of the newest settings. I made this change before cloning the site to the staging environment so I know both sites share this exact same setup.
March 20, 2018 at 8:19 am in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1483934inhouse
ParticipantI thought the same thing but there is no caching plugin active. Are you experiencing the same thing?
March 19, 2018 at 12:27 pm in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1483308inhouse
ParticipantThis reply is private.
March 19, 2018 at 12:24 pm in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1483302inhouse
ParticipantOk, I have a staging environment set up now and the issue is resolved there. I haven’t event switched themes or deactivated any plugins. I’ll post a private reply with the staging info. I’m even more confused. I can also send a link to view my theme functions file for your reference.
March 19, 2018 at 10:49 am in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1483172inhouse
ParticipantGood catch. They did set those events up in an odd way. I trashed the duplicate event and set up the recurrence correctly. I now see 1 event in the list publicly. The first occurrence (25th) still redirects to /all while the 2nd occurrence (26th) correctly resolves to the event detail page.
March 16, 2018 at 1:23 pm in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1481646inhouse
ParticipantIt looks like the client technically has 2 posts. The one that is redirecting is a recurring event while the one that works is a single occurrence. Not sure why they duplicated the event (most likely lack of knowledge). Would this cause a redirect issue? I don’t want to unpublish/delete the event on a live site unless you think it may solve the issue. Attached screenshots of each of the event settings screens (single and recurring).
March 15, 2018 at 9:52 am in reply to: Recurring Event tribe_get_event_link Redirects to /event-calendar/event-slug/all #1480282inhouse
ParticipantThis reply is private.
January 16, 2018 at 10:49 am in reply to: Remove comma after venue title in tribe_get_venue_details #1427802inhouse
ParticipantI see string(24) “Geneva Housing Authority” which tells me the commas are being added in the template itself; not the function. I removed the comma in the $address_delimiter variable and this solved it! Thanks so much for your help in troubleshooting this!
`
$address_delimiter = empty( $venue_address ) ? ‘ ‘ : ‘, ‘;// These details are already escaped in various ways earlier in the process.
echo implode( $address_delimiter, $venue_details );if ( tribe_get_map_link() ) {
echo tribe_get_map_link_html();
}`
Change to:
$address_delimiter = empty( $venue_address ) ? ' ' : ', ';-
This reply was modified 8 years, 2 months ago by
inhouse. Reason: Code will not always format properly with this support thread software
January 16, 2018 at 8:37 am in reply to: Remove comma after venue title in tribe_get_venue_details #1427610inhouse
ParticipantI see what you’re trying to do there but it’s not the address I need to remove the address from. I need to remove the comma from the venue name. I tried implementing the strip_replace with tribe_get_venue but the comma is still not stripped out.
$venue_name = tribe_get_venue();
$venue_name_no_comma = str_replace( '', ',', $venue_name );
$venue_details['linked_name'] = $venue_name_no_comma;January 16, 2018 at 7:15 am in reply to: Remove comma after venue title in tribe_get_venue_details #1427514inhouse
ParticipantHi Crisoforo. I am simply trying to remove the comma from the venue name. It’s not needed because the information is styled to be stacked rather than inline (see screenshot). My function is able to get the venue using tribe_get_venue() but I don’t know how to remove the comma.
`
function my_tribe_get_venue_details( $post_id = null ) {
$post_id = Tribe__Main::post_id_helper( $post_id );if ( ! $post_id ) { return array(); } $venue_details = array(); if ( $venue_link = tribe_get_venue_link( $post_id ) ) { //$venue_details['linked_name'] = $venue_link; //$venue_name = tribe_get_venue($post_id); //return $venue_name; $venue_details['linked_name'] = tribe_get_venue(); } if ( $venue_address = tribe_get_full_address( $post_id ) ) { $venue_details['address'] = $venue_address; } return apply_filters( 'tribe_get_venue_details', $venue_details, $post_id );}
`
-
This reply was modified 8 years, 2 months ago by
inhouse. Reason: Code is not styling properly for some reason
inhouse
ParticipantAh, I finally solved this. Essentially I replaced the $venue_link variable with tribe_get_venue(). Below is my full function.
`
function my_tribe_get_venue_details( $post_id = null ) {
$post_id = Tribe__Main::post_id_helper( $post_id );if ( ! $post_id ) { return array(); } $venue_details = array(); if ( $venue_link = tribe_get_venue_link( $post_id ) ) { //$venue_details['linked_name'] = $venue_link; $venue_details['linked_name'] = tribe_get_venue(); } if ( $venue_address = tribe_get_full_address( $post_id ) ) { $venue_details['address'] = $venue_address; } return apply_filters( 'tribe_get_venue_details', $venue_details, $post_id );}
`
-
This reply was modified 8 years, 3 months ago by
inhouse. Reason: I don't know why this code isn't formatting completely. It's enclosed properly
inhouse
ParticipantI’d also be interested in showing a date range.
My current solution is to use CSS to always show the tooltip and hide the “Show All” link. Not sure how messy this will get for events which recur many many times.
I have also used a custom field for editors to publish a “plain english” version of the event occurrences. This way they can type something like “Mondays and Wednesdays, 3-5PM”. This is a messy solution as they have to remember to edit the date/times in multiple fields.
inhouse
ParticipantAh, thanks. I ended up using the solution found on http://gregorypearcey.com/blog/add-tribe-events-search-bar-home-page/. In case the link ever dies, here’s the form:
<div id="tribe-events-bar"> <form id="tribe-bar-form" class="tribe-clearfix" name="tribe-bar-form" method="get" action="<?php bloginfo('url'); ?>/buy-tickets/list/?tribeHideRecurrence=1"> <div class="tribe-bar-filters"> <div class="tribe-bar-filters-inner tribe-clearfix"> <div class="tribe-bar-date-filter"> <label for="tribe-bar-date" class="label-tribe-bar-date">Date</label> <input type="text" placeholder="Date" value="" id="tribe-bar-date" data-date-format="yyyy-mm-dd" style="position: relative; z-index:10000" name="tribe-bar-date"> <input type="hidden" value="" class="tribe-no-param" id="tribe-bar-date-day" name="tribe-bar-date-day"> </div> <div class="tribe-bar-search-filter"> <label for="tribe-bar-search" class="label-tribe-bar-search">Search</label> <input data-bind="label" type="text" placeholder="Keyword" onfocus="this.placeholder = ''" onblur="this.placeholder = ''" value="" id="tribe-bar-search" name="tribe-bar-search"> </div> <div class="tribe-bar-submit"> <input class="tribe-events-button tribe-no-param" type="submit" name="submit-bar" value="<?php _e( 'Find Events', 'tribe-events-calendar' ) ?>" /> </div><!-- .tribe-bar-submit --> </div><!-- .tribe-bar-filters-inner --> </div><!-- .tribe-bar-filters --> </form><!-- #tribe-bar-form --> </div><!-- #tribe-events-bar -->inhouse
ParticipantThis reply is private.
-
This reply was modified 8 years, 2 months ago by
-
AuthorPosts
