wp-pro-quiz is not working inside app

Home Forums Legacy Support 4.0 Bugs & Issues wp-pro-quiz is not working inside app

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #372491
    No One
    Spectator
    Hello, I'm using wp-pro-quiz inside units with 3.x and it was working, now can't start any quiz e.g. Nothing happins when pressing Start quiz, It's urgnent, I hope you can help
    #372492
    No One
    Spectator
    This reply has been marked as private.
    #372659
    MrVibe
    Keymaster
    Yes, this can be resolved with 4.1 we just ned to disable WP admin - WPLMS - BuddyPress - use WP Login
    #372661
    MrVibe
    Keymaster
    Can you update the theme and make sure this is there ? I uploaded the latest theme but something is overriding this seciotn as your child theme seems to be customising the options panel. https://prnt.sc/1vx4v31
    #372677
    No One
    Spectator
    Theme updated, unfortunately, this doesn't fixes the issue
    #372800
    Anshuman Sahu
    Keymaster
    Hi you can create the unit with elementor(add a elementor type unit ) and then can add the pro quiz to it , then it will work fine .
    #372855
    No One
    Spectator
    This reply has been marked as private.
    #372860
    MrVibe
    Keymaster
    Checking site...
    #372957
    No One
    Spectator
    A week now and not resolved
    #372999
    Anshuman Sahu
    Keymaster
    Hi please try to add this custom code in wplms-customizer.php file in wplms customizer plugin :
    add_Action('rest_api_init',function(){
        add_filter('bp_course_api_get_user_single_quiz_data',function($quiz_data, $request ,$user_id){
    
            if(strpos($quiz_data['content'], 'wp-pro') !== false){
                
                add_filter( 'show_admin_bar' , '__return_false' );
                add_action('template_include',function($template){
                  ob_start();
                  ?>
                      <!DOCTYPE html>
                      <html <?php language_attributes(); ?>>
                      <head>
                      <meta charset="<?php bloginfo( 'charset' ); ?>">
                      <?php
                          wp_head();
                      ?>
                      </head>
                      <body <?php body_class(); ?>>
                      <?php
                      if ( have_posts() ) : while ( have_posts() ) : the_post();
                          the_content();
                      endwhile;
                      endif;
                      ?>
                      <?php
                      wp_footer(); 
                      ?>
                      </body>
                      </html>
                  <?php
                  echo ob_get_clean();
                  exit();
                });
    
              $quiz_data['content'] = '<div class="wplms_iframe_wrapper"><iframe src="'.get_permalink($quiz_data['id']).'"></iframe></div>';
            }
            return $quiz_data;
        });
          
    });
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘wp-pro-quiz is not working inside app’ is closed to new replies.