We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29756
    • 10 Posts
    Quote from: charless at Sep 21, 2010, 10:20 PM

    Quote from: Theost at Sep 21, 2010, 02:49 PM

    @charless - first off very nice module!

    It seems that on the configuration tab, these parameters are not working correctly: Day of Month Class, Enable Day of Month class

    Whenever I try to set them and save the config, it resets back to defaults of null and ’false’

    got it, I’ve added it to the list:
    http://code.google.com/p/mxcalendar/issues/detail?id=31

    thanks for the report

    update: issue is addressed and a quick fix is posted to the bug report in the link above until the next release.

    Thanks! I will give that a try. (just ran the SQL and the problem is resolved now)

    Three more things:

    • in the "event.list.event.html" file for the default theme line 7 (<P>[+mxcEventListItemStateDateStamp+] - [+mxcEventListItemEndDateStamp+]<P>) should be changed to use lowercase <p> and also the close tag tag </p> is missing
    • The event links call out target="", which the XHTML validators do not like, so if we could not include the target if null, that should solve the issue
    • Is there a way to style just the day name row (mon,tue,wed...)? I am looking to have that be a different background color.
    • It looks like the "today" class is being applied to today’s day in past and future months as well as the current month

    Thanks again for your support and quick reply.

      • 34084 ☆ A M B ☆
      • 756 Posts
      Quote from: Theost at Sep 23, 2010, 09:37 AM

      Thanks! I will give that a try. (just ran the SQL and the problem is resolved now)

      Three more things:

      • in the "event.list.event.html" file for the default theme line 7 (<P>[+mxcEventListItemStateDateStamp+] - [+mxcEventListItemEndDateStamp+]<P>) should be changed to use lowercase <p> and also the close tag tag </p> is missing
      • The event links call out target="", which the XHTML validators do not like, so if we could not include the target if null, that should solve the issue
      • Is there a way to style just the day name row (mon,tue,wed...)? I am looking to have that be a different background color.
      • It looks like the "today" class is being applied to today’s day in past and future months as well as the current month

      Thanks again for your support and quick reply.

      the tags have been corrected in the event.list.event.html file along with not rendering the "target" property is no target is supplied. These will be updated in the next release.

      The questions to styling the day name row to a different background color, assuming monthly view, can be altered through CSS targeting or a costom chunk to replace the current heading, which I just found a bug on the parser so it will also be corrected. The custom chunk for the "day" label headings is
      &mxcTplMonthDayBase=``
      .

      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.

      cheers

        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 25803 ☆ A M B ☆
        • 721 Posts
        How do you update from 0.6-rc3? In the release notes it says:

        * Updated FileList:
        |- mxCalendar.class.php
        |- includes/calendar.inc.php
        |- Release_Notes.txt

        And of course to update the snippet and module code, so I replaced those files and replaced the code.

        But now I’m getting a SQL error: Unknown column ’E.restrictedwebusergroup’ in ’where clause’ »

        I gather this is a new column that the previous release didn’t have?
          • 34084 ☆ A M B ☆
          • 756 Posts
          Quote from: rx2 at Sep 23, 2010, 09:58 PM

          How do you update from 0.6-rc3? In the release notes it says:

          * Updated FileList:
          |- mxCalendar.class.php
          |- includes/calendar.inc.php
          |- Release_Notes.txt

          And of course to update the snippet and module code, so I replaced those files and replaced the code.

          But now I’m getting a SQL error: Unknown column ’E.restrictedwebusergroup’ in ’where clause’ »

          I gather this is a new column that the previous release didn’t have?

          Did you download the package file and open the Manager > Modules > mxCalendar to complete the update? When you load the module manager it runs the necessary scripts to update the database.

          Manual Update: (assuming "modx_" is your table prefix)
          ALTER IGNORE TABLE `modx_mxcalendar_events` ADD `restrictedwebusergroup` VARCHAR(128) NULL DEFAULT NULL AFTER `category`


          let me know if that solves your issue.

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

            FYI, if you are using PIE.htc to enable rounded corners in IE, the calendar will crash the browser in all versions of Internet Explorer if the behavior is specified for any element of the calendar.

            (Can’t have rounded corners in IE)
              • 34084 ☆ A M B ☆
              • 756 Posts
              Quote from: delorean88 at Sep 26, 2010, 12:09 AM

              Hello,

              FYI, if you are using PIE.htc to enable rounded corners in IE, the calendar will crash the browser in all versions of Internet Explorer if the behavior is specified for any element of the calendar.

              (Can’t have rounded corners in IE)


              the default theme for mxCalendar does not use PIE.htc, thus IE will not render the rounded corners.

              cheers
                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 6998
                • 25 Posts
                Can anyone help me with using the class I set for a Category-- I want to use it like so in event.list.event.html:

                    <div  id="[+mxcEventListItemId+]" class="WHATEVER CATEGORY CLASS THE EVENT IS IN">
                        <div class="date">[+mxcEventListItemMonth+]<br />[+mxcEventListItemStartDateTime+] </div>
                <h2>[+mxcEventListItemTitle+]</h2>
                            <p>[+mxcEventListItemStateDateStamp+] – [+mxcEventListItemEndDateStamp+]
                <br />
                [+mxcEventListItemLocation+] </p>
                    </div>
                


                So the class/appearance of the event list item will changed based on what category the event is in.
                But I can’t find how the classes are stored or how to get that to populate dynamically. Is there a way?

                Thank you!
                  • 29756
                  • 10 Posts
                  @charless...


                  The questions to styling the day name row to a different background color, assuming monthly view, can be altered through CSS targeting or a costom chunk to replace the current heading, which I just found a bug on the parser so it will also be corrected. The custom chunk for the "day" label headings is: &mxcTplMonthDayBase=``

                  I actually created my own theme and tried to modify "month.inner.day.base.html" to style just the day name row, but what I found was that it also changed the style on the filler day cells that come before the 1st of the month and after the last. If I am missing something obvious on how to target that row, please let me know. If not, could you add an "mxc" class for just that row, or could you output with <th> instead of <tr>?

                  Thanks!
                    • 25803 ☆ A M B ☆
                    • 721 Posts
                    Quote from: charless at Sep 24, 2010, 11:14 AM

                    Quote from: rx2 at Sep 23, 2010, 09:58 PM

                    How do you update from 0.6-rc3? In the release notes it says:

                    * Updated FileList:
                    |- mxCalendar.class.php
                    |- includes/calendar.inc.php
                    |- Release_Notes.txt

                    And of course to update the snippet and module code, so I replaced those files and replaced the code.

                    But now I’m getting a SQL error: Unknown column ’E.restrictedwebusergroup’ in ’where clause’ »

                    I gather this is a new column that the previous release didn’t have?

                    Did you download the package file and open the Manager > Modules > mxCalendar to complete the update? When you load the module manager it runs the necessary scripts to update the database.

                    Manual Update: (assuming "modx_" is your table prefix)
                    ALTER IGNORE TABLE `modx_mxcalendar_events` ADD `restrictedwebusergroup` VARCHAR(128) NULL DEFAULT NULL AFTER `category`


                    let me know if that solves your issue.

                    cheers

                    It did. I just thought we had to replace a couple of files. I like this method though and the error is gone. Now to move on to take advantage of the new features!
                      • 6998
                      • 25 Posts
                      Hello again!

                      I am having issues specifying a template chunk for list items, I would be grateful for any help.

                      Here is my snippet call:
                      [!mxcalendar? &mxcEventListMaxCnt=`3` &mxcTplEventListWrap=`side-event-wrap` &mxcTplEventListItemWrap=`list-item` &mxcType=`list` &mxcAjaxPageId=`31` &mxcTypeLocked=`1` &mxcFullCalendarPgId=`21` !]
                      


                      Here is my chunk for templating called "list-item":
                      <li><strong>[+mxcEventListItemTitle+] </strong>
                      <br />
                      [+mxcEventListItemStateDateStamp+]
                      </li>
                      


                      Here is the template for the outer wrapper, called "side-event-wrap":
                        <ul class="eventlist">
                          [+mxcEventList+]
                      </ul>
                      


                      What am I missing?
                      It works fine when I leave out the inner item template (lists the events using the template in event.list.event.html), when I add the inner item template, all the events just disappear, no trace of any of the template code, all I get is the empty container ul.

                      Can someone tell me what I am doing wrong?

                      Thank you!

                      -------------------------------------------------------
                      Other issue:

                      Is there any way to just stop the snippet from triggering the javascript to be added to the header? I still need the AjaxPageId to specify the event page as far as I can tell...but the JS/AJAX is not working for me and I can’t figure it out, and it’s just giving me these errors:

                      MOOdalBox.init.bind is not a function Line 7
                      Class is not defined Line 1
                      window.addEvent is not a function Line 59


                      Thanks again... lipsrsealed