Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modifying the search bar to add events search

  • Profile photo of shaisimchi
    shaisimchi
    Participant

    @shaisimchi

    Hi,

    I am running wordpress MU with buddypress on top.

    I have added the bp-events plugin.

    Currently the search bar will only search members and groups and I would like for it to search through events too.

    When I choose members in the dropdown list with the string x I see the following URL being called: http://mydomain.com/wpmu/members/?s=x

    When I choose groups in the dropdown list with the string y I see the following URL being called: http://mydomain.com/wpmu/groups/?s=y

    I have edited the file that builds the dropdown list and now it also contains the Events option but when I choose that option for some reason the URL being caled when I search for event z is: http://mydomain.com/wpmu/members/?s=z

    I am not sure what I am doing wrong but it seems after my debugging that a parameter called _wp_http_referer is not getting the right value when the Events option is selected. instead of being wpmu/events/?s=z it is changing to wpmu/members/?s=z and this is what causing the URL to be wrong.

    It would be great if someone can point me to a solution or to what I am doing wrong.

    Thanks,

    Shai

Viewing 7 replies - 1 through 7 (of 7 total)
  • Profile photo of shaisimchi
    shaisimchi
    Participant

    @shaisimchi

    Anyone has any ideas here?

    Thanks,

    Shai

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Have you talked to the author of bp-events?

    Profile photo of shaisimchi
    shaisimchi
    Participant

    @shaisimchi

    I am waiting for a response on his forum too but I am sure someone else have changed this search bar to contain something other than just the default.

    Profile photo of shaisimchi
    shaisimchi
    Participant

    @shaisimchi

    I was able to figure it out on my own. Thanks.

    Profile photo of designodyssey
    designodyssey
    Participant

    @designodyssey

    Please share. Others might have this challenge in the future.

    Profile photo of Erwin Gerrits
    Erwin Gerrits
    Participant

    @egerrits

    Sorry, I was too busy pulling my hair out trying to figure out how to make AJAX work in 1.2…

    Please give us your solution so I may be able to implement it as standard…

    Profile photo of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Two places you will want to hook into…

    The bp_search_form_type_select filter will let you modify the drop down…

    The bp_core_action_search_site filter will let you filter the results…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Modifying the search bar to add events search’ is closed to new replies.
Skip to toolbar