Group Mods

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

BP Member Filter (51 posts)

Started 2 years, 2 months ago by: John James Jacoby

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    Super preliminary “you broke it you bought it” edition… This plugin for BuddyPress will allow you to filter users by XProfile fields when viewing your members directory.

    http://johnjamesjacoby.com/files/2009/11/bp-filter.zip

    Just waiting for the WP plugin repo before this goes there.

    index.php and members-loop.php will go in…
    themes/bp-default/directories/members/
    …or in the same location in your custom theme. They will *need* to be modified to fit the xprofile fields you intend to filter users by. I’ve included some examples in index.php.

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    Updated: zip file added until repo is done.

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    Found my first bug: ajax’ed pagination borks it. Bug fixes to follow! Haha!

  • Profile picture of stwc stwc said 2 years, 2 months ago:

    I want to thank you for this, but I don’t even know what ‘xprofile fields’ refers to! ;-)

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    Extended Profile – Basically the profile fields you setup for your audience

    An example would be here at buddypress.org, if you wanted to search for people who put “puppies” in their interests field. Rather than searching for puppies and possibly getting someone with the name “I Love Puppies” it will isolate your search down to the field you’re searching in.

    Clear as mud? Haha

  • Profile picture of Xevo Xevo said 2 years, 2 months ago:

    I believe the xprofile fields are the fields like “name”, so basically your users their account details.

    I like the fact that you can order your users like this, A to Z is kinda… lame and outdated. I’ll definately try this out later. Thanks JJJ.

    Edit: JJJ was 51 seconds faster then me. :)

  • Profile picture of stwc stwc said 2 years, 2 months ago:

    Sweet, gotcha. I’ll be playing with this later, if the beer doesn’t intervene. Thanks!

    Edit: Oooh, awesome, so if I have users fill out a City field, say, we could optionally sort/group the Members page (on the fly?) to show people in each city that’s been entered, for example? That will kick all kinds of butt!

  • Profile picture of Jeff Sayre Jeff Sayre said 2 years, 2 months ago:

    jjj-

    Nice job! I’ll give this a whirl this weekend.

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    There’s a small problem in the logic filter, so the results are sometimes not 100% accurate. It happens when searching for multiple fields, so that will get fixed after this weekend also.

  • Profile picture of nexia nexia said 2 years, 2 months ago:

    suggestion: popular keywords. similar to auto-tags based on post content, would be amazing for big sites to have the same for profile fields, so we have a cloud (or a dropdown) of popular profile field answers.

    challenging i suppose.. lol

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    Actually not really… I planned on filtering longer list items by only populated fields. Like “Country” is a good example that may have hundreds of options, but you may only have 10 or so actually in use.

    Good suggestion though, and it will probably happen in time. :D

  • Profile picture of nexia nexia said 2 years, 2 months ago:

    i installed it… and it is the best example possible for the suggestion i made for a /bp-plugins/ directory… we can not actually install this plugin on the fly with the installer, we need to move files around. we also have to replace two files… that could be a problem if we have another product that need to overwrite these 2 files again. (adding actions into these files is needed though)

    suggestion:

    bp-profile-setup : when we setup some custom field, would be good to have a checkbox “is searchable”… so we can filter or search thru these fields only when possible. this could be good if we want to avoid some details to be trackable…

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 2 months ago:

    @nexia, you’re exactly right and thinking in the right direction.

    What you’ll probably start to see are more and more plugins coming out that eventually sneak their way into the core, in one way or another. Something like an elaborate and advanced user/group/blog filtering system is a little too fancy and needs access to core variables and functions in too many places to only be a plugin for very long.

    This plugin is actually on the core roadmap for 1.3 (I think?) so it’s likely it will be worked into the core. Some of the smaller plugins (from me) in the coming weeks will probably be sneak peaks into the future of BP core that I think need testing and feedback.

  • Profile picture of Anointed Anointed said 2 years, 2 months ago:

    Is this the type of plugin that I need to display different groups of members and members activity on each of my blogs?

    Meaning, I am still trying to figure out how to give each of my blogs on wpmu their ‘own’ buddypress. (only show members/groups/activity streams of the blog being displayed –think ‘ning’ where each site has their own ‘bp’ yet all members are still part of the ning community)…

    Is that even possible with bp, and if so, is this the type of plugins I should be looking into for this type of functionality?

    thnx

  • Profile picture of designodyssey designodyssey said 2 years, 2 months ago:

    @jjj, Glad to hear it. I think BPContents needs to be in core in some fashion. It’s basically content types for BP. It’s important in making WP a more flexible CMS.

    I have all kinds of user levels/types and group types I’m thinking of and each has different permissions/capabilities, not to mention look and feel. I don’t see it explicitly in the roadmap, but given the plugin development already done, I’m voting for it – as if my vote counts. :-)