October 4, 2012 in Feedback
To better integrate 3rd Party add-ons with the calendar, it would be extremly helpful to have an API similar to IP.Board's 'classPost' to facilitate calendar event creation and modification.
Currently, the only method I see to add an event to the calendar is to manually add the event to the events table and call for a calendar cache rebuild. The problem with doing that, is your app isn't 'upgrade proof' for the calendar and will continue to depend on no changes to the calendar DB fields.
If an API was present, internal functions could handle any DB changes that may be required in future upgrades and help keep 3rd party add-ons from going FUBAR with a calendar update...
I'm currently writing my own API for it... If you want it when I'm done, I will gladly hand it over...
Would anyone be interested in this? Would IPS Staff be interested in including this in a subsequent Calendar release?
It's a new class file which is essentially the /calendar/modules_public/calendar/post.php ripped apart and reassembled in a similar fashion to classPost...
Yes, a calendar API would certainly be of use and would allow me to have various advanced functionality created that I need for the calendar.
It's still a little rough, but it works... Facilitates event creation and editing events...
I still have quite a bit of commenting and a little bit more logic to throw in there, but the meat of it works...
I would definitely be interested in any added functionality for the calendar.
I'd be interested in anything that allows me to bulk upload calendar events, I have excel sheets with multiple events I'd like to upload.
:) It would allow you to do that...
It's 'done' in the sense that it works, but it's not quite finished... It still needs some love in terms of silent error handling... Right now, when it throws an error, it stops script execution... (Thanks MT for pointing that out..)
Did anything happen on this?
It's done and works... It's not ready to be a full on API as it doesn't fail gracefully... Haven't had the time to throw in better error handling after MT pointed it out to me...
I've passed the raw API over to IPS. Can't comment on whether or not they are going to include it or not but it would be a valuable addition...
Once I'm able to throw in some proper error handling I may consider putting it on the MP until one comes with an official calendar release.
Aiwa, do you have any feedback, if it will be included?
This topic is now archived and is closed to further replies.
Started 46 minutes ago
Started 1 minute ago
Started 34 minutes ago