We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13432
    • 24 Posts
    It seems faster smiley
      • 13577
      • 302 Posts
      Version 1.5.1 is available

      I fixed the bug Jacob found with calendars being created improperly when Sunday (0) is not the first day of the week. Also there is now a functional missingEventsMessagePlaceholder placeholder available for when no events are found... kind of a default - sorry, no events found - kind of thing. And I updated the documentation to reflect that.

      Oh and I removed version number from files. Too much of a pain to keep track by hand. Sorry.
        Standard Disclaimer
        I could be totally wrong.
        • 2734
        • 165 Posts
        Quote from: jaredc at Apr 10, 2008, 12:40 PM

        I fixed the bug Jacob found with calendars being created improperly when Sunday (0) is not the first day of the week.
        Hi Jaredc.
        Is it true, that whenever i set the first weekday to something other than sunday, i have to "re-distribute" all css classes and day header texts to reflect that?
        Example: If i set $_misc[’startDayOfWeek’] = 1;, the week starts with Monday. The Header still says "S" though and the class that has been assigned to the td element is "ee_sunday".
          • 13577
          • 302 Posts
          Version 1.5.2 is available

          NOTE: Please do not feel compelled to jump to this update. It is not a bug fix or feature add. It’s just an alteration of how things are done. It just makes changing the calendar start day a bit more understandable (and I documented the process).

          I looked at the style naming in the config file - and it was a on the non-intuitive side. So I changed a few things to make configuration a bit more obvious. The output is still the same. For example, when you make Monday the first day of the week:
          // Now it's this:
          $_css['mcDay1'] = 'ee_monday';
          // Instead of the less intuitive
          $_css['mcDaySunday'] = 'ee_monday';
          


          @banal
          Yes, you will need to change those config parameters. For the headers to be MTWTFSS instead of SMTWTFS you need to alter the styles (as mentioned) AND the language bits:
          $_lang['miniCal1'] = 'M'; 
          $_lang['miniCal2'] = 'T'; 
          // etc.
          
            Standard Disclaimer
            I could be totally wrong.
            • 36695
            • 47 Posts
            Has there been any movement on the issues with PHx and placeholders? Anyone hacked a workaround?
              • 13577
              • 302 Posts
              Not me. I have never used PHx and don’t have a clue about it. embarrassed
                Standard Disclaimer
                I could be totally wrong.
                • 25080
                • 175 Posts
                hello,

                I try it, (easyevent 1.5) but it’s not ok for me.

                after installation, when i call in a page I’ve this

                « MODx Parse Error »
                MODx encountered the following error while attempting to parse the requested resource:
                « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND tv.id = tvcv.tmplvarid GROUP BY tvc' at line 12 »
                      SQL: SELECT MIN(CONCAT(SUBSTRING(tvcv.value,7,4),'-',SUBSTRING(tvcv.value,4,2),'-',SUBSTRING(tvcv.value,1,2))) AS startDate FROM `modxx`.`modx_site_tmplvar_contentvalues` AS tvcv, `modxx`.`modx_site_tmplvars` AS tv, `modxx`.`modx_site_content` AS sc WHERE tv.name = 'EasyEvents_Start' AND tvcv.contentid = sc.id AND sc.parent IN () AND tv.id = tvcv.tmplvarid GROUP BY tvcv.tmplvarid
                      [Copy SQL to ClipBoard]
                 
                Parser timing
                  MySQL: 	0.0040 s	(4 Requests)
                  PHP: 	0.1609 s	 
                  Total: 	0.1649 s



                i don’t understand the third point of documentation :

                3. If you do not have a template that includes ONLY “[*content*]” you’ll need to make one – I call
                it “Content ONLY” because I’m clever like that, and I put it in the “Utility” group. This will be
                used as the AJAX back end page.

                I can enter parametters, but i’ve not a good results.

                Sorry for my english, but i must try here, there is no french support :/


                thank you
                  • 13577
                  • 302 Posts
                  What version of MySQL are you using? If you’re using a version older than 3.23 it won’t work. (But that is pretty old - so probably not the problem.) Also, if you do NOT have permission to create temporary tables, it won’t work.

                  Third point of documentation
                  This means you need a template in MODx that is almost empty. The template code is:
                  [*content*]
                  

                  That is all.
                    Standard Disclaimer
                    I could be totally wrong.
                    • 25080
                    • 175 Posts
                    MySQL: 5.0.32 smiley

                    ...
                      • 13577
                      • 302 Posts
                      Can you also show your snippet call and config file (I think the $_misc section should be enough) so I can see what your setting are?
                        Standard Disclaimer
                        I could be totally wrong.