Group Mods

  • Profile picture of Hugo
  • Profile picture of r-a-y
  • Profile picture of @mercime

Advanced Search plugin needed (35 posts)

Started 2 years, 9 months ago by: TR123

  • Profile picture of TR123 tr123 said 2 years, 9 months ago:

    Hi

    I understand from a previous post I made that an advanced search is not yet available. What I need is a search plugin where user can make more than one search for a member. For example you could search for members, by age, location, hobby in one search (taking these things from created fields in profile.

    I would be happy to pay towards for this as a paid plugin or make a donation if its something other people are looking for to.

  • Profile picture of Paul Gibbs Paul Gibbs said 2 years, 9 months ago:

    I am working on something but it’s gonna be ages until it’s ready

  • Profile picture of h4x3d h4x3d said 2 years, 5 months ago:

    hello,

    sorry to bump this up,
    but I need the same as the initial OP,
    I would also be able to pay up to $50 for a solution that would allow searching by different search terms.

  • Profile picture of h4x3d h4x3d said 2 years, 5 months ago:

    I think what I need is more or less http://buddypress.org/forums/topic/bp-member-filter

    and I am confident this is progressing soon or later.

  • I’m willing to add $100 to this project!!!

  • Profile picture of gregfielding gregfielding said 2 years, 1 month ago:

    Is this plugin still being updated? Or worked in to the core of 1.3?

  • Profile picture of Paul Gibbs Paul Gibbs said 2 years, 1 month ago:

    It was never finished, as other things came up. It’s something I want to do after I update another plugin.

  • Profile picture of holdenandmason1 holdenandmason1 said 2 years, 1 month ago:

    I was able to make an advanced search page by manipulating this line in bp-core-classes.php.

    $sql['where_searchterms'] = “AND pd.value LIKE ‘%%$search_terms%%’”;

    Example: Let’s say you have a profile field called “Location” whose field_id in the bp-xprofile-data table is 5, and you have a profile field called “Gender” whose field_id is 12. Then to search all females whose location start with “Los” you could replace that line above with:

    $sql['where_searchterms'] = “
    AND
    EXISTS (
    SELECT *
    FROM wp_bp_xprofile_data
    WHERE
    wp_bp_xprofile_data.value like ‘los%%’
    AND wp_bp_xprofile_data.field_id =5
    and wp_bp_xprofile_data.user_id=pd.user_id
    )
    AND
    EXISTS (
    SELECT *
    FROM wp_bp_xprofile_data
    WHERE
    wp_bp_xprofile_data.value = ‘FEMALE’
    AND wp_bp_xprofile_data.field =12
    and wp_bp_xprofile_data.user_id=pd.user_id
    )
    AND pd.field_id=1

    Of course, to make a fully functional advanced search page there’s a lot more than just that, but it demonstrates the basic idea. If anyone finds this helpful or wants an elaboration, let me know.

  • Profile picture of stwc stwc said 2 years, 1 month ago:

    It’s something I want to do after I update another plugin.

    Achievements? ;-) *crosses fingers*

  • Profile picture of dre1080 dre1080 said 2 years, 1 month ago:

    @holdenandmason1 could you further elaborate this with a proper code how i could search the entire site even groups, profiles, members etc..??
    thanks

  • Profile picture of CleboMa CleboMa said 2 years, 1 month ago:

    I would also make a donation on such a plugin, I need the same as the initial OP, so maybe a developer can get a hand on this.

  • All those wanting this plugin, please contact me. Perhaps if we each put in an equal amount, we can pay to get this created via freelancer.com what do you think?

  • Profile picture of holdenandmason1 holdenandmason1 said 2 years, 1 month ago:

    @dre1080, my post was about creating an advanced search page to search members based on the profile fields. Like the original poster said, “For example you could search for members, by age, location, hobby in one search (taking these things from created fields in profile.”

    You could use a Google search to do what you’re asking for.

  • Profile picture of r-a-y r-a-y said 2 years, 1 month ago:

    BP Member Filter is a plugin by JJJ that does what you want:

    http://wordpress.org/extend/plugins/bp-member-filter/

    I’ve tested this back in the BP 1.1.3 days and it worked to some extent.
    Haven’t tested this with BP 1.2.

    You could also potentially use the “Search Engine” plugin by Scott Kingsley Clark:

    http://wordpress.org/extend/plugins/search-engine/

    It works as a spider so it indexes all content on your site (so I’m guessing it would include BP content)… I should state that I haven’t used this though.
    But it wouldn’t offer the “advanced search” functionality you’re looking for. More like a sitewide search.

  • Profile picture of CleboMa CleboMa said 2 years, 1 month ago:

    Unfortunately the plugin “BP Member Filter” is a plugin by JJJ is not working anymore, read this thread: http://wordpress.org/support/topic/374052