Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'group_id'

Viewing 25 results - 76 through 100 (of 567 total)
  • Author
    Search Results
  • shanebp
    Moderator

    Try something like:

    $group_ids =  groups_get_user_groups( bp_displayed_user_id() ); 
    		
    foreach( $group_ids["groups"] as $id ) { 
    	$group = groups_get_group( array( 'group_id' => $id) );	
    	// var_dump( $group );  // see all the fields
    	$link = bp_get_group_permalink( $group );
    	echo $link;
    }
    #302496
    egamestudio
    Participant

    Resolved 🙂 LOL

    Just change the $group_id = …. to bp_get_group_id()

    #302495
    egamestudio
    Participant

    Hello,

    This is my problem, I use ACF PRO to create my own fields on my WordPress theme, for the member profiles part everything works with this code:

    <?php
    /**
     * BuddyPress - Members Settings ( General )
     *
     * @since 3.0.0
     * @version 3.1.0
     */
    acf_form_head ();
    $author_id = bp_displayed_user_id();
    ?>
        <div class="col-lg-6">
            <?php
            acf_form(array(
    
                'id' => 'acf-formA',    
    
                /* Groupe de champs ID utilisé */
                'field_groups' => array('663'), //CHANGE ID IN LIVE
    
                /* Quelle est la function meta utiliser en $ sur ID auteur ? */    
                'post_id' => 'user_'.$author_id,
    
                /* Quel est le nom sur le bouton du button de sauvegarde */    
                'submit_value' => __("SAUVEGARDER", 'acf'),
    
                /* Le message que je retourne en cas de réussite sur l'infobox bootstrap */
                'updated_message' => __("Mise à jour réalisée", 'acf'),   
    
                /* Button de submit de formulaire */
                'html_submit_button'	=> '<div class="text-center"><input name="updateuser1" type="submit" id="updateuser1" class="btn-style1" value="%s" /></div>',
    
                /* Le spinner de chargement */
                'html_submit_spinner'	=> '<span class="acf-spinner"></span>',
                'form' => true,
                'return' => ''
            ));
            add_action('acf/save_post', 'my_acf_save_post', 20);
            ?> 
        </div>
    

    So far no problem to display then on the member’s profile page the information of the ACF field.

    My Problem:
    On the other hand, on the Groups part I can’t find how to attach the field to the ID group, that’s what I tried.

    In my edit-details.php (in group),My field works, I enter test in my acf form
    it comes out in the echo “test” but on all the groups, I can’t associate this field with the group id.

    <?php
    /**
     * BP Nouveau Group's edit details template.
     *
     * @since 3.0.0
     * @version 3.1.0
     * @version 4.0.0 Removed 'Notify group members' checkbox in favor of hooked callback.
     */
    acf_form_head ();
            
    $group_id = bp_displayed_user_id();
    $group = new BP_Groups_Group( $group_id );
    
    ?>
    <?php echo get_field('test_group', 'group_'. $group_id); ?>
    
         <?php
                acf_form(array(
    
                    'id' => 'acf-formA',    
    
                    /* Groupe de champs ID utilisé */
                    'field_groups' => array('714'), //CHANGE ID IN LIVE
    
                    /* Quelle est la function meta utiliser en $ sur ID auteur ? */    
                    'post_id' => 'group_'.$group_id,
    
                    /* Quel est le nom sur le bouton du button de sauvegarde */    
                    'submit_value' => __("SAUVEGARDER", 'acf'),
    
                    /* Le message que je retourne en cas de réussite sur l'infobox bootstrap */
                    'updated_message' => __("Mise à jour réalisée", 'acf'),   
    
                    /* Button de submit de formulaire */
                    'html_submit_button'	=> '<div class="text-center"><input name="updateuser1" type="submit" id="updateuser1" class="btn-style1" value="%s" /></div>',
    
                    /* Le spinner de chargement */
                    'html_submit_spinner'	=> '<span class="acf-spinner"></span>',
                    'form' => true,
                    'return' => ''
                ));
                add_action('acf/save_post', 'my_acf_save_post', 20);
                ?> 

    Thanks for your help !
    demo : https://cryodev.fr/branch/build/alpha/groupes/le-groupe-a-demo/

    #302332
    Oxibug
    Participant

    Hi There!

    I don’t know why it’s very complicated to get groups, Anyway I need to make a dropdownlist so I need GroupID => Group Name pair.

    I tried to get all groups in Admin pages but it failed because of those errors
    [Undefined property: BP_Groups_Component::$table_name]
    [Undefined property: BP_Groups_Component::$table_name_groupmeta]

    — Code 1

            return BP_Groups_Group::get( array(
                
                'type'               => null,
                'orderby'            => 'date_created',
                'order'              => 'DESC',
                'per_page'           => null,
                'page'               => null,
                'user_id'            => 0,
                'slug'               => array(),
                'search_terms'       => false,
                'search_columns'     => array(),
                'group_type'         => '',
                'group_type__in'     => '',
                'group_type__not_in' => '',
                'meta_query'         => false,
                'include'            => false,
                'parent_id'          => null,
                'update_meta_cache'  => true,
                'update_admin_cache' => false,
                'exclude'            => false,
                'show_hidden'        => false,
                'status'             => array(),
                'fields'             => 'all',
                
            ) );

    — Another one

    if( bp_has_groups() ) {
                
                while( bp_groups() ):
    
                    bp_the_group();
    
                    return array(
                      
                        'id'    => bp_get_group_id(),
                        'title' => bp_get_group_name(),
                        'type'  => bp_get_group_type(),
                        'members'   => bp_get_group_member_count()
                        
                    );
    
                endwhile;
                
            }
    #302233
    webusat
    Participant

    Hi,

    I am controlling what appears where by using this code:

    <?php $groupid = bp_get_the_profile_group_id();
    // enter group id in array
    if( in_array($groupid, array(1,2,3,4)) ) : ?>
    

    Stan

    #283065
    shanebp
    Moderator

    Try something like this in your shortcode:

    $args = array( 
        'group_id' => 666,  // set the ID somehow
        'exclude_admins_mods' => false
    );
    
    $group_members_result = groups_get_group_members( $args );
    $group_members = array();
    
    foreach(  $group_members_result['members'] as $member ) {
    	$group_members[] = $member->ID;
    }
     
    return implode(", ", $group_members);

    Check the $args by reviewing groups_get_group_members() in buddypress\bp-groups\bp-groups-functions.php

    #283007
    pratibhasvaksha
    Participant

    function group_header_fields_save( $group_id ) {

    #282804
    shanebp
    Moderator

    As stated, the code is just an example of collecting the groups and group members.

    You could put the code in a function and then call that function wherever you want.
    For example, this could go in your theme > functions.php file :

    function diego_show_groups() {
    
    	$args = array(
    		 'show_hidden'   => true,
    		 'per_page'      => -1      
    	);
    
    	$groups = groups_get_groups( $args );
    
    	foreach ( $groups['groups'] as $group ) {
    				
    		$args = array(
    			'group_id'   		=> $group->id,
    			'exclude_admins_mods'   => false      
    		);
    
    		$members = groups_get_group_members( $args ); 
    		
    		echo'<pre>'; var_dump( $members );  echo'</pre>'; // just for reference
    		
    		// do something with the member data
    	}
    	
    }

    Then in a template, you could put: <?php diego_show_groups(); ?>

    Only you know exactly what you’re trying to do.
    As I said: Where and when you place the data is up to you.

    #282414
    shanebp
    Moderator

    Where and when you place the data is up to you.
    To gather the data, try :

    $args = array(
    	 'show_hidden'   => true,
    	 'per_page'      => -1      
    );
    
    $groups = groups_get_groups( $args );
    
    foreach ( $groups['groups'] as $group ) {
    			
    	$args = array(
    		'group_id'   		=> $group->id,
    		'exclude_admins_mods'   => false      
    	);
    
    	$members = groups_get_group_members( $args ); 
    	
    	echo'<pre>'; var_dump( $members );  echo'</pre>'; // just for reference
    	
    	// do something with the member data
    }
    #282202

    In reply to: SHOW GROUPS ADMINS

    shanebp
    Moderator

    You can use this hook: do_action( 'bp_directory_groups_item' );

    For example, this will display a link to the first admin for each group:

    function diego_add_group_admin_info() {
    
    	$group_id = bp_get_group_id();
    	$group_admins = groups_get_group_admins( $group_id );
    
    	$admin_id = $group_admins[0]->user_id; 
    		
    	echo bp_core_get_userlink( $admin_id );
    
    }
    add_action( 'bp_directory_groups_item', 'diego_add_group_admin_info' );
    #282154
    davewp85
    Participant

    Hello all,

    I have four groups that all users join upon registration, which they cannot leave. But this means that from the member count of these groups, everyone can see the total number of members of the community. This is not good.
    How can I remove the member count of these groups from everywhere it appears?

    – In the Groups directory, and in profiles in the Groups tab, the line ‘Public Group / 100 members’.
    – In each group’s page in the Members tab.
    – In each group’s page when clicking the Members tab, the line ‘Viewing 1 – 100 of 100 members’.

    This is the code (by Boone Gorges) I used to hide the Leave button of these groups. I’m posting it in case it helps.

    function bbg_remove_leave_group_button( $button ) {
    	$cant_leave_these_groups = array( 1, 2, 3, 4 );
    
    if ( 'leave_group' == $button['id'] ) {
    		// Hack to get the group id in any context
    		$group_id = (int) array_pop( explode( '-', $button['wrapper_id'] ) );
    
    if ( in_array( $group_id, $cant_leave_these_groups ) ) {
    			return false;
    		}
    	}
    
    return $button;
    }
    add_filter( 'bp_get_group_join_button', 'bbg_remove_leave_group_button' );

    Could a similar code be used to remove the member count of the same groups?

    Thanks,
    Dave

    #279363
    leandrorm
    Participant

    I would like to force the action to the user ,
    I am trying to get the list of all groups but is not working groups_get_groups ($args) and BP_Groups_Group:: get ($args); they come back with 0 groups how do I get all the groups on my db so that I can add them to the group if exist with groups_accept_invite ($user_id, $group_id);

    #278607
    Prashant Singh
    Participant

    First replace the code for redirection with this code, remember that we have to just change the redirect code not the translation code.

    function ps_redirect_next_group() {
    	
       	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    	
    	$group_id = bp_get_current_profile_group_id()+1;
    	if ( bp_get_current_profile_group_id()==6 ) { 
                   // 6 is the last group id, please change if it is anything else
    		bp_core_redirect(bp_displayed_user_domain()."profile/");
    	}else{
    		bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/$group_id/");
    	}
    	
    }
    add_action( 'xprofile_updated_profile', 'ps_redirect_next_group' );

    And now to show the button:

    add_action( 'bp_after_profile_edit_content' , 'ps_show_button_after_step');
    
    function ps_show_button_after_step(){
       if ( bp_get_current_profile_group_id()==4 ) {
        ?>
          <input type="button" name="profile" id="profile" onClick="window.location.href='<?php echo 
          bp_displayed_user_domain()."profile/";?>'" value="Exit"/>
        <?php
       }
    }

    Thanks

    #278455
    Prashant Singh
    Participant

    Hi,

    No need to edit any template. I have created a snippet for you. Please paste the following snippet in your child theme’s functions.php file:

    function ps_redirect_next_group() {
    	
       	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    	
    	$group_id = bp_get_current_profile_group_id()+1;
    	if ( bp_get_current_profile_group_id()==4 ) {
    			bp_core_redirect(bp_displayed_user_domain()."profile/");
    	}else{
    		bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/$group_id/");
    	}
    	
    }
    add_action( 'xprofile_data_after_save', 'ps_redirect_next_group' );
    
    add_filter( 'gettext', 'ps_change_save_button_text', 20, 3 );
    
    function ps_change_save_button_text( $translated_text, $text, $domain ) {
    
       if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return $translated_text;
    	}
    
        switch ( $translated_text ) {
            case 'Save Changes' :
            	$translated_text = __( 'Save and Continue', $domain );
            break;
        }
        
        return $translated_text;
    }

    If there is no child theme then create a file bp-custom.php in wp-content/plugins/ folder and paste this there. https://codex.buddypress.org/themes/bp-custom-php/

    If not possible to create bp-custom.php file then third and easy solution is to install the plugin code snippets https://wordpress.org/plugins/code-snippets/ and there add a snippet and paste the code and save.

    Hopefully, it will help you.

    Thanks

    #278397
    Prashant Singh
    Participant
    function ps_change_default_profile_group() {
    
    	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    
    	$group_id = 2;
    	if ( bp_get_current_profile_group_id()==1 ) {
    			bp_core_redirect(bp_displayed_user_domain()."profile/edit/group/2/");
    	}
    }
    
    add_action( 'get_header', 'ps_change_default_profile_group', 1 );

    Hi, please remove what you did in edit.php and use this code. Try pasting this in bp-custom.php file. If not able to create then add a plugin called Code Snippets https://wordpress.org/plugins/code-snippets/ and then add a snippet and paste the code there.

    Thanks

    #278394
    Bit Boy
    Participant

    Hi,
    Here is another approach to solve the same issue.

    
    
    /**
     * Change the profile edit landing group tab.
     */
    function bitboy_change_landing_profile_group() {
    
    	// are we on edit profile?
    	if ( ! bp_is_user_profile_edit() || ! bp_is_my_profile() ) {
    		return;
    	}
    
    	$group_id = 2;
    
    	// Make sure a group is set.
    	if ( ! bp_action_variable( 1 ) ) {
    		bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/'. $group_id ) );
    	}
    }
    
    add_action( 'bp_screens', 'bitboy_change_landing_profile_group', 2 );
    

    This does not requore any change in any template file.

    #276072
    shanebp
    Moderator

    Your code is incomplete and does not appear to be germane to displaying member types.
    Perhaps you meant to post something else.

    Anyhow –
    You can use groups_get_group_mods( $group_id ) to get an array re the mods that includes their IDs.

    Then use bp_get_member_type( $user_id ) to get the member type.

    #274265
    quigley05
    Participant

    Hmm.. there is the following code that looks suspect in the plugin:

    /* Fetch an existing activity_id if one exists. */
    			if ( function_exists( 'bp_activity_get_activity_id' ) )
    				$id = bp_activity_get_activity_id( array( 'user_id' => false, 'action' => $activity_action, 'component' => $bp->groups->id, 'type' => 'exb', 'item_id' => $group_id, 'secondary_item_id' => wp_hash( $post['blogurl'] ) ) );

    Anything here stand out as a possibility?

    Also, regarding the thumbnail integration, I’ve been trying to figure out what the necessary fetching rules are to gather that data? The below is clearly where it goes, I just have no clue how to properly integrate this..

    	/* Set the visibility */
    		$hide_sitewide = ( 'public' != $group->status ) ? true : false;
    
    		foreach ( (array) $group_blogs as $feed_url ) {
    
    			$rss = fetch_feed( trim( $feed_url ) );
    
    			if (!is_wp_error($rss) ) {
    				$maxitems = $rss->get_item_quantity( 10 );
    				$rss_items = $rss->get_items( 0, $maxitems );
    
    				foreach ( $rss_items as $item ) {;
    					$key = $item->get_date( 'U' );
    					$items[$key]['title'] = $item->get_title();
    					$items[$key]['subtitle'] = $item->get_title();
    					//$items[$key]['author'] = $item->get_author()->get_name();
    					$items[$key]['blogname'] = $item->get_feed()->get_title();
    					$items[$key]['link'] = $item->get_permalink();
    					$items[$key]['blogurl'] = $item->get_feed()->get_link();
    					$items[$key]['description'] = $item->get_description();
    					$items[$key]['source'] = $item->get_source();
    					$items[$key]['copyright'] = $item->get_copyright();
    				}
    			}
    		}
    
    		if ( $items ) {
    			ksort( $items );
    			$items = array_reverse( $items, true );
    		} else {
    			return false;
    		}
    
    		/* Record found blog posts in activity streams */
    		foreach ( (array) $items as $post_date => $post ) {
    
    			$activity_action = sprintf( __( '%s from %s in %s', 'bp-groups-externalblogs' ), '<a class="feed-link" href="' . esc_attr( $post['link'] ) . '" target="_blank">' . esc_attr( $post['title'] ) . '</a>', '<a class="feed-author" href="' . esc_attr( $post['blogurl'] ) . '" target="_blank">' . attribute_escape( $post['blogname'] ) . '</a>', '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' );
    
    			$activity_content = '<div>' . strip_tags( bp_create_excerpt( $post['description'], 175 ) ) . '</div>';
    			$activity_content = apply_filters( 'bp_groupblogs_activity_content', $activity_content, $post, $group );
    			/* Fetch an existing activity_id if one exists. */
    			if ( function_exists( 'bp_activity_get_activity_id' ) )
    				$id = bp_activity_get_activity_id( array( 'user_id' => false, 'action' => $activity_action, 'component' => $bp->groups->id, 'type' => 'exb', 'item_id' => $group_id, 'secondary_item_id' => wp_hash( $post['blogurl'] ) ) );
    
    			/* Record or update in activity streams. */
    			groups_record_activity( array(
    				'id' => $id,
    				'user_id' => false,
    				'action' => $activity_action,
    				'content' => $activity_content,
    				'primary_link' => $item->get_link(),
    				'type' => 'exb',
    				'item_id' => $group_id,
    				'secondary_item_id' => wp_hash( $post['blogurl'] ),
    				'recorded_time' => gmdate( "Y-m-d H:i:s"),
    				'hide_sitewide' => $hide_sitewide
    			) );
    		}
    
    		return $items;
    	}
    #273890

    In reply to: Work.

    Venutius
    Moderator

    Ah you mean:

    $groups = BP_Groups_Member::get_group_ids( $user_id, $per_page );

    ?

    #273842

    In reply to: Work.

    Venutius
    Moderator

    The infor is help in _bp_groups_members, there’s a group_id and a user_id meta key

    #273369
    Varun Dubey
    Participant

    @cyberjulie you can download the previous version at https://downloads.wordpress.org/plugin/buddypress.2.9.4.zip

    @abracarambar
    patch is working fine, you only need to modify
    Line 395 inside plugins/buddypress/bp-groups/bp-groups-activity.php

    ( ! groups_is_user_member( bp_loggedin_user_id(), $group_id ) || ! groups_is_user_banned( bp_loggedin_user_id(), $group_id ) )
    with
    ( ! groups_is_user_member( bp_loggedin_user_id(), $group_id ) || groups_is_user_banned( bp_loggedin_user_id(), $group_id ) )

    #273221
    Paul Wong-Gibbs
    Keymaster

    @anrahulpandey Check the function declaration for groups_join_group() inside BuddyPress’ files!

    function groups_join_group( $group_id, $user_id = 0 )

    I think you are specifying the user_id and group_id parameters in the wrong order. 🙂

    #272723
    louie171
    Participant

    update: I wrote the code. It all seems to work fine (except), it doesn’t seem to affect the query (i.e. the results in members index page are not right). Not sure why ?

    Any input would be hugely appreciated:

    function add_groups_to_members_search(  $query_args  ) {
        
        $search = esc_sql($_REQUEST['search_terms']);  // search box on members index page
        
        global $wpdb;
        
        // get users in groups that search term is like
        $sql = "SELECT m.user_id FROM wp_bp_groups g, wp_bp_groups_members m where g.id = m.group_id and g.name like '%$search%'"; 
        
        $myrows = $wpdb->get_results( $sql );
           
        $user_ids = array();
        
        foreach ($myrows as $obj ) {        
            $user_ids[] = $obj->user_id;      
        }
        
        $query_args['include'] = $user_ids;
        
        return $query_args;
        
    }
    
    add_filter( 'bp_before_has_members_parse_args', 'add_groups_to_members_search', 999999, 1 );
    #272171
    luice
    Participant
    remove_filter('the_content', 'do_shortcode', 11); 
    $setting = groups_get_groupmeta( $group_id, 'group_resources_setting');
    Venutius
    Moderator

    The following change will remove the What’s New area from the Activity page, it will still be visible in Groups and on the users profile activity page.

    You will need to set up a childtheme (there’s plenty of plugins that will do this for you).

    <?php
    /**
     * BuddyPress - Activity Post Form
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    
    ?>
    
    <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form">
    
    	<?php
    
    	/**
    	 * Fires before the activity post form.
    	 *
    	 * @since 1.2.0
    	 */
    	do_action( 'bp_before_activity_post_form' );
    	
    	if ( bp_is_my_profile() || bp_is_group() ) : ?>
    
    	<div id="whats-new-avatar">
    		<a href="<?php echo bp_loggedin_user_domain(); ?>">
    			<?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>
    		</a>
    	</div>
    
    	<p class="activity-greeting"><?php if ( bp_is_group() )
    		printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    	else
    		printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    	?></p>
    
    	<div id="whats-new-content">
    		<div id="whats-new-textarea">
    			<label for="whats-new" class="bp-screen-reader-text"><?php
    				/* translators: accessibility text */
    				_e( 'Post what\'s new', 'buddypress' );
    			?></label>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    		</div>
    
    		<div id="whats-new-options">
    			<div id="whats-new-submit">
    				<input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php esc_attr_e( 'Post Update', 'buddypress' ); ?>" />
    			</div>
    
    			<?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
    
    				<div id="whats-new-post-in-box">
    
    					<?php _e( 'Post in', 'buddypress' ); ?>:
    
    					<label for="whats-new-post-in" class="bp-screen-reader-text"><?php
    						/* translators: accessibility text */
    						_e( 'Post in', 'buddypress' );
    					?></label>
    					<select id="whats-new-post-in" name="whats-new-post-in">
    						<option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>
    
    						<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0&update_meta_cache=0' ) ) :
    							while ( bp_groups() ) : bp_the_group(); ?>
    
    								<option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>
    
    							<?php endwhile;
    						endif; ?>
    
    					</select>
    				</div>
    				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    
    			<?php elseif ( bp_is_group_activity() ) : ?>
    
    				<input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    				<input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />
    
    			<?php endif; ?>
    
    			<?php
    
    			/**
    			 * Fires at the end of the activity post form markup.
    			 *
    			 * @since 1.2.0
    			 */
    			do_action( 'bp_activity_post_form_options' ); ?>
    
    		</div><!-- #whats-new-options -->
    	</div><!-- #whats-new-content -->
    
    	<?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    	<?php
    
    	/**
    	 * Fires after the activity post form.
    	 *
    	 * @since 1.2.0
    	 */
    	endif;
    	do_action( 'bp_after_activity_post_form' ); ?>
    
    </form><!-- #whats-new-form -->

    Just place this file content in your themes/child-theme/buddypress/activity/post-form.php file. Activity, replacing everything that’s in the current file.

    If you want an easier way to manage your template overloads you should look at BP Template Overloader, which will help you keep track. When you overload a theme page, you need to remember that you will have to take responsibility for keeping it up to date since any changes to the master file will no longer be loaded.

Viewing 25 results - 76 through 100 (of 567 total)
Skip to toolbar