Please add the given script from wp-admin -> wplms ->footer -> google analytics code : <script> jQuery(document).ready(function($){ $(‘.unit_content’).on(‘unit_traverse’,function(){ $( ‘body’ ).delegate( ‘.unit_button.submit_inquiz’, ‘click’, function(event){ $(‘body,html’).animate({ scrollTop: 0 }, 1200); }); }); }); </script>
Add review Button in course page
Add the following code in wplms-customizer.php or child theme->functions.php add_action(‘wplms_after_course_description’,’myreview_button’); function myreview_button(){ $course_id = get_the_ID(); $user_id = get_current_user_id(); ?> <form action=”<?php echo get_permalink($course_id); ?>” method=”post”> <input type=”submit” name=”review_course” class=”review_course unit_button full button” value=”<?php _e(‘REVIEW COURSE ‘,’vibe’); ?>” /> <?php wp_nonce_field($course_id,’review’); ?> </form> <?php }
Unit duration on course certificate
ADD this code in wplms-customizer plugin->wplms-customizer.php if (!function_exists(‘vibe_unit_duration_certificate’)) { function vibe_unit_duration_certificate( $atts, $content = null ) { $course_id=$_GET[‘c’]; $course_curriculum = bp_course_get_curriculum_units($course_id); foreach($course_curriculum as $unit_id){ $unit_duartion+=get_post_meta($unit_id,’vibe_duration’,true); } return ‘<div id=”unit_duration”>’.$unit_duartion.’ ’.__(‘Minutes’).'</div>’; } add_shortcode(‘certificate_unit_duration’, ‘vibe_unit_duration_certificate’); } Add this code and then use the shortcode [certificate_unit_duration] in Lms->certificate template You can convert convert […]
Show time spent by student on course admin
Please add this code in your wp-content/plugins/wplms-customizer/wplms-customizer.php file : add_action(‘wplms_user_course_admin_member’,’custom_wplms_user_course_admin_member’,10,2); function custom_wplms_user_course_admin_member($student_id,$course_id){ global $bp,$wpdb; $start_time = $wpdb->get_var($wpdb->prepare(“SELECT date_recorded FROM {$bp->activity->table_name} WHERE type =’start_course’ AND item_id=%d AND component=’course’ AND user_id=%d ORDER BY id DESC LIMIT 1″, $course_id,$student_id)); if(!empty($start_time )) echo ‘<span style=”display:block”>Time Spent : ‘. human_time_diff(strtotime($start_time),strtotime(current_time( […]
WPLMS BP Social Connect
WPLMS BP social connect: click here to download
WPLMS Co-author Plus addon
WPLMS co-author plus addon : click here to download
Creating Course from front end using WPLMS Front end panel
Check this tutorial on how to setup : https://wplms.io/support/knowledge-base/wplms-front-end-update/ Refer below Video tutorial on how to use it :
WPLMS custom certificate code
Click here to download the plugin : Custom certificate code
WPLMS EDD Addon
Click here to download: EDD Addon
WPLMS DWQA Addon
Refer this link to download: Download DWQA addon