Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modifying the search bar to add events search


  • 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)
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