Home › Forums › Legacy Support › Support queries › Other issues › Counting Created Courses, Dashboard Send Message, HTML Email
- This topic has 9 replies, 2 voices, and was last updated 8 years, 11 months ago by Anshuman Sahu.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
December 7, 2015 at 11:12 am #12582eggenoSpectatorHi, Is it possible to have a different count for instructor courses? There is an error 'Array' into dashboard->Send message widget. The mail that comes is not formatted. Please, take a look at the screenshot for detailsDecember 8, 2015 at 1:36 pm #12836Anshuman SahuKeymasterThis is an issue and will be fixed in the next update of wplms . We will get it fixed in the next update of wplms dashboard plugin .December 8, 2015 at 2:11 pm #12844eggenoSpectatorThanks for reply. Regarding the first point (Counting Created Course - please looks screenshot) is there any workaround quick to apply? Can you tell me when it will be released the new plugins versions?December 9, 2015 at 2:33 pm #13062Anshuman SahuKeymasterThis will be fixed in the next update of the wplms dashboard plugin . Can you please clarify more on your count issue ? Some steps to replicate it and on which page you are facing this would be helpful to replicate this issue ?December 9, 2015 at 2:49 pm #13067eggenoSpectatorHi Alex, At the beginning of this discussion, I uploaded a screenshot. Please refer to the first part of the screenshot to see what I mean. I understand that the problem will be fixed with the new version of the plugin but my question is if you can give me an approximate date of when will be released the new version.December 10, 2015 at 1:04 pm #13233Anshuman SahuKeymasterOkay as of now the tentative date for the release is "20th December " .YOu can track the development of the wplms theme version 2.0 here : https://trello.com/b/C6sIO3Va/wplms-development About the count issue please note that in wplms as instructors can also pursue the courses .This courses count shows actually the my courses (the courses which instructor has taken )December 10, 2015 at 1:15 pm #13236eggenoSpectatorOK Alex, thanks for reply. I know that instructors can also buy the courses. But as instructor, it would not be more correct, count the number of courses created rather than those purchased? Is there a quick way to do this in php? For example, something like: if (current_user_can ('instructor')) { count ('courses created'); }December 11, 2015 at 8:42 am #13397Anshuman SahuKeymasterYOu can add a instructor-courses menu tab in the buddypress tab item . Add this code int your wplms-customizer.php file in your wplms customizer plugin . add_action( 'bp_setup_nav', 'create_lesson_setup_nav'); function create_lesson_setup_nav(){ global $bp; if( current_user_can('edit_posts')){ bp_core_new_nav_item( array( 'name' => __('Instructing Courses', 'Vibe' ).'<span>'.bp_course_get_instructor_course_count_for_user( bp_loggedin_user_id() ) .'</span>', 'slug' => 'course/'.BP_COURSE_INSTRUCTOR_SLUG, 'position' => 100, 'screen_function' => 'wplms_create_lesson_planner_redirect', 'show_for_displayed_user' => true ) ); } } function wplms_create_lesson_planner_redirect(){ return 'course/'.BP_COURSE_INSTRUCTOR_SLUG; }December 11, 2015 at 9:34 am #13406eggenoSpectatorHi Alex, thank you very much! It's perfect. Just one last thing: how can I insert the class 'current selected' inside <li id="course/instructor-courses-personal-li">, when new item is clicked?December 12, 2015 at 7:37 am #13579Anshuman SahuKeymasterThat would not be possible as of now .
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Counting Created Courses, Dashboard Send Message, HTML Email’ is closed to new replies.