Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Restrict back end to instructors
- This topic has 13 replies, 2 voices, and was last updated 4 years, 12 months ago by logan.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
April 5, 2019 at 4:42 am #203357KAISTSpectatorHi. Thank you for your hard work. The following function prevented the instructor from going to the back end. ENABLE SWITCH WP ADMIN – WPLMS – BUDDYPRESS – HIDE ADMIN BAR However, if instructor use edit image, they can enter back end. and they can do many things , for example add category, delete unit...etc https://screencast-o-matic.com/watch/cqfhfAZ18A Is it possible to solve this part? "Restrict Instructors to Create a New Course Category" found in: https://wplms.io/support/knowledge-base/restrict-instructors-to-create-a-new-course-category/ But basically I would like to eliminate the hole that the instructor can go to the back end. thanks!April 6, 2019 at 11:45 am #203558loganMemberHello, add extra codes in wplms customizer plugin > wplms customizer.php function restrict_admin_access() { if (!current_user_can('manage_options')){ wp_redirect( home_url() ); } } add_action( 'admin_init', 'restrict_admin_access', 99); It should work;April 6, 2019 at 4:10 pm #203577KAISTSpectatorHi logan! I am very fortunate to be able to prevent the instructor from entering the Back end. However, applying the current code does not seem to allow the instructor to log in at all. Could you check it once. https://screencast-o-matic.com/watch/cqf1D1ZjHb thank youApril 8, 2019 at 11:13 am #203676loganMemberHello, Please make sure you have updated your theme and plugins to its latest version. i tried to replicate the issue at my end but it works fine for me. it could be a third party plugin too, please deactivate if there is 3rd party plugins. then check if it works. Refer: http://prntscr.com/n919tbApril 14, 2019 at 4:12 am #204493KAISTSpectatorThank you logan. Ah. Just have to work around the restrict admin area. Instead, we have to let the user restict edit image function. If we do not have solution than that, I can do this. So I just changed the edit image character to dot (.) So that the user can not see the edit image. But I still need the function, so I left it as dot (.). Is My way of doing this is the best way, right? I did well, right? https://screencast-o-matic.com/watch/cqf2feZqA5 Thank you very much ! And if you have a way to do image editing without regard to the access of the admin area, please let me know. Best!April 15, 2019 at 11:13 am #204609loganMemberHello, Yes by translating you can restrict its functionality. wise move. If you want to hide the edit button i can share the custom css for it. that will work else let me know so that i can close this topic.April 17, 2019 at 3:24 am #204913KAISTSpectatorHi. Logan. Yes. I want! I would really appreciate it if you could make it invisible with CSS. That could be a fundamentally safe way. Thank you loganApril 17, 2019 at 5:32 am #204925loganMemberThis reply has been marked as private.April 19, 2019 at 4:27 am #205283KAISTSpectatorThis reply has been marked as private.April 19, 2019 at 6:15 am #205311loganMemberHello, try this code in custom css. .attachment-info a.edit-attachment { display: none !important;} refer: http://prntscr.com/ne04hm **please revert back the translation effect for this button. tip:
- align these in a same size, it does not look good. refer: http://prntscr.com/ne0540
- Always upload same size of thumbnails. refer: http://prntscr.com/ne066n
- hd pix with same width and height for all course thumbnail refer: https://cl.ly/70fc26
April 20, 2019 at 4:51 am #205441KAISTSpectatorThis reply has been marked as private.April 20, 2019 at 5:34 am #205447loganMemberThis reply has been marked as private.April 21, 2019 at 2:31 am #205562KAISTSpectatorlogan Your experienced advice will be of immense help to me. Thanks to you I decided to a clear direction. I was particularly confident in your case of 20,000+ customers. You are The best! I send an endless thanks.April 21, 2019 at 5:44 am #205565loganMemberIts my duty and my personal attachment with customers. i love helping others as much as i can. Never hesitate to ask me anything. Thank you so much. good day :) -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Restrict back end to instructors’ is closed to new replies.