We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I’m playing around with release 1.0 and have noticed a couple of things. First, if I style the "today" class (e.g. make the header for today a different color), then that is also applied to the same date in other months. For example, if I styled today (Dec. 12), then that styling seems to show up for Jan 12th as well.

    I think I worked around this by commenting out these two lines in calendar.inc.php (in the $counter loop) :
               // elseif($counter == (int)date("j") && $this->config['mxcCalendarActiveDayDisplay'])  //commented out MattC
               //     $classToday = $this->config['mxcCalendarActiveDayClass'];
    


    Also, I think the calculation of $thisDayofWeek in calendar.inc.php is off. When I append $thisDayofWeek to a fake id value for each cell, I find that, for example, January 4th (a Tuesday) is listed as having a value of 6 - that is, the last day of the week. The relevance is that I can’t rely on that value to change the styling for weekends, for example.

    I’m not certain of the logic involved, but it seems to stem from the dt parameter passed on the URL??? In that case, there is a timestamp which is passed to the date function, to return values for year, month and day as integers (I believe). But the date function only takes an integer as a timestamp, not a string such as is being passed on the URL. So if one inserts an "echo" statement in calendar.inc.php near the top, shortly after this calculation is made, I think you’ll see what I mean.

    Or, alternatively, I am misunderstanding how various values are used. In either case, is there a suggestion as to how I could isolate the weekends for styling?

    Thanks in advance. This is a very nice module and I hope to be able to use it in an upcoming project.
    Regards,
    MattC
      • 18913
      • 654 Posts
      Answering my own question : it looks like changing the calc of $thisDayofWeek (around line 365) to this
      $thisDayofWeek = jddayofweek( cal_to_jd( CAL_GREGORIAN, $newdatePieces[1], $counter, $newdatePieces[0] ) , 0);
      

      takes care of it. I’m not *exactly* certain of that, though, as I’ve made other changes to the code as well.

      Matt
        • 25803 ☆ A M B ☆
        • 721 Posts
        I think I’m missing something.

        I have this page: http://dev.turnerporter.net/page-events.html

        With the calendar showing according to design.

        The snippet to call the full calendar is this:

        [!mxcalendar?&mxcMonthInnerContainerClass=`calendar`&mxcMonthInnerRowClass=`cday cempty`&mxcStartDateFormat=`%A %B %e, %Y - %l%P`!]


        Each event I click on displays fine.

        For the sidebar I have this snippet:

        [!mxcalendar?&mxcType=`list`&mxcTplEventListWrapTitle=`Events`&mxcFullCalendarPgId=`16`&mxcTypeLocked=`true`&mxcStartDate=`2 months`!]


        Again, it shows events on the upcoming dates.

        The problem I’m having is that when you click an event in the full calendar, the detail page returns the expected result, showing the correct date and time.

        When I click on an event in the sidebar, it always shows the first date of the recurring event. Is there a way to correct this?

        My template for event.list.event.html is:

        <h3>[+mxcEventListItemMonth+] [+mxcEventListItemStartDateTime+]</h3>
        <p>[+mxcEventListItemTitle+]</p>


        This placeholder: [+mxcEventListItemTitle+]

        Seems to generate the link within it.

        Also, the Google Map isn’t showing up.


          • 34084 ☆ A M B ☆
          • 756 Posts
          Reviewing the issues and will have a new patch release tomorrow.

          Cheers
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 34084 ☆ A M B ☆
            • 756 Posts
            Issues resolved in Release 0.1.0-rc1 plus the mxCalendar.0.1.1-rc1 Patch get the files here.

            sorry for any inconvenience this has caused you all.

            cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 34084 ☆ A M B ☆
              • 756 Posts
              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):
              }elseif($newMonth == 1 & $type == ''){


              needs to become:
              }elseif($newMonth == 1 & $type == '' &  isset($_REQUEST['dt'])){

                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 13453
                • 20 Posts
                I am running Evo 1.0.4 and I am wondering what is wrong with the calendar’s CSS file.
                I have attached the image of the page I created:

                  • 3722
                  • 171 Posts
                  Do you have mxCalendar installed in the assets/modules folder?
                  Are you pointing to the correct directory in your header.

                  I use the Firebug add on to the Firefox browser to troubleshoot issues like this.

                  Good luck.
                  BG66
                    • 13453
                    • 20 Posts
                    Yes. That is where it is installed. As far as the css, doesn’t it automatically call the style sheet from the mxCalendar folder?

                    Any other solutions would be great. Thanks!
                      • 3722
                      • 171 Posts
                      In the manager module do you have the Default theme selected?
                      Have you made any edits or changes from the basic setup?

                      1) Try downloading and reinstalling the module.
                      2) Clear your cache.
                      3) Take a look at the source code of your page and see if anything is wrong there.

                      BG66