Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to add links search to header search form

  • Hi Guys,

    I was wondering if you could help me out adding the links search as a select option for the header form.

    Already looked at the code in bp-core-templatetags.php row 1022, but just a plain add of a links select doesn’t work. In that case the search gets redirected to members.

    Any thoughts?

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kee… figured it out.. so for anyone else interested.

    Add the following code to bp-core-php row 1774:
    `
    case ‘links':
    $slug = BP_LINKS_SLUG;
    $var = ‘/?s=';
    break;
    `
    And this to bp-core-templatetags.php row 1025:
    `if ( function_exists( ‘groups_install’ ) )
    $selection_box .= ” . __( ‘Links’, ‘buddypress’ ) . ”; `

    Note the function_exists tests a group install, which should actually look for buddypress links, but since I have groups enabled this check does the trick.

    This will add the option links to your header search form.

    Cheers, GooseNL

    GooseNL – Is there any way you can elaborate, I seem to be having trouble. When I add the code in 1774 it gives me a syntax error

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

You must be logged in to reply to this topic.