Free Unit Popup is not working Properly

Home Forums Legacy Support Support queries Setup issues Free Unit Popup is not working Properly

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #273161
    prateekgupta2009
    Participant
    I have tried the code given for free unit popup using this link: https://wplms.io/support/knowledge-base/open-free-units-in-a-popup-from-course-curriculum/   . I used the code given in Tested for WPLMS 3.9.8 When i click on free unit: https://prnt.sc/tcs8pf It shows me like above screenshot and it doesn't open player...I am using Vimeo for videos...
    #273305
    Veronica
    Moderator
    hi, please send all details regarding this like course url on which we can perform testing and the steps to replicate the same on your site
    #273308
    prateekgupta2009
    Participant
    This reply has been marked as private.
    #273503
    Jackson
    Blocked
    Hello, Please Go to wp_admin -> Plugins -> editor -> WPLMS customizer plugin and add the given code in the editor add_filter('wplms_curriculum_course_lesson','wplms_custom_course_curriculum_free_access_2',10,3); 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').'':'').''; } ?> jQuery(document).ready(function(){ jQuery('.ajax_unit').magnificPopup({ type: 'ajax', alignTop: true, fixedContentPos: true, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: 'my-mfp-zoom-in', callbacks: { parseAjax: function(mfpResponse) { mfpResponse.data = jQuery(mfpResponse.data).find('.unit_wrap'); }, ajaxContentAdded: function() { // jQuery('video,audio').mediaelementplayer(); jQuery('.fitvids').fitVids(); jQuery('.tip').tooltip(); jQuery('.nav-tabs li:first a').tab('show'); jQuery('.nav-tabs li a').click(function(event){ event.preventDefault(); jQuery(this).tab('show'); }); } } }); }); <?php return $html; } Thanks,
    #273504
    Jackson
    Blocked
    Hello, Please Go to wp_admin -> Plugins -> editor -> WPLMS customizer plugin and add the given code in the editor add_filter('wplms_curriculum_course_lesson','wplms_custom_course_curriculum_free_access_2',10,3); 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').'':'').''; } ?> jQuery(document).ready(function(){ jQuery('.ajax_unit').magnificPopup({ type: 'ajax', alignTop: true, fixedContentPos: true, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: 'my-mfp-zoom-in', callbacks: { parseAjax: function(mfpResponse) { mfpResponse.data = jQuery(mfpResponse.data).find('.unit_wrap'); }, ajaxContentAdded: function() { // jQuery('video,audio').mediaelementplayer(); jQuery('.fitvids').fitVids(); jQuery('.tip').tooltip(); jQuery('.nav-tabs li:first a').tab('show'); jQuery('.nav-tabs li a').click(function(event){ event.preventDefault(); jQuery(this).tab('show'); }); } } }); }); <?php return $html; } Thanks,
    #273506
    prateekgupta2009
    Participant
    This reply has been marked as private.
    #273728
    Jackson
    Blocked
    Hello, Follow this tip : https://wplms.io/support/knowledge-base/open-free-units-in-a-popup-from-course-curriculum/ and In step 4 you can add the script in wp-admin -> wplms -> Footer -> google anaylitics code :

    <script>

    jQuery(document).ready(function(){

    jQuery('.ajax_unit').magnificPopup({

    type: 'ajax',

    alignTop: true,

    fixedContentPos: true,

    fixedBgPos: true,

    overflowY: 'auto',

    closeBtnInside: true,

    preloader: false,

    midClick: true,

    removalDelay: 300,

    mainClass: 'my-mfp-zoom-in',

    callbacks: {

    parseAjax: function(mfpResponse) {

    mfpResponse.data = jQuery(mfpResponse.data).find('.unit_wrap');

    },

    ajaxContentAdded: function() {

    // jQuery('video,audio').mediaelementplayer();

    jQuery('.fitvids').fitVids();

    jQuery('.tip').tooltip();

    jQuery('.nav-tabs li:first a').tab('show');

    jQuery('.nav-tabs li a').click(function(event){

    event.preventDefault();

    jQuery(this).tab('show');

    });

    }

    }

    });

    });

    <script>

     
    #273744
    prateekgupta2009
    Participant
    This reply has been marked as private.
    #273966
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #273978
    prateekgupta2009
    Participant
    Its not showing properly on mobile: https://prnt.sc/tfe5li Free Unit PopUp is not responsive...  And the size of Video is taking entire screen space however it should take screen size  Course Preview Video Popup in header.. Also please check the mobile view size for free unit popup...
    #274157
    Anshuman Sahu
    Keymaster
    Yes in mobile we are having some issues .The video responsiveness is not working .I will try to fix it please provide time .Ping back for reminde r.
    #274501
    prateekgupta2009
    Participant
    Just a reminder if it can be resolved little early because i have to make my site live in few days and its an import feature...
    #274784
    Anshuman Sahu
    Keymaster
    Hi this is fixed now
    #274785
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #275982
    prateekgupta2009
    Participant
    On mobile view why its showing white space on top & bottom when there is no content... it should only show the video ...
Viewing 15 posts - 1 through 15 (of 21 total)
  • The topic ‘Free Unit Popup is not working Properly’ is closed to new replies.