We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12147
    • 182 Posts
    Yep, just what I meant - you put it better. wink

    It would really add to the continuity, rather than having to break to GCal (and whole different format) for details. For this reason I tried to install the iCal version but couldn’t get it sorted undecided

      • 20349 ☆ A M B ☆
      • 453 Posts
      Qusick question smiley

      Can this be used with MODx documents (and not with the google cal)?
      pub and un_pub dates?
        BASE - Web Design Studio
        MODX Ambassador

        Website
        • 8798
        • 3 Posts
        Quote from: chrisrabkin at Mar 12, 2010, 05:19 PM

        Quote from: chrisrabkin at Mar 02, 2010, 07:38 AM

        I have successfully installed the google events calendar on this modx installation www.assesuncoast.org. The snippet pulls the events but they display on the day before. For example tax day april 15th displays on April 14th.
        Did I miss something in the installation? Need help!!!!

        Thanks

        Duh +12 hours


        +12 hours where?
          • 3722
          • 171 Posts
          Ok, I am trying to make this work with no luck.
          I am currently getting this error:

          Parse error: syntax error, unexpected $end in /homepages/11/d292516919/htdocs/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 2

          I have read through this whole thread and tried numerous ways to make it work with no luck.

          Thanks for any help
          BG66
            • 26850
            • 1 Posts
            Quote from: BobbyG66 at Jun 15, 2010, 07:39 PM

            Ok, I am trying to make this work with no luck.
            I am currently getting this error:

            Parse error: syntax error, unexpected $end in /homepages/11/d292516919/htdocs/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 2

            I have read through this whole thread and tried numerous ways to make it work with no luck.

            Thanks for any help
            BG66



            Same here, looked although i can honestly say i dont really understand it all,i have created the snippet then added to my template.
            when iopen the page it get the following message:

            Parse error: syntax error, unexpected ’[’ in /home/q3acad/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 2

            I know im doing something completely wrong, so im guessing it is the syntax inthe snippet which looks like this (followed the info on http://www.quantum-cmg.com/demos/):

            <?php
            [!Calendar? &emails=`[email protected]` ’/assets/snippets/calendar/’;
            include $basePath .&offset=`-2 hours` &display=`calendar` &template=`ical`!]
            ?>


            any advice muchly appreciated...


              • 3722
              • 171 Posts
              Has anyone been able to make this work in MODx 1.0.4?
              I have not been able to get the other calendar options working.
              This looks like the best solution and I really want to use it.

              Please help, thanks
              BG66
                • 3722
                • 171 Posts
                Can anyone help sgt1973 and myself?

                i am still not able to get this to work... huh

                Parse error: syntax error, unexpected $end in /homepages/11/d292516919/htdocs/pack4/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 3
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  usually this comes from missing file inclusion of a certain function inside a function.
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 15510
                    • 70 Posts
                    @sgt1973:

                    It looks like your call is incorrect. I have the following points for you to consider:

                    1. The call should be placed in a document, not in a snippet. I assume that you have it in a snippet since there are php tags in your example as shown below.

                    <?php
                    [!Calendar? &emails=`[email protected]` ’/assets/snippets/calendar/’;
                    include $basePath .&offset=`-2 hours` &display=`calendar` &template=`ical`!]
                    ?>

                    If we remove them and place the call in a document field, the call would look like this:
                    [!Calendar? &emails=`[email protected]` ’/assets/snippets/calendar/’;
                    include $basePath .&offset=`-2 hours` &display=`calendar` &template=`ical`!]

                    2. Next, no line breaks are allowed so remove those if they exist:

                    <?php
                    [!Calendar? &emails=`[email protected]` ’/assets/snippets/calendar/’; include $basePath .&offset=`-2 hours` &display=`calendar` &template=`ical`!]
                    ?>

                    3. Next, there are unfamiliar parameters in the call. All parameters used in the call should look like this:

                    &param=`value`

                    If we remove the unfamiliar parameter code, the call would look like this:

                    [!Calendar? &emails=`[email protected]` &offset=`-2 hours` &display=`calendar` &template=`ical`!]

                    This call is properly formed. All of the other text has been removed. Now, if you intended to call this from php code, you would have to use the MODx API and the call would not look like this format at all. If that is your intent, you should study the MODx API to learn how to call snippets from php code.

                    Hope this helps.


                      • 15510
                      • 70 Posts
                      One other thing:

                      It looks like you are using a private calendar. The code will have to be modified slightly from ChuckTrukk’s original to support the private address. See http://modxcms.com/forums/index.php/topic,34824.msg261559.html#msg261559" target="_blank" rel="nofollow">href="http://modxcms.com/forums/index.php/topic,34824.msg261559.html#msg261559