We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6778
    • 20 Posts
    This is an auto-generated support/comment thread for EventCalendar.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    EventCalendar prints a calendar with links from the days to pages in your MODx site or to other sites.
      • 10573
      • 101 Posts
      "order" is TRUE for reverse chronological and FALSE for chronological.


      When I set &order=`FALSE`

      It has no effect. I want the events closest todays date to show up first.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Try &order=`0`. I believe snippets treat all arguments as strings, so a string consisting of the word "FALSE" would evaluate to true.
          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
          • 6778
          • 20 Posts
          Quote from: gcruz at Nov 22, 2006, 05:55 AM

          "order" is TRUE for reverse chronological and FALSE for chronological.


          When I set &order=`FALSE`

          It has no effect. I want the events closest todays date to show up first.

          There is no "order" parameter for this snippet call. Maybe I can add this feature in the next version.
            • 17049
            • 8 Posts
            it might be a very noob question, but where should i look for the locale files? i would like to add a new one to show the proper names of the days and months.

            I also have some trouble showing the events in the calendar. The calendar is there, but the sundays aren’t red as on the demo page and i’m missing the borders for the numbers too, and also none of the events in the chunk are shown.
            Do i have to add custom css files for the events to show up? Are the class, and title definitions necessary? and if yes, what are the default possibilities for the class variable?
            Is it possible that the different system locale and modx locale is causing the trouble? is it possible that the dates in the chunk are not recognized are correct dates because of the different local timeformat?
              • 6778
              • 20 Posts
              Quote from: Lexx at Jan 12, 2007, 01:14 AM

              it might be a very noob question, but where should i look for the locale files? i would like to add a new one to show the proper names of the days and months.
              You don’t need locale files. It’s a feature of php. Only set die locale to "en_US" or something else. Should work.

              Quote from: Lexx at Jan 12, 2007, 01:14 AM

              I also have some trouble showing the events in the calendar. The calendar is there, but the sundays aren’t red as on the demo page and i’m missing the borders for the numbers too, and also none of the events in the chunk are shown.
              Do i have to add custom css files for the events to show up? Are the class, and title definitions necessary? and if yes, what are the default possibilities for the class variable?
              You have to specify a class. There is no default. The default for the title is "Events".
              To make sundays red and for the borders you have to add this formating into the css of your template (or include a separate css file in your template).
              Here is the calendar part of the css for the demo page:
              /* calendar
              ------------------------------------------------------------------ */
              table.eventcalendar {
              }
              table.eventcalendar .month_title {
              	font-size: 1.1em;
              	font-weight: bold;
              }
              table.eventcalendar .linked-day {
              }
              table.eventcalendar td {
              	text-align:center;
              	padding:2px;
              	color: #FFFFFF;
              	border: 1px solid #CCCCCC;
              }
              table.eventcalendar td.sunday {
              	border: 1px solid #FF0000;
              }
              table.eventcalendar td.ec_ferien {
              	color: #000000 !important;
              	background-color:#FFFFCC !important;
              }
              table.eventcalendar td.ec_feiertage {
              	color: #000000 !important;
              	background-color:#FFCC66 !important;
              }
              table.eventcalendar td.ec_geburtstag {
              	color: #000000 !important;
              	background-color:#00FFFF!important;
              }
              table.eventcalendar td.weeknumber {
              	text-align:right;
              	color: #FFFFFF;
              	border: none;
              }
              table.eventcalendar td.empty {
              	text-align:center;
              	color: none;
              	border: none;
              }
              
              table.eventcalendar th {
              	text-align:center;
              	font-weight: normal;
              	color: #FFFF33;
              }
              table.eventcalendar a{
                  text-decoration: none;
                  border-bottom: none; 
              }
              
              table.eventcalendar .current_day {
              	font-weight: bold;
              	
              }
              


              Quote from: Lexx at Jan 12, 2007, 01:14 AM

              Is it possible that the different system locale and modx locale is causing the trouble? is it possible that the dates in the chunk are not recognized are correct dates because of the different local timeformat?
              The day format of the chunk is independent of you local timeformat. The three supported formats are "manually" parsed in the snippet code.
                • 17049
                • 8 Posts
                thanks, it did clear up the css myth:) Now I can see the calendar the way i set it, the only problem is that it does show the events with ShowList, but they aren’t in the calendar itself (although i set the correct class and define it in the css). also the current day can’t be seen in bold. do you have any idea what may be the cause of this?
                  • 6778
                  • 20 Posts
                  Do you have an example? Or maybe you can send me your page and the css file(s)?
                    • 21455
                    • 26 Posts
                    Hi !!

                    I’ve installed the snippet but when I preview the site, modx give me this error:

                    Parse error: parse error, expecting `T_OLD_FUNCTION’ or `T_FUNCTION’ or `T_VAR’ or `’}’’ in e:\easyphp1-8\www\assets\snippets\eventcalendar\eventcalendar.inc.php on line 37

                    any idea ?
                      • 6778
                      • 20 Posts
                      Which PHP version do you have? My version is 5.xx
                      If you have version 4 or less there maybe a problem with "public". I think this is new in PHP5.
                      Try to remove the "public" before each function.