Poco
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Calendar Widget] Formatting Calendar TitlesI 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?
Forum: Plugins
In reply to: [Google Calendar Widget] Plugin making secure site insecureVersion 1.4.5 includes this change.
Forum: Plugins
In reply to: [Google Calendar Widget] Line Break After TitleVersion 1.4.5 now supports
and <p> tags in the title format which you can use to insert breaks into your title.Forum: Plugins
In reply to: [Google Calendar Widget] Feed showing two days priorThe 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
Forum: Plugins
In reply to: [Google Calendar Widget] Line Break After TitleI 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.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.
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?
Forum: Plugins
In reply to: [Google Calendar Widget] Plugin making secure site insecureYes, 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.
I have published another version (or two) that allows the expand to work even with no description.
Forum: Plugins
In reply to: [Google Calendar Widget] What is the proper google ID?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” 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--
Forum: Plugins
In reply to: [Google Calendar Widget] What is the proper google ID?@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.
Forum: Plugins
In reply to: [Google Calendar Widget] Calendar Widget – Unresolved Issues@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”
}
],
“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”
}
],
“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–
Forum: Plugins
In reply to: [Google Calendar Widget] New version of widget doesn't workThe 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”
}
],
“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”
}
],
“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–
Forum: Plugins
In reply to: [Google Calendar Widget] New version of widget doesn't work@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.
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.