Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter pracol

    (@pracol)

    Also please suggest the slideshow.

    However, I am using one slideshow “MediaPress Light Gallery”.

    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)

    Noted.

    Thank you so much for your help.

    Thread Starter pracol

    (@pracol)

    I inserted the code inside the function.php which automatically create the gallery. It works fine. Thank You

    Also I want to know the feasiblity of one more condition of this plugin as:

    If user is registered with buddypress but didnot yet uploaded the profile pic. Now the user upload the photo in default created gallery using mediapress. Is it possible this first time newly uploaded photo automatically set as profile pic.

    Thank You

    Thread Starter pracol

    (@pracol)

    Thank you for your response.

    “It is feasible to automatically create galleries for user”. How can the gallery can be created automatically? Could you please guide me.

    Thread Starter pracol

    (@pracol)

    Thanks a lot. This code works fine.

    Thread Starter pracol

    (@pracol)

    Yes, Exactly I need this. “when the user enters ‘IND456’ in the ID search field, the plugin should search for ‘456’. and when the user enters ‘456’ in the ID search field, The plugin should not search any thing”.

    Thank You

    Thread Starter pracol

    (@pracol)

    Is is not solved yet.

Viewing 8 replies - 1 through 8 (of 8 total)