We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    Thanks, I tried that, but I will try again.

    I might also try adding this snippet to another test sight to see if I can figure out why it is rendering most of the page content twice. This is really off the charts behavior that I have not see before.

    I thought it be Ajax clashing with some jQuery I have on the same page. But I tried removing both the Ajax search and the cycle jQuery function and the problems with the EE Calendar persists...
      • 30319
      • 406 Posts
      How and where does one modify things to create and USE a NEW details template created in easyevents_config_en.php??

      I want to have 2 or 3 different kinds of details templates.

      I know where the templates are but not how to create/reference a new template in the EasyEvents_class.php.
      I found the function makeDateTime code which creates the existing details section, do I re-use this??
      How is function templify involved??

      For some reason the month and day are shown correctly in the TV but when the event is put to the calendar, the month and day are reversed!! -- why??? -- please, HOW can I fix this, please??

      Thank you, Tom
        • 30319
        • 406 Posts
        Quote from: wilcosky at Jan 16, 2010, 01:18 PM

        My date format is off. I can choose the date from the date picker... let’s say I choose December 8, 2009. Well, it shows up on my calendar as August 12, 2009. It’s reversing the month and the day.

        In other words...

        I want 12/8/2009 to be December 8, 2009 (month/day/year)

        but right now, 12/8/2009 is showing on the mini calendar as August 12, 2009 (day/month/year)

        For now I’ve temporarily fixed the issue by using plain text as the input fields instead of the date picker. This way I can manually type in "8/12/2009 12:00" and it appears on the calendar as December 8, 2009 at 12pm, which is what I want. But, I’d rather use the date picker, because it’s easier, and, cooler to use . It’s got to be in the easy events code, because I don’t have an issue with dates in my blog or anywhere else on the site.

        any thoughts?

        I have the same problem, did you get this fixed in terms of the date formatter???

        I’m having the dates stored wrong even with using new/different way of entering dates, I will start over again complately, create new TVs, new events, and see what happens.

        I looked directly at table: site_tmplvar_contentvalues -- date/time values entered via the TVs ARE being saved correctly -- it’s the EE code which is somehow reversing the month and day when the mini calendar is created...

        We need to know what to change in the EE code so it correctly pulls out the month and day to create the mini calendar links.

        Thank you, Tom
          • 5119
          • 90 Posts
          There seems to be very little support for this now, and I’m guessing that’s because MODx are working on a standard calendar function to be included with the CMS. I could be wrong...

          The date is set in the /assets/snippets/EasyEvents/easyEvents.config.php file, and also in the chunks you set up for start time and end time (presuming you haven’t set both to Unix time). Check that your config file has the date the right way around by looking for these two lines near the bottom:

          $_misc[’dateFormat’] = ’m/d/Y’;
          $_misc[’dittoDateformat’] = ’%m %d %Y’;

          The above are set up the American way. Yours may look the same. Either way, they should match what you’ve got in your chunk.

          I’ve got my end time (’Date Format’ field in my EasyEventsEnd chunk) set up as: %a %B %d, %Y while my start time is set to Unix time, so I don’t need to put the formatting in that field.

          You can find out more about Unix date formatting here.
            • 30319
            • 406 Posts
            Quote from: Chocoholic at Mar 08, 2010, 09:28 AM

            There seems to be very little support for this now, and I’m guessing that’s because MODx are working on a standard calendar function to be included with the CMS. I could be wrong...

            The date is set in the /assets/snippets/EasyEvents/easyEvents.config.php file, and also in the chunks you set up for start time and end time (presuming you haven’t set both to Unix time). Check that your config file has the date the right way around by looking for these two lines near the bottom:

            $_misc[’dateFormat’] = ’m/d/Y’;
            $_misc[’dittoDateformat’] = ’%m %d %Y’;

            The above are set up the American way. Yours may look the same. Either way, they should match what you’ve got in your chunk.

            I’ve got my end time (’Date Format’ field in my EasyEventsEnd chunk) set up as: %a %B %d, %Y while my start time is set to Unix time, so I don’t need to put the formatting in that field.

            You can find out more about Unix date formatting here.

            You are correct that support for this item is poor...many ModX extras have fallen by the wayside due to their creators’ losing interest. The ModX team is too invested in Revo to correct the issues with Evo extras or encourage extras developers to properly maintain/support their extras. Maintaining and supporting anything open source is not a trivial task, as many people come to find out.

            The date format per se that you describe may not be where the problem lies...I double-double-checked this.

            The EE_class.php file is reversing the month and day when it creates the clickable links for the calendar, and we need to know why and where this occurs. For example, if you create a date event of 3/10/2010 (March 10, 2010), it’s creating a clickable calendar link of 10/3/2010 (October 3, 2010).

            Furthermore there is a line in the class.php file which is also reversing the month and day, I fixed this on my site, but not yet the clickable calendar links.

            It is this:

            function getDateFromTV($tvVal='')
                {
                //$date = substr($tvVal,6,4).'-'.substr($tvVal,3,2).'-'.substr($tvVal,0,2); // 3/8/10 original code
                $date = substr($tvVal,6,4).'-'.substr($tvVal,0,2).'-'.substr($tvVal,3,2);  // 3/8/10 now displays correctly in calendar page
                return $date;
                }
            


            Finally, the end/start dates are template variables, not chunks, if I understand the documentation correctly.

            Unfortunately I’m not a sufficiently skilled PHP programmer to understand where in the ee_class.php or ee_ajax.php file it is mis-reading the dates from the template variables values table. sad

            And the inventor of this app stopped working on it over a year ago.

            I did find in the class.php file where the URLs get created, more or less, but not why or where the day and month get reversed, such that the correct URL gets attached to the wrong month/day.

            It is somehow related to mySQL date storage and string to date conversion etc. etc., I can find various ways to get the month and day more or less correctly represented, but then no events appear when I try out things etc. in the class.php file.

            Thank you, Tom
              • 27581
              • 3 Posts
              After activation of phx my Easy Event calendar dissapeared...
              I now got the calendar shwoinf thanks to info on here (exclude the templates).
              Bu the events won’t show in the calendar nor being listed.
              I do notice that when I shift node the calendar racts to it:

              Events (33)
              - 2009 (123)
              - 2010 (52)

              When pointing at 52 the calendar shows only 2010, but when pointing at 33 theres a previous year link next to 2010.

              Anyone got any ideas what to do?

              Thanks
                • 27581
                • 3 Posts
                Ok, got it to work to some extent now. The Config file was named _EN at the end and in the congifuration for the snipper it said _en, which worked in the old system but not the old.

                The only problem now is that the dates in the calendar are clickable but doesn’t show any events under the calendar...
                  • 36582
                  • 463 Posts
                  Anybody got a German translation - _de version?

                  Thanks in advance!
                    Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
                    • 5119
                    • 90 Posts
                    Well I *had* Easy Events working, but just discovered today on the live site that it’s no longer working. If I try hover over the arrows to go forward or backward or any of the other links on the calendar, the correct link is displayed in my status bar, but when I click on any of those areas, nothing happens: the URL doesn’t change in my address bar. When I copy and paste one of those URLs into my address bar, nothing happens either.

                    Is this Javascript related?

                      • 18266
                      • 23 Posts
                      Quote from: Sylvaticus at Mar 10, 2009, 02:41 PM

                      This might be to go backwards in development, but I want to go directly from a link in the event list to the full article. I don’t want the article content to show up in the AJAX field under the minicalendar.

                      I have set the &gotoDetailsPage to be 1, so when I click on a link in the event list I can go directly to the full event document. But the content in the document still also shows up in the AJAX field under the mini calendar, and thats what I don’t want to happen.

                      How can I prevent this? Thanks. smiley

                      Go to the EasyEvents_ListMini.php and disable line 75 - 78 AND the "else" in line 81:

                      73 // An event ID is passed, so show details
                      74 //
                      75 //if ( (int)$_GET[$g_easyEvents->qs['eventId']] )
                      76 //{
                      77 //    $listDetails .= $g_easyEvents->makeEventDetails((int)$_GET[$g_easyEvents->qs['eventId']]);
                      78 //}
                      79
                      80 // No event ID is passed, but date info is, show list
                      81 //else
                      82 if ( etc. pp.


                      And - just a few reminders, because I just spent staring catatonically at my screen for 3 days straight:
                      1) When using EasyEvents and PHx in the same site, call the ListMini-Snippet cached: [[EasyEvents_ListMini? &nodes=`157`]]. Otherwise you will not see anything of your calendar!
                      2) Don´t try to open the AJAX:EasyEvents page, it will not show any of your events and cause nothing but a parse error.
                      3) Assign all your events and all pages you want the mini calendar to show up on to your EasyEvents template (NOT the contentONLY template, but the one with the
                      <div id="ee_miniCalendarContainer">
                      [+miniCalPlaceholder+]
                      </div>
                      <div id="ee_listDetailsContainer">
                      [+listDetailsPlaceholder+]
                      [+missingEventsMessagePlaceholder+]
                      </div>
                      [[EasyEvents_ListMini? &nodes=`157`]]

                      stuff)
                      4) If you want the event page to show up immediately, set the "Go to event page for details" to 1 in the EasyEvents_ListMini standard properties

                      Good luck! grin
                      Marcus