• Resolved rmd624

    (@rmd624)


    I’ve been using this plugin for a while on a standard HTML page and it has been awesome! It has worked flawlessly. Like other people here, the plugin stopped working for me in recent days. I’ve implemented every change in the new stand_alone.html file as well as the associated .js files but i’m still having no luck. I can’t get this to work on my existing page as well as when I put my API key and calendar ID in the stand_alone.html file just to do a test locally. Any troubleshooting suggestions? I’ve tried all the basics (make sure my calendar is set to public, made sure I have right API key, etc.) I got this setup before with no problem.

    https://www.ads-software.com/plugins/google-calendar-widget/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you updated to the most recent version? Google withdrew support for V2 of the Calendar API on 17 November and the widget was updated.

    https://www.ads-software.com/support/topic/google-calendar-widget-no-longer-works?replies=7

    Thread Starter rmd624

    (@rmd624)

    I have updated the widget with the recent version and i’m still having trouble. I noticed the update to the widget was posted tonight and I still can’t get it to work with all new updates included.

    Plugin Author Poco

    (@poco)

    Unfortunately, it won’t work in some browsers by default if you open a local HTML page. It requires CORS support (so that it can download files from a different domain) and browsers like chrome block cross domain access from a local HTML file by default. Search for “allow cors support from local file on <your browser here>” to find out how to enable it.

    Of that doesn’t work then post it to a server. If that doesn’t work then post the link here so that I can look at it.

    Thread Starter rmd624

    (@rmd624)

    Thanks for getting back to me. I appreciate it. I have posted to a server. I uploaded all the files as included in the google-calendar-widget.zip file. It can be found at https://revwildcatbaseball.com/calendar-widget/examples/stand_alone.html.

    I’ve double checked the API key and so forth to make sure it’s correct. I noticed my API key expires after 24 hours, does that sound right?

    The widget will be used on the index page for that domain in the end and I have tried the code there as well with no luck either. I wanted to try the widget separately first so there couldn’t be any outside variables affecting functionality. I’m not a pro coder by any means but i’m usually able to get the job done or know where to troubleshoot and get help. Anything you can do to help is greatly appreciated.

    Plugin Author Poco

    (@poco)

    Found it. The issue is the parameters your page is passing in.

    There are 3 calendar parameters before the title format.

    This is your current call.

    ko_calendar.loadCalendarDefered(
    'AIzaSyBprTmQrdRTyRq6wMleKhEieKHtegtG0Ks',
    'ko_calendar-widget_title',
    'ko_calendar-widget_events',
    5,
    false,
    '[email protected]',
    '[STARTTIME - ][TITLE]'
    );

    It should be this…


    ko_calendar.loadCalendarDefered(
    'AIzaSyBprTmQrdRTyRq6wMleKhEieKHtegtG0Ks',
    'ko_calendar-widget_title',
    'ko_calendar-widget_events',
    5,
    false,
    '[email protected]',
    '',
    '',
    '[STARTTIME - ][TITLE]'
    );

    Thread Starter rmd624

    (@rmd624)

    Thank you so much!!! The widget is working just fine now. I can’t believe I missed those two calendar parameters.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using Plugin in HTML page’ is closed to new replies.