We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34084 ☆ A M B ☆
    • 756 Posts
    Quote from: Plankton at Apr 26, 2010, 12:39 PM

    Hi Charles,

    I have some feedback for you... smiley

    1) Could you please advice how to separate upcoming and archived events (list mode)? I don’t remember if it worked in 0.0.4 or not, but seems that currently it does not.

    2) Current day was highlighted with black background in calendar mode in 0.0.4. In 0.0.5b.5 it does not.

    3) In 0.0.4 font size of event date like ’25’ (Apr, 25) was 100%, while for the range of dates like ’25-26’ - 75% (list mode). There were 2 different parameters for these 2 cases. In 0.0.5 there is a single parameter for both cases. I would appreciate if you separate these date font-sizes back.

    Thank you in advance! smiley


    1) I’m not 100% sure I understand what your trying to accomplish, but currently the Event List only pull in events with the current date "4/26/2010" forward and does not look at past events. However good news is in the next release I’ve add in additional parameters that will allow you to set either hard dates ranges, current week forward, and support PHP strtotdate parameters like "+1 week" or "-1 day" etc.

    2) In the Manager mxCalendar Configuration Tab you’ll want to change the Enable Day of Month class value to true then set the Day of Month Class value to your defined class name in CSS, if using the default theme it’s value should be today (see screen capture below)

    3) That is now a piece of the theme file and the default theme makes them the same currently. In order to make this change I’d recommend you add the following entry to your CSS file as the theme still renders the class name "repeat" but was removed from the default theme CSS file "mxCalendar/themes/default/css/mxCalendar.css", which does get update with releases thus why the change should be made to your CSS file.
    p.repeat { font-size:75%; }
    


    - alternative -
    you could create a chunk and pass in the parameter to override that template file with your provided chunk, use the "mxCalendar/themes/default/views/event.detail.html" file as a template for your chunk. Then in your snippet call place the parameter:
     &mxcTplEventDetail=`YOUR_CHUNK_NAME` 

    which would look like this with the rest
    [!mxcalendar? &mxcAjaxPageId=`YOUR_AJAX_RESPONSE_PAGE_ID` &mxcTplEventDetail=`YOUR_CHUNK_NAME` !]


    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
      Next Release Teaser - Category:

      Just a sample of the new category enhancements in the next release smiley

      Info: The next release category display will be extended to the end user and managed in the configuration tab of mxCalendar. There are two display types; the list format using ul-li tags and then the drop-down option which uses HTML select tags to render the categories. It also allows you to change the copy of the header and assign html css class name with your option of which html tag to wrap the heading in.

      These will then filter the events based on the category selected from the list (link) and drop-down.

      Cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 23546
        • 29 Posts
        Quote from: charless at Apr 26, 2010, 02:10 PM


        1) I’m not 100% sure I understand what your trying to accomplish, but currently the Event List only pull in events with the current date "4/26/2010" forward and does not look at past events. However good news is in the next release I’ve add in additional parameters that will allow you to set either hard dates ranges, current week forward, and support PHP strtotdate parameters like "+1 week" or "-1 day" etc.

        2) In the Manager mxCalendar Configuration Tab you’ll want to change the Enable Day of Month class value to true then set the Day of Month Class value to your defined class name in CSS, if using the default theme it’s value should be today (see screen capture below)


        1) I’m trying to set up one doc for future events and another doc for past events. When I use
        [!mxCalendar? &mxcType=`list`!]
        call, both future and past events are displayed. Please advice how to call a) future events only and b) past events only.

        2) I will use this option. Thanks!
          • 23546
          • 29 Posts
          Quote from: charless at Apr 26, 2010, 02:10 PM


          3) That is now a piece of the theme file and the default theme makes them the same currently. In order to make this change I’d recommend you add the following entry to your CSS file as the theme still renders the class name "repeat" but was removed from the default theme CSS file "mxCalendar/themes/default/css/mxCalendar.css", which does get update with releases thus why the change should be made to your CSS file.
          p.repeat { font-size:75%; }
          


          - alternative -
          you could create a chunk and pass in the parameter to override that template file with your provided chunk, use the "mxCalendar/themes/default/views/event.detail.html" file as a template for your chunk. Then in your snippet call place the parameter:
           &mxcTplEventDetail=`YOUR_CHUNK_NAME` 

          which would look like this with the rest
          [!mxcalendar? &mxcAjaxPageId=`YOUR_AJAX_RESPONSE_PAGE_ID` &mxcTplEventDetail=`YOUR_CHUNK_NAME` !]


          cheers

          3) I did not mean repeating events. I just want to make font-size of the date of 1-day event = 100% and font-size of 2+ days events = 75%.
            • 23546
            • 29 Posts
            Quote from: charless at Apr 26, 2010, 03:03 PM

            Next Release Teaser - Category:

            Just a sample of the new category enhancements in the next release smiley

            Info: The next release category display will be extended to the end user and managed in the configuration tab of mxCalendar. There are two display types; the list format using ul-li tags and then the drop-down option which uses HTML select tags to render the categories. It also allows you to change the copy of the header and assign html css class name with your option of which html tag to wrap the heading in.

            These will then filter the events based on the category selected from the list (link) and drop-down.

            Cheers


            Charles, are you planning to include category into the module call parameters? I’m interesting in something like the following:
            [!mxCalendar? &mxcType=`list` &mxcCategory=`1,3,5-10`!]
            .
              • 34084 ☆ A M B ☆
              • 756 Posts
              @Plankton

              Item number 1 is a bug and will be fixed in the next release along with additional enhancements with support for parameter based dates in the start and end date values.

              Item number 3 was an adjustment to the original non-themed version to theme support, so this request is an enhancement on the themes and is already supported in the next release with additional configuration options in the mxCalendar config tab

              Re Category Snippet Parameter capabilities:
              As to the ? about supporting the parameter for the category filter the system will accept those type of parameters to be passed for forced filtering.


              I’ve got a long list of updates and enhancements rolled into the next release, so it’s another major release.

              cheers
                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 23546
                • 29 Posts
                Quote from: charless at Apr 27, 2010, 12:15 AM


                Re Category Snippet Parameter capabilities:
                As to the ? about supporting the parameter for the category filter the system will accept those type of parameters to be passed for forced filtering.


                When? In the next release?

                Quote from: charless at Apr 27, 2010, 12:15 AM

                I’ve got a long list of updates and enhancements rolled into the next release, so it’s another major release.

                cheers

                Waiting impatiently for the next release...
                  • 34084 ☆ A M B ☆
                  • 756 Posts
                  the next release I plan to distribute tomorrow if all goes well, I’ll update this thread later today with current status smiley


                    Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                    Visit CharlesMx.com for latest news and status updates.
                    • 19023
                    • 12 Posts
                    Hey, thanks for sharing your calendar module.
                    You’ve probably already fixed this but in the version of the module posted on Google Code in Line 304 of mxCalendar.class.php the time is being stripped out of the variable that time-picker was using to prefill the dropdowns when you edit an existing event.

                    I took out the (as far as I can tell) unused date(strtotime()) conversion and now I can edit events conveniently:

                                                  case 'date':
                                                        if($val[0] == 'startdate')
                                                          $editSD = ($editArr['start'] != '0000-00-00 00:00:00' && !empty($editArr['start']) ? $editArr['start'] : date('Y-m-d')); //$editArr['start'];
                                                        elseif($val[0]=='enddate')
                                                          $editSD = ($editArr['end'] != '0000-00-00 00:00:00' && !empty($editArr['end']) ? $editArr['end'] : date('Y-m-d')); //$editArr['end'];
                                                        else
                                                          $editSD = null;


                    I also have a few lines that make weekdays recur (according to your MTWTFSS checkboxes) but it doesn’t respect the interval yet so I’ll keep working on that. Looking forward to seeing tomorrow’s release.
                      • 34084 ☆ A M B ☆
                      • 756 Posts
                      The date() code in that section was to ensure that when the date selector was used it stripped out the time portion for the updated selection options on the time.

                      As to the weekly repeat support of (SMTWTF) are you having issues with the dates it’s producing?? Not sure where your going. Can you provide an example if you are having issues with that.

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