Git Product home page Git Product logo

Comments (17)

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024 2

Sorry, I've been focused on Pods 2.7 stuff this week. Let me shoot back around to this task this weekend.

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

@sc0ttkclark Do you have any idea on when this might be fixed? I only ask because right now, I have to manually change every post accordingly. We're launching within the next week or two, and it would be GREAT if this was working properly. Otherwise, I may have to come up with a quick solution or not use gravity forms.

from pods-gravity-forms.

lukecav avatar lukecav commented on June 15, 2024

@kbrennan981

Seems like it is using post_author.
https://github.com/pods-framework/pods-gravity-forms/blob/master/includes/Pods_GF.php#L1413

https://developer.wordpress.org/reference/functions/wp_insert_post/#parameters

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

@lukecav, could you elaborate? I'm not sure what you mean.

To recap, I currently have it set up so that when a member fills out and submits the gravity form, using the gravity forms pod integration / feed, it's supposed to create a new post in the custom post type and set it as pending review, with the author set as the logged in user that filled out the gravity form. However, it's working right now. Whether or not the 'use logged in user as author' box is checked, it always uses the default user in the drop down box.

If I try to work around the check box, and create a direct feed using a hidden field w/ default value of the 'logged in user' and author fields... the author field then shows up blank.

There's something wrong with the feed from gravity forms into the author field or something wrong with the check box Use logged in user as author. All the right information makes it's way into the gravity form (I can see it in the confirmation email and form response) but doesn't make it into the post.

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

@sc0ttkclark, do you have any thoughts on this?

from pods-gravity-forms.

lukecav avatar lukecav commented on June 15, 2024

So I just tested on local dev, running the current version of Pods for Gravity Forms, Gravity Forms on WP 4.7.3. Created a simple form, extended Post to be the Pod. Then created the feed on the form. Used a simple text field for the author name, then used a merge tag {user:display_name}.
https://www.gravityhelp.com/documentation/article/merge-tags/#user-meta

The post was created, but no author was set to the post.
https://cloudup.com/idG_GaAMBUy

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

Yes, that seems to be what's happening to me too. I need the logged in user filling out the form to become the author for the post.

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

Hi @sc0ttkclark, any progress on this? It's been about 2 weeks since you said you'd look at it? It's a real issue. And the more I researched it, it doesn't seem like I'm the only one with this issue. Please let me know if you have any recommendations on what I can do to fix this problem.

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024

Thanks for your patience, it took me longer on those tasks than planned and then my daughter caught strep.

I'm looking into this today, since you're very responsive -- I hope you'll be able to help me test proposed fixes, would that be accurate?

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024

Sorry for the delay again today, I had to take my youngest daughter to the doctor's office as she was also having signs of Strep.

I've got a fix in place now, please confirm it's working with the latest version here:
https://github.com/pods-framework/pods-gravity-forms/archive/master.zip

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

I cleared some of my schedule today in case you need help testing. I'd really appreciate if you could take a look at this. I know life gets in the way though. I hope you're daughter feels better soon. Let me know if there is anything I can try to fix it on my own. Thank you, @sc0ttkclark!

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024

@kbrennan981 I replied last night that I've got a fix in place, so feel free to test that whenever you can today. I can push an update out to wordpress.org after that.

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

Ooops, I'm sorry @sc0ttkclark. I missed that last sentence somehow. I'll test it out this morning and let you know. Thank you so much. I really appreciate you moving this to the front.

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024

No worries, I accidentally committed a syntax error anyways so you would have hit that first thing today, I just fixed that.

from pods-gravity-forms.

kbrennan981 avatar kbrennan981 commented on June 15, 2024

@sc0ttkclark, Thank you! Thank you! Thank you! It's working now. Much appreciated. I tested it on several different forms and it all seems to go through correctly now. I sincerely appreciate it!

from pods-gravity-forms.

sc0ttkclark avatar sc0ttkclark commented on June 15, 2024

Awesome, I'll get this out in the 1.3 release once I get a few more things done.

from pods-gravity-forms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.