We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 97
    • 5 Posts
    Quote from: 3dimentia at Jul 03, 2010, 11:05 PM

    Hi!

    I followed the installation instructions and got everything installed without error. When I go to my template and add [!mxcalendar?!] it kills the page render. The moment i remove the snippet call, my page renders normally. What could be causing this?

    I’m a modX/PHP newb, so its very likely I am missing something...

    Thanks for the help!

    Nevermind. It turns out the instructions that say to just add [[mxcalendar?]] are incorrect. I needed to add more options to get it to show anything. Thanks for the work! Looks like it will fit my needs.
      • 25803 ☆ A M B ☆
      • 721 Posts
      Quote from: charless at Jun 30, 2010, 12:41 AM

      Quote from: rx2 at Jun 29, 2010, 02:00 PM

      I’m having trouble with building a new Theme.
      I made a new folder, copied everything from the default folder to the new folder and modified the theme.xml file to create a different name, to pick up my css file as well as include a blurb that is different than the one in the original theme.xml file.

      I can see my new theme in the drop down and select and sure enough I see the custom message I’ve input in between the <themdescription> elements.

      However, it is still taking views from the default folder. Is there something we have to do to get a new theme to take views from its own folder?

      If you have created you own theme then you should be able to select that in the Module Configuration tab. Once you save it and refresh your mxCalendar page you should see your new theme. Also double check to make sure you passing in any other theme over-ride(s) through the snippet call.

      If you still have issues please send me a PM.

      ~cheers

      Thanks.

      I have created my own theme and have selected it and refreshed and I do see it. That was never an issue. The issues I’m having are:


      • All the views that start with month. are not coming from the newly created and uploaded theme’s views folder but from the views folder in the default theme.
      • All the views that start with event. are coming from the newly created and upload theme’s views folder as expected.
      • [li]In the event.detail.html view we have the following:

      <h1>[+mxcEventDetailTitle+]</h2>


        Now it’s easy to fix the mismatched tags <h1></h2> but even when fixed I’m not getting the event title showing up. It renders blank.[/li]
      • I’ve input the GoogleMap Key (and am using the same key elsewhere on the site) but I get a broken graphic icon where the map should be. I had checked that I’m using 0.0.6-rc1 as instructed by checking that I had Version: 0.0.6" on line 5 of mxCalendar.tpl.php but in the source code for the map I see: // -- mxCalendar >=r0.0.5b.6.
        In configuration, I can’t specify the Day of Month Class nor enable it. When I do, and click update, they are blank.
      • Is there anyway to display the day, such as Monday, in the event detail page?
      • Is there anyway to display the full month name instead of the abbreviation?
      • Is there any way to separate the time from the month? It seems to be bound togther in [+mxcEventDetailStartDateTime+]
        • 34084 ☆ A M B ☆
        • 756 Posts
        Quote from: 3dimentia at Jul 05, 2010, 07:20 AM

        Quote from: 3dimentia at Jul 03, 2010, 11:05 PM

        Hi!

        I followed the installation instructions and got everything installed without error. When I go to my template and add [!mxcalendar?!] it kills the page render. The moment i remove the snippet call, my page renders normally. What could be causing this?

        I’m a modX/PHP newb, so its very likely I am missing something...

        Thanks for the help!

        What does your snippet call look like in the page you are displaying the calendar?

        It should have displayed the calendar with the configuration options with just the basic snippet call
        [!mxcalendar?!]


        cheers
        Nevermind. It turns out the instructions that say to just add [[mxcalendar?]] are incorrect. I needed to add more options to get it to show anything. Thanks for the work! Looks like it will fit my needs.

        what does your snippet code call look like now, as the basic call should have worked with all the default settings from the configuration settings.

        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
          Quote from: rx2 at Jul 05, 2010, 04:11 PM


          Thanks.

          I have created my own theme and have selected it and refreshed and I do see it. That was never an issue. The issues I’m having are:


          • All the views that start with month. are not coming from the newly created and uploaded theme’s views folder but from the views folder in the default theme.
          • All the views that start with event. are coming from the newly created and upload theme’s views folder as expected.
          • [li]In the event.detail.html view we have the following:

          <h1>[+mxcEventDetailTitle+]</h2>


            Now it’s easy to fix the mismatched tags <h1></h2> but even when fixed I’m not getting the event title showing up. It renders blank.[/li]
          • I’ve input the GoogleMap Key (and am using the same key elsewhere on the site) but I get a broken graphic icon where the map should be. I had checked that I’m using 0.0.6-rc1 as instructed by checking that I had Version: 0.0.6" on line 5 of mxCalendar.tpl.php but in the source code for the map I see: // -- mxCalendar >=r0.0.5b.6.
            In configuration, I can’t specify the Day of Month Class nor enable it. When I do, and click update, they are blank.
          • Is there anyway to display the day, such as Monday, in the event detail page?
          • Is there anyway to display the full month name instead of the abbreviation?
          • Is there any way to separate the time from the month? It seems to be bound togther in [+mxcEventDetailStartDateTime+]

          There is a new version of mxCalendar that fixes the Monthly view themes, sorry that was an update to the namespace that didn’t get updated correctly in past version.

          As to the other questions about the date format you can use a new parameter or updated the value int he configuration tab to adjust the date format to a valid PHP strftime(). See the mxcStartDateFormat and mxcEndDateFormat parameters on the new version 0.0.6-rc2. The newest version should help solve all your issues.

          *note: the google map is using API V3 which does not require any google map key and as long as you don’t have any conflicts in your JS you shouldn’t have any issues.

          *Attached is an example of the mxcEndDateFormat format parameter display for the event detail view.
          &mxcEndDateFormat=`%I:%M%p`

          - if your using the AJAX mode you’ll want to make the snippet call update on the AJAX page snippet.

          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
            New Version: 0.0.6-rc2

            http://modxcms.com/extras/package/?package=687

            Release Notes: 0.0.6-rc2 - June 23, 2010
            * Updated FileList:
            |- mxCalendar.class.php
            |-*snippets/mxCalendar.snippet.txt
            |- lang/english.lang
            |- themes/default/views/event.list.container.html
            |- themes/default/views/month.inner.day.event.html
            |- Release_Notes.txt

            * = Manual update required of Snippet and/or Module code in ModX manager using the new code file

            (0.0.6-rc2)
            Change Log (not all inclusive):
            - Bug fix: mxcTplEventListItemWrap parameter bug
            - Bug fix: event list title placeholder value (mxcEventDetailTitle)
            - Bug fix: Friendly URL duplicate path property in url string
            - Bug fix: 24 hour event edit not pulling correct time
            - Bug fix: A tag attributes REL and TARGET not rendering
            - Bug fix: Back to calendar link in event detail not displing in non-ajax mode and displaying in ajax mode
            - Bug fix: Theme load for month views when not using default
            - Enhancement: Category placeholder and parameter for display on Event List render
            - Enhancement: Category default view, uses category id column, with pararmeter to lock category view; (disables category listing)
            - Enhancement: Cateogyr manager to disable or un-publish categories (Un-Publish = Remove End User view; Disable = Remove from selection in Add/Edit Event list)

            New Parameters
            mxcStartDate = Set the event list start date using strtotime() format ex: &mxcStartDate=`last month` &mxcStartDate=`-2 month`
            mxcEventListTitleLink = (boolean; default false ) Disable event list title links
            mxcDefaultCatId = (int) Set the default cateogry (id column in manager) of the events to disply
            mxcDefaultCatIdLock = (boolean; default false) Block the category listing when set to true; Also overrides the Manager
            mxcStartDateFormat = Event details date/time format override; Valid PHP strftime() format
            mxcEndDateFormat = Event details date/time format override; Vaslid PHP strftime() format


            New Placeholders
            File: event.list.event.html
            ::mxcEventListItemTimeStyle
            ::mxcEventListItemStateDateStamp
            ::mxcEventListItemEndDateStamp

            File: event.list.contianer.html
            ::mxcCategoryFilters

            File: month.inner.day.event.html
            ::mxcMonthInnerEventCategory *this is now added to the default theme file


            SAMPLE USE:
            Monthly Page (Full calendar snippet call)
            [!mxcalendar? &mxcFullCalendarPgId=`47` &mxcEndDateFormat=`%I:%M%p`!]

            - &mxcEndDateFormat (Event Detail) page format of end event date/time format

            Event List page:
            [!mxcalendar? &mxcType=`list` &mxcFullCalendarPgId=`47` &mxcTplEventListItemWrap=`mxcevent` &mxcTplEventListWrapTitle=`Test-A` &mxcDefaultCatId=`3` &mxcDefaultCatIdLock=`1`!]
            
            [!mxcalendar? &mxcStartDate=`first day of current month` &mxcType=`list` &mxcFullCalendarPgId=`47` &mxcTplEventListItemWrap=`mxcevent` &mxcTplEventListWrapTitle=`Test-B` &mxcEventListTitleLink=`0`!]


            cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 25009
              • 1 Posts
              Hi everyone. My first post on the modx community, although been using modx for about a year now.

              Congratulations charless, excellent module with real potential, great work. This is what I’ve been looking for for ages. I’ve got a couple of questions if that’s ok. I recognise that this module is relatively new and being updated all the time...

              1, Is there a way that template variables can be assigned to mxCalendar? I’m considering using this module to power the events calendar on a website that I’m currently building for a nightclub music venue, and extra custom fields / template variables when creating an event (such as an Entry Price, age restriction and an image) would be needed to be displayed along with the Event Title and Event Times that are already built into the package.

              2, Is there a way with that the Event List view can be filtered by month? So that only events that take place in the same month appear together on the same page, so that the user doesn’t have to scroll through months and months of event listings on one page.

              Many thanks
                • 34084 ☆ A M B ☆
                • 756 Posts
                Quote from: richk at Jul 07, 2010, 08:35 AM

                Hi everyone. My first post on the modx community, although been using modx for about a year now.

                Congratulations charless, excellent module with real potential, great work. This is what I’ve been looking for for ages. I’ve got a couple of questions if that’s ok. I recognise that this module is relatively new and being updated all the time...

                1, Is there a way that template variables can be assigned to mxCalendar? I’m considering using this module to power the events calendar on a website that I’m currently building for a nightclub music venue, and extra custom fields / template variables when creating an event (such as an Entry Price, age restriction and an image) would be needed to be displayed along with the Event Title and Event Times that are already built into the package.

                2, Is there a way with that the Event List view can be filtered by month? So that only events that take place in the same month appear together on the same page, so that the user doesn’t have to scroll through months and months of event listings on one page.

                Many thanks
                richk - thanks first of all, and now for your questions.

                1. Not currently, though in the road-map for event registration, if you need just to add event fields for some of the events I’d be willing to help work in a solution for that as I’ll be building on that part for event registration in the near future.

                2. Yes, for the start date, and I have to admit I should have expanded to include the end date for the list, but that was being forced by the limit of the display. I can certainly make an enhancement to allow the end date and return all dates within that range.

                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
                  Quote from: charless at Jul 06, 2010, 10:48 AM

                  There is a new version of mxCalendar that fixes the Monthly view themes, sorry that was an update to the namespace that didn’t get updated correctly in past version.

                  As to the other questions about the date format you can use a new parameter or updated the value int he configuration tab to adjust the date format to a valid PHP strftime(). See the mxcStartDateFormat and mxcEndDateFormat parameters on the new version 0.0.6-rc2. The newest version should help solve all your issues.

                  *note: the google map is using API V3 which does not require any google map key and as long as you don’t have any conflicts in your JS you shouldn’t have any issues.

                  *Attached is an example of the mxcEndDateFormat format parameter display for the event detail view.
                  &mxcEndDateFormat=`%I:%M%p`

                  - if your using the AJAX mode you’ll want to make the snippet call update on the AJAX page snippet.

                  cheers

                  Thanks. Great module and very flexible. Formatting the date in this way is very much appreciated.

                  My call:

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


                  I’m still not seeing the event name when I click on the event from the calendar (in month view). I’m not using Ajax.

                  This is the default template:

                  [+mxcEventDetailBackToCal+]
                  
                  <div id="[+mxcEventDetailId+]" class="[+mxcEventDetailClass+]">
                      <h1>[+mxcEventDetailTitle+]</h2>
                      <p>[+mxcEventDetailLabelDateTime+]</p>
                      <p>[+mxcEventDetailStartDateTime+][+mxcEventDetailDateTimeSeperator+][+mxcEventDetailEndDateTime+]</p>
                      <p class="repeat">[+mxcEventDetailDateTimeReoccurrences+]</p>
                      <h2>[+mxcEventDetailLabelLocation+]</h2>
                      <p>
                          [+mxcEventDetailLocation+]
                      </p>
                      <p>[+mxcEventDetailDescription+]</p>
                      [+mxcEventDetailGoogleMap+]
                  </div>
                  


                  Note the mismatched Header tags remains (opens with <h1> closes with </h2>: <h1>[+mxcEventDetailTitle+]</h2>

                  Is [+mxcEventDetailTitle+] supposed to render the title of the event? I can’t get it to render regardless of what I do. My modified version is:

                  [+mxcEventDetailBackToCal+]
                  
                  <div id="[+mxcEventDetailId+]" class="[+mxcEventDetailClass+]">
                      <h4>[+mxcEventDetailTitle+]<br />
                      [+mxcEventDetailStartDateTime+]</h4>
                      <p>[+mxcEventDetailDescription+]</p>
                     <!-- <p class="repeat">[+mxcEventDetailDateTimeReoccurrences+]</p> -->
                      <p><strong>Date:</strong> [+mxcEventDetailStartDateTime+]<br /><strong>[+mxcEventDetailLabelLocation+]</strong> [+mxcEventDetailLocation+]</p>
                      [+mxcEventDetailGoogleMap+]
                  </div>
                  


                  I’m still not having luck with the Google Map displaying. I’m using jQuery for Slimbox 2. Is this a known JS conflict?

                  The page (in production still at this time) can be seen here: http://dev.turnerporter.net/index.php?id=16

                  Finally, in Configuration, when I set Enable Day of Month class to be true rather than false, and click update, it always sets itself back to false, and the class name I input is also erased.
                    • 14845
                    • 2 Posts
                    Hi Charles.. thanks so much for this needed calendar.

                    I’m having a weird problem, though:

                    If I’m logged in to the Manager and am previewing my site everything works fine.

                    However, when I log out, or not logged in to begin with I get this error when the moodalbox opens:

                    Oops.. there was a problem with your request
                    Please try again.
                    Click anywhere to close.

                    This comes from the moodalbox.v1.2.full.js but I have no idea what’s triggering it.
                    Any help is greatly appreciated as I’m wanting to put this calendar into a client site.
                      • 34084 ☆ A M B ☆
                      • 756 Posts
                      Quote from: jpfromtally at Jul 08, 2010, 12:25 AM

                      Hi Charles.. thanks so much for this needed calendar.

                      I’m having a weird problem, though:

                      If I’m logged in to the Manager and am previewing my site everything works fine.

                      However, when I log out, or not logged in to begin with I get this error when the moodalbox opens:

                      Oops.. there was a problem with your request
                      Please try again.
                      Click anywhere to close.

                      This comes from the moodalbox.v1.2.full.js but I have no idea what’s triggering it.
                      Any help is greatly appreciated as I’m wanting to put this calendar into a client site.

                      this usually means that the URL that is being requested is not responding. try to load the ajax response page directly, not through the ajax response. if you can get it to load there then you shouldn’t have any problem. i’d guess you’ll find the url is off or something else is wrong in the url request. double check your mxcAjaxPageId value as well.

                      If you still have issues or are unable to find the cause please let me know.

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