We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13577
    • 302 Posts
    @jakoblaursen
    What version of MySQL are you using? Temporary tables can’t be created prior to MySQL version 3.23.

    @AMDbuilder
    Your question really can’t be answered with a "modify this line ... " type answer. The class method (makeMiniCalendar) that builds the calendar table would need to be changed. But I wouldn’t necessarily recommend modifying that method, but rather create a new one. After all it is makeMiniCalendar.

    You’d have to remove the 1 event limit on the events queried for each day, then alter how the output is generated for each day to include the events themselves (as makeMiniCalendar doesn’t do this at all).

    @Everyone else
    If you’ve got Easy Events up and running, I’d love to see some other examples of it!
      Standard Disclaimer
      I could be totally wrong.
      • 13577
      • 302 Posts
      I got a PM with questions that I thought might be of value to EE users, so here is my reply:

      Quote from: noahlearner at Mar 15, 2008, 09:49 PM

      I installed 1.0 and it seemed to work well...So I decided to updgrade to 1.5
      Good. 1.0 will not be supported and has severe limitations.

      ... all I can get to work is for the calendar to display with out any events. I also noticed that when I preview the ajax page I get a fairly lengthy error message as seen below...
      Looks like a node specification problem - I’ll get to that in a second.

      1. Is there a demo that I can look inside the manager so that I can see how the pages / documents are structured? I think that I will understand how to set it up correctly if I see it set up correctly.
      No. Allowing unknown users inside your manager is a recipe for disaster.


      2. Where exactly do I put the :

      <div id="ee_miniCalendarContainer">
      [+miniCalPlaceholder+]
      </div>
      <div id="ee_listDetailsContainer">
      [+listDetailsPlaceholder+]
      </div>
      [!EasyEvents_ListMini? &nodes=`83`!]


      Do I put it on the page where I want the calendar to live?
      Yes. And no. It doesn’t have to be all one block as in this example code. What is important is that somewhere, either in your content, or in your template, you have both placeholders (miniCalPlaceholder and listDetailsPlaceholder) inside their corresponding DIVs. Then the snippet call itself - which generates output only for the placeholder locations, NOT its own location, needs to be called (again from the template or more likely, the content).

      What exactly is the node? Is that the root folder where the calendars live?
      A node is where the events live. Not necessarily the calendar. Consider the following document set up:
      - Calendar of Events Page ( 12 )
      - Events (1 )
      - - Conferences ( 2 )
      - - - Conf 1 ( 4 )
      - - - Conf 2 ( 5 )
      - - - Conf 3 ( 6 )
      - - Meetings ( 3 )
      - - - Meeting 1 ( 7 )
      - - - Meeting 2 ( 8 )
      - - Shows ( 9 )
      - - - Show A ( 10 )
      - - - Show B ( 11 )

      If you want the calendar on page 12 to include conferences, meetings, and shows, then you would use "node" 1. That is to say include all events below document 1. If you wanted just conferences, you’d use node 2, likewise, just meetings would be node 3. But there is NO DEFAULT NODE. So you have to specify at least one. You can specify more than one. If you wanted just shows and meetings but not conferences, you could specify "3,9" so you snippet call would look like this:

      [!EasyEvents_ListMini? &nodes=`3,9`!]


      On the easy event pages, what do I need to do with the following settings?
      Container?
      Rich text?
      Published?
      Searchable
      Cacheable
      Empty cache?
      Content Type: text/csstext/htmltext/javascripttext/plaintext/xml
      Content Disposition: Inline Attachment
      Treat the Easy Event document like any other web page, because that’s what it is. If you think about it, all Easy Events does is examine those pages for you and present a new way to navigate to them. If you were to go directly to one of those pages, they would look pretty much like any other document. So for my Easy Event pages, I use the following:

      Container: (I let MODx handle this for me, sometimes Yes, sometimes No)
      Rich text: Yes
      Published: Yes
      Searchable: Yes
      Cacheable: Yes
      Empty cache: MODx default
      Content Type: text/html
      Content Disposition: inline

      But again, use what you normally use for your pages. Much more important than those settings is being certain you have your Template Variables set up correctly and your Easy Events configuration file edited correctly.
        Standard Disclaimer
        I could be totally wrong.
        • 21671
        • 244 Posts
        To be clear, using your example, of calendar(12) do I put the placeholder divs in its template, and the snippet call in its content? And in the snippet call would be the node would be :
        [!EasyEvents_ListMini? &nodes=`1`!] if I wanted it to list all events?

        Also, assuming I use the default names for all the snippets and placeholders, the only changes I need to make are the Ajax file location and the correct node in the snippet call ? Do I need to change anything else?

        Many Many Thanks,

        Noah
          • 21671
          • 244 Posts
          Ok...SO now I got it to display the calendar and the events.....Yeah!.... how do I get it display the events of the month chosen. For my example (unstyled at this point) go to http://www.youngsbicycleshop.com/modxtest/index.php?id=136

          When I click from March to April, the events from March are still displayed below. Ho do I change it so that it only displays April’s events when the current month is April?


          -Noah
            • 13577
            • 302 Posts
            Quote from: noahlearner at Mar 17, 2008, 09:18 AM

            To be clear, using your example, of calendar(12) do I put the placeholder divs in its template, and the snippet call in its content?
            Generally all that stuff will go in either the template or the document’s content. Perhaps a few examples:

            Everything in the template
            For our college home page - it’s all in the template. The DIVs, the placeholders, the snippet call. (That page actually has nothing in the content field at all.) Our events are in an events folder, then subfolders for each type of event, then subfolders by year etc. For the home page, we wanted a pretty wide view of what’s going on, so we used the "top" node.

            Everything in the content
            Then, inside the site on our alumni events page, I put all that stuff (DIVs, placeholders, snippet call) in the content and specified a more specific node (alumni events).

            And in the snippet call would be the node would be :
            [!EasyEvents_ListMini? &nodes=`1`!] if I wanted it to list all events?
            Yes.

            Also, assuming I use the default names for all the snippets and placeholders, the only changes I need to make are the Ajax file location and the correct node in the snippet call ? Do I need to change anything else?
            YES
            You absolutely need to include the name of the of the template(s) you use for Easy Events (in the $_misc[’templateNames’] array). Without that, you’ll not find anything and you calendars will always be blank.
              Standard Disclaimer
              I could be totally wrong.
              • 13577
              • 302 Posts
              Quote from: noahlearner at Mar 17, 2008, 10:06 AM
              ...how do I get it display the events of the month chosen
              Ahem... well currently it doesn’t do that. It shows event lists by day. Not by month. But I like that idea, and have had that notion myself a few times... (along with some other things). That will likely be in a future release.

              But it’s tricky...
              There could be a LOT of events in a month. So which do you choose? Just the first NUMBER of them? But those might not be the important ones... this is why it’s not in there yet.
                Standard Disclaimer
                I could be totally wrong.
                • 21671
                • 244 Posts
                That funtionality would be super handy / crucial for any club, concert, movie venue.
                smiley

                Noah
                  • 1343 ☆ A M B ☆
                  • 2,213 Posts
                  Thanks for the reply. I guess that’s why it didn’t pop out at me rolleyes.

                  I guess I’m back to waiting for the next incarnation with the ability to output a full sized calendar. If you need help testing let me know as I would like to get this setup on one of my sites in the near future so I can simplify my life greatly.

                  Oh, one more thing that would be nice is a way to post news events via the front end similar to news publisher. (Wishlist?)

                  Thanks
                  AMDbuilder
                    Patrick | Server Wrangler
                    About Me: Website | Tweets |  MODX Hosting
                    • 13432
                    • 24 Posts
                    My MySQL is version:
                    Client API version 4.0.21
                      • 13577
                      • 302 Posts
                      @jakoblaursen
                      The query is simple and uses pretty straight forward syntax (see my disclaimer). That leads me to believe that your database user may not have permission to create temporary tables (CREATE_TMP_TABLE in MySQL speak). I’d check into that with a SHOW GRANTS query statement.
                        Standard Disclaimer
                        I could be totally wrong.