Integration with Gravity Forms?

Home Forums Calendar Products Events Calendar PRO Integration with Gravity Forms?

Viewing 15 posts - 16 through 30 (of 65 total)
  • Author
    Posts
  • #10233
    Christina
    Participant

    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

    #10234
    Brian
    Participant

    Thanks 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…

    #10241
    Brian
    Participant

    No 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

    #10256
    Rob
    Member

    Thanks 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.

    #10257
    Rob
    Member

    Oh, 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.

    #10265
    Christina
    Participant

    Rob, the code you posted on both pages have the same syntax errors. Brian’s code is correct.

    #10267
    John
    Member

    Hi 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’]);

    #10268
    Christina
    Participant

    Trying it now. Organizer is working but I’m getting “Unnamed Venue” in place of the actual venue.

    #10308
    Rob
    Member

    What is your venue name custom field called? Is it _EventVenue or _VenueVenue? You should be using the latter.

    #10323
    Christina
    Participant

    I 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!

    #10342
    Miguel
    Member

    Excuse 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.

    #10361
    Rob
    Member

    Christina, 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 🙂

    #10489
    Al
    Member

    Hey 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?

    #10490
    Al
    Member

    Hey 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:

    http://bit.ly/uFAZHN

    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

    #10629
    Jamie Oastler
    Participant

    Went 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?

Viewing 15 posts - 16 through 30 (of 65 total)
  • The topic ‘Integration with Gravity Forms?’ is closed to new replies.