Forum Replies Created
-
AuthorPosts
-
July 10, 2017 at 4:21 am in reply to: 'Find out more' when hovering over event in monthly view #1318299
Ajay Gilbert
ParticipantMany thanks yes that works. Brill!
July 7, 2017 at 12:13 pm in reply to: 'Find out more' when hovering over event in monthly view #1317595Ajay Gilbert
ParticipantHi Victor
almost worked but not quite! I certainly got the ‘Find out more’ to show on hover but the link/url it takes us to is something like <<=raw permalink>> ie a 404 page.
Any ideas?
thanks
AJMay 12, 2017 at 1:19 am in reply to: which js file controls the pop-up box on hovering in calendar view? #1282819Ajay Gilbert
ParticipantThanks Shelby, you’ve done plenty. The folks at WP Rocket, bless ’em, have come up with the solution which involved excluding more of the js files – it’s now super-cached!
best wishes, Ajay
May 10, 2017 at 9:19 am in reply to: which js file controls the pop-up box on hovering in calendar view? #1281703Ajay Gilbert
ParticipantHi Shelby
thanks, yes I’ve used that plugin before – what do you make of the results? The Elegant Themes Updater can be deactivated (and just switched on for updates, that’s a ridic amount of resource). Jetpack also heavy and we only use that for google analytics, so I’ll try and find an alternative to that. Not sure we can do much about Woocommerce or Yoast SEO – both pretty handy!
Here’s a list and I’ve also included a screenshot (in case you’re more of a ‘visual’ type!)
cheers
AJWordPress Plugin Profile Report
===========================================
Report date: May 10, 2017
Theme name: Child Theme for Divi
Pages browsed: 21
Avg. load time: 5.2697 sec
Number of plugins: 31
Plugin impact: 57.02% of load time
Avg. plugin time: 3.0047 sec
Avg. core time: 1.3951 sec
Avg. theme time: 0.7681 sec
Avg. mem usage: 201.95 MB
Avg. ticks: 132,464
Avg. db queries : 158.43
Margin of error : 0.1018 secPlugin list:
===========================================
P3 (Plugin Performance Profiler) – 0.0185 sec – 0.62%
404page – your smart custom 404 error page – 0.0101 sec – 0.34%
Custom Post Type Editor – 0.0045 sec – 0.15%
Duplicate Post – 0.0191 sec – 0.64%
Elegant Themes Updater – 0.3247 sec – 10.81%
Event Tickets Plus – 0.0267 sec – 0.89%
Event Tickets – 0.0319 sec – 1.06%
The Events Calendar PRO – 0.1024 sec – 3.41%
Google Analytics For WordPress – 0.0457 sec – 1.52%
Jetpack by WordPress.com – 0.3234 sec – 10.76%
Limit Login Attempts – 0.0098 sec – 0.33%
MailChimp for WordPress – 0.0229 sec – 0.76%
Monarch Plugin – 0.0116 sec – 0.39%
Post Snippets – 0.0141 sec – 0.47%
Post Type Switcher – 0.0094 sec – 0.31%
Blubrry PowerPress – 0.0271 sec – 0.90%
WP Real Media Library – 0.0793 sec – 2.64%
Redirection – 0.0121 sec – 0.40%
The Events Calendar Shortcode PRO – 0.0096 sec – 0.32%
The Events Calendar – 0.5356 sec – 17.82%
The Events Calendar: Remove QR Codes – 0.0014 sec – 0.05%
WooCommerce – 0.5080 sec – 16.91%
Wordfence Security – 0.1518 sec – 5.05%
Wordpress Backup To Dropbox – 0.0112 sec – 0.37%
Wordpress Seo – 0.4214 sec – 14.02%
WP DB Booster – 0.0094 sec – 0.31%
WP Mailto Links – Manage Email Links – 0.0719 sec – 2.39%
WP-PageNavi – 0.0128 sec – 0.43%
WP Rocket – 0.1384 sec – 4.60%
Wp Smushit – 0.0342 sec – 1.14%
Wp Twitter Feeds – 0.0057 sec – 0.19%May 10, 2017 at 5:04 am in reply to: which js file controls the pop-up box on hovering in calendar view? #1281542Ajay Gilbert
ParticipantThanks Shelby,
I did do as you suggested – which gave me a bit of trouble with info being lost as a result of deactivating a certain plugin but hey ho – and it’s not really possible to determine which plugin particularly slows it down. Well not possible for me anyhow.
On a twenty-17 theme with no non-Events plugins activated then yes it loads quicker, though hardly lightning fast. The plugin that seemed to have most effect was Woocommerce. But it was defo slower when Divi theme was re-instated…
These are very popular plugins and themes so seems a shame if they don’t sit well together…?
best wishes
AJMay 9, 2017 at 1:17 am in reply to: which js file controls the pop-up box on hovering in calendar view? #1280691Ajay Gilbert
ParticipantHi there
thanks for your suggestion which unfortunately didn’t work out 🙁
it seems that disabling the cache on that page is the only way to keep the pop-up boxes working…
do you know of other methods for speeding up the events calendar?
thanks
AJAjay Gilbert
ParticipantMany thanks, that’s cool!
Ajay Gilbert
ParticipantThanks for passing this on to the development team.
However just to be clear it is a problem with iCal export of a single event – there is no rendering of the shortcode.
Where it does work is with ‘Add to Google Calendar’ from a single event – however all the information for the event is rendered in the link.
Ajay Gilbert
ParticipantTried the new code you sent privately which I tweaked to make the links look prettier and it appears to work now – although the Google Calendar seems to have cached the old version so it’s only a month long, but the .ics file shows everything up to a year ahead now. Thanks.
/** * Change month ical export time range to a year when the query var year is present */ add_action( 'pre_get_posts', 'tribe_custom_month_time_range_ics_export' ); function tribe_custom_month_time_range_ics_export( WP_Query $query ) { if ( ! isset( $_GET['ical'] ) || ! isset( $_GET['year-feed'] ) ) { return; } $query->set( 'eventDisplay' , 'custom' ); $query->set( 'start_date' , 'now' ); $query->set( 'end_date' , '+ 365 days' ); $query->set( 'posts_per_page', -1 ); } /** * Replace default export options */ if ( class_exists(Tribe__Events__iCal) ) { // remove default export button remove_filter( 'tribe_events_after_footer', array( 'Tribe__Events__iCal', 'maybe_add_link' ), 10 ); // add customized export options add_filter( 'tribe_events_after_footer', 'custom_maybe_add_link' ); } function custom_maybe_add_link() { global $wp_query; $show_ical = apply_filters( 'tribe_events_list_show_ical_link', true ); if ( ! $show_ical ) { return; } if ( tribe_is_month() && ! tribe_events_month_has_events() ) { return; } if ( is_single() || ! have_posts() ) { return; } $tec = Tribe__Events__Main::instance(); $view = $tec->displaying; if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $wp_query->query_vars['eventDisplay'] ) ) { $view = $wp_query->query_vars['eventDisplay']; } echo '<a style="float:right;" class="tribe-events-button" title="Export to iCal" href="' . esc_url( site_url('whats-on/?ical=1&year-feed=1') ) . '">+ Export to iCal</a><br />'; echo '<a style="float:right;" class="tribe-events-button" title="Add to Google Calendar" href="//www.google.com/calendar/render?cid=' . esc_url( site_url('whats-on/?ical=1&year-feed=1') ) . '" target="_blank">+ Add to Google Calendar</a>'; }Ajay Gilbert
ParticipantThis reply is private.
Ajay Gilbert
ParticipantThanks for the code. There was a small typo and I’ve added the css to make it look pretty. However it only shows the calendar up until the 4 June although from 25 April.
The feed doesn’t seem to take any notice of the year-feed argument.
/** * Change month ical export time range to a year when the query var year is present */ add_action( 'pre_get_posts', 'tribe_custom_month_time_range_ics_export' ); function tribe_custom_month_time_range_ics_export( WP_Query $query ) { if ( ! isset( $_GET['ical'] ) || ! isset( $_GET['year-feed'] ) || ! isset( $_GET['tribe_display'] ) || $_GET['tribe_display'] != 'month' ) { return; } $query->set( 'eventDisplay' , 'custom' ); $query->set( 'start_date' , 'now' ); $query->set( 'end_date' , '+ 365 days' ); $query->set( 'posts_per_page', -1 ); } /** * Replace default export options */ if ( class_exists(Tribe__Events__iCal) ) { // remove default export button remove_filter( 'tribe_events_after_footer', array( 'Tribe__Events__iCal', 'maybe_add_link' ), 10 ); // add customized export options add_filter( 'tribe_events_after_footer', 'custom_maybe_add_link' ); } function custom_maybe_add_link() { global $wp_query; $show_ical = apply_filters( 'tribe_events_list_show_ical_link', true ); if ( ! $show_ical ) { return; } if ( tribe_is_month() && ! tribe_events_month_has_events() ) { return; } if ( is_single() || ! have_posts() ) { return; } $tec = Tribe__Events__Main::instance(); $view = $tec->displaying; if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $wp_query->query_vars['eventDisplay'] ) ) { $view = $wp_query->query_vars['eventDisplay']; } echo '<a style="float:right;" class="tribe-events-button" title="Export to iCal" href="' . esc_url( site_url('whats-on/?ical=1&year-feed') ) . '">+ Export to iCal</a><br />'; echo '<a style="float:right;" class="tribe-events-button" title="Add to Google Calendar" href="//www.google.com/calendar/render?cid=' . esc_url( site_url('whats-on/?ical=1&year-feed') ) . '">+ Add to Google Calendar</a>'; }Ajay Gilbert
ParticipantWell I suppose I can’t really argue with that! I suppose one could also reduce the global limit on numbers available…
anyhow, thanks for your input
AJ
Ajay Gilbert
ParticipantThanks for getting back to me. I will look into that function you mentioned – as we’re selling in some offline ways too, we need to be able to stop further booking pronto and manually.
Do you see what I mean?
cheers
AJAjay Gilbert
ParticipantIt’s be cool if you could change the link to say it is a year feed but it would be even better if it was prettified with some format like http://www.expample.com/events/ical/year
I’ve discovered working on previous websites that to add an iCal feed to Google Calendar all you need to do is add http://www.google.com/calendar/render?cid= before the iCal link so for the example we are using it would become http://www.google.com/calendar/render?cid=http://example.com/events/?ical=1&tribe_display=month
See http://dev.bowdenweb.com/os/calendar/google-calendar.html for reference
Ajay Gilbert
ParticipantThanks for that chunk of code. However the link still says http://example.com/events/?ical=1&tribe_display=month which is a little confusing 🙁
What would be perfect would be able to have an Add to Google Calendar button like the single event has – to easily add the year calendar to Google Calendar.
Is it possible for me to add code to below the tribe events footer section to implement this?
-
AuthorPosts
