• Resolved Courtney Fantinato

    (@ridingforlife)


    Has anyone used the All-in-One Event Calendar plugin by Time.ly in conjunction with Advanced Ajax Page Loader?

    My calendar is showing up, but there’s some weird things going on (can’t switch between views, posterboard view isn’t displaying proper, etc) so I’m assuming it needs reload code in the settings of this plugin so that it will work properly. However, I’m not sure where to start, and was wondering if anyone else has done this before?

    Any help is appreciated!

    Thanks!

    https://www.ads-software.com/extend/plugins/advanced-ajax-page-loader/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Courtney Fantinato

    (@ridingforlife)

    An update, I used jQuery’s getScript() to get the AI1EC scripts, so the calendar does now load properly.

    However, changing the view of the calendar (from Posterboard to Month) doesn’t work and I can’t see any differences within the code rendered. But, I can change the categories and tags.

    Any ideas?

    Up. Anybody help? I have the same problem.

    Thread Starter Courtney Fantinato

    (@ridingforlife)

    @pawelpoz,

    Are you using the latest version of AI1EC? They changed the way their JS is called in, and now there is just 1 file that needs to be put into the reload code for AI1EC. I don’t have the piece of code on me, but you should be able to find it in the source code somewhere of your website.

    Yes I’m using latest version of AI1EC. Where can I find the code? I tried everything, but I can’t find it.

    Thread Starter Courtney Fantinato

    (@ridingforlife)

    You have to use the jQuery.getScript() method (https://api.jquery.com/jQuery.getScript/) and put in the URL for the JS file that AI1EC plugin uses.

    You should be able to find the URL of the JS file in the source code or in the console (it will probably show as not found).

    Good luck!

    Ok, I use the jQuery.getScript() but it works only first time. When i click “Back to calendar”, (ajax reload page), then click an event, google map is not showing.

    I reload this files:
    calendar/app/view/admin/js/libs/gmaps.js”);
    calendar/app/view/admin/js/scripts/event.js”);
    calendar/app/view/admin/js/pages/event.js”);

    Thread Starter Courtney Fantinato

    (@ridingforlife)

    If you’re using the Pro version there is only 1 JS file you need for the plugin. It’s something like this:

    https://www.mywebsitename.com/?ai1ec_render_js=event.js&is_backend=false&is_calendar_page&ver=1.11.1-pro

    Anything else that doesn’t work I suggest submitting a support ticket to Timely.

    Made an account to post this! I know how opaque this reload code business can be.

    I got the All In One Calendar working by putting the following into the reload code box for the Ajax Loader:

    jQuery.getScript( '/wp-content/plugins/all-in-one-event-calendar/app/view/admin/js/pages/common_frontend.js' );
    jQuery.getScript( '/wp-content/plugins/all-in-one-event-calendar/app/view/admin/js/pages/calendar.js' );
    jQuery.getScript( '/wp-content/plugins/all-in-one-event-calendar/app/view/admin/js/pages/event.js' );

    As Courtney suggested, but this is a copy/paste job now hopefully for anyone else messing with it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Reload Code for All-in-One Event Calendar plugin?’ is closed to new replies.