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 ;)

Heirem 12 août 2008 23:11 Events-Calendar, Plugins 12 commentaires URI du rétrolien Comments RSS

Donations Wikipedia Affiliate Button

for help Heirem's

12 réponses à “Events-Calendar : A famous (fuckink) bug corrected!”

  1. emuradle 13 août 2008 à 5:51 Lier au commentaire

    This fix did resolve the issue for us. Thanks for your help!

  2. Juanjole 13 août 2008 à 10:00 Lier au commentaire

    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

  3. Dragunoffle 13 août 2008 à 10:25 Lier au commentaire

    Thanks for hard-working on that :) Worked for me too! Keep it up!

  4. Oz Nahumle 13 août 2008 à 12:38 Lier au commentaire

    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.

  5. Heiremle 13 août 2008 à 13:24 Lier au commentaire

    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 ;)

  6. Maidale 14 août 2008 à 5:08 Lier au commentaire

    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 ;)

  7. Michile 15 août 2008 à 17:20 Lier au commentaire

    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.

  8. Michile 15 août 2008 à 17:20 Lier au commentaire

    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/

  9. Heiremle 16 août 2008 à 2:36 Lier au commentaire

    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

  10. Itsikle 28 août 2008 à 15:29 Lier au commentaire

    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 ?

  11. Heiremle 29 août 2008 à 12:46 Lier au commentaire

    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. ;)

  12. Linkersle 5 janvier 2010 à 21:13 Lier au commentaire

    Bonjour, je suis americain et comprend pas tut but votre blog aide moi beaucoup. Merci beaucoup.

Laisser une réponse