Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Cardinal conflicts with Events Calendar/Events Calendar Pro
New Landing › How can we help? › Cardinal › Cardinal conflicts with Events Calendar/Events Calendar Pro
- This topic has 16 replies, 3 voices, and was last updated 10 years by
Swift Ideas – Ed.
-
Posted in: Cardinal
-
August 7, 2014 at 1:43 pm #98861
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 numberA 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.August 7, 2014 at 1:46 pm #98867This reply has been marked as private.August 8, 2014 at 8:23 am #99277This reply has been marked as private.August 8, 2014 at 9:17 am #99291Managed 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.August 8, 2014 at 10:28 am #99322Making 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…
August 10, 2014 at 12:49 am #99635Hi 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
August 10, 2014 at 9:07 am #99653This reply has been marked as private.August 11, 2014 at 12:05 pm #99902Sorry but I don’t see any difference in the map what so ever in your screenshot? Could you please explain?
– Kyle
August 11, 2014 at 12:34 pm #99925Look at the top left corner of each map
August 11, 2014 at 9:31 pm #100081Ahh, that’s because of bootstrap – will add some custom css to adjust it like we do with our maps.
– Ed
August 12, 2014 at 7:47 am #100160Ah, makes sense. Will that fix be in the next build?
Thanks.
August 12, 2014 at 4:21 pm #100424Yep!
– Ed
August 12, 2014 at 4:22 pm #100427Great, thanks.
August 12, 2014 at 4:26 pm #100430No problem
August 15, 2014 at 9:33 am #101359The 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.
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.