We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4620
    • 12 Posts
    Hi guys.

    I managed to figure it out! grin
    The months starting on mondays are now correctly processed (august 2010, may 2011, january 2012, ...)

    Posting the solution, maybe this can help somebody:

    In ’class.calendar.php’, after lines 45/46 :
    if ($this->startOffset < 0)
    $this->startOffset = 6;
    


    add:
    if ($this->startOffset == 0)
    $this->startOffset = 7;
    


    As simple as this... one less headache.

    Thank you all!
    carins

      • 7740
      • 3 Posts
      Hi
      I have the same problem as carins! I`m sure it`s hot cache problem, because I have 2 websites and have same time, same problem on both of them. It shows wrong only August. For now all other months seems to be OK.
      I alsoe tried other values in line:
      for( $c=1; $c<$this->startOffset; $c++ )

      no luck so far

      Any suggestions. I`m sure there are alsoe others with same problem
        • 4620
        • 12 Posts
        Dogcat,

        check my previous post!

        Good luck!
        carins
          • 7740
          • 3 Posts
          Thank`s but sorry carins - no luck for me also with you solution, but good to know that it`s working for you.
            • 4620
            • 12 Posts

            That’s strange.
            Make sure that you clear calendar’s cache folder and site cache before you test it!

            good luck.
              • 36624
              • 535 Posts
              Quote from: taiyo1578 at Feb 09, 2010, 10:39 AM

              My clients and I are loving this snippet. So thanks again Chuck for giving us this.

              So my English version works great but now I need to get Spanish going.

              I’ve modified my Language Files based on this:

              http://wiki.modxcms.com/index.php/Category:Language_Files#Managing_the_translation_process_collaboratively

              and I see Spanish for the current month. However for the clickable months (previous and next) I’m still seeing english.

              check it here: http://grab.by/2iAo

              Can anyone shed some light on this? It appears that simplepie.inc has been coded to handle this.....

              Thanks,

              Eliot

              I just setup this wonderful snippet and i had the same problem as Eliot but for french language.

              I have found a solution after reading the php docs.. smiley

              To have my calendar in french, i put this code in the /manager/includes/config.inc.php file

                       setlocale(LC_ALL,  'fr_FR.utf8', 'fr_FR.utf-8');
              


              after that, the actual month is translated.

              then i modify the class.Calendar_Events.php (line ~43) like this :

                      $prevMonth      = strftime('%m',mktime('6', '1', '1', strftime($mo)-1 , '6', $yr));
                      $prevMonthName  = strftime('%B',mktime('6', '1', '1', strftime($mo)-1 , '6', $yr));
                      $nextMonth      = strftime('%m',mktime('6', '1', '1', strftime($mo)+1 , '6', $yr));
                      $nextMonthName  = strftime ('%B',mktime('6', '1', '1', strftime($mo)+1 , '6', $yr));
              


              to translate the next/previous month links ... and it seems to work.

              hope it help someone.



                CTRL+SHIFT+U - Clear Cache
                CTRL+SHIFT+H - Hiding Heft Panel
                CTRL+SHIFT+N - Fast Create Resource
                CTRL+ALT+P - Preview Recource (in edit resorce window)
                CTRL+ALT+S - Save
                • 29525
                • 388 Posts
                I’m just using this calendar for the first time. This is fantastic!

                I’m not a programmer so I’m not sure if this is simple or complex. It is possible to pass the event information to an email form?

                I’d like to use the calendar for visitors to select a time slot for an appointment and communicate via email with the request. So a visitor would click on a calendar entry and it would open an email form with the time slot information entered into the form. I can see how to change the link in the event template to open the contact form, just need to insert the info into the form.

                Any ideas are greatly appreciated. Thank you!
                  www.terrybarthdesign.com
                  • 10076
                  • 1,024 Posts
                  Hi,

                  seems the demo is gone, http://www.quantum-cmg.com/demos/ any instructions anywhere?

                  Whats this error:

                  Assigning the return value of new by reference is deprecated
                    Line 720 source: 	$this->sanitize =& new SimplePie_Sanitize;

                  PHP Version 5.3.1
                    • 4058
                    • 17 Posts
                    I can’t seem to get showPastEvents to work with list view. Is anyone else having issues with this?
                      • 7740
                      • 3 Posts
                      Does anybody know, is it possible in calendar view to show multi day events in all event days (and how to acomplish this). Now I can see only the events beginning day