WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Job Manager] FILE UPLOAD IN JOB FORM SETTINGS (20 posts)

  1. jakobwa
    Member
    Posted 4 years ago #

    Goal: Give the person who is looking for a job the possibility to view/download a pdf.

    1. I have added a field called PDF and with data type File Upload in the Job Form Settings.
    2. Add a job and upload a file. (It looks like it doesn't upload the file.)
    3. I wonder where the file should end up in the folder structure? I have changed some rights (775).

    In Display Settings I see the field as [job_field6_label], [job_field6] - PDF.

    When I load the job list template on the site I get the filed but not the file.

    It seems to be some issue with the actual upload. Should I create a folder that couldn't be created when I installed it?

  2. Gary Pendergast
    Member
    Posted 4 years ago #

    Thanks for the bug report! I've been able to reproduce this issue, I'll fix it up and release a fix ASAP!

  3. Gary Pendergast
    Member
    Posted 4 years ago #

    0.6.1 is out, which fixes this bug.

  4. jakobwa
    Member
    Posted 4 years ago #

    Thank you so much!
    Works great! Greta job you are doing!!!

    But I got this error:
    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home7/saccusad/public_html/trainee/wp-content/plugins/job-manager/admin-application-form.php on line 195

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home7/saccusad/public_html/trainee/wp-content/plugins/job-manager/admin-application-form.php on line 168

    How can a registered user see which positions he or she has apllied to? Maybe this should be a new topic?

  5. jakobwa
    Member
    Posted 4 years ago #

    Sorry - I get that error when I add a "upload file".

  6. Gary Pendergast
    Member
    Posted 4 years ago #

    Thanks for letting me know about these warnings, I'll fix them for 0.6.2.

    Just to check, in your Application Form Settings, do you have any fields that are marked as a "Mandatory field"?

    The user currently can't see what they've applied for, I'm looking at ways to extend the user frontend beyond the basic registration that exists at the moment, this is something I'm considering.

  7. dax316
    Member
    Posted 4 years ago #

    I'm having a problem with the file upload as well...maybe i'm just missing something. I also want a pdf to be associated with the job, so i created a new file upload field. I uploaded a pdf for a job and added the following code to my display settings:

    [if_job_field6]
    <tr>
    <th scope="row">Attachment:</th>
    <td>[job_field6]</td>
    </tr>
    [/if_job_field6]

    The row is showing up, but it says "Attachment: 485".

    I don't know where the 485 is coming from. Any help would be greatly appreciated. Thanks!

  8. Gary Pendergast
    Member
    Posted 4 years ago #

    Thanks for the bug report! I'll release a fix for this in 0.6.2.

  9. jakobwa
    Member
    Posted 4 years ago #

    I don't have any mandatory fields.

    Sounds great with a feature to be able to see your old application. I'm using the system to have different categorys and different fields to each category. But some - like name and phone and stuff like that should all be the same.

    I force them to register but I wonder if I could get more fields in the registration process so that the common fileds would be filled in there.

    Thanks!!

  10. jakobwa
    Member
    Posted 4 years ago #

    dax316 - I didn't change any code in the display settings and it will display the attchment by using the loop.

  11. dax316
    Member
    Posted 4 years ago #

    @jakobwa - Thanks for the tip. However, i'm doing a bit of different formatting for some of the fields so i'd rather not use the loop. It seems like the loop would be using the exact same code that I entered above so i'm not sure why there is a difference.

  12. Gary Pendergast
    Member
    Posted 4 years ago #

    @dax316 0.6.2 is out, with the fix for your bug in it.

    @jakobwa Just checking, are you asking if it's possible to have common fields across all application forms? If you don't set a category on a field, it will be displayed on the application form for all categories.

    Also, it sounds like both of you are doing some complex stuff with JM, which is cool. :) Let me know what you come up with!

  13. jakobwa
    Member
    Posted 4 years ago #

    It is perfect that the fields you don't point to a specific category appears on all forms.

    I was only wondering if I could have the users fill in some basic details when they register. I checked the box - Require User Registration and Enable User Registration under User Settings in the Admin Settings.

    Some basic data that don't have anything to do with a specific job could be filled in there - and also open applicatins. Today I solved that by creating a category and then creating a job that is called generall application.

    I will keep you updated!

  14. Gary Pendergast
    Member
    Posted 4 years ago #

    Ah, I understand. I like this idea, I was trying to think of a good way to balance pre-filling in information vs. customising applications for different jobs.

    I'll look at adding an option to the Application Form Settings, so some of the form elements can be marked as "pre-fill", so an applicant can fill in their bio, and have those fields automatically filled in when they apply.

  15. jakobwa
    Member
    Posted 4 years ago #

    That would be a really cool feature. It's good because then they can change some information for that particular case as well.

  16. dax316
    Member
    Posted 4 years ago #

    Cool! Thanks for the quick update. There seem to be some additional bugs, atleast on my end, now.

    -Once i've added a file to a job, and I go back in to edit the job, the file disappears.

    -When i try to edit a job, I am unable to delete a field that I had already entered. For example: for a job, i listed the salary as $50,000. If i try to edit that, i cannot remove the salary field completely, as it will just revert back to $50,000. I have to leave something there even if it is just the dollar sign, otherwise it will just say $50,000. I can change it to $5 or $100 or anything else, i just cant delete it completely. The same seems to be true for all fields.

    Thanks.

  17. Gary Pendergast
    Member
    Posted 4 years ago #

    @dax316 I'll fix these ones up for 0.6.3 - though I'll release it tomorrow. (I don't like to make releases when I don't have several hours to hang around and make sure there aren't any critical bugs caused by the new release.)

  18. dax316
    Member
    Posted 4 years ago #

    Thanks again for the quick update! Fixed both of my issues!

    There is one final issue i'm having (hopefully!). When i have data in both the Job Information field and an Attachment, there is an extra line break added to the display on the front end. i.e.

    Job Information: This job is open to all applicants.

    Attachment: Download

    If there is no data in the job information field there is not an added line break added. i.e.

    Location: US Department of Justice
    Attachment: Download

    Is this something that I can change myself by editing one of the php files? Thanks again for the quick update!

  19. Gary Pendergast
    Member
    Posted 4 years ago #

    All textarea fields are run through the wpautop() function, which automatically adds <p> and <br /> tags.

    The easiest way to fix this in a manner that will survive upgrades is to do the following:

    • In your Job Template, add a class to the <tr> that shows the Job Information. For example, <tr class="job-information">.
    • Add the following code to your theme CSS (not Job Manager css files, which are overwritten on upgrade):
      tr.job-information br {
          display: none;
      }
  20. Gary Pendergast
    Member
    Posted 4 years ago #

    This is assuming you're using a table to display the job, of course. I assume you're able to make the changes for custom HTML. :)

Topic Closed

This topic has been closed to new replies.

About this Topic