4 years, 7 months ago
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.
Kee… figured it out.. so for anyone else interested.
Add the following code to bp-core-php row 1774:
$slug = BP_LINKS_SLUG;
$var = ‘/?s=';
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.
4 years, 3 months ago
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
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service