Home › Forums › Calendar Products › Events Calendar PRO › Integration with Gravity Forms?
- This topic has 64 replies, 15 voices, and was last updated 12 years, 3 months ago by Rob.
-
AuthorPosts
-
October 27, 2011 at 7:21 am #10233ChristinaParticipant
I’m in the same state as Brian. Venues aren’t persisting.
Brian, have you seen this post: http://support.makedesignnotwar.com/discussion/comment/5379/#Comment_5379
It settled the venue issue in an older version. Maybe a tweak would fix it for ECP 2
October 27, 2011 at 7:24 am #10234BrianParticipantThanks for the link Christina, I’m going to try that. Looks like it should work, it simply maps the venue fields that aren’t mapped in the code from the original tut. I’ll let you know how I get on, and will post full code if I get it working…
October 27, 2011 at 10:11 am #10241BrianParticipantNo luck, tried everything I could think of…. I don’t expect we’ll receive support on this issue either as the “community events” add-on is coming out sometime…and it’s basically going to do the same thing we are trying to do with gforms
October 27, 2011 at 4:30 pm #10256RobMemberThanks guys. I’m going to get John, the developer who wrote this update & tested/confirmed this as functional, to chime in. I just handle support/QA and am not a developer – so this one is a bit outside my area of expertise. I’ve sent this his way.
October 27, 2011 at 4:35 pm #10257RobMemberOh, also – the code is a bit clearer here: https://theeventscalendar.com/event-submissions-using-gravity-forms-in-2-0/. I doubt you manually rewrote it based on my first note, but if you did, try that code instead.
October 27, 2011 at 4:48 pm #10265ChristinaParticipantRob, the code you posted on both pages have the same syntax errors. Brian’s code is correct.
October 27, 2011 at 4:57 pm #10267JohnMemberHi guys,
I apologize for the syntax error – our issue tracker stripped out the 2 equal signs when I copy/pasted. To save venue and organizer try to add the following lines above the saveEventMeta line.
$_POST[‘Organizer’] = stripslashes_deep($_POST[‘organizer’]);
$_POST[‘Venue’] = stripslashes_deep($_POST[‘venue’]);if( !empty($_POST[‘Venue’][‘VenueID’]) )
$_POST[‘Venue’] = array(‘VenueID’ => $_POST[‘Venue’][‘VenueID’]);if( !empty($_POST[‘Organizer’][‘OrganizerID’]) )
$_POST[‘Organizer’] = array(‘OrganizerID’ => $_POST[‘Organizer’][‘OrganizerID’]);October 27, 2011 at 5:08 pm #10268ChristinaParticipantTrying it now. Organizer is working but I’m getting “Unnamed Venue” in place of the actual venue.
October 28, 2011 at 12:12 pm #10308RobMemberWhat is your venue name custom field called? Is it _EventVenue or _VenueVenue? You should be using the latter.
October 29, 2011 at 7:53 am #10323ChristinaParticipantI am oh so very close with this. Everything is persisting except the Venue name. It is coming in as “Unnamed Venue”, but strangely, the permalink correctly shows the venue name. I’ve made a screencast of my code and what I’m seeing.
http://www.screencast.com/t/HL7pfe5M2Jv
I really appreciate this! I’ve already bought the three pack of ECP, I will almost certainly be upgrading to the 10 pack. Once the community event plugin is available I will be first in line to purchase it and support your development efforts. Thank you!
October 31, 2011 at 6:48 am #10342MiguelMemberExcuse me but my english is bad
I have gravity forms license but i thought that with community events was not necessary gravity forms.
Can someone tell me what is the diference becuase im a bit lost.
October 31, 2011 at 3:29 pm #10361RobMemberChristina, just a heads up that John is still looking into this one – should be able to get you a response very shortly here. Thanks for being patient 🙂
November 2, 2011 at 8:40 am #10489AlMemberHey Rob,
Soo I have followed all of the directions on the Gravity Forms tutorial and get everything up until the “paste into functions.php”. Is there a specific place I need to plug this in?
This is what my functions.php looks like: http://bit.ly/uFAZHN
The file I am editing is “functions.php” edited through the drop down menu under Appearance in the WordPress dashboard sidebar, which traces to my theme folder and functions.php file, so everything is good from what I gather.
When I try to update it, it brings the whole site down, and just shows a blank white screen. Everything fails to load and I have to overwrite the functions.php file with the original via FTP.
I’m not a developer really, but I think it’s pretty straight forward. I just am missing something. What am I missing here?
November 2, 2011 at 8:43 am #10490AlMemberHey guys,
Soo I’m stuck. I don’t think I know exactly where to put the added code in the functions.php. Here is a copy of my functions.php:
When I try to update my functions.php, the site goes white and stops working entirely. I then have to overwrite the functions.php with the original file via FTP.
I’m not a web developer really, but I think the tutorial is pretty straight forward. What am I doing wrong?
Cheers,
Jeromie
November 4, 2011 at 7:04 pm #10629Jamie OastlerParticipantWent looking into the DB to see what I could see.
-Venues are stored as a custom post type (tribe_venue)
-Venue details are stored as post meta (custom fields) on tribe_venue
-Venue ID is post meta (custom field) on event post type (tribe_events)
-Similar approach for Organizer (tribe_organizer)Seeing this approach makes me more inclined to wait for the community events add-on, but if I were to take a stab at implementing something specific to GF with TEC 2.0 I might:
-Use a standard drop-down field for Venue ID
-Populate it with hook on gform_validation that pulls all posts with type tribe_venue storing the ID as value and name (post title) in display
-Augment the save_tec_event_meta_from_gravity function Brian wrote to get it into $_POST format expected.My immediate use cases for GF / TEC integration don’t go farther than that, but if you wanted to add a drop-down option to ‘add new venue’ via the front-end:
-During save event with add new venue selected….
-Create a post (venue) with the venue info as post meta data and retrieve the post ID
-Store that as the venue ID in place of the drop-down value for ‘Add New Venue’ option before letting the function described above occur.I just finished doing a rideshare board plugin that used GF for front-end submission (http://wordpress.org/extend/plugins/idealien-rideshare/) with custom post type + taxonomies for the data storage which was comparable, but much easier by being able to just do wp_insert_term for any new elements.
Out of curiosity – did extending terms (something like http://wordpress.org/extend/plugins/taxonomy-metadata/) ever come up as a potential vector rather than venue / organizer being post types?
-
AuthorPosts
- The topic ‘Integration with Gravity Forms?’ is closed to new replies.