1. Fix: the issue of pagination inside the units which is not accessible by student.

        Goto themes-> editor.
        Select  func.php file to edit.

Find for "vibe_check_access_check":
Replace the function with the given below:


   

add_action('template_redirect','vibe_check_access_check');
function custom_check_access_check(){ 

if(!is_singular(array('unit','question')))
      return;

    $flag=0;
    global $post;
    if(!current_user_can('edit_posts')) {
      $flag=1;
      $free=get_post_meta(get_the_ID(),'vibe_free',true);
      if(vibe_validate($free) || (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && is_user_logged_in()))
        $flag=0;
    }else{
        $flag=0;
        $instructor_privacy = vibe_get_option('instructor_content_privacy');
        $user_id=get_current_user_id();
        if(isset($instructor_privacy) && $instructor_privacy && !current_user_can('manage_options')){
            if($user_id != $post->post_author)
              $flag=1;
        }
    }
    if($flag){
        wp_die(__('DIRECT ACCESS TO QUESTIONS IS NOT ALLOWED','vibe'),__('DIRECT ACCESS TO QUESTIONS IS NOT ALLOWED','vibe'),array('back_link'=>true));
    }
}

   



       2. Fix: scroll to top when move to next page inside the unit.


           Paste this code in wplms->vibe option panel->footer->Google analytic section.


 

<script>
jQuery(document).ready(function($){
$('.unit_content').on('unit_traverse',function(){
   $('body,html').animate({
                    scrollTop: 0
                  }, 1200);
});
});
</script>