Use custom learning paths but deactivated activity

Home Forums WPLMS AddOns Custom Learning Paths Use custom learning paths but deactivated activity

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #164612
    LMSfriend
    Participant
    I would like to know, if it's possible to use custom learning paths, when buddypress activity stream is deactivated. In my platform I don't want users to write comments or see everything in activity stream.   Thanks
    #164886
    Diana
    Participant
    @Lmsfriend, Apologies for the delayed response here.. But this is not possible. In custom Learning Path we are fetching the Buddypress activities as an option which gives you choices to select steps.  If activity stream will be disabled then it is not possible to fetch those BuddyPress Activities.
    #164888
    LMSfriend
    Participant
    Thanks, but then I would like you to check the following: I would like to activate the activity stream and use CLP addon, but then hide the activity tab on students profile page & hide activity tab on course pages for students. I already tried WP admin – WPLMS – BuddyPress – Profile Activity Tab = Admins only, but students can still see their activity.   Is it possible to hide activity tabs via code?
    #165010
    Diana
    Participant
    @lmsfriend Yes this is possible. Please paste the given code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php add_action('bp_setup_nav','bp_remove_activity_tab_from_student_profile',999); function bp_remove_activity_tab_from_student_profile() { if(is_user_logged_in() && !current_user_can('edit_posts')){ bp_core_remove_nav_item('activity'); } }
    #165012
    LMSfriend
    Participant
    Thanks this worked so far. Thread can be closed.
    #165130
    Diana
    Participant
    @LMSFriend Thanks for confirming. Closing the topic
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Use custom learning paths but deactivated activity’ is closed to new replies.