Replies
- Brajesh Singh on May 29, 2017 at 12:47 pm in reply to: [Resolved] Customising the member profile – are there any good tutorials. #9341
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 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.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.
- Brajesh Singh on May 29, 2017 at 12:01 pm in reply to: [Resolved] load newest button with BP CommunityActivity on profile #9338
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 - Brajesh Singh on May 29, 2017 at 10:13 am in reply to: [Resolved] How to hide the sidebar properly in member profile view #9334
You are welcome 🙂
Hi Nim,
It was a known bug earlier. I am not sure if it is fixed in current version though.- Brajesh Singh on May 26, 2017 at 2:01 pm in reply to: [Resolved] load newest button with BP CommunityActivity on profile #9323
Hi Giulietta,
I am sorry to keep you waiting.Please allow me just one more day.
Thank you
Brajesh - Brajesh Singh on May 26, 2017 at 2:00 pm in reply to: [Resolved] How to hide the sidebar properly in member profile view #9322
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.
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.pngto Yourtheme/mediapress/default/buddypress/activity/views(as shown below)
http://i.imgur.com/7LVKyNh.pngOnce 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
BrajeshHi 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