Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › some draft courses showing – some not on All Courses page – Why?
Tagged: draft courses
- This topic has 8 replies, 2 voices, and was last updated 5 years, 8 months ago by logan.
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
April 3, 2019 at 3:35 pm #203116rbarnetteSpectatorHi, 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!April 3, 2019 at 5:01 pm #203123rbarnetteSpectatorHi, 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, MargaretApril 4, 2019 at 12:03 pm #203248loganMemberHello, 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.April 4, 2019 at 12:13 pm #203249loganMemberHello, 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/cqffl6ZhxRApril 4, 2019 at 1:50 pm #203293rbarnetteSpectatorThis reply has been marked as private.April 4, 2019 at 10:17 pm #203345rbarnetteSpectatorHi - 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, MKApril 5, 2019 at 1:30 pm #203440loganMemberHello, 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/n7xmt2April 5, 2019 at 9:23 pm #203503rbarnetteSpectatorHi, 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.April 6, 2019 at 10:25 am #203548loganMemberDear 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 :) -
AuthorPosts
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.