• Hi,

    Sorry to bother you again.
    Actually I installed buddypress and mediapress. Also tried rtmedia previously but didnot solve my problem. I want to merge Avatar and photo – gallery of one user and then want to display it as slideshow.
    In member directory or in profile loop page if user click on avatar then slideshow of avatar + photos (If user uploaded the avatar and If user have uploaded photos in mediapress’s default created gallery)should run. If avatar is not uploaded and only photos are uploaded in that case only photo should run as slideshow. If photos are not uploaded and only avatar is uploaded then only avatar should show as slideshow.

    The below link shows what actually I want on member directory page.
    https://ibb.co/npaGno

    Please giude me if it is possible by buddypress including mediapress. Or if you can provide some other method or plugin which can solve my problem.
    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    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”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slide show in avatar’ is closed to new replies.