using $blogusers = get_users_of_blog(); to filter bp displayed info
-
In my non-ending quest to ‘mu’ buddypress so that each of my blogs can have their ‘own’ buddypress, I’ve come to a roadblock.
Basically my premise is simple.
1. I have buddypress multiblog set to true, so that each blog on my mu install can have bp enabled in their site itself.
2. I use the wpdev plugin so that members can register on a subdomain blog in mu without ever leaving the subdomain. That way they show up as a user of the blog as well as my blog id#1 default one.
3. The key is I only want bp information such as activity/members lists/groups/forums/etc. that were created by users of the blog in question to be displayed. (think ning)
So after days of reading through the wp codex, I think I found the function that will work:
$blogusers = get_users_of_blog();
It seems that is the function used by mu to display the users of a blog in the admin panel when viewing the blogs on my mu network.
Where I am stuck:
I’m guessing that the best approach is to filter all the bp functions for grabbing information via the get_users_of_blog so that only posts/members/groups/forums/etc that were generated by the users of the blog is displayed.
I’m curious if it’s possible to have a general ‘overall’ function that would filter everything in bp through the users of blog function. (what a dream that would be)
Or if I need to manually create a filter for all the bp functions independently, that would suck lol.
Does this look like a good approach to use to ‘mu’ buddypress, or is there an easier way to do this?
If I do indeed have to filter all the functions independently, I’m guessing that there are only a few that I actually need to deal with in order to filter the ouput. Is there a list of those functions that would need to be filtered, or am I on my own to read through all the bp code and figure out which to filter and which not to…
- The topic ‘using $blogusers = get_users_of_blog(); to filter bp displayed info’ is closed to new replies.