Forum Replies Created

Viewing 15 replies - 46 through 60 (of 257 total)
  • Plugin Author Poco

    (@poco)

    I only allowed <br> and <p> tags this time as a start, but another option would be not not strip the title at all and leave it to the user to be careful not to do anything bad.

    $instance['titleformat'] = strip_tags($new_instance['titleformat'], '<br><p>');

    I could either add your tags or remove the strip_tags() call entirely. Does anyone have any opinion on the matter?

    Plugin Author Poco

    (@poco)

    Version 1.4.5 includes this change.

    Plugin Author Poco

    (@poco)

    Version 1.4.5 now supports
    and <p> tags in the title format which you can use to insert breaks into your title.

    Plugin Author Poco

    (@poco)

    The reason why it is showing the event from Nov 29th is because the event goes until Dec 21, so it is still occurring.

    Sat, Nov 29, 2014 9:00 AM – Sun, Dec 21, 2014 3:00 PM

    Plugin Author Poco

    (@poco)

    I tried a couple of quick tests and couldn’t make it work as-is. I made a change to the ko-calendar.js that seems to work but it might have other side effects.

    The change is to put a <pre> block around the title text.

    Replace this line
    entryTitle.appendChild(document.createTextNode(titleString));

    With these

    var preTitle = document.createElement('pre');
    preTitle.appendChild(document.createTextNode(titleString));
    entryTitle.appendChild(preTitle);

    Then you can add a \n in the Event Title Format, like this…

    [STARTTIME] - [ENDTIME]\n[TITLE]

    The side effect is that this will inherit any <pre></pre> style that the rest of your page has, which might not be what you want. I will keep it on the list for future updates, but it will need more work.

    Plugin Author Poco

    (@poco)

    I think I understand what you want.

    I am still confused as to how you have it working now. What feed are you using if it is not public? I’m not against the idea of authentication for your purposes and I can see the value. It seems to me, though, that you have the data you need already publicly accessible and you are happy with that, so why make it private?

    What is the calendar ID that you are using? I am curious to see just how private it is.

    Plugin Author Poco

    (@poco)

    I doubt that I will convert this plugin to support iCalendar or public xml feeds as there are other plugins that do and/or it should be a different plugin (no point in making one plugin do the work multiple ways, better to just have two plugins).

    However, I don’t understand how you want the data to be public, but you don’t want to make the calendar public? If you are using a public URL to download all the required data then you might as well make the calendar public. What is so “private” that you want people to be able to download it AND you don’t want anyone to be able to download it?

    Plugin Author Poco

    (@poco)

    Yes, I have that in the works. Just doing some testing. I will remove the http: from the URL and it should work on all sites.

    Plugin Author Poco

    (@poco)

    I have published another version (or two) that allows the expand to work even with no description.

    Plugin Author Poco

    (@poco)

    I have discovered two problem.

    1. The link you sent was https and Google doesn’t like mixing http with https.

    Below is the output of the browser console. This shows that it won’t load the Google client.js because it is http instead of https. This can probably be solved by changing the “https://apis.google.com/js/client.js?onload=ko_calendar_google_init&#8221; to “//apis.google.com/js/client.js?onload=ko_calendar_google_init”. Removing the protocol will default to the same protocol as the parent page. Please let me know if this works and I will update the plugin.

    This is the output from the console (you can see it yourself in most browsers by opening the debugger or dev console (F12 in Chrome).

    Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/Reg_now.jpg'. This content should also be served over HTTPS.
    runsra.org/:1 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/Spacer.jpg'. This content should also be served over HTTPS.
    runsra.org/:1 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/10k-Am-I-registered.jpg'. This content should also be served over HTTPS.
    runsra.org/:1 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure resource 'https://apis.google.com/js/client.js?onload=ko_calendar_google_init&ver=4.0.1'. This request has been blocked; the content must be served over HTTPS.
    (index):528 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/Reg_now.jpg'. This content should also be served over HTTPS.
    (index):529 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/Spacer.jpg'. This content should also be served over HTTPS.
    (index):530 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure image 'https://runsupersunday.org/wp-content/uploads/2013/10/10k-Am-I-registered.jpg'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://runsra.org/training-programs/' was loaded over HTTPS, but requested an insecure script 'https://apis.google.com/js/client.js?onload=ko_calendar_google_init&ver=4.0.1'. This request has been blocked; the content must be served over HTTPS.
    et-ptemplates-frontend.js?ver=1.1:109 Uncaught TypeError: undefined is not a function

    2. When I switch to using the http version of your web page there are errors downloading the calendars (visible in the browser debugger looking at the response from the content.googleapis.com/batch query. Please see the plugin FAQ for the steps to get a valid key.

    --batch_oHCmwhF2u1A_AAgSsYORaMU
    Content-Type: application/http
    Content-ID: <response-514302532>
    
    HTTP/1.1 403 Forbidden
    Content-Type: application/json; charset=UTF-8
    Date: Wed, 26 Nov 2014 07:27:46 GMT
    Expires: Wed, 26 Nov 2014 07:27:46 GMT
    Cache-Control: private, max-age=0
    Content-Length: 744
    
    {
     "error": {
      "errors": [
       {
        "domain": "usageLimits",
        "reason": "accessNotConfigured",
        "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
        "extendedHelp": "https://console.developers.google.com"
       }
      ],
      "code": 403,
      "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
     }
    }
    
    --batch_oHCmwhF2u1A_AAgSsYORaMU--
    Plugin Author Poco

    (@poco)

    @seandulany, Do you have a link you can post so that I can help you track it down?

    If not, check the debug console in your browser for errors (I will be posting an update which will include more information for errors) and search your network traffic for “batch” to see if the response has any errors.

    Plugin Author Poco

    (@poco)

    @locc – See my reply in the other thread

    Google is returning the following errors from your calendar query.
    These suggest that either your API key is invalid for your domain or it is not authorized to use the Google Calendar API .

    See the FAQ for more specific details on how to setup your API key.

    –batch_jCZO6BvM9Pg_AAPMbOCq0PE
    Content-Type: application/http
    Content-ID: <response-689559599>

    HTTP/1.1 403 Forbidden
    Content-Type: application/json; charset=UTF-8
    Date: Wed, 26 Nov 2014 02:27:04 GMT
    Expires: Wed, 26 Nov 2014 02:27:04 GMT
    Cache-Control: private, max-age=0
    Content-Length: 744

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “accessNotConfigured”,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”,
    “extendedHelp”: “https://console.developers.google.com&#8221;
    }
    ],
    “code”: 403,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”
    }
    }

    –batch_jCZO6BvM9Pg_AAPMbOCq0PE
    Content-Type: application/http
    Content-ID: <response-775921024>

    HTTP/1.1 403 Forbidden
    Content-Type: application/json; charset=UTF-8
    Date: Wed, 26 Nov 2014 02:27:04 GMT
    Expires: Wed, 26 Nov 2014 02:27:04 GMT
    Cache-Control: private, max-age=0
    Content-Length: 744

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “accessNotConfigured”,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”,
    “extendedHelp”: “https://console.developers.google.com&#8221;
    }
    ],
    “code”: 403,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”
    }
    }

    –batch_jCZO6BvM9Pg_AAPMbOCq0PE–

    Plugin Author Poco

    (@poco)

    @locc

    The response from Google for the batch calendar query is as follows.

    Make sure to add your domain to the domain list for the API key AND give it access to the Calendar API.

    –batch_AIbVvDsH0qA_ABJHOQPqH5A
    Content-Type: application/http
    Content-ID: <response-2038396602>

    HTTP/1.1 403 Forbidden
    Content-Type: application/json; charset=UTF-8
    Date: Wed, 26 Nov 2014 00:35:40 GMT
    Expires: Wed, 26 Nov 2014 00:35:40 GMT
    Cache-Control: private, max-age=0
    Content-Length: 744

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “accessNotConfigured”,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”,
    “extendedHelp”: “https://console.developers.google.com&#8221;
    }
    ],
    “code”: 403,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”
    }
    }

    –batch_AIbVvDsH0qA_ABJHOQPqH5A
    Content-Type: application/http
    Content-ID: <response-497531827>

    HTTP/1.1 403 Forbidden
    Content-Type: application/json; charset=UTF-8
    Date: Wed, 26 Nov 2014 00:35:40 GMT
    Expires: Wed, 26 Nov 2014 00:35:40 GMT
    Cache-Control: private, max-age=0
    Content-Length: 744

    {
    “error”: {
    “errors”: [
    {
    “domain”: “usageLimits”,
    “reason”: “accessNotConfigured”,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”,
    “extendedHelp”: “https://console.developers.google.com&#8221;
    }
    ],
    “code”: 403,
    “message”: “Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.”
    }
    }

    –batch_AIbVvDsH0qA_ABJHOQPqH5A–

    Plugin Author Poco

    (@poco)

    @brownrd21234, according to Google, there is no calendar with that ID. You can get your calendar ID by looking at your calendar settings and copying the item labelled calendar ID. It isn’t necessarily your email address.

    If you are still having issues please open a new topic and send a link to your page.

    Plugin Author Poco

    (@poco)

    I see what you mean about the time and location details not showing up when you click on an entry with no description, but I don’t remember the previous behaviour or understand why it would have worked differently than it does now.

    I have a fix that I am testing out and I want to be extra sure that it doesn’t cause any new problems before it goes live.

Viewing 15 replies - 46 through 60 (of 257 total)