brent-clintel
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 Leads Tracking] Warning generated when going to site directlyisset($_SERVER['HTTP_REFERER'])
is sufficient.For example, when assigning a value from an array you could do something like:
$trackingInfo = isset($_SERVER['HTTP_REFERER']) ? isset($_SERVER['HTTP_REFERER']) : '';
Forum: Plugins
In reply to: [SimpleModal Login] "Cookies not enabled" error in Chrome onlyI can confirm jacek606’s fix still works for Chrome 35.0 and Firefox 30.0.
The thing is that for some reason or another you are getting the same js error as I was. My assumption was that some of the DOM elements of the calendar were not being displayed that are required by the plugin’s js scripts. At least that’s the assumption I made with my own issue and why I dequeued some of the scripts.
What changes did you make to the css and functions.php?
Hi IcyAero,
I’m guessing that the modifications you have made hide the calendar if there are no calendar events to display?
If that’s the case, try dequeue the scripts related to The Events Calendar.
I used the following code to hide the calendar from users that were not logged in and to display a different page instead that directs them to login. Hopefully you can modify it for your own needs.
functions.php:
// // Hide events from logged out users // add_filter('template_include', 'hide_events_for_logged_out_users', 99); // logic to hide event/calendar function hide_events_for_logged_out_users($template ) { if (tribe_is_event_query() && (!is_user_logged_in() || !current_user_can('read_tribe_event'))) { dequeue_tec_scripts(); return restricted_access_template(); } return $template; } // prevent events scripts from loading function dequeue_tec_scripts() { wp_dequeue_script('tribe-events-calendar'); wp_dequeue_script('tribe-events-calendar-script'); wp_dequeue_script('tribe-events-bootstrap-datepicker'); wp_dequeue_script('tribe-events-admin'); wp_dequeue_script('tribe-events-settings'); wp_dequeue_script('tribe-events-ecp-plugins'); wp_dequeue_script('tribe-events-bar'); wp_dequeue_script('tribe-events-calendar'); wp_dequeue_script('tribe-events-list'); wp_dequeue_script('tribe-events-ajax-day'); wp_dequeue_script('tribe-mini-calendar'); wp_dequeue_script('tribe-events-pro-slimscroll'); wp_dequeue_script('tribe-events-pro-week'); wp_dequeue_script('tribe-events-pro-isotope'); wp_dequeue_script('tribe-events-pro-photo'); wp_dequeue_script('tribe-events-pro-geoloc'); wp_dequeue_script('tribe-meta-box'); wp_dequeue_script('tribe-jquery-ui'); wp_dequeue_script('tribe-jquery-ui'); wp_dequeue_script('tribe-timepicker'); wp_dequeue_script('tribe-fac'); wp_dequeue_script('tribe-events-pro'); } // display the restricted_access.php template (or 404 page if template not found) function restricted_access_template() { $template = locate_template(array('restricted_access.php')); if ($template != '') { return $template; } else { global $wp_query; $wp_query->set_404(); status_header(404); return get_template_part(404); } }
I’m experiencing the same issue.
It occurred when I upgraded to to Pro.
Error Uncaught TypeError: Cannot read property 'slice' of undefined (anonymous function) - tribe-events-ajax-calendar.min.js?ver=3.6.1:7
Not sure how to fix this yet.