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

  • I have 2 problems:
    1: in each month shows the current day
    2: now in January 2011 and the calendar still shows in December 2010
      http://modx.im - Russian community
      http://extras.evolution-cms.com - Repository for Evolution
      • 10018
      • 4 Posts
      I have same problem ...
        • 3722
        • 171 Posts
        Here is the fix:

        Bug fix for Full Calendar view

        Just posted a quick update, version 0.1.2-rc2, to fix the Full calendar display stuck on Dec 2010, looks like only one person had downloaded so I replaced the version files.

        Manual correction (GLOBAL non-version dependent):
        /mxCalendar/includes/calendar.inc.php

        On Line 74 (depending on version):
        Code:

        }elseif($newMonth == 1 & $type == ’’){



        needs to become:
        Code:

        }elseif($newMonth == 1 & $type == ’’ & isset($_REQUEST[’dt’])){
          • 26685
          • 6 Posts
          Dear BobbyG66 and others,

          although the code is as it should be
          }elseif($newMonth == 1 & $type == '' &  isset($_REQUEST['dt'])){


          it doesn`t work - I can see every month the current day.

          Thanks for any advice tongue
          Sepppl
            • 3722
            • 171 Posts
            Have you downloaded the latest version?
            Try that and re-installing it.
              • 26685
              • 6 Posts
              I deleted all and did a new installation with the files from code.google.com.
              So, from the moment I activate "Enable Day of Month class" I get "every month" (today) the first, the second, the third...and so on. When tomorrow is the third and I will have a look on march I will see the third of march marked as "today".

              I didn`t get that - do I missunderstand something? Is it a bug or a feature? undecided
              I would be nice and helful If the mark would appear only on the actual date.

              After that I couldn`t use this feature.

              Thank you very much for your advice.
              Sepppl


                • 3722
                • 171 Posts
                Do you have a link to your site so we can see what it looks like?
                  • 26685
                  • 6 Posts
                  Dear BobbyG66,

                  here is the URL:
                  http://modx-105.aryatara.de/das-programm/kalender.html

                  Thank you in advance,
                  Sepppl
                    • 3722
                    • 171 Posts
                    Thanks Sepppl,

                    I see regular days have a class of " tag"
                    Todays date has a class of "today tag"

                    <td id="" class=" tag" width="12%">
                        <!-- day of month label -->
                        <div class="datestamp">2</div>
                        <!-- event listing container -->
                        <div id="" class="event">
                                
                        </div>
                    </td>
                    
                    <td id="" class="today tag" width="12%">
                        <!-- day of month label -->
                        <div class="datestamp">3</div>
                        <!-- event listing container -->
                        <div id="" class="event">
                                
                        </div>
                    </td>
                    


                    I have not used that feature on my calendar, so not sure how to correct it.
                    I did find a post saying that looks like it is supposed to work that way.
                    "The today class is intended to work that was as some popular UIs that always highlight the current "day of month" for all months that you view."

                    There might be a way to tie it into the correct month as well.

                    Good luck
                    BG66