Forum Replies Created
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
Vikas
SpectatorI have Done it by my self I made change in file bp-course-function.php Default code was this: function bp_course_nav_menu(){ $defaults = array( 'Home' => array( 'id' => 'home', 'label'=>__('Home','vibe'), 'action' => '', 'link'=>bp_get_course_permalink(), ), 'curriculum' => array( 'id' => 'curriculum', 'label'=>__('Curriculum','vibe'), 'action' => 'curriculum', 'link'=>bp_get_course_permalink(), ), 'members' => array( 'id' => 'members', 'label'=>__('Members','vibe'), 'action' => 'members', 'link'=>bp_get_course_permalink(), ), ); Then I changes in to like this: function bp_course_nav_menu(){ $user_id=get_current_user_id(); $link= apply_filters ( 'wplms_registeration_redirect_url', bp_core_get_user_domain( $user_id ).WPLMS_DASHBOARD_SLUG , $user_id ); $defaults = array( 'Home' => array( 'id' => 'dashboard', 'label'=>__('Dashboard','vibe'), 'action' => 'dashboard', 'link'=>$link, ), 'startcourse' => array( 'id' => 'home', 'label'=>__('Start Course','vibe'), 'action' => '', 'link'=>bp_get_course_permalink(), ), 'curriculum' => array( 'id' => 'curriculum', 'label'=>__('Curriculum','vibe'), 'action' => 'curriculum', 'link'=>bp_get_course_permalink(), ), 'members' => array( 'id' => 'members', 'label'=>__('Members','vibe'), 'action' => 'members', 'link'=>bp_get_course_permalink(), ), ); Result is shown in AttachmentVikas
SpectatorI found a solution for my problem. I used these two threads For Enable Students subscribed to Course to view units from Curriculum:- https://wplms.io/support/knowledge-base/enable-students-subscribed-to-course-to-view-units-from-curriculum/ For Open FREE units in a Popup from Course Curriculum:- https://wplms.io/support/knowledge-base/open-free-units-in-a-popup-from-course-curriculum/ I made some changes in a function:- I changed this function wplms_custom_course_curriculum_free_access_2($html,$lesson,$course_id){ $free=get_post_meta($lesson,'vibe_free',true); if(vibe_validate($free)) $html =''.get_the_title($lesson).(vibe_validate($free)?''.__('FREE','vibe').'':'').''; return $html; } to this function wplms_custom_course_curriculum_free_access_2($html,$lesson,$course_id){ $free=get_post_meta($lesson,'vibe_free',true); if(!vibe_validate($free)) $html =''.get_the_title($lesson).(!vibe_validate($free)?''.__('FREE','vibe').'':'').''; return $html; }Vikas
SpectatorSo what is the solution for that. I do not want to show that full unit to those members who haven't purchased that course..January 22, 2016 at 4:07 am in reply to: View all courses in Student dashboard through widget. #19741Vikas
SpectatorThanks.Vikas
SpectatorThanks Its working great now.January 20, 2016 at 9:14 am in reply to: View all courses in Student dashboard through widget. #19422Vikas
SpectatorOk Can you tell how can I get post ids of all purchased courses by a particular student?Vikas
SpectatorIt worked. But i do not want to go on profile page. I want to redirect on student dashboard home where URL will be like "members/demo/dashboard/". -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)