We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14050
    • 788 Posts
    In the snippet you can edit the variable holding the xml address.
      Jesse R.
      Consider trying something new and extraordinary.
      Illinois Wine

      Have you considered donating to MODx lately?
      Donate now. Every contribution helps.
      • 1774
      • 34 Posts
      In the snippet you can edit the variable holding the xml address.

      Ah, yes, I should have looked at that more closely. Thanks, I’ll try this out today.
        Brandon Booth
        Freelance MODx specialist for hire: site construction, template conversion, snippet customization.
        Lucidgreen.net Websites made simple.
        • 21455
        • 26 Posts
        Hello,

        i’m trying to set up this snippet but i met some problems :
        I have created the snippet and then called it!
        here is the message I obtain:

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »

        PHP error debug
        Error: fopen(http://[email protected]/public/full?start-min=2007-01-19&start-max=2007-02-18&orderby=starttime): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
        Error type/ Nr.: Warning - 2
        File: e:\easyphp1-8\www\manager\includes\document.parser.class.inc.php(748) : eval()’d code
        Line: 142

        Parser timing
        MySQL: 0.0298 s (5 Requests)
        PHP: 0.4473 s
        Total: 0.4772 s


        What is my problem ?
          • 14050
          • 788 Posts
          I would download the new version of the snippet located here:

          http://modxcms.com/forums/index.php/topic,8563.msg60320.html#msg60320

          Get the 1.3 version. Make sure to run the sp_compatibility_test.php, by uploading it to your server and pointing your browser at the file. If it doesn’t pass that test, you will be unable to run this snippet.

          Jesse
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 21455
            • 26 Posts
            I try it and in the cURL field, i got :

            Fatal error: Call to undefined function: curl_version() in e:\easyphp1-8\www\sp_compatibility_test.php on line 20

            does it unable me ?
              • 21455
              • 26 Posts
              I fixed my problem !
              just need to remove the ";" at the end of the PHP file config (php.ini) :

              ;Windows Extensions
              ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
              ;
              ;PHPExt
              ;extension=php_bz2.dll
              ;extension=php_cpdf.dll
              ;extension=php_crack.dll
              extension=php_curl.dll
              ;extension=php_db.dll


              thanks for youre help !!
                • 3232
                • 380 Posts
                It seems google allows html elements to be posted on their calendar. when this snippet is it shows that html code... example: & displays at &

                Is there any way to alllow this to display as html?
                  • 14050
                  • 788 Posts
                  I’ll have to look into this and see if I can duplicate it. Can you send me a link to your page so I can see the source of the output, along with the version of GoogleEvents you are using.

                  Oh, and the URL to your feed would be helpful.
                    Jesse R.
                    Consider trying something new and extraordinary.
                    Illinois Wine

                    Have you considered donating to MODx lately?
                    Donate now. Every contribution helps.
                    • 4310
                    • 2,310 Posts
                    Thanks for the snippet!
                    My start date is displaying 12:00am or 00:00 (depending on format) on the web page.
                    This is the snippet call...
                    [[GoogleEvents?dayNameSize=`1`&outputType=`list`&maxEvents=`30`&lastEvent=`90`&tpl=`CalendarList`]]

                    The template is....
                    <h4>[+startDate+]    at [+startTime+] </h4>
                    <h5>[+title+] </h5>
                    <p>[+content+] </p>
                    Venue : [+where+] 

                    My google calendar is set to GMT as I live in the U.K.
                    The XML output from google is...
                    <summary type="html">
                    When: Sat 3 Mar 2007 20:00 to 21:00  GMT<br>  <br>Where: Here <br>Event Status:     confirmed
                    </summary>
                    −
                    	<content type="text">
                    When: Sat 3 Mar 2007 20:00 to 21:00  GMT<br>  <br>Where: Here <br>Event Status:     confirmed   <br>Event Description: test test test
                    </content>

                    Any ideas?
                    Link to site...REMOVED
                    Thanks
                    David
                      • 14050
                      • 788 Posts
                      First, we have a new version of GoogleCalendar that seems to work a lot better and account for some Google Feed oddities. You can grab the latest code here:

                      http://modxcms.com/forums/index.php/topic,11681.msg83939.html#msg83939

                      Just paste that text file into your snippet, completely erasing the original.

                      Next append &debug=`1` to your snippet call and paste that information here so we can see where the snippet is failing :-D
                        Jesse R.
                        Consider trying something new and extraordinary.
                        Illinois Wine

                        Have you considered donating to MODx lately?
                        Donate now. Every contribution helps.