Maps no longer displaying

This topic contains 8 replies, has 2 voices, and was last updated by  Christopher Whitehouse 11 years, 9 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2712

    Dear Stephen,

    Thanks for your response. I’ve switched over to a backed-up version of the site that uses 1.5.7. That seemed the easiest solution, and it’s absolutely fine for our purposes.

    Christopher

    Christopher Whitehouse
    #2739

    Except that…

    When I now add a new event, the date is accepted but not acted on – ie the event displays with the correct venue map, but without any date, and is chronologically out of sequence when listed. Events previously entered are unaffected – unless they are subsequently amended.

    I’ve found a way of getting round the problem, but it isn’t elegant: upgrade to 1.6.1; input the new event; then reinstall 1.5.7 to get the base tabs formatting correctly again!

    So if you’re able to come up with a way of sorting the base tabs conflict, that would be great from a longer-term point of view.

    Many thanks,
    Christopher

    Christopher Whitehouse
    #2742

    Hi Christopher,

    This is just a straight forward CSS conflict. There are issues that will need to be addressed, but an immediate fix is to replace lines 380-286 (see source) in class-eventorganiser-shortcodes.php with the following:

        if( !empty(self::$map) || !empty(self::$widget_calendars) ):
            wp_enqueue_script( 'eo_qtip2'); 
            wp_enqueue_style('eo_front');   
            wp_enqueue_script( 'eo_front');
        endif;
        if(!empty(self::$calendars) ):  
            wp_enqueue_script( 'eo_qtip2');         
            wp_enqueue_style('eventorganiser-jquery-ui-style',EVENT_ORGANISER_URL.'css/eventorganiser-admin-fresh.css',array());    
            wp_enqueue_style('eo_calendar-style');  
            wp_enqueue_style('eo_front');   
            wp_enqueue_script( 'eo_front');
        endif;
    

    Let me know if this resolves it for you, and if so I’ll include the patch in 1.6.2

    Stephen Harris
    #2748

    Hi Stephen,

    The patch wasn’t successful, I’m afraid.

    My instinct is that the problem is map-related for two reasons:

    (1) because the only line of Event-Organiser code behind the webpage that I cited originally is [eo_venue_map venue=”st-anne-and-st-agnes” height=”200px” width=”100%”]. As you probably spotted, this isn’t an “event” page at all – it was just useful to be able to show a map of the venue where we hold auditions on it;

    and (2) because the base tabs format correctly on “event” pages that don’t show a map – ie the vast majority, as we only show maps on pages where the event hasn’t yet taken place, using the code ))

    But I could be wrong, and I’m not a programmer, so this may not be you the sort of help you need to find your way through. Let me know if there’s any other information that would be useful.

    Thanks,
    Christopher

    Christopher Whitehouse
    #2749

    PS the line of code that went missing from that message is

    Christopher

    Christopher Whitehouse
    #2750

    Third time lucky: ?php if ($date_format == ‘j F Y g:ia’) echo do_shortcode(‘[eo_venue_map width=”100%”]’); ? (between, obviously)

    Christopher

    Christopher Whitehouse
    #2751

    Hi Christopher,

    The reason is that the CSS is being loaded on that map page for the tooltips. The only other instances where the CSS is needed/loaded is for the fullCalendar and agenda widget. So other pages are not affected. I should imagine this would also cause problems with your theme – hence this is only a ‘quick fix’. I will need to make other alterations to reduce the chance of a theme conflict…

    Stephen Harris
    #2752

    So for some reason it seems the CSS is still loading… could you try commenting out the line:

    wp_enqueue_style('eventorganiser-jquery-ui-style'....
    
    Stephen Harris
    #2772

    Hi Stephen,

    Commenting out that line didn’t help, I’m afraid.

    I wouldn’t worry too much about creating a patch. We only put on six or seven events a year, so I don’t upload new ones all that often, and re-installing 1.5.7 is very easy on our hosting platform. But a longer-term solution would obviously be great as and when you manage to devise one.

    Thanks,
    Christopher

    Christopher Whitehouse
Viewing 9 posts - 1 through 9 (of 9 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.