bjorngus (@bjorngus)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • In reply to: Query error

    bjorngus
    Participant

    @bjorngus

    Ok, i have something that seems to work, try it out if you want to, feel free to give me feedback on it.

    function fix_default_search_string_is_bool($args)
    {
        //bbpress gives FALSE as search string causing no replys to show, this fixes it.
        if ($args['s'] === false) {
            unset($args['s']);
        }
        return $args;
    }
    
    add_filter('bbp_after_has_replies_parse_args', 'fix_default_search_string_is_bool');
    In reply to: Query error

    bjorngus
    Participant

    @bjorngus

    Hi, i have the same error after only updating wordpress, not bbpress. Any solution to this ?
    SQL is triggered in bbp_has_replies in wp-content/plugins/bbpress/includes/replies/template.php but it has not changed.


    bjorngus
    Participant

    @bjorngus

    I copied the code from the bbpress template and it worked perfect. Thanks!


    bjorngus
    Participant

    @bjorngus

    Oh thanks great. My bbpress version was edited so that button is not added to the form. But i guess i have to add it with some code. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)