We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 867
    • 241 Posts
    HI everyone,

    Is there any english/french demo page for this Calendar ?
    I’m looking for something that can show multiple event on one day and a link to a new page for
    each event.

    Would this snippet do the trick ?

    Thanks in advance.
      • 6778
      • 20 Posts
      Quote from: alchime at May 03, 2007, 08:14 PM

      HI everyone,

      Is there any english/french demo page for this Calendar ?
      I’m looking for something that can show multiple event on one day and a link to a new page for
      each event.

      Would this snippet do the trick ?

      Thanks in advance.
      Hi,

      on the demo page there are only the events in german. I think the only things you need to know are:
      ferien = school vacations
      geburtstage = birthdays
      feiertage = holidays

      With this snippet you can only add one link for each day. Last week my son was born smiley, so currently I have no time to add a new feature. Sorry.


        • 11413
        • 203 Posts
        It would be nice to see it use database instead of chunks to store the data... and maybe an admin panel you can add on a page for webusers with a snippet and/or a module to edit the events from the back end.

        Just an idea like that... I find it really nice, but really not user friendly when you’re more than one working with it on a website. At least something that would generate the chunks for someone without any computer ability.
          Blaise Bernier

          www.medialdesign.com - Solutions for small business, hosting, design and more!
          • 87
          • 51 Posts
          Parse error: syntax error, unexpected ’<’ in /data/9/1/10/109/1336761/user/1432742/htdocs/manager/includes/document.parser.class.inc.php(766) : eval()’d code on line 2

          That’s the error I got.
          Any help? I’m on PHP 4.4.7

          I didn’t modify anything from the EventCalendar v0.6 download page.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Check that snippet code, make sure there’s only one <?php, and that there’s no blank line before 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
              • 87
              • 51 Posts
              Getting the same error as Frits now.
              Remove the Public functions?
                • 26182
                • 164 Posts
                You don’t need locale files. It’s a feature of php. Only set die locale to "en_US" or something else. Should work.

                Sorry, I don’t quite understand. How do you get the English words instead of the German words?

                Thanks in advance,

                Sarah
                  • 6778
                  • 20 Posts
                  Quote from: sarah at Nov 02, 2007, 04:52 AM

                  You don’t need locale files. It’s a feature of php. Only set die locale to "en_US" or something else. Should work.

                  Sorry, I don’t quite understand. How do you get the English words instead of the German words?

                  Thanks in advance,

                  Sarah

                  You have to use the snippet parameter "Locale". Example:
                  [!EventCalendar? &Year=`2006` &Month=`4` &Count=`5` &Locale=`en_US` &EventChunks=`DemoCalendarSchoolVacations`!] 
                    • 26182
                    • 164 Posts
                    Thanks so much for that works great smiley
                      • 23950
                      • 78 Posts
                      Hello!

                      This snippet works fine! but what a shame that it can’t render more that one link per month sad
                      i’ll try to fix that

                      note for French UTF8 user: instead of &Locale=`fr_FR` try &Locale=`fr_FR.UTF8`
                        [b] MES SITES SOUS MODx