[buddypress-trac] [BuddyPress Trac] #6286: Directories filtered by member roles

buddypress-trac noreply at wordpress.org
Thu Apr 2 02:10:57 UTC 2015


#6286: Directories filtered by member roles
--------------------------+------------------
 Reporter:  sooskriszta   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.3
Component:  API           |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by imath):

 Hi Boone,

 First i like very much the idea of filtering member types thanks to the
 url. I'm doing this kind of thing for the plugin [https://github.com/imath
 /bp-groups-taxo/blob/master/bp-groups/bp-groups-tag.php#L135 BP Groups
 taxo] hooking `bp_actions` at a 1 priority. For another
 [https://github.com/imath/bp-mt-extended plugin] i wrote about member
 types i've chosen the Ajax road.

 I guess the new `has_directory` argument is to use member types for admin
 management only purposes. Very nice idea :)

 - changing from 'bp_init' to 'bp_register_member_type' hook (i'll need to
 update my plugin! and others will also need to do so), but i guess if it's
 still hooked to 'bp_init' then only the url feature will not be available
 ?
 - About manipulating `bp_core_set_uri_globals()`, i've quickly checked
 something and surely did something wrong, but it seems bp_do_404 is not
 avoiding you to hook `bp_actions`: the quickdraft.patch allowed me to
 display the members directory as soon as a registered member type was in
 the url.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6286#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list