churchthemes / church-theme-content

The Church Content WordPress plugin provides compatible themes with church-related post types, taxonomies and custom fields.
https://churchthemes.com/plugins/church-content/
GNU General Public License v2.0
58 stars 27 forks source link

iCal Subscription #17

Closed fergbrain closed 8 years ago

fergbrain commented 8 years ago

I've created a theme template that allows events to be shared as an iCal file (live demo: http://messiahseattle.org/calendar/ical/). I'd like to contribute it to the plugin under the GPL if that's possible.

stevengliebe commented 8 years ago

Thank you for being willing to contribute your code for this. We have been planning on adding this functionality as part of a paid add-on with other bells and whistles, so I'm not sure we'll add any of it to the base plugin.

The idea would be to create ICS URLs for all events and per category then insert buttons for subscribing to the calendar and adding individual events to a users' calendar.

fergbrain commented 8 years ago

Any forecast for when such functionality might be made available? I have some other enhancements I'm working on as well and don't want to duplicate effort if I don't have to.

stevengliebe commented 8 years ago

I'm sorry, we don't have a timeframe. It would not be immediate. We plan to release a couple more themes then switch focus to a couple new add-ons, one of which could include this functionality. "Sometime next year" is our intention.

fergbrain commented 8 years ago

Given our immediate desires I may end up continuing to develop what I have.

Perhaps there's an opportunity to join your team to help accelerate your timeline for this? You write the spec for plugin, and I can do the programming....could be mutually beneficial. Drop me an email: andrew@fergcorp.com.

stevengliebe commented 8 years ago

That's tempting but we're not prepared to hire out for development. Thank you for offering.

olach commented 5 years ago

@stevengliebe: What is the status for this? I'm about to launch a new church website and the staff now tells me they need the ability to subscribe to the calendar for integration with other services they use.

@fergbrain: Is it possible that you could share your code that enabled iCal subscription?

stevengliebe commented 5 years ago

@olach This is still a possibility for the future but we do not have anything on it right now.

You might want to try a dedicated events plugin that can import iCal format.

olach commented 5 years ago

I’m not that interested in import functionality, it’s enough to have a calendar feed in a iCal format that external services/users can subscribe to.

I will see if I can build this myself. I had a look into your documentation and it should be possible to extract calendar events and output it in the iCal format.

fergbrain commented 5 years ago

@olach I was able to dig through my archives and found the code: https://gist.github.com/fergbrain/47f21bc8bb69000ae5af0ef64106c8af

I haven't touched it in several years, but it should be a good starting point. It's released under GNU GPL 3.0.

If you do happen to use it, let me know! I'm also happy to consult on it if you need help or modifications.

olach commented 5 years ago

@fergbrain Thanks! Really helpful.

From a quick look at the code, it seems like a good starting point. But I guess the code for the recurrence needs to be rewritten since Church Content Pro now supports more advanced recurring options.

If I have questions, I will post comments on your GitHub Gist so we don't spam this thread. :)