Web 2.0, Php, MySQL, HTML, CSS, Wordpress, Javascript, iTouch iPod, iPhone, Adobe…
29 Dec
This is something i’ve been working on for about a week off and on. The holidays has given me some rare time to devote to this. Once the new year starts, i’m going to be toast.
I have adapted the WP AutoSuggest plugin to work within certain search boxes within the BuddyPress main template. See screenshots below. I’m doing a little beta testing (right now the plugin does not have controllable options in the admin, but i’m considering adding a few just to get it out the door). Bringing this up now in case there are any big “must have” requests.
FYI: I wanted to make this work with the search box in the upper left. And someday I (or someone else) might. But it’s difficult because (1) the box is everywhere - even on BP profile templates and (2) it’s difficult to get the right filtered results with the html dropdown box there. Some fancy javascript might be required, but i’m just not into trying to figure that out at the moment.
Anyways, hopefully I can throw this out to the BuddyPress community soon.
Tags: Ajax, BuddyPress, Wordpress

9 Responses for "BuddyPress Plugin: AutoSuggest For Search Boxes"
Hot!
Thanks for that lengthy reply!
Is there anyway to override or change the search box in the header without changing core files?
oh, that’s really great thing! keep doing it better!
Maybe, you could just filter the functions that creates searchbox? And replacing it with your own form? I’m not sure that it’s posible, but just an idea…
this is a very interesting plugin! good work!
when it’s available a download?
Would love to beta this for you, just let me know!
In the latest revision you can use the filter “bp_search_form” to do whatever you like to the top header search form.
Andy,
I see that in the latest build but how do you override that function without touching the core files? Do you have to edit the actual header.php file in the buddypress member theme?
David:
If you create a custom function you can rebuild the search form:
function custom_search_form() {
?>my search form html<?php
}
add_filter( ‘bp_search_form’, ‘custom_search_form’ );
Any update on the search plugin/component? It looks fantastic!
Leave a reply
You must be logged in to post a comment.