MyCred Video Shortcode Format

Home Forums WPLMS AddOns VideoVibe MyCred Video Shortcode Format

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219667
    petestuckey
    Spectator
    Hi Guys, I'm using mycred with the Vimeo add on but I'm struggling to make my videos appear when using the shortcode: For example, I want this video link to use the mycred hook. It's a course overview video: https://vimeo.com/342855676 Can you tell me the correct format for the short-code to make the video appear please? I'm currently using this with no joy... [mycred_video id= "https://vimeo.com/342855676"] I would like to award points for videos in courses too so if i can get the format confirmed i can do the rest ;-) Thanks in advance Pete
    #219713
    petestuckey
    Spectator
    Ok, I have realised what i was doing wrong there i think. [mycred_video id="342855676"] seems to work but it makes the video about half of the size of the WPLMS shortcode. How can i make it the same size. If you log into my site and go to course Making The Most of Every Call, you will see what i mean. In the second unit I have used both shortcodes, mycred below WPLMS https://prnt.sc/oji46s Thanks
    #219714
    petestuckey
    Spectator
    Also is it possible to enforce seek lock if you mycred video shortcode?
    #219922
    Anshuman Sahu
    Keymaster
    Well it wont work in this way . You have to create mycred points award criteria as shown in this tip : https://wplms.io/support/knowledge-base/wplms-mycred-add-on/ for completing the unit and enable auto mark unit complete in videovibe settings . and then please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :       add_filter('wplms_unit_mark_complete','wplms_assignments_force_unit_complete123',11,3);   function wplms_assignments_force_unit_complete123($mark_unit_html,$unit_id,$course_id){     $unit = get_post($unit_id);     $flag = has_shortcode( $unit->post_content, 'wplms_vimeo' );     if($flag){         return '<a href="#" id="mark-complete" data-unit="'.$unit_id.'" class="unit_button hide">'._x('Mark Unit Complete','vibe').'</a>';     }     return $mark_unit_html; }
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘MyCred Video Shortcode Format’ is closed to new replies.