BuddyBoss Home – Web › Support Forums › General › BuddyPress (general issues) › Block Members Page
Tagged: error 500
- This topic has 5 replies, 3 contibutors, and was last updated 9 years, 7 months ago by Miguel.
-
Question
May 1, 2015 at 4:15 pm #39621@chiefgeekSo really getting into the boss theme and buddypress in general. I didn’t realize all day yesterday that everything defaulted was in the bplegacy file 🙂 Geez… I think since I am new that wasn’t obvious too me. That said, Boss theme is boss and I get now that we have to overwrite the bp-legacy files in a plugin or child theme or bp-custom. Okay so to the question.
I am creating a Beta version of my site and I would like to really control it initially. So basically I only want people to have access to friends that have been set for them. I thought the best way to do this would be for me to basically create a public and private (friends only) profile. The problem is… this is harder than I thought. I’d like to really secure it so that someone can only view, search, and really… do anything with a friend only. However, just by going to examplesite.com/members linke we can view people’s name and picture, etc. Can I block this members page OR better yet… block access to all people that are not connections (friends)? Then I figured as an administrator, maybe I could utilize the profile switching tool to go into accounts and add friends manually given admin privaledges. Later down the road we will restrict friends by member type and other methods, but for now, it would be great if we could just lock someone down and only allow them access to their friends. So this means no list of people outside the friends circle, no search, no nuthin 🙂
Any help would be greatly appreciated.
Answers
May 3, 2015 at 12:36 pm #39694@jeanpierreyou say a lot, let’s try to focus…
1- trying to control who try to register: Administration > Options > General > Anyone can register (deactivat this)
1a- as so, you can control your own members by hand, and nobody else will be able to access the site with option #2 below…
2- trying to control who can access Buddypress pages: https://wordpress.org/plugins/buddypress-members-only/
May 4, 2015 at 7:47 am #39713@chiefgeekThank you Jean-Pierre. I do have a bit of ADD going on there 🙂 So I did the above recommendations. Thank you.
Can I show different profile groups to different member types? My goal is to allow sign up of Clients and Customers. I would have two different membership “types” if you will. So if someone signs in/up as a client they would fill out one profile group and if they sign up as a customer there would be a different profile group.
Would you recommend using the new Member Types introduced in 2.2? Do people just generally rely on roles and capabilities to accomplish this sort of thing? Specifically looking to have two member types or profiles types… any advice or direction would be great.
May 4, 2015 at 8:07 am #39717@jeanpierreEverything depend on how these members come to your site. if it is an open site, you will have a lot of visitors, so it would be complicated to edit them by hand to add their member-type.
some themes already have “different profiles for different types”… but not Buddyboss yet *(i suppose i can fix something)… look at LMS: http://wedesignthemes.com/themes/dt-lms/login/ … Learning Systems usually let teachers and students register in the same way, but gives them different profiles.
May 4, 2015 at 5:24 pm #39779@chiefgeekYeah, that is exactly what I want. I have a closed site. So it’s not too bad. I don’t know if this is Hacky… but here is what I have done at the top of my profile loop and something similar in my EDIT loop.
Basically, I see if they are a member of a certain type and if they aren’t I go with the default group and exclude the group I don’t want seen. If they are of type company… well I exclude that group. I use exclude groups in bp_has_profile (like this): bp_has_profile(‘exclude_groups=’.$exclude_group)
I am sure this has some problems… but it works for now and I’m getting to know buddypress better. I was just curious what the proper way to do this is… just not sure where to start and I think bp_get_member_type is so new… no one is really using it yet. Anyhow, this is what I did for now. Let me know how it is supposed to be done. Would love to see how that one site did it.
<?php $member_type = bp_get_member_type( bp_loggedin_user_id() ); $exclude_group = 3; if ($member_type == 'company') { $exclude_group = 4; } ?> <?php if ( bp_has_profile('exclude_groups='.$exclude_group) ) : ?>
May 8, 2015 at 9:42 am #39959@lanchiHi, how are you.Buddyboos you upgrade to the latest version and wordpress but when I go to some menu Profile I get 500 error, such as:
error 500
Wall
Profile
Notifications 0
Messages 4
friends 111
Groups
- The question ‘Block Members Page’ is closed to new replies.