Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Activity Feed for members only'

Viewing 25 results - 1 through 25 (of 87 total)
  • Author
    Search Results
  • #335843
    luckybug0404
    Participant

    My Buddypress group only works on computers, it doesn’t work on mobile. Anytime I try to view my activity page or members page, I get this message:Post Update All Members 0 Mentions 0 RSS Feed Search Activity… Search Show: — Everything — New Members Profile Updates Updates Friendships New Groups Group Memberships Group Updates Posts Comments Loading the community updates. Please wait. Read more
    But it works perfectly fine on my computer, what do I do?
    Wordpress version- 6.7.1
    Buddypress version- 14.3.3

    #328174

    In reply to: remove group privacy

    edensan
    Participant

    okay here is the php code for every privacy set to public:

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input checked type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    greetz Edwin

    #328170

    In reply to: remove group privacy

    edensan
    Participant

    okay i find this setting in:
    \bp-nouveau\buddypress\groups\single\admin\group-settings.php

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    so i commented everything out what i dont want.
    only thing is how can i select by default the last option?
    mabe someone can help me point in right direction?

    greetz Edwin

    sophiaknows
    Participant

    Hello and thank you for your work on this plugin!
    I use Buddypress with a theme, Neve, which requires a few display settings, for example centering the values (Newest, Oldest, Alphabetical) in the filters (for directories of members, groups, in groups, etc. .). To do this, I take the element ID and apply text-align:center to it in Additional CSS and it works. When looking for the ID of one of these elements in a group, for the group member list, I realized that there was none. So, on the one hand I can’t center it, on the other hand, as mentioned in the post “Sort function in groups not working”, this filter does not work, maybe because of this missing ID.
    In my configuration, I had not activated the Activity part, and by doing so, the ID appears (groups_members-order-by), it is only without the Activity feed (and therefore when the Home page of the group contains the members) that the ID is missing and therefore inoperative.
    I just updated to 10.5.0 and it still does.
    WordPress 6.0.3
    Wish there is a way to fix this and keep Activity disabled 🙂

    PS: topic already posted but blocked/deleted because of links and images (?)

    #323541
    rmstm
    Participant

    Hello, some informations about my installation :

    – WAMP
    – WP v.5.9
    – BP 10.0.0
    – Theme Buddy-x 4.3.1
    – PHP 8.1.0

    There is no other plugin : I try to create a functionnality for a client that can let you be able to repost an activity from other members on your own member profile only.

    The thing is, I actually can insert into the database via ajax method the ID of any activity and the date of reshare. Then I can display on the member profile an array with all the shared activity and informations about them (all columns from the database wp_bp_activity table).

    Now, I want to implement them inside the feed. My idea is to intercept the result of the ajax (bp_has_activities( bp_ajax_querystring( ‘activity’ )) that – apparently – return a JSON data Object. Then insert the shared activities with the date of repost, reorder all these activities by dates and display the complete new feed.

    Intercept -> insert the shared activities -> reorder by dates -> display.

    But I don’t know how I can intercept this query. In fact, even if I delete the activity-loop.php file it’s still the same, I have no control on the feed.

    Anyone has an idea about this ? How to add these shared activities to a member feed ?

    Thanks

    teslavolt
    Participant

    Wordpress v5.9
    Buddypress V10
    Theme – Nouveau enabled

    I’m trying to put the contents of a single activity onto a custom wordpress template page.
    e.g. https://www.mysite.com/members/myusername/activity/2/

    I looked at the \buddypress\bp-templates\bp-nouveau\buddypress\activity\activity-loop and \activity\single\home for code to put in my custom template:

    
    <div class="entry-content" id="start-a-project">
        <div id="buddypress" class="buddypress-wrap twentysixteen bp-dir-hori-nav">
            
            <?php $prj_activity_args = array("include"=> 2 );  // only pull activity id=2 from WP_BP_ACTIVITY ?> 
            <div class="activity" data-bp-single="2"> <!--hardcoding for testing-->
            <?php 
            if ( bp_has_activities( $prj_activity_args ) ) : ?>
                <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
                    <ul id="activity-stream" class="activity-list item-list bp-list" data-bp-list="activity">
                        <ul class="activity-list item-list bp-list">
                <?php endif; ?>
                <?php
                    while ( bp_activities() ) :
                        bp_the_activity();
                ?>
                    <?php bp_get_template_part( 'activity/entry' );?>
                <?php endwhile; ?>
                <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
                        </ul> <!-- .activity-list -->
                    </ul> <!-- #activity-stream -->
                <?php endif; ?>
            <?php else : ?>
                <?php //bp_nouveau_user_feedback( 'activity-loop-none' ); ?>
            <?php endif; ?>
            <?php// bp_nouveau_after_loop(); ?>
    
            </div>
        </div>
    

    I only want to pull one activity – so I passed array(“include”=> 2 ) to bp_has_activities() ; However, when the page is loaded, the <ul id=”activity-stream”> loads ALL the activities.

    Could someone help me figure out why this is happening? I switched to the legacy theme and the code works fine. I think it’s something to do with the data-bp-list=”activity” that is causing all the activities to get loaded.

    #317998
    songdove
    Participant

    So if I am using a theme of my own choosing, and want to remove “all members” content so that only groups/events/friends/other stuff I want posted to the main feed shows only as it relates to a person’s friends, groups, pages, etc that they’ve interacted with, (like how FB does the main feed) I’d insert that css line from @lougrossi ? I want to be sure I am showing all content a user has made themselves party to, or that admin has made public, such as a public group’s activity the member joined, but not see anything from anyone they don’t know or are not in active participation with. (not part of the same public group for example)

    jozifirecracker
    Participant

    Heyo. I am having a weird issue where the groups show group activity AND the personal activity of the groups members (this happens for subscribers only). So for example if user A and user B are subscribers and they are friends, their personal posts show in each others groups along with the group activity posts. For admins, the group activity feed behaves as expected and this issue does not happen. If I change user A’s role to a subscriber, they no longer see their friend’s personal posts inside their groups. Any idea what could be causing this? Here is a video I made of the issue: https://www.loom.com/share/a5b6c622c30341688223b9c584688a54

    rsandilands
    Participant

    We only only want to allow our members to create hidden groups, and to allow all group members to invite others, to post to activity feed and to also send group messages.

    I can see that group-settings.php sets up the form with these options but ideally we’d like to bypass the settings page in group creation as we aren’t allowing any choices here for the group creator.

    For now I’ve simply removed the redundant radio button fields and set the resining radio button to be checked so the values are carried through the multipart form but ideally I’d skip the group-settings.php options.

    King Ding
    Participant

    Hello!

    As the title says, I would like that only admins can post to the group activity feed. However I would still like for members to be able to comment on activity posts (just not create them).

    Please help 😀

    Thank You,
    – D

    reelscene
    Participant

    Hi guys

    I have the Aardvark theme which comes bundled with Paid Memberships Pro and BuddyPress/bbPress.
    WP version 5.3.2, BP version 5.1.2
    I’ve set the site so any non logged-in user goes to a set page, the site is essentially private.

    For some reason, the activity feed on the homepage wall only shows activities when logged in as admin. Any other user gets the message “Sorry, there was no activity found. Please try a different filter.” If they post a status, it’s visible when posted and goes into the database, but refreshing the homepage leads to an empty wall again.

    I’ve only made one recommended tweak to the child theme – redirecting non-logged in users to a “public page”. I can provide the admin login if that helps.

    function my_template_redirect_require_membership_access() {
    if(!is_admin()){
    if ( function_exists( 'pmpro_has_membership_access' ) && ! pmpro_has_membership_access() ) {
    wp_redirect( pmpro_url( 'levels' ) );
    exit;
    }
    }
    }
    
    add_action( 'template_redirect', 'my_template_redirect_require_membership_access' );

    ​​As I don’t know where the problem lies I’m not sure what settings to show you. I’ve tried disabling all of the additional plugins I’ve installed to no avail. Here are the plugins I have installed:

    Aardvark Plugin

    bbP private groups
    This plugin adds private groups to the forums, allocating users to groups, and combinations of forums to those groups, creating multiple closed forums.

    bbPress
    bbPress is forum software with a twist from the creators of WordPress.

    bbPress Notify (No-Spam)
    Sends email notifications upon topic/reply creation, as long as it’s not flagged as spam. If you like this plugin, help share the trust and rate it!

    BP Profile Search

    BuddyPress

    BuddyPress Xprofile Custom Field Types

    Classic Editor

    Coming Soon Page, Under Construction & Maintenance Mode by SeedProd

    Contact Form 7

    Elementor

    Envato Market

    Events Manager

    GD bbPress Attachments

    LayerSlider WP

    Paid Memberships Pro

    Paid Memberships Pro – bbPress Add On

    Paid Memberships Pro – BuddyPress Add On

    Paid Memberships Pro – Mailchimp Add On

    Passster
    Plugin to password-protect portions of a Page or Post.

    Responsive for WPBakery Page Builder

    rtMedia for WordPress, BuddyPress and bbPress

    Sensei Certificates

    Sensei LMS

    Smash Balloon Instagram Feed
    Display beautifully clean, customizable, and responsive Instagram feeds.

    Smush
    Reduce image file sizes, improve performance and boost your SEO using the free WPMU DEV WordPress Smush API.

    Theia Sticky Sidebar

    Transcoder

    Ultimate Reviewer

    UpdraftPlus – Backup/Restore
    Backup and restore: take backups locally, or backup to Amazon S3, Dropbox, Google Drive, Rackspace, (S)FTP, WebDAV & email, on automatic schedules.

    WooCommerce

    Wordfence Security

    Wordfence Security – Anti-virus, Firewall and Malware Scan

    WordPress Popular Posts

    WP Google Review Slider
    Allows you to easily display your Google Places business reviews in your Posts, Pages, and Widget areas!

    WP-Live Chat by 3CX
    The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.

    WPBakery Page Builder

    Youzer

    I can send a link to a zip file of the settings of the various membership and theme plugins if that helps.

    I understand the issue could be complex but I’m a PHP developer, so if you know of some places I can look in the code or starting points for investigation that would be really helpful 🙂

    Cheers

    #308897

    Hey everyone. Thank you for the insightful conversation. This is exactly what forums and communities are for, and is a great example of why it is so important to have them.

    This question has come up just about every 180 days for the past 10 years, for both bbPress and BuddyPress. I usually don’t chime in on them, because they almost always go through the same motions:

    1. Some people are worried
    2. Some people don’t like the core functionality
    3. Some people think it’s too difficult
    4. Some people think it’s not powerful enough
    5. Development team defends the project
    6. Unhappy people trash the project
    7. Nobody really feels much better
    8. People get bored and the topic fades away
    9. Someone bumps it back up every once in a while

    I’m replying here and now, because I agree a lot with everything everyone has said here, even if I don’t like or agree with how it’s said.

    There are a lot of things about BuddyPress not to like. There has been a lot of added complexity over the years that has made it more difficult to understand and to work with. Building a community website with it takes a long time and requires a lot of experience to do well, and that’s even before the community has activity, membership, or growth.

    Without a big huge obvious whale of an example community, and without a big huge corporate sponsor, it’s hard to see the penultimate standard for what BuddyPress can be used to achieve.

    Because BuddyPress.org and bbPress.org are part of the WordPress.org network of sites, and because WordPress.org doesn’t really use the social features that BuddyPress provides, even it isn’t that great of an example anymore.

    The folks at BuddyBoss have, no doubt, invested nearly the same ten years as the rest of us have, working hard to make something out of nothing, only with a different set of goals in mind, that now is taking them in an exciting new direction.

    Having met several members of the BuddyBoss family, and after spending more than a few hours hanging out with them through the years at various WordPress related events, it cuts deep to hear how negative their perspective is on BuddyPress, but I don’t disagree with them, or think they’re wrong.

    Ten years ago when everyone was excited about BuddyPress, wasn’t because of the technology or the tools or the potential. It was a pain in the butt to setup. It required a version of WordPress (MU) that didn’t even come with an installer. It did everything “the wrong way” and not “the WordPress way.”

    Everyone was excited because it looked cool.

    Source: Venturebeat

    While not an exact clone, BuddyPress 1.0 popularized the 3 column design layout that Slack, Discord, Teams, and Mattermost, and others have built empires on top of today. Since 2.0 and later, we listened to user feedback instead of our guts, and worked to make BuddyPress simpler to drop into any WordPress installation, but in doing so we sacrificed the opinionated design that made all of us curious about what we could build on top it ourselves.

    I believe BuddyPress is, still to this day, the single most important piece of software on the open web. It empowers anyone to foster free and open dialogue with the privacy and freedom of having their own website on their own hardware, while also being powerful enough to scale up and grow as a community of people garners momentum. And it empowers people like the folks at BuddyBoss to grow even beyond BuddyPress itself.

    BuddyPress also continues to be a faithful sister-project to WordPress, bbPress, and GlotPress, acting as a playground for just about anyone to jump in and start helping improve the software that over 11 million users on WordPress.org and 300k other installations rely on to power their activity streams, member profiles, and more.

    I personally have met or know a few hundred people that have amazing careers (in WordPress or elsewhere) because of the knowledge and insight that contributing to the BuddyPress project has trained them for. (This is one of the most valuable things about BuddyPress that you can’t write on the tin, in my opinion.)

    To the folks that feel like leaving BuddyPress behind, happy trails until we meet again. And I hope we meet more often than we have, because our diversity of experiences and opinions is how we forge great open source software together, and that’s hard to find when you’re always looking inward at the same project for this long.

    To the folks that love BuddyPress as much as I do, thanks for sticking around and helping out and being a part of this community here. The best is yet to come, with media attachments, database improvements, deeper WordPress Admin integration, and if wishes were fishes we’d revive a retro bp-sn-parent theme to bring some of that old excitement back again.

    Here’s a corny quote from a favorite movie of mine that feels fitting:

    I cannot tell you how long this road shall be, but fear not the obstacles in your path, for fate has vouchsafed your reward. Though the road may wind, yea, your hearts grow weary, still shall ye follow them, even unto your salvation.

    #308282
    welsh10
    Participant

    Hi @imath,

    I think I’ve found the issue ‘Hidden groups are showing other groups posts in the activity feed (when scrolling down the page to ‘load more’). We don’t want any group feeds being available within other groups.’

    This appears to only happen to users that are members of the groups.
    So you could be in a hidden group ‘A’ then scroll down to ‘load more’ then it displays content from hidden group ‘B’.

    I expect this is not meant to happen?

    Thanks

    Venutius
    Moderator

    Yep @mentions is a part of the Activity Streams component so turning this off will also remove the @username since this can no longer be used.

    You could always overload the members profile header page you are using and add the username back in, however what good would that do since that username is only used in activity feed `@mentions’ it’s the wp username, not the BP displayname. So I guess it really depends on what you are aiming for.

    #271961
    avaiya
    Participant

    Hi there,
    I just started using BuddyPress for my membership site 2 weeks ago. Is there a way to have a page, kind of like the Home page of Facebook, where you see a news feed of everyone’s posts in the membership?

    I see that under each person’s Profile, there’s an Activity feed, but that only shows the activity of that person. I want members to be able to see the activity of everyone, all in one place.

    Thanks!

    zsauce
    Participant

    After much research through many old threads, using the combination of a few, I figured out how to remove the “All Members” view of the Activity feed.

    I originally tried a solution posted by paulhastings0 on the page https://buddypress.org/support/topic/change-the-default-activity-tab/

    However, as a member in that thread posted a few comments later, this only changes the default selection of the tab, it does not in fact change the feed that is loaded. So the tab said “My Friends” (or whatever tab you set as selected), but the feed that loaded was still the “All Members” feed.

    The second option I found (which I can’t find again to link to while writing this) only removed the “All Members” tab option, but simply left the tab as a blank space, while still loading the “All Members” feed.

    If you combine the two solutions however, it works like a charm!

    So, here’s the solution:

    You should be working in the BP Child theme.
    1) Copy the index.php file from ../wp-content/themes/boss/buddypress/activity
    2) Paste the index.php into your ../wp-content/themes/boss-child/buddypress/activity directory (it doesn’t exist, so you’ll have to create it)
    3) Use the first solution by paulhastings0 in the old thread to change which tab is default selected by removing class="selected" from the <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> line (on line 24) and add class="selected" to the new tab you want selected (I chose the “My Friends” tab, so for me it was <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'boss' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'boss' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> on line 34.
    4) Now, delete the <li id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> code from line 24.

    Hope this saves someone from hours of searching like I did!

    #263534
    djsteveb
    Participant

    with my default bp installs just about everything IS public.. it’s actually not easy to make the bp pages like activity and groups and such private.

    I think most of those things are fine to be public – and people can choose to make groups members only, logged in only, or public viewable.. default is all public I think..

    Most profile fields the user can choose similar privacy settings for certain fields if you allow..

    Sometimes I make a group non-pulbic viewable as super admin..

    I also choose a lot of things to be blocked by the robot search engine spiders – as there is no need for them to go pulling 100 pages of activity feed and such – so even though most of my BP site is publicly viewable, only about half of it is (supposed to be) crawled by the big engines – most follow the robots.txt directive – but not all..

    #262757
    danbp
    Participant

    If you mean the text: “Good people […] (Plato)”- you can remove this update from the site activity, wwhen you’re logged-in, by using:

    – dashboard > activities – from here only, as site admin, you can modify the text – normal user can’t modify the text, only delete it.
    or
    – click on “view” below the quote (actually http://medicinalplantclub.com/activity/p/182/) on members directory or profile header
    or
    – click on “delete” under the activity in the front-end SWA feed

    #258998
    bikerwp000
    Participant

    Hi Paul,

    I just copy/paste my original inquiry to pastebin.com. I’m not sure how that works, but I assume just by posting it there, people will potentially respond, right?

    Anyway, this whole afternoon I’ve been testing the 3 paragraphs rule you graciously advised me and found it a true statement.

    My conclusion is I need to have
    at least 4 paragraphs separated by [Enter],
    there must be at least one blank line in between paragraphs, and
    each paragraph needs to have at least 1 character, either letter or numeral,

    when I got all those covered, and when I have both feature image and embed video in the post, the feature image will appear in the member’s Activity feed, not the video, which is what I want.

    And there can be more than one embed video.

    What wasted me a lot of time was after successfully achieving the result I want (4 paragraphs and all those other above requirements), I experimentally deleted 1 paragraph at a time to test what makes it fail and what makes it work. After all was done, when I restored it back to the way it originally worked, suddenly either the featured image wouldn’t show up like it did the first time on Activity feed or the embed video only show the URL link but not the video itself in the post.

    I kept tweaking it every possible way hoping to find out what went wrong or if the 3 paragraphs rule was in effect incorrect.

    In the end, I realized it would work again if I simply abandoned the messed-up post and started a new post by following all the above requirements.

    So that’s what you should try if something were to go wrong and you’re at a loss of what’s going on.

    I may also need to point out that all the posts in this upcoming website of mine will be contributed by frontend members via WP User Frontend plugin, which was what I used testing this 3 paragraph rule. But I think the conclusion I came up above should remain the same if you post via backend admin.

    @ Paul, thanks again for your help. Not sure if you’d care to help me out on my the other thread “How to add self-created category to member Activity filter dropdown box?”

    How to add self-created category to member Activity filter dropdown box?

    I’d really appreciate if you, or anybody, could help me out on that one.

    I had another quickie inquiry appended at the end of that thread. That one is not as important, so please don’t worry about if if you’re not interested.

    Thank you.

    Apokh
    Participant

    – checked- theres only one Activity page
    – resaved permalink structure
    – i dont use custom code, but activity+ plugin
    – i use quiet a bunch of additional plugins:
    –BoweCodes
    –Buddypress
    –DisableFeeds
    –DownloadManager
    –DynamicWidgets
    –EventsManager
    –GoogleAnalyticsDashboard
    –GoogleFonts for WP
    –HungryFEED
    –LayerSliderWP
    –Mediapress
    –Members
    –Metaslider+Pro
    –myCred
    –myCredHookBP
    –PageBuilder Siteorigin
    –PaypalDonations
    –Peters Login Redirect
    –PHP Text Widget
    –SimplePress
    –Siteorigins Masonry
    –SpamProtect by Cleantalk
    –TablePress
    –Wordpress VideoGalery
    –WP FullCalendar
    –WP Lastlogin
    –WP TwitterFeeds
    –WP ULike
    –WP touchmobile

    #247264
    jimme595
    Participant

    Hi, thanks for the heads up, have got fetch avatar no grav disabled now and my filter on bp_core_default_avatar_user is now working! However it is only working for things like members list and and ‘who’s online’ widget. In the activity feed the avatar is always my admin avatar… is there a different filter for avatars fetched during activity feeds?

    BEst, James

    #246705
    scoobs2000
    Participant

    Hi
    in short everything you have asked can be done.

    But I’m a little bias as I honestly believe regarding technology there is nothing that can’t be achieved it just comes down to how much time and budget you have to invest… 🙂

    Below is a bit of a ramble…. But might provide insight. after you organize your coffee and come back.

    I have nearly completed a project that sounds similar in nature (few weeks from launch in final beta testing), however it was a highly customised solution (private membership site) .
    With nearly 70 plugins, 100’s hours coding integration code (lots of trial and error) between the plugins and also compatibility tests with multiples of plugins to ensure no issues, because of slow load times the project requires deploying from CDN,fast servers and customised caching solutions.
    most of work load appeasr to be bbpress – so an near out of the box solution, you prob don’t need to go that far.

    But not to scare you. Here are some pointers that might answer your questions, based on my understanding of the OP.

    In my case I spent many months researching solutions with many platforms (open source / paid / managed premium) – buddy press was selected simply because is built on WordPress that’s already has the core abilities you need, you just need to “hook in to’em” and take advantage of this concept – you can keep working on bettering and adding separate components / features as time goes by, great for client, works out a bit cheaper in the startup phase and great for developer – land ya self a permanent support / ongoing development contract……

    Is it possible to update profile content/meta? : In general yes, buddy press allows this out of the box

    Either the user or the admin can update, you can have admin only fields (the user doesn’t access them – but the admin can)
    if you use a membership plugin eg, s2member – you can extend this idea much further eg, only require email on signup, then all other fields are accessible from profile and can set fields on a per membership level,

    In your case, you might have different profile fields for students, teachers, Parents and only require a couple of basic fields to be completed on signup and all other fields can still be “required” when they reach their profile page.
    For profile field management I recommend the s2membership pro plugin (free version available) http://s2member.com/

    My project has a “todo list” for each and every member – however I’m still to this day unable to find a plugin that interacts with a completed wp/bbp/buddypress site. So I had to code one. The todo list was designed / engineered in a way that interacts with “wordpress” in general, by storing a completely unique data feed much like the activity feed with time stamps and can be programmed to be linked to any site link, media download, page view, forum post, reply any activity on the site can be logged and applied to the feed which the to-do-list interacts with and auto completing (crossing of the item) each item also has dependencies, so you rattle off a list of activities before the task is crossed off and each to-do-list also has dependencies so it is not seen by a user until certain tasks are completed, eg, purchase a course from the store, or complete a previous to-do-list.

    In short: Yes it can be done, however I’m not aware of any 3rd party plugin that does this successfully.

    In my case I have the to-do-list shown in the sidebar so as a member goes through the tasks the list is also available to them no matter what page they are on. But possible to publish it in the profile page if required.

    Regarding email notices, I recommend looking into the woo commerce sensei http://www.woothemes.com/products/sensei/ plugin for your courses that way you have management of email notices, in fact prob most of the things you require will be available via sensei – note this is a premium paid plugin with yearly ongoing licence costs.
    Without a free trial version to try before you buy.

    But maybe gravity forms developer licence might be fine in your case as it has, gateway plugins, qiz and survey plugins – it would be possible to build certain simple courses on the gravity framework including delivery of custom emails – if building a form based system than certainly worth a look into – but would require a developers licence to get all the plugins you would prob require.

    In fact what I do is use gravity forms email chimp plugin to send the members email address to an email list (automation campaign) in mail chimp (paid account) that auto sends a welcome emails that I have customize to suit the activity they have completed, this way I can send pretty html + marketing emails + scheduled follow up emails and take the work load off WordPress other than a quick API connect on demand.

    Regarding: is it possible to have multiple logins or users access the same account/profile?
    In simple: Yes, but it all comes to context of the profile, will each member be able to see other members profiles or will parents be able to edit a child profile etc.

    Although my project does not require the need for 2 or more members to edit a single profile, I do have multiple levels of context (horizontal and vertical memberships) all with their own set of rules who profiles they can see and what buddypress features are available to them – some members don’t have activity feeds or messages, But I needed to ensure that members that do have access to these features can’t access the features of cross membership and so on.

    This is 100% custom code (no plugin) but while coding this up I recall thinking I’m 100% confident it is possible to add another level of check “if current user can edit displayed user” and go from there, all you would need is a profile field / meta that links multiple accounts together –
    Eg, a parent account has a profiled field “child user name” – they just enter the child username / user ID – and now we would add the profile check if a parent is viewing the child’s profile.

    Regarding paying a deposit, and payment, this is my findings.

    There was no single one membership / payment plugin that integrated perfectly into what I wished to achieve – I have tested many. please note I’m suggesting there are no plugins that do this stuff just none that achieved the outcomes I needed for my project.

    – Tips: – start the project design based on the payment systems / gateway (the complete project and direction of development is 100% dependent on this) because the simple reason every feature you implement needs to check “is a paid member and what level (cap / role) ” – including free membership with paid features “is not a paid member” but has paid for… this includes recurring and non-recurring subscriptions with consideration of what you intend to do if a subscription expires.

    Eg, a recurring subscription will either just auto subscribe and pay for the next time frame (or fail)
    A non-reoccurring subscription will auto expire after a given time frame (or X cycles)

    The difference between to the two –
    Is generally on a recurring subscription when it expires it also linked to a member account to “do something” eg downgrade membership

    A non-recurring subscription is generally used for a onetime payment you have access forever feature- eg, a course and resources, you pay once on a deposit, subscription over several weeks when the subscription expires the member still has access to the course as long as they remain at minimum a free member on the site. (anyhow that’s how I have implemented things)

    These two concepts are completely different in the way they interact with the member as well at many levels although on the surface appear to be almost the same, add in a deposit feature you are also opening another level of context to play with, mostly limiting the available options regarding the payment gateway service you will need to use or more so which services have this feature on offer.

    As mentioned – my suggestion is start with the gateway solutions first and reverse the design back to the front end. – this is the big lesson I took away with this project (4 rewrites in total) as it was always a block relating to the gateway limitations (and laws relating to online subscriptions in my country).

    My project:
    Woo commerce (free) for shopping cart system including purchase of courses, subscription to site and deposit/ subscription to courses, plus all other products, deliverable products, workshops, webinars, one on one sessions, resource downloads from pdf to videos. Anything you can think off can be sold through woo

    Woo commerce quick cart – plugin (paid)– now I can add a buy now button on any page for any product including subscriptions – the membership info page has a standard 3 column price comparison chart with nothing more than a “sign up now” button – clicking the button auto adds the subscription to cart and opens the checkout popup with one click and without leaving the page (no need to send to store)

    Sensei (paid)– for courses and fits well into woo commerce system (but requires a couple more plugins and custom integration code if implementing paid / subscription based courses )

    Groups plugin (free) to easily manage roles and caps (as I have to teach client staff how to do this and manage the site) WordPress has this capability built in if your a coding ninja (I’m not)

    Groups Woo commerce (paid plugin) to link groups to a purchase – apply a role / cap or groups of, to a user based on the purchase.

    Then some custom code is required – to perform a check and if a user has a particular role or cap than apply the s2membership level – this check is done at the store level so if a member cancels or defaults on a payment – the membership level is auto adjusted depending on what role or cap is supplied to the user from the groups woo commerce automation. groups plugin manages non-recurring subscriptions so a expired subscription does not remove the users caps and roles (but a default on payment does)

    S2member pro – for membership level management including profile fields management and most importantly complete site access management – I can apply access to each and every competent of the site this includes , forums, topics, replies, posts, pages, media, courses, and content within pages eg, home page displays different content based on the membership level / logged in or general public. s2member pro is also used to override default bbpress / buddy visibility settings eg, hidden forums only available to certain member levels – but requires custom code to apply or traverse access levels on submitting topics / replies to ensure widgets and other snippets don’t display private areas to members that don’t have access. (it allows you to write custom queries with zero concern or consideration to access levels)

    For subscriptions (paid)– I use woo commerce Subscriptions plugin – this manages on its own site access based on paid recurring subscriptions (or in simple turns on or off user account based on payment) – pay x amount monthly to access certain site features, courses and resources, forums, pages, blog articles etc.

    However – woo commerce subscriptions does not manage deposit / time based subscriptions (non-recurring subscriptions) eg, pay a deposit for a course and gain instant access then pay off on a subscription for x amount of weeks / months –
    I was not able to find any plugin (free or paid) that does this, so I had to write a plugin currently under experimental concept stage.

    Other tips: often it’s better to find compatible, well supported and pay for premium plugins that have overlapping features and disengage these features you don’t want to achieve your goals and do as little integration code as possible, but anything you do needs to be well planned and though out as to not to touch core code in any platform, framework or plugin.
    At the end of the day you want the ability to upgrade all systems as time go by.

    Eg, s2member plugin has its build in membership system that is “required to be active” for the plugin to work. – all I did was setup a single paid (never to be used membership) on a paypal sandbox store this includes setting up all the s2membership registration pages etc – then put a simple redirect in the .htaccess on any of these pages. Now to purchase membership you must go to the store (woo commerce) and purchase a subscription via woo – s2member has now has nothing to do with membership registration / payment systems.

    And of course I have “force account creation” turned on at the store – you cannot make a purchase without signup at a minimum free site membership.
    by disengaging the buddy, bbp, Wp, and all other means of registering (by redirect) but only leaving the woo commerce customer account registration available – The pop up registration form I use for free members is just a woocommerce customer account registration form (with no products attached) with a fallback to the s2membership cut down reg form (in case ajax / jquery etc not working on client side)

    And now all purchases, subscriptions, shop account, courses etc are now available from the buddy press profile page also via a “woo to buddypress” plugin (or in my case built into the theme)

    May sound complicated but as mentioned I would really suggest starting with payment solutions and nut out this part of the project first as this will most likely force development direction,

    one of my project goals was a solution that can cater for anything…. so,

    Regarding variable deposit / costs amounts based on user input – if using similar approach as I did – you would just setup woo commerce discount codes per variable outcome / result and would just reveal the correct coupon code to the user on the checkout page. they just cut and paste this code into the discount field and click apply.

    or setup up multi products – one product per price base. – have the user input their details first and the result would be – apply a groups cap / role then only offer the courses products in the store with the associated price base based on user caps / role –

    woo discount coupons can be setup on multiple bases – eg, deposit amount / on going subscription amount or total amount or per product or per cart total etc.

    for me was plenty of research into this including concept builds of other community platforms and as above is only a bit of a sample of features used relating to the OP.
    I was under very strict key point goals and achievements requiring very specific outcomes many of these affected development direction how / why I implemented the above.

    There may be better simpler ways to suit your specific project, but thought it might be worth a mention for some direction. or at least insight into some of the plugins I use / ideas and concepts.

    my usual disclaimer – if there is something in there for you, that’s great! if not that’s fine too!

    enjoy!

    #243538
    coffeywebdev
    Participant

    Take a look at this code, I think it may be helpful for you…

    I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)

    It’s all about what you set for the $args array….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #234099
    danbp
    Participant

    Activity feed for Members only or Friends only ?

    Activity Loop


    and pay attention to scope. As of BP 2.2.0, you can now use multiple scope.

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&scope=friends,groups' ) ) :

    You could also use bp_parse_args in a custom function or
    search on forum for similar to your question, like this one.

Viewing 25 results - 1 through 25 (of 87 total)
Skip to toolbar