We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36786 ☆ A M B ☆
    • 209 Posts
    Hey guys, I'm having trouble getting gcalevents to function, at all. I simply get no output no matter what I do. This would be AMAZINGLY helpful if I can get it working. My snippet call is below. I'm stuck using a REALLY old and inflexible php script till I get this working and I am NO programmer sad

    [[!gcalAgendaView &userID=`r0rcg037ncsjdh13mhu2vlsbgs%40group.calendar.google.com` &limit=`5`]]


    Oh and I don't care who sees the calendar url, not like it's a public calendar.

    Thanks guys!
    [ed. note: maroonlover last edited this post 14 years, 7 months ago.]
      Ben Morrison
      Hacking templates to pieces since 2003
      • 22840
      • 1,572 Posts
      No snippet call ;o)
        • 36786 ☆ A M B ☆
        • 209 Posts
        Really guys? No help at all? Is this snippet event functional? I have resorted to a bit of old PHP I found online and it's not exactly ideal, to say the least and I'm no good with Javascript.
          Ben Morrison
          Hacking templates to pieces since 2003
          • 37449
          • 57 Posts
          Well, trying to use this myself, and found two things...

          1. If you're on a development machine, you need to add 2 lines to the curl_setopt settings in the galevents.class.php file (core/components/gcalevents/model/gcalevents)

          2. You need to change line 224 from this

          $this->url = str_replace('{{agendaID}}', $this->c['agendaID'], $this->url);
          


          to this

          $this->url = str_replace('{{agendaID}}', $this->c['userID'], $this->url);
          


          The snippet call uses 'userID' but the class has 'agendaID'.

          I can now get the title to extract but nothing else!!
            formerly sumodaz on here!
            • 7391
            • 49 Posts
            this sucks! no support at all for this snippet
              • 36786 ☆ A M B ☆
              • 209 Posts
              From what I know, the google calendar API is tricky at best and crappy at worst. Still, this would be incredibly helpful. Although if mxcalendar had google calendar integration, that would be even better.
                Ben Morrison
                Hacking templates to pieces since 2003