Ajay Gilbert

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • Ajay Gilbert
    Participant

    Many thanks yes that works. Brill!

    Ajay Gilbert
    Participant

    Hi 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
    AJ

    Ajay Gilbert
    Participant

    Thanks 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

    Ajay Gilbert
    Participant

    Hi 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
    AJ

    WordPress 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 sec

    Plugin 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%

    Ajay Gilbert
    Participant

    Thanks 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
    AJ

    Ajay Gilbert
    Participant

    Hi 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
    AJ

    in reply to: Can I use your plugins on a test site? #1184434
    Ajay Gilbert
    Participant

    Many thanks, that’s cool!

    in reply to: How to add year-long ical feed to Month view #1135394
    Ajay Gilbert
    Participant

    Thanks 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.

    in reply to: How to add year-long ical feed to Month view #1119680
    Ajay Gilbert
    Participant

    Tried 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>';
    }
    in reply to: How to add year-long ical feed to Month view #1119090
    Ajay Gilbert
    Participant

    This reply is private.

    in reply to: How to add year-long ical feed to Month view #1117902
    Ajay Gilbert
    Participant

    Thanks 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>';
    }
    in reply to: best or quickest way to show an event is full/closed #1116120
    Ajay Gilbert
    Participant

    Well 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

    in reply to: best or quickest way to show an event is full/closed #1115989
    Ajay Gilbert
    Participant

    Thanks 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
    AJ

    in reply to: How to add year-long ical feed to Month view #1114292
    Ajay Gilbert
    Participant

    It’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

    in reply to: How to add year-long ical feed to Month view #1113181
    Ajay Gilbert
    Participant

    Thanks 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?

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