Search Results for 'private'
-
Search Results
-
Topic: installing and settings…
Hi,
I think Buddypress + bbpress would help me. I am looking for a solution like this:
A want to have a list of members and groups. All groups will be private of hidden.
Further I will give each group its own forum. I am using bbpress for this.I want to be sure each member can only see the forums from own group. How can I get it done? or does it already work this way?
Trying it out I have seen that some group forums could be accessed from the forum root. How can I avoid this?Thanks a lot for taking the time to help!
Cheers!
Hello,
I’m trying for several hours to add Bootstrap classes
btnandbtn-primaryto the leave group button but I cannot understand why my modifications inbuddypress-functions.phpare not taken into account.Text search for
group-buttonandleave-groupCSS classes returns a unique file calledbuddypress-functions.php. I modified this file inplugin/buddypress/..., inmy-theme/buddypress/buddypress-functions.phpand inmy-child-theme/buddypress-functions.phpbut for some reason my modifications in this file are not taken into account.When I remove random portion of the code in the file
buddypress-functions.phpof my child theme then BP returns errors so this prove to me the file is read.Do you have an idea what is wrong ?
Please find the portion of the code that set the CSS classes in
buddypress-functions.php:
(I replacegroup-buttonbybtn btn-primarybut no effect 🙁/** * Join or leave a group when clicking the "join/leave" button via a POST request. * * @since 1.2.0 * * @return string HTML */ function bp_legacy_theme_ajax_joinleave_group() { // Bail if not a POST action. if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) return; // Cast gid as integer. $group_id = (int) $_POST['gid']; if ( groups_is_user_banned( bp_loggedin_user_id(), $group_id ) ) return; if ( ! $group = groups_get_group( array( 'group_id' => $group_id ) ) ) return; if ( ! groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) { if ( 'public' == $group->status ) { check_ajax_referer( 'groups_join_group' ); if ( ! groups_join_group( $group->id ) ) { _e( 'Error joining group', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; } } elseif ( 'private' == $group->status ) { // If the user has already been invited, then this is // an Accept Invitation button. if ( groups_check_user_has_invite( bp_loggedin_user_id(), $group->id ) ) { check_ajax_referer( 'groups_accept_invite' ); if ( ! groups_accept_invite( bp_loggedin_user_id(), $group->id ) ) { _e( 'Error requesting membership', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; } // Otherwise, it's a Request Membership button. } else { check_ajax_referer( 'groups_request_membership' ); if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id ) ) { _e( 'Error requesting membership', 'buddypress' ); } else { echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button disabled pending membership-requested" rel="membership-requested" title="' . __( 'Request Sent', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>'; } } } } else { check_ajax_referer( 'groups_leave_group' ); if ( ! groups_leave_group( $group->id ) ) { _e( 'Error leaving group', 'buddypress' ); } elseif ( 'public' == $group->status ) { echo '<a id="group-' . esc_attr( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>'; } elseif ( 'private' == $group->status ) { echo '<a id="group-' . esc_attr( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>'; } } exit; }Topic: Disable public message
I’m wanting to look at the code for bp_member_header_actions so I can write a function based on it.
It’s the action that collectively outputs the avatar, add friend and private message buttons on a users profile page.
I’ve searched all files in bp-core, bp-friends, bp-members and bp-messages.
do_action( 'bp_member_header_actions' );I’m not even seeing it mentioned on http://phpxref.ftwr.co.uk/buddypress/
Anybody know off hand where it is before I check everywhere else?
Hello
I’ve noticed that anyone, including non-members, non-subscribed visitors to my page can view the ‘members’ tab, and read the members profile information.
I can’t find any options to make information private. Where can I find this?
Wordpress 4.4
Buddypress 2.40Thanks
Hello I have a problem disappear buttoms profile private message and the public , after the addition of friends. The only problem is my theme in the standard all right. buddypress 2.4.3 theme customizr


buddypress version:2.4.3
wp version: 4.4I want to make default page for non-members where there will be login and registration page and some content….
I have check bp private plugin but it broke my admin area….please help..Topic: Private Category not working
I have a category which is set to private and has sub forums (that are open) within it are set to open. The sub forums are not showing to the admin and show a page 404.
If I make the category public then I can see the forum but so can the public. The idea is to have the forums to registered users only so can someone help?
I am using the latest version of bbpress and wordpress, all plugins disabled and using the stock theme.
all the best,
Jon