New Landing How can we help? Cardinal Cardinal conflicts with Events Calendar/Events Calendar Pro

Viewing 15 posts - 1 through 15 (of 17 total)
  • Posted in: Cardinal
  • #98861
    FlawlessWeb
    Member
    Post count: 542

    Hi,

    I am having some issues with Cardinal and the Events Calendar/Events Calendar pro plugin.

    # Issue 1,

    Sometimes the map just displays as a grey box. Console errors is as follows:

    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    Sometimes this error shows up:
    Uncaught InvalidValueError: setCenter: not a LatLng or LatLngLiteral: in property lat: not a number

    A forum search brought up this thread in relation to the same issue with Dante: http://support.swiftideas.net/forums/topic/events-calendar-compatibility-or-lack-thereof/

    In that thread, you recommend adding this code to the functions file:

    if ( !is_singular('tribe_events') && $post_type != 'tribe_events' ) {
        wp_enqueue_script('sf-maps');
    }

    It appears that code is already present in Cardinal – Line 219 in functions:

    if ($enable_min_scripts) {
    		    		wp_enqueue_script('sf-theme-scripts-min');
    		    		if ( !is_singular('tribe_events') && $post_type != 'tribe_events' ) {
    		    			wp_enqueue_script('sf-maps');
    		    		}
    		    		wp_enqueue_script('sf-functions-min');
    

    So that does not solve the issue…

    Link to a page with an example of the issue will be in the next private post.

    # Issue 2,

    Sometimes the map does show up, but its distorted and does not work properly. Attached screenshot 2 shows you the distored map in Cardinal and the map working properly when 2012 theme is enabled…

    Link to a page with an example of the issue will be in the next private post.

    # Issue 3,

    Similar to the poster in that Dante thread I linked, there is an issue where the search by location/map feature does not work. I have loads of upcoming events in September, yet the location/map search page always shows up as ‘there were no results found’.

    Any idea of the issue there?

    Next private post will have some links to the bugs above.

    Attachments:
    You must be logged in to view attached files.
    #98867
    FlawlessWeb
    Member
    Post count: 542
    This reply has been marked as private.
    #99277
    FlawlessWeb
    Member
    Post count: 542
    This reply has been marked as private.
    #99291
    FlawlessWeb
    Member
    Post count: 542

    Managed to solve one issue with Cardinal and Events Calendar Pro integration. See the attached screenshot. There is a styling issue with the calendar popup/date picker in the admin edit event page. I applied the following CSS to solve the issue:

    .events-cal #ui-datepicker-div {
    border: 1px solid #aaaaaa !important;
    background: #ffffff !important;
    color: #222222 !important;
    }

    For anyone reading this with the same setup – you can’t place that code in the custom css panel in Cardinal – that won’t update the backend/admin css. You need to place it in a plugin like easy admin css – that overrides the wordpress admin css.

    Attachments:
    You must be logged in to view attached files.
    #99322
    FlawlessWeb
    Member
    Post count: 542

    Making some progress here; issue 3 is resolved.

    Anyone else who has run into the same issue – it is likely the problem is caused from importing event data (events, organisers and venues) from another wordpress install. I have found that causes all sorts of problems, so its best avoided.

    So just issues 1 and 2 remaining from my first post now…

    #99635
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Anthony,

    Ahh – didn’t know about the venue post type, fixed that for next update. Just change that line to:

    if ( !is_singular('tribe_events') && $post_type != 'tribe_events' && !is_singular('tribe_venue') && $post_type != 'tribe_venue' ) {

    That should fix #1 & #2.

    – Ed

    #99653
    FlawlessWeb
    Member
    Post count: 542
    This reply has been marked as private.
    #99902
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sorry but I don’t see any difference in the map what so ever in your screenshot? Could you please explain?

    – Kyle

    #99925
    FlawlessWeb
    Member
    Post count: 542

    Look at the top left corner of each map

    #100081
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Ahh, that’s because of bootstrap – will add some custom css to adjust it like we do with our maps.

    – Ed

    #100160
    FlawlessWeb
    Member
    Post count: 542

    Ah, makes sense. Will that fix be in the next build?

    Thanks.

    #100424
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Yep!

    – Ed

    #100427
    FlawlessWeb
    Member
    Post count: 542

    Great, thanks.

    #100430
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    #101359
    FlawlessWeb
    Member
    Post count: 542

    The latest build Ed sent me resolves the remaining issue from this thread.

    Although, it may be a good idea to integrate my css ‘fix’ into the core Cardinal css file:

    .events-cal #ui-datepicker-div {
    border: 1px solid #aaaaaa !important;
    background: #ffffff !important;
    color: #222222 !important;
    }

    Thanks.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register