Sidebar options, enabled options and course content from the instructor profile.

Home Forums Legacy Support Support queries Setup issues Sidebar options, enabled options and course content from the instructor profile.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #377554
    maurigut
    Spectator
    hi, You cannot see the items my course, Enrolled courses: https://drive.google.com/file/d/1ZLcK4SwNf-Jn7HevtX4TceYt3tplseTk/view?usp=sharing Where can I modify it to look like this ?: https://drive.google.com/file/d/1MY-wlIArZhRK_tyKrp9r3gfg4_avFqjm/view?usp=sharing Currently from the instructor area I cannot access the course contents. You would also need to modify the enabled options of the sidebar menu: https://drive.google.com/file/d/1HOfg4kiBaI-0XMVGajwEI2W8mLd8d526/view?usp=sharing And remove the option to remove user from the instructor's profile or hide it: https://drive.google.com/file/d/1t-pEEz6pSWeSFVQ9lXzqLvLJOVKygYjj/view?usp=sharing And remove the Create Course option: https://drive.google.com/file/d/1G0KJZTcEpCOmxeFoN7FzhHrP8HMvJG3L/view?usp=sharing Greetings.
    #377578
    Veronica
    Moderator
    hi check if you have enabled this setting http://prntscr.com/26cbwgv and also these sub menus can't be edit if you want to remove any submenu or create course button then we can give you custom codes accordingly
    #377580
    maurigut
    Spectator
    hi, I had this option enabled! http://prntscr.com/26cbwgv cool! Can you pass me the codes for: Remove the option to remove user from the instructor’s profile or hide it: https://drive.google.com/file/d/1t-pEEz6pSWeSFVQ9lXzqLvLJOVKygYjj/view?usp=sharing Modify the enabled options of the sidebar menu: https://drive.google.com/file/d/1HOfg4kiBaI-0XMVGajwEI2W8mLd8d526/view?usp=sharing Remove the Create Course option: https://drive.google.com/file/d/1G0KJZTcEpCOmxeFoN7FzhHrP8HMvJG3L/view?usp=sharing And create a button so that the coordinator can see the course contents without having to be registered as a student. Thanks a lot!!!
    #377690
    Veronica
    Moderator
    hi for 1: please provide details so we can check if it is possible to hide it or not for 2: can you please let us know what exactly you want to modify? for 3: providing code in some time
    #377692
    Veronica
    Moderator
    add_action('wp_head','hide_create_course');
    function hide_create_course(){
        $user = wp_get_current_user();
        if ( in_array( 'instructor', (array) $user->roles ) ) {
        //The user has the "instructor" role
            ?>
            
            <style>
            	.vibebp_left_sidebar a.button.is-primary.new_mail {
    			    display:none;
    			}
            </style>
        <?php
        }
        }
    add this in wplms-customizer.php file
    #377801
    maurigut
    Spectator
    This reply has been marked as private.
    #377867
    Veronica
    Moderator
    hi yes right thanks for pointing this the filter is different for instructor i need to check the code again first i will work on this and then try to check for the second query you have appreciate your patience.
    #377963
    maurigut
    Spectator
    hi, received. I hope you can help me. Greetings.
    #378100
    Veronica
    Moderator
    hi use this code:
    add_filter('wplms_course_settings',function($s){
    $['instructor'] = 'manage_options';
    return $s;
    });
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Sidebar options, enabled options and course content from the instructor profile.’ is closed to new replies.