ical import dropping data into event details – possible to parse somehow?

Home Forums Calendar Products Event Aggregator ical import dropping data into event details – possible to parse somehow?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1073901
    paul
    Participant

    You can see what’s being pulled in: http://prntscr.com/a43h7f

    Venue comes in fine, but would really like to have the event type (game, tournament, scrimmage, etc) and opponent dropped in to their own fields, so I can display them better on the front end of the site.

    Thoughts on how to do this? Thank you!

    #1074147
    Brook
    Participant

    Howdy Paul,

    What you want is within the realm of possibility, but it will require a goodly bit of knowledge of PHP to do. If you have such knowledge, you will want to:

    1. Hook into the save_post action.
    2. Check if the _EventOrigin meta field is set. If so check it will tell if you the event is being imported via iCal or just a regular saved event.
    3. If it’s an iCal event, parse the content. You will have to write your own parser based on the format of your content. With the parsed content save it as a custom field.

    I’d guesstimate 2-5 hours of time to write and test. If you’re super familiar with WP maybe a bit faster.

    If you don’t have lots of PHP knowledge then the above probably sounded like Greek. In which case you’ll probably need to hire someone who is familiar with WP to do this. If you don’t already have such a person on hand, you might checkout this link: List of freelance customizers.

    Does that all make sense? Please let me know.

    Cheers!

    – Brook

    #1084406
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘ical import dropping data into event details – possible to parse somehow?’ is closed to new replies.