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.

taxonomies and upload file on user submitted post

  1. adam_paxton
    Member

    Hi,

    I'm certain the answer to my question is yes but I wanted to make 100% sure before I purchased.

    I have a site where registered users can submit a post with the usual details (title, descriptive text, select multiple categories, add tags) but I also need the user to complete some details for custom taxonomies (school, original author, skill level, etc) and they must also be able to upload a file with the post.

    The form isn't any more complex than that. I've seen that the single site license supports file uploads and I've read there is no max upload limit. I've also read that there isn't support for taxonomies out the box but there are ways to add support for custom taxonomies. As such my questions are:

    1 - Will my user submitted post form be able to support the custom taxonomies I create? If so can you point me in the direction of the appropriate info to do this.

    2 - With the file upload support some files will be large, do you provide some kind of animated gif to indicate to users that the file is being uploaded when it's being processed?

    Many thanks and I look forward to purchasing.

    Posted 13 years ago on Monday February 28, 2011 | Permalink
  2. 1) Gravity Forms does support custom taxonomies but not out of the box. You have to use available API hooks and write a little custom code to tell it to use a Custom Taxonomy. By default it uses the default Tags and Category taxonomies. But it isn't difficult and there are lots of examples on the forums and you can ask for assistance.

    There is also a 3rd party add-on that makes using Custom Post Types and Custom Taxonomies easier. It is available here:

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

    We do plan on easier Custom Post Type and Custom Taxonomy support via our own advanced add-on later this year. For now they are supported but only through the use of hooks, filters or the 3rd party add-on.

    2) Currently the File Upload field is simply the default PHP file uploader. it doesn't currently support a progress bar, etc. You will have an animated gif that will spin while the form is submitting IF you display the form with AJAX turned on. We are planning on enhancing the file upload field with multi-file support, progress bar, etc. in an update later this year.

    Posted 13 years ago on Monday February 28, 2011 | Permalink
  3. adam_paxton
    Member

    Thanks,

    You're a good man - you've backed up what I thought was the answer.

    Thank you for your time

    Posted 13 years ago on Monday February 28, 2011 | Permalink
  4. adam_paxton
    Member

    Back again,

    I've bought gravity forms but thought seen as this was the start of the thread it might help others to raise a further question regarding taxonomy here.

    The plugin you suggested worked great - sadly not all my taxonomies are drop down selects. Some are free text similar to the 'tags' taxonomies that comes out the box.

    As an example one of these taxonomies is called 'school' - I can't list all the schools in the UK so I want the user to be able to supply it in the same way they would a tag.

    What do I need to do to add a single line text input for my 'free text' type taxonomies?

    Many thanks and if this needs to be raised outside the 'pre-sales' forum then let me know and I will happily do so.

    Regards

    Posted 13 years ago on Wednesday March 2, 2011 | Permalink
  5. Hi Adam,

    I'm working on a little snippet for you but I ran out of time tonight. I will post the snippet first thing tomorrow morning.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  6. adam_paxton
    Member

    Hi David,

    Thank you so much - I look forward to seeing the code.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  7. Hi Adam,

    Paste this snippet into your functions.php file: http://pastie.org/1629348

    You will need to update two lines, both indicated inline in the code. This code assumes the taxonomy terms will be provided as a comma delimited string. For terms that do not exist it will automatically create those terms in the specified taxonomy.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  8. adam_paxton
    Member

    Hi David,

    Sorry but you might have to hand hold me through this - are these the correct steps:

    1 - Install the Gravity Forms Custom Post Type Mappings plugin
    2 - Add a 'Single line Text' input to my form
    3 - Add 'taxonomy-authors_name' to the CSS Class Name in gravity form editor for the newly added input.
    4 - Add your code snippet to the functions.php file
    5 - Set the $field_id by viewing the source of the form on the website and identifying the input id (which in my case is 'input_1_17') and the field id is the number 17 part?
    6 - Set the $taxonomy name of the chosen taxonomy (in this example authors_name)
    7 - Save the functions file and FTP it up to the sever

    That's it?

    What seems to happen is the input changes to a drop down regardless of the fact I added a single line text field to the form.

    If I don't add the CSS class name then it stays as a single line input and when I complete the form and add some comma separated text and submit it the generated post does not have populate the 'authors name' taxonomy with the comma seperated text. However, when I click on the 'authors name' taxonomy from the posts menu area the comma separated text items are all listed.

    I was hoping that the input would look like a single line text field on the customer facing site. Users could add authors names (adam, steve, dave) and when the user submitted the form a post would be generated that would have 'adam', 'steve', 'dave' listed as three separate authors within the authors taxonomy.

    Apologies if I am doing something stupid and thank you so much for the code - really appreciate the help.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  9. Hi Adam, I just sent you an email.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  10. deukdesign
    Member

    David or Adam

    this is something I need to do as well could you send me the email with th detailed instructions as well?
    Thanks

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  11. deadhippo
    Member

    This is something that I would like to able to do too but I may be willing to wait for the add-on and then get the developer license. Waiting is tough though. I think it was said somewhere that it would be ready soon and that was last year. Is there a reasonable estimate of when it will be available?

    Posted 13 years ago on Saturday March 26, 2011 | Permalink
  12. @deadhippo Have you checked to see if this 3rd party add-on will meet your needs?

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

    It supports custom post types and custom taxonomies and the developer is active on our forums and plans on adding additional enhancement to address some of the features users have requested.

    Posted 13 years ago on Saturday March 26, 2011 | Permalink
  13. deadhippo
    Member

    Hi Carl,
    Thanks. Actually I have it installed but it and it is great but let me copy and paste as I have the same issue:

    The plugin you suggested worked great - sadly not all my taxonomies are drop down selects. Some are free text similar to the 'tags' taxonomies that comes out the box.

    Posted 13 years ago on Saturday March 26, 2011 | Permalink
  14. @deadhippo I'll drop the developer a note and let him know. I'm sure he's working on adding that support to his Add-On as it's been requested numerous times.

    Posted 13 years ago on Saturday March 26, 2011 | Permalink
  15. This has caused me some problems too - I need to enter numbers into the taxonomies. I don't think it's the correct way of using taxonomies, but that's the only way they'll appear on my template without putting custom fields in (better, but not sure how).
    I also need some taxonomies that are free text entries on the form as the other posters have requested.

    Posted 12 years ago on Saturday October 15, 2011 | Permalink