Home › Forums › WPLMS AddOns › WPLMS Appointments › WPLMS configuration inquiry
- This topic has 10 replies, 2 voices, and was last updated 4 years, 6 months ago by
Diana.
Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
January 10, 2020 at 3:05 am #238894
Startup07
ParticipantHi Vibe Team, I recently purchased the WPLMS Appointments add-on, and I would like to configure it to meet my exact business needs. Basically, I want to limit the control teachers will have over bookings for an institution type environment. Teachers will only need to add their available time slots. I need to do the following: #1-Disable messages between students and teachers #2-Hide "General Settings" from teachers (Admin will set default settings for all teachers) For example: all bookings will be "free slots" and all slot duration will be "20 mins" #3 Disable schedule edit feature for teachers (Admin will set default settings for all bookings) #4 Set all bookings to "Online Conference" by default (Admin) For example: All appointments are held in BBB by default. So, a join meeting button will need to be available to teachers and students at a default time set by Admin Thanks.January 10, 2020 at 6:16 pm #239004Diana
Participant@Startup07, Read all your points and for all these modifications I need to go through the code of wplms appointments only then I can share custom code with you. Will update you by tomorrowJanuary 12, 2020 at 9:25 pm #239112Startup07
ParticipantThis reply has been marked as private.January 13, 2020 at 5:49 am #239142Diana
Participant@Startup07, Point 1: Disable messages between user and teacher Disable Buddypress Private Messaging from your site from wp-admin > settings > BuddyPress refer: http://prntscr.com/qmun7o Because we are using BuddyPress functionality. When students/teachers try to send the message it will show the error that this feature is disabled on your site. Point 2: Hide General Settings from Teachers Add this code in wp-admin > Plugins > editor > select wplms customizer plugin > wplms-customizer.php add_filter('wplms_appointments_settings','wplms_appointment_settings_filters',99, 1); function wplms_appointment_settings_filters($settings){ $settings = array(); return $settings; } Point 3: Disable Schedule Edit feature for teachers We don't have any filter there so this custom code will do the trick. Past in wplms customizer plugin add_action('wp_head','disable_schedule_edit_feature'); function disable_schedule_edit_feature(){ if(current_user_can('instructor')){ ?> <style> .edit_event{display:none;} </style> <?php } } Point 4: Set All Bookings to Online Conference This is not possible because button click is needed to set meetingJanuary 14, 2020 at 3:03 am #239235Startup07
ParticipantHi Diana, I am most grateful for your valued assistance. I will check it out. Thank you. Quick question: When instructors and users send each other messages, are those messages also sent to Admin? This is concerning the safety of instructors and users.January 15, 2020 at 5:45 am #239406Diana
Participant@Startup07, No, the messages will be sent to that instructor only not to AdminJanuary 31, 2020 at 10:04 am #241132Startup07
ParticipantThis reply has been marked as private.January 31, 2020 at 10:09 am #241135Startup07
ParticipantHi Diana,
Thanks again for your help. I was able to test those codes & this is what happened.
I added the first code. This was the result: https://snipboard.io/qZ43ez.jpg
I removed the code and this was the result: https://snipboard.io/Tba0Kj.jpg
Also, I added the second code, but I was still able to edit items as a "teacher" when I did a test.
I followed step by step instructions. I added the codes to WPLMS Customizer Plugin. Did you get a different result? Did I overlook a step? Thank you.
February 3, 2020 at 10:38 am #241321Diana
ParticipantThis reply has been marked as private.February 9, 2020 at 2:35 pm #241983Startup07
ParticipantThis reply has been marked as private.February 10, 2020 at 6:47 pm #242099Diana
ParticipantThis reply has been marked as private. -
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
- The topic ‘WPLMS configuration inquiry’ is closed to new replies.