We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25080
    • 175 Posts
    Oh...
    I’m sorry, on local web (where i try it) mysql is 2.10.2 :/

    I try on website monday.

    realy sorry!
      • 29076
      • 615 Posts
      Quote from: banal at Apr 01, 2008, 10:43 AM

      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.

      That’s my problem as well. If someone with skills could have a look into this it would be the greatest thing. Otherwise EasyEvents is only for those who doesn’t use PHx.
        I think, thererfor I am! But what I am, and why...?
        • 24393
        • 83 Posts
        to fix for PHx: would it be easy as hard-coding the template (two divs and placeholders) into the snippet or in an html file, like ditto, maxigallery et al?
          stevesunderland.com
          GRAPHICS | INTERACTIVE | MARKETING
          xhtml + ajax + seo websites powered by modx
          • 13577
          • 302 Posts
          RE: PHx
          I’m looking at how PHx does things. I’d be very interested in any difference in Easy Events for folks with Easy Events AND PHx if Easy Events is/isn’t called uncached. In other words, is there a difference between:

          [[EasyEvents...]]
          and
          [!EasyEvents...!]

          PHx apparently considers [!uncachedSnippets!] "safe tags" and doesn’t process them. At least from what I can gather. So would be interested if that makes any difference. I’ll probably have to break down and install PHx myself if I can’t brain parse things correctly.

          The regular expressions in PHx are amazing. Kudos to bS for writing them. They’re hard enough to understand let alone write!

          @rajfantastic
          I don’t think it is the templates inside Easy Events [config file] that are the issue. I believe it is the placeholders embedded in the content that are probably the problem. We can eliminate the possibility of them being the internal templates easily:

          In the config file, change templates to NOT use traditional placeholder syntax. In other words change these type templates
          $_templates['listGroup'] = <<<STOP
          <div class="easyEventsList_group">
              <div class="easyEventsList_heading">[+heading+]</div>
              <div class="easyEventsList_events">[+events+]</div>
          </div><!--end easyEventsList_group-->
          STOP;
          

          To this
          $_templates['listGroup'] = <<<STOP
          <div class="easyEventsList_group">
              <div class="easyEventsList_heading">--heading--</div>
              <div class="easyEventsList_events">--events--</div>
          </div><!--end easyEventsList_group-->
          STOP;
          

          In this example, I replaced "[+" with "--" and "+]" with "--". It doesn’t really matter what you use as long as all the prefixes match each other, and all the suffixes match each other.

          Then in the class file, you’d need to alter 3 calls to the [i]templify[/] method (on or about lines: 660, 668, and 706) to include these prefix/suffixes. For example this
          $eventList .= $this->templify('listItem',$eventData);
          

          To this
          $eventList .= $this->templify('listItem',$eventData,'--','--');
          

          By doing this, we remove any similarity and all triggers for MODx or PHx to "see" these as placeholders. I’d love someone to try this, but frankly, I doubt it’s the issue. All that’s happening behind the scenes is a simple string replacement - and it happens within the snippet call, so I don’t even think the outer objects (MODx, PHx) are aware of it. Still... might be worth a shot.
            Standard Disclaimer
            I could be totally wrong.
            • 24393
            • 83 Posts
            @jaredc: thank you for your prompt attention to this issue.

            calling the snippet cached seems to fix the problem with PHx! Amazing work!

            raj
              stevesunderland.com
              GRAPHICS | INTERACTIVE | MARKETING
              xhtml + ajax + seo websites powered by modx
              • 29076
              • 615 Posts
              I finally got it to work, using all the names from your documentation. :) The MiniCalendar shows up with the event-list underneath. But it’s without any style, and there is no links and no AJAX.  huh

              Where should I start to get it right? Is there some style-elements that should be placed in my stylesheet? And is there som extra .js-files that should be installed?

              MODx 0.9.6.1
              EasyEvents 1.5.2


              Thanks.
                I think, thererfor I am! But what I am, and why...?
                • 13577
                • 302 Posts
                Quote from: Sylvaticus at Apr 23, 2008, 04:09 PM
                ...but it’s without any style, and there is no links and no AJAX.... Where should I start to get it right? Is there some style-elements that should be placed in my stylesheet? And is there som extra .js-files that should be installed?
                You have to provide your own styling for sure. All Easy Events provides for you are class names on various elements. How you want them to look is totally up to you.

                As far as the JS file goes, yes, there is a JS file, but as long as you followed the documentation, you shouldn’t really have to do anything special. Is there a public URL you can point us too?
                  Standard Disclaimer
                  I could be totally wrong.
                  • 29076
                  • 615 Posts
                  Thanks for the answer and for helping. I will style it it up the best I can.  laugh

                  I followed the instructions step by step, and recheched it to day, but there is no links in the calendar itself. You can see the Calendar here (It’s in Norwegian).

                  I get <span class="ee_noLinkDay"> on every day, even if there is an event on that day. I must read the instruction and the config-file again.
                    I think, thererfor I am! But what I am, and why...?
                    • 13577
                    • 302 Posts
                    I could be wrong, but it looks like your start and end dates are reversed:

                    30.04.2008 - 28.04.2008
                    That looks to me like April 30, 2008 thru April 28, 2008... which is in the wrong order. I wouldn’t be surprised if your calendar didn’t find any events if that is the case.
                      Standard Disclaimer
                      I could be totally wrong.
                      • 29076
                      • 615 Posts
                      It was reversed. rolleyes  I didn’t see that. Thanks. laugh It all works great now.
                        I think, thererfor I am! But what I am, and why...?