inhouse

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 54 total)
  • Author
    Posts
  • inhouse
    Participant

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

    inhouse
    Participant

    Here’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.

    inhouse
    Participant

    I thought the same thing but there is no caching plugin active. Are you experiencing the same thing?

    inhouse
    Participant

    This reply is private.

    inhouse
    Participant

    Ok, 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.

    inhouse
    Participant

    Good 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.

    inhouse
    Participant

    It 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).

    inhouse
    Participant

    This reply is private.

    in reply to: Remove comma after venue title in tribe_get_venue_details #1427802
    inhouse
    Participant

    I 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 6 years, 4 months ago by inhouse. Reason: Code will not always format properly with this support thread software
    in reply to: Remove comma after venue title in tribe_get_venue_details #1427610
    inhouse
    Participant

    I 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;

    in reply to: Remove comma after venue title in tribe_get_venue_details #1427514
    inhouse
    Participant

    Hi 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 6 years, 4 months ago by inhouse. Reason: Code is not styling properly for some reason
    in reply to: tribe_get_venue_details Venue Title Unlinked #1419234
    inhouse
    Participant

    Ah, 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 6 years, 4 months ago by inhouse. Reason: I don't know why this code isn't formatting completely. It's enclosed properly
    in reply to: Recurring Events Date Range? #1413534
    inhouse
    Participant

    I’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.

    in reply to: Event Search on Home Page #1404504
    inhouse
    Participant

    Ah, 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 -->
    
    in reply to: License Upgrade Question #1399676
    inhouse
    Participant

    This reply is private.

Viewing 15 posts - 1 through 15 (of 54 total)