{"id":108116,"date":"2014-02-21T16:06:36","date_gmt":"2014-02-22T00:06:36","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/"},"modified":"2014-04-18T06:27:23","modified_gmt":"2014-04-18T13:27:23","slug":"gravity-formsevents-calendar-pro-integration","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/","title":{"rendered":"Gravity Forms\/Events Calendar Pro Integration"},"content":{"rendered":"<p>Hi there,<br \/>\nI decided to give your plugin a go to after viewing the info provided on this tutorial:<br \/>\nhttp:\/\/creativeslice.com\/tutorials\/gravity-forms-events-calendar-submissions\/<br \/>\nWhat I am trying to achieve (and I&#8217;m not yet convinced this is possible):<br \/>\n &#8211; Implement an individual calender at &#8216;end-user account&#8217; level, which allows users to enter &#8216;special occasion events&#8217;, like birthdays and anniversaries for tracking purposes.<\/p>\n<p>So far, I have implemented a &#8216;simple&#8217; form using Gravity Forms, and managed to integrate it with your plugin so events are being created when a user submits a form&#8230;..so far so good.<br \/>\nHowever, 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 &#8216;hard-code&#8217; &#8211; can you please provide the variable names and values which need to be entered to set the fields accordingly:<\/p>\n<p> &#8211; All Day Event &#8211; is the variable _EventAllDay? I need this field hard-coded to &#8216;Yes&#8217; or &#8216;On&#8217; for each event.<br \/>\n &#8211; Recurrence Type &#8211; is the correct variable _RecType, or is this an array? I need this field hard coded to &#8216;Every Year&#8217; for each event &#8211; obviously the types of events I&#8217;m storing repeat annually &#8211; too easy!<br \/>\n &#8211; Recurrence End Type &#8211; is the correct variable _RecEndType, or also an array? I would like this variable hard-coded to &#8216;Never&#8217; for every event entered.<\/p>\n<p>Here is a sample of code (based on my own assumptions of variable names and hard-coded values), which I&#8217;m currently using to implement (not working btw):<\/p>\n<p>    \/\/ All day event<br \/>\n    $eventAllDay = 7;<br \/>\n    \/\/ Event recurrence fields<br \/>\n    $recType = 8;<br \/>\n    $recEndType = 9;<br \/>\n    \/* SET ECP FORM VALUES &#8211; Set the ECP form values to match their respective GF fields *\/<br \/>\n    $_POST[&#8216;EventAllDay&#8217;] = $_POST[&#8216;input_&#8217;. $eventAllDay];<br \/>\n    $_POST[&#8216;recurrence&#8217;][&#8216;type&#8217;] = $_POST[&#8216;input_&#8217;. $recType];<br \/>\n    $_POST[&#8216;recurrence&#8217;][&#8216;end-type&#8217;] = $_POST[&#8216;input_&#8217;. $recEndType];<br \/>\nNote: the initial field values point the the &#8216;Gravity Form&#8217; Field ID, where I&#8217;m using &#8216;hidden&#8217; &#8216;custom post field types&#8217; on the form, with the default values set (presumably hard-coded), eg: All Day Event field set-up:<br \/>\nCustom Field Name set to _EventAllDay &amp; Default = yes.<br \/>\nSimilar set-up applies for recurring fields.<br \/>\nCan you please let me know where I&#8217;m going wrong? Or if my assumptions\/interpretations are correct?<\/p>\n<p>Another issue I&#8217;m having is with the event date. Again, I&#8217;ve followed the instructions and implemented the solution, based on the tutorial (refer link above), however, the event dates entered via the form aren&#8217;t reflecting on the event. All event dates are defaulting to 1\/1\/1970 &#8211; I&#8217;m assuming this is a default. I&#8217;ve tried a few different things, but nothing seems to work. The code I&#8217;m using is as per tutorial. Any ideas what the problem is?<\/p>\n<p>One final thing: Does your plugin allow for multiple (personalized) calendars at user level?<br \/>\nAdditional fields I&#8217;ll also need to populate down the track include:<br \/>\n &#8211; User details, eg. username, email<br \/>\nCould you also provide the variables for these fields that need to be populated for every event?<\/p>\n<p>I appreciate your assistance with this.<br \/>\nAthy.<\/p>\n<p>PS. Thought it might be useful to provide a link to the page where I&#8217;m currently testing my form: http:\/\/inspiredgifts.net\/add-special-occasion\/<\/p>\n<p>Thanks again&#8230;.<\/p>\n","protected":false},"template":"","class_list":["post-108116","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Gravity Forms\/Events Calendar Pro Integration -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gravity Forms\/Events Calendar Pro Integration -\" \/>\n<meta property=\"og:description\" content=\"Hi 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&#8217;m not yet convinced this is possible): &#8211; Implement an individual calender at &#8216;end-user account&#8217; level, which allows users to enter &#8216;special occasion events&#8217;, like birthdays and anniversaries [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-18T13:27:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/\",\"name\":\"Gravity Forms\/Events Calendar Pro Integration -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-02-22T00:06:36+00:00\",\"dateModified\":\"2014-04-18T13:27:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Gravity Forms\/Events Calendar Pro Integration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gravity Forms\/Events Calendar Pro Integration -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/","og_locale":"en_US","og_type":"article","og_title":"Gravity Forms\/Events Calendar Pro Integration -","og_description":"Hi 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&#8217;m not yet convinced this is possible): &#8211; Implement an individual calender at &#8216;end-user account&#8217; level, which allows users to enter &#8216;special occasion events&#8217;, like birthdays and anniversaries [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/","article_modified_time":"2014-04-18T13:27:23+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/","name":"Gravity Forms\/Events Calendar Pro Integration -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-02-22T00:06:36+00:00","dateModified":"2014-04-18T13:27:23+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/gravity-formsevents-calendar-pro-integration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Gravity Forms\/Events Calendar Pro Integration"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/108116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/108116\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=108116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}