Hi,
Thank you for asking.
AS far as I see the problem, It is easily doable. I will still need to know a few things before I can help.
1. Are we allowing a user multiple gallery? If yes, how do we know which gallery to store the user avatar when avatar is uploaded?
2. Continuing from first, if there is multiple gallery, how do we know which gallery photos to display.
If you are using a single gallery, or want to keep the avatar in the wall gallery etc, I can assist with the code. It should be a simple task. Do you have any slideshow that you might want to use or can we suggest one?
Opening in lightbox will be even easier though.
Thread Starter
pracol
(@pracol)
Thank you for your response.
Here are some more clarification.
(1) I inserted the code in function.php (in Child theme), as given below, to create one gallery automatically named “Photos Album”. Means each registered member will have this auto created gallery. (Worked fine)
function mpp_one_auto_gallery_create()
{
XXX
‘title’ => ‘Photos Album’,
‘type’ => ‘photo’,
XXX
}
add_action( ‘mpp_actions’, ‘mpp_one_auto_gallery_create’ );
(2) Then I applied some css (style.css in Child theme) and disabled two buttons named “My Gallery” and “Create a Gallery”. Means member cannot create a new gallery. He or she can only upload photos in “Photos Album” default created gallery. (Worked fine)
Here let’s suppose member 1 uploaded four photos i.e. memb_1_pho_1, memb_1_pho_2, memb_1_pho_3, memb_1_pho_4
(3) I inserted the code in function.php (in Child theme), as given below, for inserting default avatar based on member type. (Worked fine)
add_filter( ‘bp_core_fetch_avatar_no_grav’, ‘__return_true’ );
function buddydev_set_avatar_based_on_member_type( $avatar, $params) {
XXX
if ( $type == ‘male’ ) {$avatar = ‘/male.jpg’;}
else {$avatar = ‘/female.jpg’;}
XXX
add_filter( ‘bp_core_default_avatar_user’, ‘buddydev_set_avatar_based_on_member_type’, 10, 2 );
Thread Starter
pracol
(@pracol)
Also please suggest the slideshow.
However, I am using one slideshow “MediaPress Light Gallery”.