Forums

Join

Info

Search help

  1. Having tracked code through I ended up in class.bb-query.php


    if ( $search ) {
    if ( $_post ) {
    $s_value = esc_attr( $q_post_text );
    $s_name = 'post_text';
    $s_id = 'post-text';
    } else {
    $s_value = esc_attr( $q_search );
    $s_name = $s_id = 'search';
    }
    $r .= "\t<div><label for=\"$s_id\">" . __('Search term') . "</label>\n";
    $r .= "\t\t<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value' /></div>\n";
    $r .= "\t</div>\n\n";
    }

    Now this is affecting a second search, by changing search to post-text, and the result of a second search is always zero results.

    Can anyone explain why, and is there an easy way to change this, or should I just code my own search form?

  2. forgot to mention - using bbPress 1.1-alpha

  3. gave up and used my own function to replace the generated form and added it to a functions.php

  4. You must log in to post.