Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    BP Profile Search now expects a POST request to the members directory page. To make it handle a GET request too, you can modify the source code replacing the $_POST variable with $_REQUEST.

    Please note that the field names are in the form ‘field_xx’ where xx is the field numeric id, and that you have to add a ‘bp_profile_search’ field to the request. So your example would become:

    https://www.mysite.com/members?field_9=male&bp_profile_search=true

    Hope this helps!

    Thread Starter KS Web Designer

    (@ks-webdesignercom)

    Thanks for the help. So I replaced every instance of ‘$_POST’ with ‘$_REQUEST’ in the three plugin files. And the search and URL query are working – which is great.

    However, the top of the members page now displays the following PHP error message:
    Warning: Cannot modify header information – headers already sent by (output started at path/wp-content/plugins/bp-profile-search/bps-searchform.php:539) in /path/wp-content/plugins/bp-profile-search/bps-functions.php on line 205

    Can you help shed any light on what I might have done wrong?

    Thank you ??

    Thread Starter KS Web Designer

    (@ks-webdesignercom)

    Update: the error also occurs on the wp-admin page and stops the login box appearing (i.e. it’s just a white page with the error message, nothing else)

    Plugin Author Andrea Tarantini

    (@dontdream)

    That’s strange, because there is no line 539 in bps-searchform.php. Can you get more information, e.g. with a debugger?

    Thread Starter KS Web Designer

    (@ks-webdesignercom)

    That’s what I thought too. I can try, but I’m afraid I’m a bit of a novice at PHP so not quite sure what you might be looking for?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hotlink to search results’ is closed to new replies.