Events-Calendar : A famous (fuckink) bug corrected!
First I apologize…
… because this rotting bug came from me!
And I think you’re many to be concerned.
I think especially to Maida , Dragunoff, Juanjo and Emurad.
Who reacts while I could see nothing .. because it worked for me!
Small reminder of the problem
Using beautiful screenshots provided by Dragunoff:
First weekdays bug screenshot
Second weekdays bug screenshot
The bug: the tree that hides the forest!
Here is a correction to be made, pending the next update.
Normally scheduled in a few days.
It was in front of me and I could see nothing:
- Open the file ec_calendar.class.php in the EC plugin directory
- Look at the functions displayWidget (), displayLarge () and displayAdmin ()
- You will find the same line, at #59, #109 and #159 :
$day_names[$n] = ucfirst($wp_locale->get_weekday(date('w',$t)));
- You replace the date( ‘w’, $ t) by gmdate( ‘w’, $ t), as follows:
$day_names[$n] = ucfirst($wp_locale->get_weekday(gmdate('w',$t)));
- Test .. in all calendars .. and tell me the result of your side. Thank you by advance.
And yet my apology*.
*only those who do nothing make no mistakes











This fix did resolve the issue for us. Thanks for your help!
Indeed helped very much.
Now all the events of our National Capoeira Meeting are published in the correct way.
Heirem, you did a great work, keep it up.
*Waiting the next version*
Regards,
Juanjo
Thanks for hard-working on that
Worked for me too! Keep it up!
Many Many thanks. For the continuing support for this great plugin.
You should change the source to direct here and not to Luke’s webpage.
Oz.
Oz Nahum > Normally, if everything goes well, I should inherit the account of Luke Howell on Wordpress.org. Luke said he launched the process but it took time. So I am waiting patiently.
Thank you all for your encouragement!
But nobody has yet thought to accept my apology
Thank you so much - this fixed the problem on all my sites that use the event calendar. I appreciate your hard work on this problem and taking over the plug-in.
I make LOTS of mistakes, so I can’t accept your apology
Hi,
you have two little bugs in your plugin.
The first is the filter for the [[EventsCalendar]]. You have to escape the [ and ]:
function filterEventsCalendarLarge($content) {
if(preg_match(”/\[\[EventsCalendar\]\]/”,$content)) {
$calendar = new EC_Calendar();
$content = str_replace(”[[EventsCalendar]]”, $calendar->displayLarge(date(’Y’), date(’m’)), $content);
}
return $content;
}
Then, it would be good, when you replace date(’…F…’) with strftime(’…%B…’) for other languages.
Thanks.
Hi again,
you forgot to change the English word in the file “ec_js.class.php” from line 256 to line 268.
Then, I have create a German translation file from your plugin. It would be good, when you refer to my site: http://www.mi-schi.com/wordpress-events-calendar-deutsch/
Dear Michi,
1- About [[EventsCalendar]] I do not agree with you. I have checked what is in $content and also the precepts of the preg_match(). There is no reason to change the function of Luke. Anyway the escapes like “\[” serve only in the case of an HTML interpretation, not in a PHP script
Then I did not understand the relationship with functions dates and strftime … can you explain me please ? Maybe you refer to displayLarge() ?
2- I did not have “forgotten” but “neglected” these translations
As I explained in an earlier comment, when I started to use EC, the widget list was not working for me. But I now know why. The localization of this part of the plugin is already done (and much more) and will be in the next version
Deear friend, I am still waiting a answer to my proposal to organize a web design contest around EC
Nevertheless, I am very pleased that you came to visit my site
Friendly
Heirem
hello,
I’ve translated the calendar to hebrew, but I haven’t sent the files to yet because I have a very strange problem.
Once I activate the plugin, the website goes blank. You can login the admin panel, see the calendar administration, in hebrew, you can see the big calendar, add events, everything, but trying to go to the web page results in a blank page.
Any ideas what could be causing it ?
Itsik > Indeed very strange! My email is in the footer of this page. Please send me your hebrew translation file so that I teste it on my side. We’ll see what happens then.
Bonjour, je suis americain et comprend pas tut but votre blog aide moi beaucoup. Merci beaucoup.