NooTheme Premium WordPress Theme › Forums › JobMonster › Profile percent 100%
- This topic has 10 replies, 2 voices, and was last updated 4 years, 11 months ago by tinhbeng.
-
AuthorPosts
-
4 years, 11 months ago #1082292
Hello,
Maybe an odd question, but would it be possible too accept the user to get full access after the user filled in 100% his/her*(other 71 genders) their profile? Or would that not be possible, and if this would be custom programming wich file is recommended to look at? (sorry noy my native tongue, doing my best)
Greetings and thanks in advacned.
4 years, 11 months ago #1082307What I have so far:
<?php if ($profile_percent_employer == 101) {
echo "It works!";
} else {
echo "It doesn't work. Percent value is " . $profile_percent_employer;
} ?>
4 years, 11 months ago #1082320Hi,
This is possible, but you will need to specify the functionality you want to restrict users to when the profile is incomplete.
eg: only users who complete 100% of resumes can post jobs and post resumes
You will need to customize 2 files: page-post-job.php and page-post-resume.php
You can use this code:
$profile_percent_employer = noo_get_profile_percent_company();
if($profile_percent_employer < 100){
noo_message_add( esc_html__( 'You need complete your profile pre post job','noo' ), 'error' );
jm_force_redirect( Noo_Member::get_endpoint_url( 'company-profile' ) );
}else{
jm_force_redirect(esc_url_raw(add_query_arg( 'action', $next_step)));
}
4 years, 11 months ago #1082364Hi,
Thank you for youre awnser, it works like a charm!
Is it also possible to connect the CV/Job placement as part of the 100% ? So people filled in their profile and their CV or Job and than being able to be accepted?
I hope you can help me with this, one.
Greetings
4 years, 11 months ago #1082370Hi,
- Previous customizations you should use child theme instead of customizing directly on the parent theme. Because when you update the new version these customizations will disappear.
- 100% complete request applies only to profile page and does not apply to other page.
If you want to force users to enter 100% of their information into your CV or Job, you can use the "is Mandatory" field in Custom Field Setting.
Best regards,
tb.
4 years, 11 months ago #1082377Hi
Thank you. I know child theme don't want to take that risk. But it is not easy to make it possible I understand from this? I know the required field but not what my client is looking for.
Thank you for your time and awnser.
4 years, 11 months ago #1082388Hi,
Is it also possible to connect the CV/Job placement as part of the 100% ?
Can you describe more about this?
4 years, 11 months ago #1082399Hi,
Of course, well basicly that the fields of filling in your CV or Job offer that this is also part of the 100% compilation. That's it.
4 years, 11 months ago #1082415Hi,
Sorry, this function is not currently supported on Job and resume post form.
Best regards,
tb.
4 years, 11 months ago #1082432Hi,
Wich file(s) has and what file(s) calculates the fields?
Thank you
4 years, 11 months ago #1082458Hi,
With Job and CV, this function is quite complicated to write it.
For example with Job:
- You will need to write a function with the parameter passed as Job ID.
- You use this function to get all field names on a Job: jm_get_job_custom_fields()
- You need to retrieve all values from the field name and Job ID
- Check the blank fields to calculate percent complete.
- You can refer the function: jm_the_job_meta($args = '', $job = null) (/noo_jobmonster/framework/job/job-template.php). This function takes the values of the fields in the job and display to the frontend.
Note: To get the Job ID you need to call this function in the job loop. Those are the files in 2 folders:
/noo-jobmonster/layouts/job/
/noo-jobmonster/layouts/single/
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.