Closed (fixed)
Project:
Agenda
Version:
7.x-1.4
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2010 at 18:05 UTC
Updated:
21 Feb 2015 at 16:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aidanlis commentedNope, not possible at the moment, sorry.
Comment #2
ClearXS commentedLike to have calendars not connected to Googles intelligence affiliated Big Brother world corruption leaders affairs; some can be open for them, others only for certain roles or groups.
Comment #3
mickster917 commentedI just created an intranet site for my organization and wanted to be able to use a Google Calendar for events associated with the employees. Don't want them to be searchable or viewed by the public.
Comment #4
aidanlis commentedYour organisation is welcome to sponsor the development of this feature ...
Comment #5
mangus580 commentedThis feature exists in another module - gcal_events - and works nicely. Maybe some of the code there might be useful for here?
Comment #6
dtkav commentedif you are just using one private calendar (total)
you can edit agenda.module to use your private address.
your private address can be found under calendar details. click the xml button under private address at the botom of the page and you will get a link that looks like this:
http://www.google.com/calendar/feeds/your email/your private address/basic
then in your agenda.module file you can edit
define('AGENDA_SOURCEPATTERN', 'http://www.google.com/calendar/feeds/%s/public/full?hl=en&singleevents=t...');
to read:
define('AGENDA_SOURCEPATTERN', 'http://www.google.com/calendar/feeds/%s/your private address/full?hl=en&singleevents=true&sortorder=ascending&orderby=starttime&start-min=%s&start-max=%s&max-results=%d&ctz=UTC');
Comment #7
mangus580 commentedWhat about multiple private calendars?
Comment #8
aidanlis commentedChange:
define('AGENDA_SOURCEPATTERN', 'http://www.google.com/calendar/feeds/%s/public/full?hl=en&singleevents=true&sortorder=ascending&orderby=starttime&start-min=%s&start-max=%s&max-results=%d&ctz=UTC');To:
define('AGENDA_SOURCEPATTERN', 'http://www.google.com/calendar/feeds/%s/full?hl=en&singleevents=true&sortorder=ascending&orderby=starttime&start-min=%s&start-max=%s&max-results=%d&ctz=UTC');Then enter your addresses as:
aidan@php.net/public
yourprivatecalendar@calendar.google.com/yourprivatekey
Comment #9
dtkav commentedi hacked up this solution. it no longer supports just entering email addresses (although that could easily be added), but you can put in multiple private and public addresses in the long format (i.e. http://www.google.com/calendar/feeds/your email/your private address/basic).
i attached my agenda.module file (i had to rename the attachments... ugh). you also need to edit agenda.admin.php and delete this block of code starting on line 255 (just search for it)
which was in place to make sure you entered a valid email (which the long format _isn't_)
cheers,
DK
Comment #10
dtkav commentedAiden's solution is a lot more elegant than mine :P
does that still pass the form email verification?
Comment #11
aidanlis commentedGood pickup, you'll need to remove the check for an incorrect email address still.
Comment #12
Dote commentedHi there.
After doing the changes written by Aidan, still had errors because when I introduced the address as:
yourprivatecalendar@calendar.google.com/yourprivatekey
the following code changed "/" for "%2F" so the result became non-functional. I had to change the following code at the end of agenda.module
to
wich I know is not as secure, but as i know nothing of PHP, cant do better :)
Thanks for the module. It's a great work :)
Fran
Comment #13
aidanlis commentedThis is fixed in D7, but the changes need to be backported to D6.
Comment #14
aidanlis commentedComment #15
aidanlis commentedI don't have time to backport this, but it's super easy so feel free to submit a patch.
Comment #16
jasenko_b commentedHello, I am trying to get this working in Drupal 7, but so far no luck.
Question: if I use an e-mail from another domain name (info@mydomain.com for example) and this is coupled to a google calendar, is there something specific I need to look at? Will this work at all??
Thx in advance
Comment #18
guschilds commentedThere are now significant differences in the module (the 2.x releases) and the API it uses thanks to Google deprecating version 2 of their Calendar API. The approach needed to use private calendars is also different. A more recent discussion for that is happening in #2380761 so I'm going to close this as a duplicate.
Comment #19
guschilds commentedActually, closing as fixed for 7.x-1.x because it was ;). Also, please ignore the commit in #17. That does not actually apply to the 7.x-2.x release.