[buddypress-trac] [BuddyPress] #3240: search.php functionality needs updating

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Jun 10 12:17:08 UTC 2011


#3240: search.php functionality needs updating
---------------------+-------------------------
  Reporter:  DJPaul  |      Owner:  modemlooper
      Type:  defect  |     Status:  assigned
  Priority:  normal  |  Milestone:  1.3
 Component:  Theme   |    Version:  1.3
Resolution:          |   Keywords:
---------------------+-------------------------

Comment (by DJPaul):

 There is a fake "Search" component. Check out
 bp_core_action_search_site(). It basically redirects to
 http://ursite.com/groups/?s=query (if you wanted to search groups, for
 example). The groups component then has a piece of code to look at/for the
 's' query and filter the results on it. This is how the search box on the
 Directory screens work.

 In future versions, I want to build something like having a one search
 function to rule them all, which could be implemented into 1.3's component
 class. There is not enough time to do a proper job on 1.3 for this.

 We should be able to build something similar, but less elegant, for 1.3 --
 BP.org's search.php has all of the component loops in the same file, one
 after the other. We should do this the same, and just put a do_action at
 the bottom of the file which plugin authors can hook into.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3240#comment:22>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list