• Resolved teeboy4real

    (@teeboy4real)


    Hello,

    Please can you add support to enable the activity filter to work for logged out users

    thanks

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

    (@shawfactor)

    Ive now added a filter to enable the behaviour you want.

    You need to upgrade to the latest version

    Then add something like this to functions.php of your child theme

    add_filter(‘lh_dequeue_buddypress_should_we_deqeue’, ‘petes_deqeue_function’, 10, 1);

    function petes_deqeue_function($return){

    if (bp_is_activity_component()){

    $return = false;

    }

    return $return;

    }

    Thread Starter teeboy4real

    (@teeboy4real)

    Hello,

    I applied the filter in my themes functions.php file but it did not work you can check page at https://www.nigerpress.com/news-feed/ This is the code I added.

    add_filter(‘lh_dequeue_buddypress_should_we_deqeue’, ‘petes_deqeue_function’, 10, 1);
    function petes_deqeue_function($return){
    if (bp_is_activity_component()){
    $return = false;
    }
    return $return;
    }
    Plugin Author shawfactor

    (@shawfactor)

    I′m not sure but I don′t think the problem is with my plugin as:

    1. I have tested the script on a test site here and it works:

    https://northerntouch.org/activity/

    (note for those looking in future weeks it may not work as I use this site for testing etc)

    2. When I look at your debug consol you are getting hover 20 of errors. In fact it looks like the service worker from the suoperpwa plugin is hanging (and service workers can interfere with loading of assets)

    3. The filter you mention is not native buddypress functionality anyway.

    Some things to check though

    1. Make sure you are on the latest version of my plugin

    2. Use single quote for the code (the code you pasted as typographical quotation marks), this might be an artifact of copying and pasting though.

    3. deactivte your other plugins and use standard buddyoress and a basic theme.

    As I said there are so many rubbish plugins and themes out there that can caue dowstream plugins so debugging these thinsg is tricky.

    Plugin Author shawfactor

    (@shawfactor)

    I am resolving for good order but will still monitor the thread and reopen if necessary.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable activity filter to work’ is closed to new replies.