Home › Forums › Calendar Products › Events Calendar PRO › Gravity Forms/Events Calendar Pro Integration
- This topic has 2 replies, 2 voices, and was last updated 12 years, 2 months ago by
athyg.
-
AuthorPosts
-
February 21, 2014 at 4:06 pm #108116
athyg
ParticipantHi there,
I decided to give your plugin a go to after viewing the info provided on this tutorial:
http://creativeslice.com/tutorials/gravity-forms-events-calendar-submissions/
What I am trying to achieve (and I’m not yet convinced this is possible):
– Implement an individual calender at ‘end-user account’ level, which allows users to enter ‘special occasion events’, like birthdays and anniversaries for tracking purposes.So far, I have implemented a ‘simple’ form using Gravity Forms, and managed to integrate it with your plugin so events are being created when a user submits a form…..so far so good.
However, the information I have (based on tutorial) is limited and does not provide me with the variable names and values for all of the fields I need to populate. Here are some fields I need to ‘hard-code’ – can you please provide the variable names and values which need to be entered to set the fields accordingly:– All Day Event – is the variable _EventAllDay? I need this field hard-coded to ‘Yes’ or ‘On’ for each event.
– Recurrence Type – is the correct variable _RecType, or is this an array? I need this field hard coded to ‘Every Year’ for each event – obviously the types of events I’m storing repeat annually – too easy!
– Recurrence End Type – is the correct variable _RecEndType, or also an array? I would like this variable hard-coded to ‘Never’ for every event entered.Here is a sample of code (based on my own assumptions of variable names and hard-coded values), which I’m currently using to implement (not working btw):
// All day event
$eventAllDay = 7;
// Event recurrence fields
$recType = 8;
$recEndType = 9;
/* SET ECP FORM VALUES – Set the ECP form values to match their respective GF fields */
$_POST[‘EventAllDay’] = $_POST[‘input_’. $eventAllDay];
$_POST[‘recurrence’][‘type’] = $_POST[‘input_’. $recType];
$_POST[‘recurrence’][‘end-type’] = $_POST[‘input_’. $recEndType];
Note: the initial field values point the the ‘Gravity Form’ Field ID, where I’m using ‘hidden’ ‘custom post field types’ on the form, with the default values set (presumably hard-coded), eg: All Day Event field set-up:
Custom Field Name set to _EventAllDay & Default = yes.
Similar set-up applies for recurring fields.
Can you please let me know where I’m going wrong? Or if my assumptions/interpretations are correct?Another issue I’m having is with the event date. Again, I’ve followed the instructions and implemented the solution, based on the tutorial (refer link above), however, the event dates entered via the form aren’t reflecting on the event. All event dates are defaulting to 1/1/1970 – I’m assuming this is a default. I’ve tried a few different things, but nothing seems to work. The code I’m using is as per tutorial. Any ideas what the problem is?
One final thing: Does your plugin allow for multiple (personalized) calendars at user level?
Additional fields I’ll also need to populate down the track include:
– User details, eg. username, email
Could you also provide the variables for these fields that need to be populated for every event?I appreciate your assistance with this.
Athy.PS. Thought it might be useful to provide a link to the page where I’m currently testing my form: http://inspiredgifts.net/add-special-occasion/
Thanks again….
February 24, 2014 at 5:09 pm #108864Barry
MemberHi!
I decided to give your plugin a go to after viewing the info provided on this tutorial:
http://creativeslice.com/tutorials/gravity-forms-events-calendar-submissions/
… can you please provide the variable names and values which need to be entered to set the fields accordinglyNo, I’m afraid we can’t help with customizations like this one. Please also understand that tutorial is not something we have provided, so you should really seek assistance from its author – Tim – rather than us if you’re having difficulties. Do also bear in mind we now have a plugin – Community Events – that may meet your needs nicely here.
One final thing: Does your plugin allow for multiple (personalized) calendars at user level?
It does not, at least that wasn’t a design goal. We’re always looking out for new feature requests though, so please do head over to UserVoice (using that link) and add a new request or if you can find a suitable existing one definitely add you voice to that.
Thanks!
February 24, 2014 at 5:31 pm #108893athyg
ParticipantThanks for the feedback. I was actually hoping to integrate the Events Calendar pro plugin with Gravity Forms & have already made contact with the author of the tutorial (as per your suggestion).
I will check out Community events, but I don’t think it currently provides all the functionality I’m after. -
AuthorPosts
- The topic ‘Gravity Forms/Events Calendar Pro Integration’ is closed to new replies.
