php - How do I create a link to add an entry to a calendar? -
i'm working nightclub , making website them, they've got lots events , site built lot around events, today make facebook event of every event killer have "add calendar" button added ical or google calendar (or maybe outlook).
i've managed figure out how make calendar feed added new calendar, thing people can "subscribe events" it's quite messy have calendar every event. know how implement function lets them add main calendar easily. think mailto: link calendars if that's possible.
also while i'm @ subject if know if it's possible automatically import event facebook wordpress or export event wordpress facebook great, that's not important.
update (free personal use):
while answer below detailing how-to each service work, imo it's easier go third-party addthisevent [http://addthisevent.com]. lets customize lots of options add facebook , more. unfortunately, they've made paid service other personal use , enforce this.
in order use them via ssl:
https not supported. recommand download package local usage , upload own server.
i assume there other third-party solutions one, can speak one, , has worked great far.
for "add google calendar", used have code generator form use, have since taken down. more details on google calendar links, see squarecandy's answer below.
for outlook, it's bit more complicated, need create .vcs
file event's data, , make link file. step-by-step instructions here.
for ical link, use php class like one, or follow this page's instructions on how create ics
file (ical file).
Comments
Post a Comment