1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP class / function / script to add events to different calendars

Discussion in 'PHP' started by PoPSiCLe, Mar 4, 2016.

  1. #1
    I'm creating a system where, among other things, working shifts are being assigned. I want the users (or an administrator) to be able to add elements directly to their calendars (Google Calendar, iCal, whatever, really).

    Currently, users can download a CSV-file with all the information, and it's fairly easy to import this into the different calendars. However, I would like for them to be able to add events directly (via a button) - so I was wondering if anyone have any hints as to where I can find something that I can at least use as a starting point.

    Of course, I want for users to actually add their login (ie, log in with their account info, so that information will be available).
     
    PoPSiCLe, Mar 4, 2016 IP
  2. goneinsane

    goneinsane Well-Known Member

    Messages:
    303
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    This sounds like a great script. If you hear of anything, keep me posted as I wouldn't mind having something like that on my website.
     
    goneinsane, Mar 7, 2016 IP
  3. Blizzardofozz

    Blizzardofozz Well-Known Member

    Messages:
    132
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    118
    #3
    Probably you could start from here:
    https://developers.google.com/google-apps/calendar/
    http://www.sanisoft.com/blog/2010/04/26/howto-google-calendar-api-php/
    https://mark.biek.org/blog/2010/07/addingdeleting-events-with-the-google-calendar-api/
     
    Blizzardofozz, Mar 10, 2016 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Thanks for the links. I will look at them - however, I was still hoping someone had implemented the most popular calendars in one single script, perhaps with ability to enable/disable specific ones depending on the audience. Would make sense that such a script exists - maybe it doesn't, and maybe then I should try to make one :)
     
    PoPSiCLe, Mar 10, 2016 IP