Replies
It works! One related question…it seems that the custom.php file causes my media popup for buddypress polls to appear behind the modal for front-end post submission…do you know how I can make the media upload modal popup over the front-end submission instead of behind?
Yes, in this screen you will see 3 profile type options: ‘—-‘, ‘none’, and ‘practicing’. And I’d like to either remove the ‘—-‘ option from the dropdown or in my custom.php script make this option the one that cannot send replies.
https://ibb.co/3pjM4ZyNOTE: the ‘—-‘ seems to be a default or “null” profile type which I can’t seem to remove. Ideally I would just remove it.
Any suggestions? Also I don’t see the Dashboard >Users>Profile Field area in my wordpress dashboard. Please let me know what I should replace the ‘none’ with in order to make the default the “‘none'”
No, I think I may not be clear. Sorry. Below is the bp-custom.php script ya’ll helped me to create that restricts “none” profile type’s reply comments. And my question is how to I block the “Default” option rather than the “none” option. I tried leaving it blank like (‘ ‘) and the website crashed, so…how do I do that?
<?php
function buddydev_user_can_reply_on_comment( $can ) {
// Replace ‘student’ with your member type.
$is_restricted = bp_has_member_type( get_current_user_id(), ‘none’);if ( $is_restricted ) {
$can = false;
}return $can;
Thank you it worked, I just added it to my file. Easy pezy.
Hi there,
Everything works, I guess I just didn’t add the profile type to each user, that was the confusion.
Ok, thank you. And I would post this as a bp-custom.php file under the content>plugins section? Thank you.
Hi there,
Thank you so much for the quick response! I tried the solution and it appears not to be working, but guessing it is because of Buddyboss rather than it wouldn’t work in a vaccum. So not sure what to do next