NooTheme Premium WordPress Theme › Forums › JobMonster › View Resume with different user role
- This topic has 7 replies, 3 voices, and was last updated 5 years, 8 months ago by Jackie.
-
AuthorPosts
-
5 years, 8 months ago #1069547
Hi,
I have a question about i would like to set up different user role (example : editor) can view resume without purchase any package
I tried a lot of plugin to allow view resume detail for different role , but there is no way to view access from employer paid package as action control from admin panel.
Please help me how can i access this resume detail for different role (non-employer) because of i have installed and processing CRM plugin (WPERP ) that use secondary wordpress dashboard as their role.
Please hoping no reply with "sorry job monster no supported for this features" because of i am very important for this.
If there is no way function , i found one plugin may help this as attach file using capabilities ID as screenshoot
I will very thankfull if you can help me for this
Attachments:
You must be logged in to view attached files.5 years, 8 months ago #1069570
AnonymousInactiveTopics: 0
Posts: 3295Hi,
Thanks for contacting us.
As we understand, you want to add a user who can see resume detail without paid package., right?
a user existed your website or you will create this user after? Can you let us know?
In case, please describe your question as clearly as possible. If possible, we will try to discuss with our developer who can help you with an extra fee.
Thank you.
NooTheme
5 years, 8 months ago #1069571Dear Tracy,
Sorry for my bad English , Let me clear my topics again, Hope you understand.
I am not meaning add new user .
(1) I set up only paid employer can view resume detail in action control
(2) I would like to purchase job package with Editor role (non- Employer role) but i can't because of only employer role can purchase job package as your system right?
(3) That is question , how can i purchase job package with editor role or how can i access to view resume detail with editor role.
Thanks
5 years, 8 months ago #1069578Hi again.
Yes, we don't support the editor user type to view the resume details. But you can change our source code to allow editor user can access the resume details without package purchase.
Please check the code at file wp-content/themes/noo-jobmonster/layouts/resume/single/detail-style-2.php line 120 and wp-content/themes/noo-jobmonster/layouts/resume/single/detail.php line 88.
Add the code below:
if( is_user_logged_in() ) { $user = wp_get_current_user(); if ( in_array( 'editor', (array) $user->roles ) ) { $is_can_view = true; } }
Please check it again.
Thanks.
5 years, 8 months ago #1069583Dear Mr.Jakie,
Thanks for reply back
I have try to add as your guide (http://prntscr.com/msv12k ) but i am still can't view resume detail.
Please let me know for your more help. Thanks
5 years, 8 months ago #1069590Hi again.
Please add the code to 2 files wp-content/themes/noo-jobmonster/layouts/resume/single/detail-style-2.php line 120 and wp-content/themes/noo-jobmonster/layouts/resume/single/detail.php line 88
We also have the code to check resume permission, please add the code below to file /wp-content/themes/noo-jobmonster/framework/resume/resume-viewable.php line 63.
if( is_user_logged_in() ) { $user = wp_get_current_user(); if ( in_array( 'editor', (array) $user->roles ) ) { return true; } }
Please check it again.
Thanks.
5 years, 8 months ago #1069603Dear Mr. Jackie,
I place this code
if
( is_user_logged_in() ) {
$user
= wp_get_current_user();
if
( in_array(
'editor'
, (
array
)
$user
->roles ) ) {
return
true;
}
}
in three file so the code is working well but i would like to make sure about my process is correct or not that I only need to add this above code in 3 file as you guide. Because of i am a little bit confusing with above you send before.
Thank
5 years, 8 months ago #1071332Hi again.
You need to add the code to two files as my above message. Because we have two layouts for resume details.
Thanks.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.