• I’m moving a Joomla! site over to WordPress and My Calendar is perfect for duplicating the previous functionality. I bought the User’s Guide hoping I’d find a shortcode allowing me to insert a new event, but find none. As in the previous system, there are forms for authorized users to schedule various events. The forms handle all restrictions and date ranges, etc. so I can’t just offer up the calendar for event entry. In Joomla! I was inserting records into iCalPro to get them in the calendar. Should I just do the same, or do you have a more ‘controlled’ way of programmatically adding events?

    https://www.ads-software.com/plugins/my-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’m not sure what you mean by a shortcode that allows you to insert a new event; do you mean that you want a form to add events on the front-end of the site? If so, that’s a premium add-on available from https://www.joedolson.com/my-calendar/submissions/

    If you mean something else, I’m not sure I’m understanding.

    Thread Starter mfrie01

    (@mfrie01)

    You have a function to save a new event, my_calendar_save(), which accepts an array with the event data to be or updated. This is called by edit_my_calendar() which validates and formats the data from the $_POST to prepare it for the save. I want to pass an array of my data to your program to programmatically add a new event. A shortcode that collected the passed attributes and then called something like edit_my_calendar() would substitute my array for the $_POST array and allow me to add or edit events: [my_calendar_edit mode=’add’ event=$myarray]. Without access to your functions what I’ll do is just stuff my data into your tables with my own add/update functionality. It will work fine that way, but I thought you might have something already available.

    Plugin Author Joe Dolson

    (@joedolson)

    I may be totally misunderstanding what you’re trying to do, but it seems to me like the method you’re describing would be vastly more work than calling the check and insert functions themselves; those are mc_check_data and my_calendar_save

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding events through shortcode or programming’ is closed to new replies.