WordPress.org

Forums

Advanced AJAX Page Loader
[resolved] Reload Code for All-in-One Event Calendar plugin? (9 posts)

  1. Courtney Fantinato
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Courtney Fantinato
    Member
    Posted 2 years ago #

    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?

  3. pawelpoz
    Member
    Posted 1 year ago #

    Up. Anybody help? I have the same problem.

  4. Courtney Fantinato
    Member
    Posted 1 year ago #

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

  5. pawelpoz
    Member
    Posted 1 year ago #

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

  6. Courtney Fantinato
    Member
    Posted 1 year ago #

    You have to use the jQuery.getScript() method (http://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!

  7. pawelpoz
    Member
    Posted 1 year ago #

    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");

  8. Courtney Fantinato
    Member
    Posted 1 year ago #

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

    http://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.

  9. tomhyatt
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced AJAX Page Loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic