We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for mxCalendar 0.1.2-rc2 by charless.

    Brief Description:

    mxCalendar for ModX was created to fill in the gap of event calendar capabilities of ModX. It fully supports ModX templating for greater control of your sites look-n-feel.

    Core Features:
    * Event management through Manager Module interface
    * Start / End date times
    * Optional past event display
    * Full calendar view with previous/next click through
    * Upcoming events list
    * Roll-over (Lightbox) view or click to full event view
    * External resource linking
    * Multiple events per day
    * Single Events across multiple days
    * Reoccurring events
    * Parameter to display event duration (days,hours,minutes)
    * Parameter to display event start and end times (uses date(format) according to PHP Date manual)
    * events sorted by date,time so the first event of the day is first
    * Location integration with Google Map API v3
    * AJAX event detail view
    * Theme capabilities for full display and layout control
      • 34084 ☆ A M B ☆
      • 756 Posts
      Bug fix for Full Calendar view

      Just posted a quick update 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.
        • 21671
        • 244 Posts
        Hi there,

        Thanks for all your hard work! I have finally started using the calendar and am very impressed. I’m having problems with recurring events.

        Can you explain how to correctly set up a recurring event? I want to set up a training run that repeats every week for a spcific quantity of weeks (see attached image for how I set it up). The output to the calendar is weird.I’ve attached two pictures to show you what outputs when a) the above event is output and then b) when I choose 1 for repeat look at what outputs. The problem becomes multiplied when I choose 2, or 3 from the repeat pulldown.

        You can see my calendar at http://www.learnerdesign.com/calendartest.html

        Also, I am getting the following error in the firefox toolbar.
        Error: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/mootools/1.1.2/mootools-yui-compressed.js :: anonymous :: line 3" data: no]

        Also, there appears to be issues with caching when the ajax call is activated. The date times don’t display correstly in IE8, ie the dates don’t correspond to the day that was clicked on.

        Any Help you can offer is greatly appreciated.

        -Noah

          • 3722
          • 171 Posts
          Charless, Great work on this update!

          I just updated from version 0.0.7-rc4.
          1) The Ajax popups are not working.
          2) The month is now displayed as "jan" instead of "January"
          3) I also noticed an issue using qoutes (’ or ") in the event title. They display fine, but the field goes blank in the editor after the first quote.

          Any ideas?
          Thanks
          BG66
            • 34084 ☆ A M B ☆
            • 756 Posts
            Quote from: noahlearner at Jan 04, 2011, 11:15 AM

            Hi there,

            Thanks for all your hard work! I have finally started using the calendar and am very impressed. I’m having problems with recurring events.

            Can you explain how to correctly set up a recurring event? I want to set up a training run that repeats every week for a spcific quantity of weeks (see attached image for how I set it up). The output to the calendar is weird.I’ve attached two pictures to show you what outputs when a) the above event is output and then b) when I choose 1 for repeat look at what outputs. The problem becomes multiplied when I choose 2, or 3 from the repeat pulldown.

            You can see my calendar at http://www.learnerdesign.com/calendartest.html

            Also, I am getting the following error in the firefox toolbar.
            Error: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/mootools/1.1.2/mootools-yui-compressed.js :: anonymous :: line 3" data: no]

            Also, there appears to be issues with caching when the ajax call is activated. The date times don’t display correstly in IE8, ie the dates don’t correspond to the day that was clicked on.

            Any Help you can offer is greatly appreciated.

            -Noah



            Dang it, I had a value in when I was doing forced testing that did not get removed in the release for the repeat dates, so it’s calculating them well unexpectaly. I update the package and the core class file shortly. I’m looking into the caching issue, do you have cache enabled on those pages in the Manager that are servering up the AJAX page and can you post back the snippet call you have as well ensuring that the basic call uses the
            [!mxCalendar ....!]
            vs.
            [[mxCalendar ....]]


            posting back response after some additional testing on the weekly repeat events. Also note the the "Repeat Every" option you have as "10" tells the calendar to only display the event every 10th week, not to repeat 10 times. Hope that helps.

            cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 21671
              • 244 Posts
              Hi There,

              Thanks for getting back to me. I am calling the snippets like this:

              on the main calendar page
              [!mxcalendar? &mxcAjaxPageId=`4032` !]


              on the ajax page
              [!mxcalendar? &mxcFullCalendarPgId=`4031` !]


              both pages are also called uncached in the page settings. I cleared the cach in the browser and the site.

              Many Thanks,

              Noah
                • 34084 ☆ A M B ☆
                • 756 Posts
                Quote from: BobbyG66 at Jan 05, 2011, 05:49 AM

                Charless, Great work on this update!

                I just updated from version 0.0.7-rc4.
                1) The Ajax popups are not working.
                2) The month is now displayed as "jan" instead of "January"
                3) I also noticed an issue using qoutes (’ or ") in the event title. They display fine, but the field goes blank in the editor after the first quote.

                Any ideas?
                Thanks
                BG66


                Sorry to hear you are having issues, lets see if we can’t figure some of these out.

                1) In your template file or other means are you including the MooTools library and is the referrence to the mootools.js in your page rendered source?
                2) Ah yes, that I have a new solution in place for that will require a new release to update two files and I’ll also be expanding this to parameters. In short a global override constant was declared in the language file (last line)
                define('_mxCalendar_gl_Months','jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec');

                which I did not properly validate in the calendar class to not use this unless expessely stated in a parameter call. The short fix is to update that line the in the /lang/english.lang file and then I’ll have a new patch shortly to update this and expand into the parameters properly.
                3)Also noted and bug fix will be in the next patch should come out later today or tomorrow at the latest.

                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
                  @noahlearner

                  can you explain more about the caching issue you’re seeing? and I’m on skype as csandersii if you want to ping me there

                  cheers
                    Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                    Visit CharlesMx.com for latest news and status updates.
                    • 21671
                    • 244 Posts
                    Hi,

                    I will try to put the caching issues more clearly, but in the meantime...

                    The repeating problem also seems to be affected by whether or not you enter a start and end date in the top start and end date section. If there is no end date chosen then, the display seems to work correctly.

                    Another problem arises if you unintentionally choose a date. If you choose a date, then save. When the event reopens, if you delete the date in the module and then click ’update event’ it won’t delete the date from the database.

                    From a usability standpoint, it might be best when entering the event to have three choices for what type of event is it?
                    1. Single day
                    2. Multiday
                    3. Repeating

                    When the user clicks one of buttons, the appropriate fieldset is shown to the user using a javascript show / hide technique or ajax load. It is confusing because currently there is one start date and two end dates.

                      • 34084 ☆ A M B ☆
                      • 756 Posts
                      Fixed the issue of removing/deleting the date and it not updating and will be in the next patch file. Most of your issues can be addressed with this updated file, if you want to try it before it’s packaged.

                      http://mxcalendar.googlecode.com/svn-history/r115/trunk/mxCalendar.class.php


                      there is certainly room for UI improvements here and I hope to start tackling those more after the Revolution release of mxCalendar.

                      cheers
                        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                        Visit CharlesMx.com for latest news and status updates.