• Resolved maxos111

    (@maxos111)


    Hello
    Your plugin works very good and more stable than other.
    Thank you.

    I have one question. Please advice – how better to relize this
    I used buddypress also
    I need to have two group of members – teachers and students.
    Students – usual users – it is ok
    Teachers – It si possible to crate such rol or membership or in buddypress.
    And teacher must have ability to create own courses (edit them). And not have acces to other teacher’s courses. And not have accces to other capability in wordpres dashboard (like setting or other post editing)

Viewing 4 replies - 1 through 4 (of 4 total)
  • @maxos111,

    At this moment LifterLMS does not have any defined teacher functionality but it’s on our roadmap and we’ll be developing this functionality in the near future.

    You could create a custom role using a plugin like this one: https://www.ads-software.com/plugins/user-role-editor/

    This custom role could be granted the ability to create their own courses, lessons, sections and edit them but not others

    Sorry we don’t have this today, it’s a big feature and we know it’s important we just haven’t gotten there yet

    take care,

    Thread Starter maxos111

    (@maxos111)

    Thank you

    I already realised this such way
    user-role-editor
    https://srd.www.ads-software.com/plugins/adminimize/
    and your filters https://lifterlms.readme.io/docs/filters-admin-menu-and-screen-permissions

    It is works.
    Question resolved

    Hi,

    Can you please give me some help on how you used to filters? I dont seem to be able to find the documentation for V3 of Lifter LMS.

    Thread Starter maxos111

    (@maxos111)

    Hi @stickymathscom

    Looks that LifterLMS transfer this article somwhere to new website but without redirect.I can not find this article now.

    I used this code (copy from my function.php)

    /**
     * Allow WP users with the "edit_posts" capability to access the courses post type
     * @param  string $capability   default capability for access ("manage_options")
     * @return string               modified capability for access
     */
    function my_llms_courses_access( $capability )
    {
    
      // you can define any valid WordPress capability here
      // see https://codex.www.ads-software.com/Roles_and_Capabilities#Capabilities for a comprehensive list of capabilties
      $capability = 'edit_posts'; 
    
      return $capability;
    
    }
    // add your filters
    add_filter( 'lifterlms_admin_courses_access', 'my_llms_courses_access', 10, 1 ); // display the courses post type
    /**
     * end
     *	LifterLMS 
     */
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Teacher funcionality’ is closed to new replies.