Support » Plugin: Groups » WPLMS Theme: Content accsess to Quizes

  • Please, help me!
    I´m using the Theme “WPLMS”. With Plugin “Groups” I can´t see the question and marked answer in quiz results.
    By deactivating the plugin all Information are available.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kento

    (@proaktion)

    Hi,

    Thanks for reporting this conflict. I’ve asked them to provide access to their plugin so we can check the issue.

    Cheers

    Ok, we have already tested groups plugin with Wplms and it works. Just check that the questions are not under any restriction. The quiz results fetch questions and apply the_content filter, which might be used by groups plugin to restrict the view of the question content.

    @kento: how to share the access ? A sample site with groups and Wplms installed ?

    Sorry but it works not really good. I can see just the correct answer and marks (total and obtained). But: i can´t see the question itself and the marked answer!!! I tried without and within restriction for quizes and questions. Result is always the same.

    @alenastryhina : This almost confirms that the groups plugin is filtering the_content filter which only applies on the question content. The fix here would be to remove the groups function on the_content filter on the quiz results.

    Temporary Fix : Try adding this code in your child theme functions.php file, it will remove all the interactions on the_content filter which is rendering the question content:

    add_action('template_redirect',function(){
        //BuddyPress function to check if user is accessing here profile : 
        if(function_exists('bp_is_my_profile') && bp_is_my_profile()){
            //remove the "groups" function restricting the user's access.
            remove_all_filters('the_content');
        }
    });

    Note : You might also need to force clear the quiz cached results, so try taking a new quiz after applying the above fix and checking its results.

    ————

    @kento : Here’s what I suggest as a final fix:

    
    add_action('template_redirect',function(){
        //BuddyPress function to check if user is accessing here profile : 
        if(function_exists('bp_is_my_profile') && bp_is_my_profile()){
            //remove the "groups" function restricting the user's access.
            remove_filter('the_content','GROUPS CLASS/FUNCTION RESTRICTING THE ACCESS',PRIORITY);
    
        }
    });
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPLMS Theme: Content accsess to Quizes’ is closed to new replies.