Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I got this as well, it seems like the zip package linked on the plugin setup page has an error in it.

    I went into mod_parser.php and above the call to set_file, i did echo $file or whatever the variable is. It’s trying to parse a file that doesn’t exist. The install.xml file inside .store/mods/wp-united-release-phpbb points to a directory that is not valid (I believe “contrib/” was left off of the “0.9.2.5_or_v0.9.2.6-fresh-install” one).

    I’m having the same issue… the page gets created with just “<!–wp-united-phpbb-forum–>” in the body, but it doesn’t actually do anything. Is it supposed to be a short code? Or is there some JavaScript that’s supposed to find that comment and replace it with phpBB?

    Using the Theme Integration seems to work OK though, which I’m guessing serves the same purpose?

    Thread Starter langdonx

    (@langdonx)

    I kind of hacked it in, except now when I search for something that doesn’t exist within the FAQs section, the “search again” feature will remove the search_link parameter and subsequent searches will search every post type.

    Any ideas?

    In functions.php, here’s what I added:

    /*
     * faqs search filter
     */
    function searchfilter($query) {
        if ($query->is_search) {
            if (strpos($_GET['search_link'], 'faqs') !== false) {
                $query->set('post_type',array('qa_faqs'));
            }
        }
        return $query;
    }
    
    add_filter('pre_get_posts','searchfilter');
    Thread Starter langdonx

    (@langdonx)

    Ahh, that makes sense. Thanks for the clarification!

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