We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28008
    • 23 Posts
    Great module. I’ve just installed it and it works great.

    I did change 1 query in the _getNEvents function because on my server the original query didn’t work. When showing the calendar as a list and filtering on a catergory ID, it wouldn’t filter. The query almost remained the same except for the

    startdate >= \''.$date.'\' or enddate >= \''.$date.'\' or  `lastrepeat` >= \''.$date.'\'


    part in the WHERE part. I had to put this in between brackets (dunno if that’s the correct name), making it:

    (startdate >= \''.$date.'\' or enddate >= \''.$date.'\' or  `lastrepeat` >= \''.$date.'\')



    Complete query now looks like:

    $eventsSQL = 'SELECT *, E.id as eid, E.category as catID, E.repeat, C.name as category, (SELECT DATEDIFF(E.enddate, E.startdate)) as DurationDays, (SELECT TIMEDIFF(E.endtime, E.starttime)) as DurationTime
    		FROM '.$modx->getFullTableName($this->tables['events']).' as E
    		LEFT JOIN '.$modx->getFullTableName($this->tables['categories']).' as C ON E.category = C.id
    		WHERE (startdate >= \''.$date.'\' or enddate >= \''.$date.'\' or  `lastrepeat` >= \''.$date.'\') and E.active=1 
    			and C.active=1 '.($CatId ? ' and C.id IN ('.$CatId.') ' : '').'
    		ORDER BY startdate LIMIT '.$n;
      For those about to rock... I salute you
      • 3722
      • 171 Posts
      charless,

      WOW, what a great module! This is just what I was looking for. It’s great to have Events and a Calendar all in one!
      Here are a few things I found: Using version 0.0.6-rc3

      1) Typos in Configuration settings page
      Cateogory List Options -> Category List Options
      Enanble Cateogry Filters -> Enable Category Filters

      2) Is there a way to not shown the categories in the List view? I have five categories and it takes up a lot of space in my sidebar

      3) When entering a Start date, can the End date change to the start date automatically?
      What happens is that the End date stays set to the current date. If the user does not change the end date I have seen the event span over a few days.

      Thanks!
      BG66
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Speaking of setting start dates and end dates... http://www.filamentgroup.com/examples/slider_v2/index3.php
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 3722
          • 171 Posts
          Quote from: sottwell at Jul 17, 2010, 07:50 AM

          Speaking of setting start dates and end dates... http://www.filamentgroup.com/examples/slider_v2/index3.php
          That is pretty cool Susan!

          I am also wondering how and end user can add events.
          Do they have to be a manager and run the module?
          Can I set up a link or way for the client to just add/edit events?

          Thanks
          BG66
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Well, it’s all in the database, so it shouldn’t be too difficult to make a simple front-end form for it.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 34084 ☆ A M B ☆
              • 756 Posts
              Quote from: BobbyG66 at Jul 17, 2010, 08:44 AM

              Quote from: sottwell at Jul 17, 2010, 07:50 AM

              Speaking of setting start dates and end dates... http://www.filamentgroup.com/examples/slider_v2/index3.php
              That is pretty cool Susan!

              I am also wondering how and end user can add events.
              Do they have to be a manager and run the module?
              Can I set up a link or way for the client to just add/edit events?

              Thanks
              BG66

              A front end management piece for the events is coming in the very near future, but as of right now it is only through the module. If you need an immediate solution please send me a PM.

              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: BobbyG66 at Jul 17, 2010, 07:36 AM

                charless,

                WOW, what a great module! This is just what I was looking for. It’s great to have Events and a Calendar all in one!
                Here are a few things I found: Using version 0.0.6-rc3

                1) Typos in Configuration settings page
                Cateogory List Options -> Category List Options
                Enanble Cateogry Filters -> Enable Category Filters

                2) Is there a way to not shown the categories in the List view? I have five categories and it takes up a lot of space in my sidebar

                3) When entering a Start date, can the End date change to the start date automatically?
                What happens is that the End date stays set to the current date. If the user does not change the end date I have seen the event span over a few days.

                Thanks!
                BG66

                Thanks for the catch on the typo’s smiley
                Now for the categories list view you can disable them by adding the parameter below in the snippet call. Make sure you snippet code is version 0.0.6-rc3.
                &mxcDefaultCatIdLock=`true`
                


                And the final one (3), yes - I’ve been meaning to make that update in the next release.

                Cheers
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 3722
                  • 171 Posts
                  &mxcDefaultCatIdLock=`true`

                  Thanks charless,

                  That did the trick. I just did not see that parameter listed anywhere.

                  BG66
                    • 30319
                    • 406 Posts
                    Can this work with Revolution 2.0?? Please??

                    I think many people would really like Revo 2.0 compatibility much sooner than any new features, excluding bug fixes.

                    Thank you, Tom
                      • 34084 ☆ A M B ☆
                      • 756 Posts
                      Quote from: TomMLS at Jul 21, 2010, 08:46 PM

                      Can this work with Revolution 2.0?? Please??

                      I think many people would really like Revo 2.0 compatibility much sooner than any new features, excluding bug fixes.

                      Thank you, Tom

                      Yes, that is currently under development as we speak. I’ll post progress as I move forward.

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