bramwaas
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Error while loadingHi Edwin,
Thank you for your detailed feedback.
Sad to hear that my plugin crashes your site.As far as I can see from the error details it is caused by an appointment with a timezone that is not available in my conversion table. I expect the appointment is made in the last hour before your site crashed. Maybe that gives you a lead for a workaround.
Anyway this should not give an unexpected error(Uncaught Exception) so I’m going to try to protect my code from such errors and see if my translation table of microsoft timezones needs to be expanded. In this way I hope to be able to present a new version soon in which this error no longer occurs.
If you want you can help me with the .ics file. I suppose you have an outlook agenda then you can probably download the ics file on an url like https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/…/cid-…/calendar.ics
You can contact me via contact@ with my website domain:
waasdorpsoekhan.nl
or I can mail you via the secretaris email-adres on the deventer scherm vereniging site.Kind regards
Bram WaasdorpUPDATE
After some further searching, I’m convinced that the error probably occurs if a timezone cannot be found in the translation table and as a last resort the timezone of the WordPress installation is used. If this time zone is not a city, but at a UTC time, eg UTC+1, it will still go wrong. If this is indeed the case, you can solve the error by setting the time zone to Amsterdam in the General settings of WordPress.- This reply was modified 2 years, 9 months ago by bramwaas.
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Limit description lengthHi @justmigrating,
I have looked at the webpages you send me, and I have been able to copy some of the events to my own google test calendar.
The content of the .ics (ical) link from that calender is however different from what must be feeded to my plugin on your test page. All the HTML is stripped from the Description. The display of that file is correct, but maybe not what you would expect.It seems that the feed on your test page contains all the HTML in the Description, my plugin uses the htmlspecialchars function get rid of their special meaning. So the HTML tags are displayed as text. In my opinion this is good practice when you display data from an unknown source, so I will not instantly change this behaviour.
But I can agree with you when you say that your own agenda is not an unknown source so maybe I should think about a better solution.For now I’m just going to make a clear statement in the FAQ and I wish you good luck with the other plugin that does meet your requirements. And of course thanks for your helpfull posts.
Thanks and regards
Bram Waasdorp- This reply was modified 3 years, 5 months ago by bramwaas.
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Limit description lengthHi Justmigrating,
you can send it to: bram at waasdorpsoekhan.nl
(replace ‘ at ‘ by the @ sign)
That woould be very helpfull.
Thanks Bram
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Limit description lengthHi @justmigrating,
Thank you for your constructive comments. Of course it is up to you to choose the plugin that best fits your needs.
But I’m sorry that your choice is forced by a bug in my plugin. All the more so since I saw those errors myself when adding the excerpt length option and thought I had solved them.
Did you also notice the error in version 1.4.0 and if so,
could you help me a bit with definitively solving the error by providing the url of the calendar file, or add the downloaded .ics file in you replyThanks and regards
Bram Waasdorp- This reply was modified 3 years, 5 months ago by bramwaas.
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Limit description lengthHi @justmigrating,
Published version 1.4.0:
Added parameter excerptlength to limit the length in characters of the description in respons to a comment of justmigrating. (@justmigrating).Hope this solves your issue.
Regards Bram
Forum: Plugins
In reply to: [Simple Google Calendar Outlook Events Block Widget] Limit description lengthHi Justmigrating,
That seems like a good improvement, unfortunately I haven’t made an option for that yet.
I will add this option with a parameter excerptlength (chars) shortly.But if I think about it again this is not a 100% solution, not every sign takes up the same amount of space. I think you also need CSS to make it all right.
Maybe you should use max-height and overflow: hidden and maybe text-overflow: ellipsis on the element.Regards Bram
- This reply was modified 3 years, 5 months ago by bramwaas.
Hi Carolyn,
Deployed new version 1.3.0.
In this version you can configure your time formats.
You can replace the defaults “G:i” and ” – G:i” by “g:i a” and ” – g:i a” to make it in line with your website.I think with this change your question is resolved.
Regards Bram.
Hi Carolyn,
thank you for your comments.
At the moment the format of the times is hard-coded ‘G:i’.It is not very difficult for me to make it configurable. So I will do that in the next update. I hope to deploy that in a week or two.
If you can’t wait and you are not afraid to change a little bit in the code you can change the text ‘G:i’ three times in the format you want for example ‘g:i a’ in the file
… /wp-content/plugins/simple-google-icalendar-widget/simple-google-icalendar-widget.php
on your system
in the following lines:if ($e->startisdate === false) { echo wp_date( 'G:i ', $e->start); }
and
if ($e->startisdate === false && date('z', $e->start) === date('z', $e->end)) { echo '<span class="time">', wp_date( 'G:i', $e->start ), '</span> - <span class="time">', wp_date( 'G:i', $e->end ), '</span> ' ; } else { echo '';
Regards Bram
- This reply was modified 3 years, 7 months ago by bramwaas.
Version 1.2.2 works also with events without an enddate.
Tested with https://p24-calendars.icloud.com/holiday/NL_nl.icsregards Bram