PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Can I use gravity forms to add more functionality to a wordpress comment?

  1. ciznerguy
    Member

    I am using wordpress comments on my site but I would like them to fill out a lot more information than a simple comment. Can i use gravity forms to give them more options on their comment and then have it post as a regular comment on the page? This is going to be crucial to the site functionality as it is a review site.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  2. David Peralty

    Gravity Forms is not a commenting system, and as such, it can't be easily integrated with WordPress' commenting system. It would require someone with advanced level knowledge of PHP to do any kind of integration in this respect. All my best.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  3. ciznerguy
    Member

    I see that you can have a form output the fields onto a post or page. Is it that much different to output it into the comment section? I'm trying to think of any other possible way to make this happen because it is absolutely necessary for this site. If anyone has any suggestions i'm open to anything at this point. Maybe just have a form that creates a post with the field data filled in. I would need an excerpt of this to appear under comments though. Again any help or ideas are greatly appreciated. thanks

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  4. David Peralty

    It is different because of how the data is managed and output. You can of course have it create WordPress posts, and whatnot, but that isn't really a comment on a post. If you get this to work in a way that seems clean and easy, I would love to see it as well.

    Posted 12 years ago on Friday November 9, 2012 | Permalink
  5. It really surprises me that this isn't a standard option that would be available.

    Posted 12 years ago on Tuesday November 13, 2012 | Permalink
  6. I'm surprised too that there's no comment form integration with gravity forms yet

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  7. David Peralty

    Well, I can move this to feature requests so our developers can see it, but it wasn't our intention to make this a commenting system.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  8. I was curious about this, and found this post:
    http://www.wprecipes.com/wordpress-hack-insert-comments-programatically

    You could accept the form input, then use the gform_after_submission hook to insert the comment into the database. You'd need the post ID from the page/post where the form was embedded (assuming that's where you want the comment to be posted.) But the rest seems fairly straightforward. If you are allowing comments from visitors on the site, this would work. If you require your visitors to be logged in before commenting, then I would make the form require a logged in user as well, so they cannot post a comment with your form without being logged in (I suspect it would just not post the comment if the user is not logged in when attempting to post a comment with your form.)

    While Gravity Forms is not designed to allow comments on posts, it appears it is possible to do so with some code and the gform_after_submission hook. http://www.gravityhelp.com/documentation/page/Gform_after_submission

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink