We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13432
    • 24 Posts
    My webhost do not offer temporary tables in MySQL... What do I do then? Do I have to use another snippet? What do you recommend?
      • 13577
      • 302 Posts
      Quote from: jakoblaursen at Mar 20, 2008, 04:13 AM

      My webhost do not offer temporary tables in MySQL... What do I do then? Do I have to use another snippet? What do you recommend?
      For the time being another snippet is about your only option if you don’t want to hack the code yourself. It is possible to rewrite the code not to use a temp table, but it makes the queries messy, and the processing time longer. At least that was my experience.
        Standard Disclaimer
        I could be totally wrong.
        • 2734
        • 165 Posts
        Hi

        I installed EasyEvents by following exactly the Instructions provided within the documentation. However, i always get a blank Page with no Events even though i created two Events at future dates. The Placeholders ([+miniCalPlaceholder+] and [+listDetailsPlaceholder+]) are being replaced by an empty string.
        This runs on a local Test Server, so i can’t provide a link to the Site.
        Here are some Informations about my Setup:
        Apache 2.2.3
        PHP 5.2.0
        MySQL 5.0.32
        MODx version: 0.9.6
        Version codename: rev 2767
        Friendly URLs enabled (with alias path option)

        I guess that doesn’t provide enough information for any help. My primary Question is: is there some sort of "Debug" Mode where i can see whats happening (or not in this case).
        Thanks in advance
          • 13577
          • 302 Posts
          @banal

          You’re right, without more information it will be really hard to diagnose your problem. The server specs shouldn’t cause any problems. Of course if you could put this somewhere a bit more public, it would be easier to troubleshoot.

          Is the mini calendar showing up? Even if no events are found, it should at least show the current month (no links forward or backward though). So if that isn’t showing up, then something definitely isn’t right.

          All I can suggest at this point is to recheck all your config file settings, snippet names, placeholder names, etc. I know I’ve often "followed all the instructions" only to find out I missed something or had a typo. A typo of a space has even nailed me before (that was really hard to spot).

          If you want to PM me code pieces & config file, I could take a peak. I wouldn’t waste forum space here on big code blocks, but if we find something useful for the group at large we could throw it up.
            Standard Disclaimer
            I could be totally wrong.
            • 11784
            • 4 Posts
            I found out that placeholders set by Easy Events are reset to an empty string if you have PHx plugin enabled. If you disable PHx Easy Event works but if PHx is enabled the calendar just doesn’t show up. Does someone know why this happens? I’d really like to use both PHx and Easy Events at the same time.
              • 2734
              • 165 Posts
              Quote from: Haprog at Apr 01, 2008, 08:55 AM

              I found out that placeholders set by Easy Events are reset to an empty string if you have PHx plugin enabled. If you disable PHx Easy Event works but if PHx is enabled the calendar just doesn’t show up. Does someone know why this happens? I’d really like to use both PHx and Easy Events at the same time.
              Ahh!
              That could cause my problem then. Because i have PHx enabled on the MODx installation where it doesn’t work! Gotta have to look into this. Thanks for the information, this helps.
                • 2734
                • 165 Posts
                @jaredc
                Disabling the PHx Plugin solved my problem indeed. I guess there is a problem with the processing order (PHx processes source before EasyEvents does).
                I just had PHx installed for testing purposes, therefore i’m fine with just disabling it. There might be others that need PHx though, so it’s probably worth the effort to find a workaround?

                Other than that, i have some feature requests/propositions for EasyEvents:

                Support for multiple Languages. Especially the easyEvents.config.php and the Snippet Params should be translatable. For example: Pass a (optional) language id to the Snippet and it will load a language-specific config file. Most likely the config would have to be split into global-configuration and translatable parts.

                Custom placeholder fields. It would be really nice, if one could put custom fields into the templates.
                Example:
                <div class="easyEventsList_item">
                    <div class="easyEventsList_time">[+eventTime+]</div>
                    <div class="easyEventsList_title">[+title+]</div>
                    <div class="easyEventsList_description">[+description+]</div>
                    <div class="easyEventsList_introtext">[+introtext+]</div>
                    <div class="easyEventsList_myTv">[++myTv++]</div>
                </div>
                


                The snippet would then have to parse the template and get all the required fields either from the document or from template variables. In my example i distinguish template variables from the "regular" placeholders with a different syntax ([++tvname++]). Could be different ofc.

                Most likely i’m going to hack some of the functionality into your existing code. At first, this is going to be a translation of the config files.
                  • 11784
                  • 4 Posts
                  There seems to be an irritating problem in PHx (the one I mentioned already. also described here http://modxcms.com/forums/index.php/topic,7522.msg137596.html#msg137596) that effectively prevents the use of Easy Events when PHx is enabled. I really need to get PHx and Easy Events working together. I’ll try asking for help in the PHx support thread.
                    • 13432
                    • 24 Posts
                    Slow "Next month" and wrong dates in june...

                    Hi. I’ve moved my site to a server that supports temp tables, and it seems to work...

                    Please visit the site http://legestue-mors.dk/index.php?id=3 and see how slowly it changes from one month to another... Why is it that slow?

                    Try to continue to juni (june)... Here the dates starts at "32"... Why?

                    Please help smiley
                    Jakob Laursen
                      • 13577
                      • 302 Posts
                      Quote from: jakoblaursen at Apr 09, 2008, 11:08 AM

                      Slow "Next month" and wrong dates in june...
                      I’m not sure about your speed issues. The server in general seemed slow to me, but that could be my location.

                      Try to continue to juni (june)... Here the dates starts at "32"... Why?
                      Apparently it is calculating the start date improperly. Good thing I included a max calendar days or it would go on forever - never finding the current month!

                      I replicated the problem temporarily, but then uploaded what I thought was the same core class file, and the problem went away. Before I think this is just a bug thats’ already been worked out, would you mind replacing your EasyEvents.class.php file with the one attached? If that works for you, I’ll re-bundle the package and release the patched version. Thanks.

                      Edit: file did not solve problem, removed
                        Standard Disclaimer
                        I could be totally wrong.