Hide Offline Courses

Home Forums Legacy Support Support queries Other issues Hide Offline Courses

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #186986
    damiko
    Participant
    Hello, Is there a way to hide the courses from the directory that are set to "Offline"? We would still require that it is visible in the gradebook, but it doesn't make sense to be in the directory as the course does not have any content. Thanks, Mike
    #187157
    Anshuman Sahu
    Keymaster
    Well you can hide them from wp-admin -> WPLMS -> course manager -> " Hide Courses from Directory "
    #187397
    damiko
    Participant
    Hey Alex, That does seem to be exactly what I'm looking for, but it doesn't seem to work. Here's the setting: https://i.imgur.com/4UHmvXC.png And here's the result: https://i.imgur.com/GgeDnS2.png Am I doing something wrong? How can I fix this?
    #187398
    damiko
    Participant
    This reply has been marked as private.
    #187528
    Anshuman Sahu
    Keymaster
    Well it does shows in my courses section but does not shows in course directory . It shows because user is actually enrolled in that course now and should be allowed to see it . hiding it completly would need a custom code and we need to check it if its possible or not .
    #187960
    damiko
    Participant
    Yeah, we enroll the user because we want it it to appear in the gradebook. There are lots of courses that are taken offline, but still need to be graded and administered in one spot (wplms). It's just confusing to the user if it looks like you can take the course online (which you can't). How about this: Is it possible to add a course category in the loop? I added a taxonomy to the courses: https://i.imgur.com/9x2mLlQ.png I noticed that there is a class for the author ID: https://i.imgur.com/lRRcbAS.png If I can get that category added as a class, I can hide it with CSS. What do you think? Is this easy? Thanks again for all your help. Our project is almost done and I won't have to bother you guys!
    • Mike
    #188046
    Anshuman Sahu
    Keymaster
      please try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_filter('bp_course_single_item_view',function ($x){   global $post;   $offline = get_post_meta($post->ID,'vibe_course_offline',true);     if(bp_is_my_profile() && vibe_validate($offline) && bp_current_action() && bp_current_action() == 'course')     return 1;     return $x; });
    #188147
    damiko
    Participant
    Looks like that did it. Thanks!
    #188204
    logan
    Member
    cheers ! If we can be of assistance, please do not hesitate to contact us again. Closing this topic. Best regards :)
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Hide Offline Courses’ is closed to new replies.