Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Hi Matthew,
    Thank you.

    I will suggest looking into the plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single directory.

    Specially home.php(how each component is loaded). Looking at the home.php will give you all the idea you need for customizing.

    PS: You can override all the templates in buddypress by copying the file to your theme( and ignoring the bp-templates/bp-legacy/ part).

    So, if you want to override /buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php you will copy it to your theme/buddypress/members/members-loop.php

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: Xprofile field problem or BUG #9340

    Yes, I can confirm it now too.
    A quick fix(just a workable solution, not the best) is to mark the field with the zero value as default. That does make it work.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: [Resolved] buddypress list all groups #9339

    Hi Valle,
    Please take a look at the groups-loop.php. In that file you will see bp_has_groups(), you can pass per_page and max to control how many.

    You can copy paste the loop and its content from this file to list the groups.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Hi Giulietta,

    Please put this code in your bp-custom.php or your functions.php

    
    
    /**
     * Ask BuddyPress to check and load newest activity on Community Activity page.
     *
     * @param bool $do
     *
     * @return bool
     */
    function buddydev_do_heartbeat_on_community_activity( $do ) {
    	// is it our page?
    	if ( bp_is_user_activity() && bp_is_current_action( 'all-activity' ) ) {
    		$do = true;
    	}
    
    	return $do;
    }
    add_filter( 'bp_activity_do_heartbeat', 'buddydev_do_heartbeat_on_community_activity' );
    
    

    That will make it work.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: Xprofile field problem or BUG #9333

    Hi Nim,
    It was a known bug earlier. I am not sure if it is fixed in current version though.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Hi Giulietta,
    I am sorry to keep you waiting.

    Please allow me just one more day.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Hi Matthew,
    Thank you for posting.

    You can put the following code in your bp-custom.php or your theme’s functions.php

    
    
    /**
     * Make user profiles single column layout for the customizer theme.
     *
     * @param string $layout
     *
     * @return string
     */
    function buddydev_customizer_profile_single_col_layout_filter( $layout ) {
    
    	if ( bp_is_user() ) {
    		$layout ='f';
    	}
    
    	return $layout;
    
    }
    add_filter( 'tc_screen_layout', 'buddydev_customizer_profile_single_col_layout_filter' );
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: Mediapress fullscreen mobile images #9320

    So, I guess you are trying to have larger image in the activity stream display?

    There are two eays to do it.

    1. Either change the size of the thumbnail from the above code(and It will resize for new)
    2. Or use a different image size(may be ‘mid’)

    For the second case, Please do teh following

    a) Copy the mediapress/templates/default/buddypress/activity/views/grid-photo.php (Please see screenshot)
    http://i.imgur.com/Yk3vXW4.png

    to Yourtheme/mediapress/default/buddypress/activity/views(as shown below)
    http://i.imgur.com/7LVKyNh.png

    Once you have done it, Please change the code

    
    			<a href="<?php mpp_media_permalink(); ?>">
    				<img src="<?php mpp_media_src( 'thumbnail' ); ?>" class='mpp-attached-media-item' data-mpp-activity-id="<?php echo $activity_id; ?>" title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>
    			</a>
    
    

    to

    
    			<a href="<?php mpp_media_permalink(); ?>">
    				<img src="<?php mpp_media_src( 'mid' ); ?>" class='mpp-attached-media-item' data-mpp-activity-id="<?php echo $activity_id; ?>" title="<?php echo esc_attr( mpp_get_media_title() ); ?>"/>
    			</a>
    

    That will do it.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: problem wiith Media uplad in stream #9318

    Hi Doug,
    Thank you.
    It’s good to know.

    is that a chance that you deleted some admin gallery earlier? If a wall gallery is deleted(by default trashed) but not completely removed, they can cause this issue.

    Can you please Visit Dashboard->MediaPress and check if there are some galleries in trashed state?

    Thank you
    Brajesh