Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Google Calendar Fix

edited August 2007 in Vanilla 1.0 Help
I had tried installing the Google Calendar Addon and was running into the same problem a lot of other people were with the add on seeming to hang on "Requesting Data..." What was actually happening in my case was that the PHP was using a method of accessing the URL of the calendar feed that was not allowed by my webhost. So, if you were having the same problem, try replacing the content of eventrss.php with the followwing: <?php $ch = curl_init(); $timeout = 5; // set to zero for no timeout // Change this with your Google calendar feed curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/calendar/feeds/); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); // display file header('Content-type: text/xml'); echo $file_contents; // Nothing else to edit ?>

Comments

  • Options
    Hoped it would also display in Safari, but it didn't.
    Does anyone have a fix?
  • Options
    The code above worked to fix my problem, but it needs a slight edit... curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/calendar/feeds/); should be changed to: curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/calendar/feeds/'); The trailing ' was missing, and anyone copying and pasting this code might have had issues getting it to run.
  • Options
    StashStash
    edited August 2007
    Just thought I'd mention this publicly since no one in this thread seems to know...

    If you set your comments format to "Html" (see radio box options beneath the comment box) and wrap your code in <code></code> tags, it will make life much more readable :)
This discussion has been closed.