some draft courses showing – some not on All Courses page – Why?

Home Forums Legacy Support Support queries How-to & Troubleshooting some draft courses showing – some not on All Courses page – Why?

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #203116
    rbarnette
    Spectator
    Hi, Very important.  I just did two processes. I created a course (just basic info.) using the Front End too.  It was set to draft.  It's now listed on the All Courses page as draft. I created two courses using the back-end.  Also same basic info.  Both were set to draft. Neither are showing up on the All Courses page as draft. Why? How do I share screen shots with you or a quick video? Thank you!      
    #203123
    rbarnette
    Spectator
    Hi, Here's another situation -- we created the draft courses using one Admin ID and then when I go in to see the courses, under a different Admin ID, I cannot see them either. Shouldn't all ADMIN users be able to see content in any form? Thank you, Margaret
    #203248
    logan
    Member
    Hello, Please share your wp-admin credentials in a private reply. i will check this on your site. Tip: For better support always share a screenshot: Please provide proper screenshot, use https://prnt.sc/ to upload and share url of the screenshot. If you want to send us a video of the issue, use https://screencast-o-matic.com/ to upload and share url of the video.
    #203249
    logan
    Member
    Hello, In my case, i have made a course by using backend and saved as draft. i have also created a course by using frontend. both are showing in all course page directory because i am super admin. super admin have all privileges while instructor can create course but cant check course created and saved in draft by other instructors. i hope this makes you understand. i have also checked as non logged in user, i was not able to see any of the draft courses. Refer: https://screencast-o-matic.com/watch/cqffl6ZhxR
    #203293
    rbarnette
    Spectator
    This reply has been marked as private.
    #203345
    rbarnette
    Spectator
    Hi - OK - I just found this article:

    Show courses draft to administrator instead only to author

    In this, there is the reply that you took away the feature for Admins to view all draft courses! YIKES! As an admin overseeing 50 instructors drafting courses, is there no way for me to see them on the All Courses page to see how they look before I approve them and then publish them as a final step? Thanks, MK
    #203440
    logan
    Member
    Hello, there is a check in codes. you can check draft course of other instructors here: http://prntscr.com/n7xkgv We have made this check so if there is 500 courses in drafts they should not appear on front-page to reduce the complexity. Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel: add_action('init',function (){ $obj = WPLMS_Filters::init(); remove_filter('bp_course_single_item_view',array($obj,'restrict_draft_courses'),10); }); add_filter('bp_course_single_item_view','restrict_draft_courses',10); function restrict_draft_courses($flag){ if(is_user_logged_in()){ global $post; if(current_user_can('edit_posts') && in_array($post->post_status,array('draft','pending')) ){ $user_id = get_current_user_id(); $instructors = array($post->post_author); $instructors = apply_filters('wplms_course_instructors',$instructors,$post->ID); if(current_user_can('manage_options')){ return 0; } if(!in_array($user_id,$instructors)){ return 1; } } } return $flag; } refer: http://prntscr.com/n7xmt2
    #203503
    rbarnette
    Spectator
    Hi, Ahhhh!  Now I understand the reason for the change.  Some customers have like you say hundreds of courses in draft mode. Thank you kindly for the code! You guys are awesome.  Have a great weekend.
    #203548
    logan
    Member
    Dear Friend, Glad you’re enjoying the theme & support – thanks for using it! 🙂 Please write your review. I would really appreciate that! Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226 If I can be of assistance, please do not hesitate to contact me again. Closing this topic. Happy weekend to you too my friend. Enjoy :)
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘some draft courses showing – some not on All Courses page – Why?’ is closed to new replies.