• Resolved FelixSima

    (@felixsima)


    Hi. First of all thanks for this awesome plugin.

    I’m having trouble trying to add the ‘submit_resume_form’ shortcode along ‘jobify_register_form’. Whichever of those comes second, it won’t display the entire form, only a field and the rest is not generated. I know the register form is not related to the ‘wp job manager’ plugin, but this also happens if for example I try to use ‘submit_resume_form’ and ‘submit_job_form’ on the same page (I know this is nonsense and would make no sense to use them together, it’s just an example). Do you have any idea how I could avoid this conflict?

    Thank you!

    https://ww.wp.xz.cn/plugins/wp-job-manager/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Can you post a link so I can see where it cuts off?

    Thread Starter FelixSima

    (@felixsima)

    Hey.
    http://scoot.my/

    This is a live site so I can’t display them in plain sight. I added a ‘display:none’ div in the footer, right before the body closing tag. Its id is ‘hidden_job_manager’ so you can easily display it with jquery.

    Also, another bug I’m facing is tinyMCE related. If you click on the “SIGN UP” button on the top nav, select “I’m a candidate looking for a job”, the submit resume form will display. ‘The Resume Content’ section is unusable, you can’t type anything in it.
    In this pop up, both the sign up and the submit resume forms are being fully displayed. That’s because I added the submit resume form somewhere in the header, and used “.appendTo()’ on ‘.ready()’ to move it inside the pop up. I’m guessing this might be the cause of the tinyMce bug, so it could be related with the first bug.

    I hope I make sense. Thank you!

    Thread Starter FelixSima

    (@felixsima)

    PS: I’ve set the ‘.fieldset-resume_content’ as ‘display:none’ for now (in the sign up modal). You can find it right after ‘.fieldset-candidate_video’

    Thanks!

    Plugin Author Mike Jolley

    (@mikejolley)

    It could be the way in which you’ve added this form to the page. Please place it on it’s own separate page for testing.

    If you’re going to insert this into a popup, you may need to disable the editor on the field and just a plain textarea using https://wpjobmanager.com/document/editing-job-submission-fields/

    Thread Starter FelixSima

    (@felixsima)

    Hi. Thank you for the reply.
    At the moment I have a bigger issue. I am trying to add a new custom repeatable field using the ‘submit_resume_form_fields’ filter.

    This is the code I use:

    add_filter( 'submit_resume_form_fields', 'language_repeatable_field' );
    language_repeatable_field( $fields ) {
        				$fields['resume_fields']['languages'] = array(
    					'label'       => __( 'Language(s)', 'wp-job-manager-resumes' ),
    					'type'        => 'languages',
    					'required'    => false,
    					'placeholder' => '',
    					'priority'    => 11,
    					'fields'      => array(
    						'language' => array(
    							'label'       => __( 'Language', 'wp-job-manager-resumes' ),
    							'type'        => 'text',
    							'required'    => true,
    							'placeholder' => ''
    						),
    						'level' => array(
    							'label'       => __( 'Level', 'wp-job-manager-resumes' ),
    							'type'        => 'text',
    							'required'    => true,
    							'placeholder' => ''
    						)
    					)
    				);
        			FB::log($fields);
        return $fields;
    }

    For type I used “languages”. I created a new template called ‘languages-field.php’ following the existing ‘experience-field.php’. The Label is printed on front end, but the actual link that should add the repeatable field is not there. Should the new field be registered somehow? What am I missing?

    Thank you!

    Plugin Author Mike Jolley

    (@mikejolley)

    You need to add the link to your template file. Use templates/form-fields/education-field.php as a reference. Disclaimer, I don’t think i’ve tried to add new repeatable fields myself – this code change is new.

    Thread Starter FelixSima

    (@felixsima)

    What do you mean by adding the link to the template file? I already created a new file ‘languages-field.php’ based on ‘education-field.php’ and this doesn’t work, though I don’t really understand why.

    public static function get_field_template( $key, $field ) {
    		switch ( $field['type'] ) {
    			case 'education' :
    			case 'experience' :
    			case 'links' :
    				get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', array( 'key' => $key, 'field' => $field ), 'wp-job-manager-resumes', RESUME_MANAGER_PLUGIN_DIR . '/templates/' );
    			break;
    			default :
    				get_job_manager_template( 'form-fields/' . $field['type'] . '-field.php', array( 'key' => $key, 'field' => $field ) );
    			break;
    		}
    	}

    Shouldn’t this function be able to find the ‘languages-field.php’ as long as the new field specified type is set to ‘languages’?

    I’m past my deadline and I have several issues with the plugin. Is there anyway we could talk real-time, skype or smth? I’m willing to pay for your real-time support.
    Thank you!

    Plugin Author Mike Jolley

    (@mikejolley)

    What is the exact path to your template file? Should be yourtheme/job_manager/form-fields/languages-field.php

    Thread Starter FelixSima

    (@felixsima)

    That’s the path.

    Plugin Author Mike Jolley

    (@mikejolley)

    Which template is being used then – can you tell?

    Thread Starter FelixSima

    (@felixsima)

    I fixed it. I checked again, and the template was in ‘wp-job-manager-resumes’ instead of ‘job_manager’. My bad.
    But here comes the tricky question. How should I define this repeatable language field for admin side?

    Plugin Author Mike Jolley

    (@mikejolley)

    Look inside /includes/admin/class-wp-resume-manager-writepanels.php. if you need more filters to do it, just let support know via https://wpjobmanager.com/support/ and we can log some issues/change functions. As I said, the repeated fields stuff is new.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Shortcode conflict.’ is closed to new replies.