pracol
Forum Replies Created
-
Forum: Plugins
In reply to: [MediaPress] Slide show in avatarAlso please suggest the slideshow.
However, I am using one slideshow “MediaPress Light Gallery”.
Forum: Plugins
In reply to: [MediaPress] Slide show in avatarThank 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 );Forum: Plugins
In reply to: [MediaPress] Photo tab without creating the galleryNoted.
Thank you so much for your help.
Forum: Plugins
In reply to: [MediaPress] Photo tab without creating the galleryI 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
Forum: Plugins
In reply to: [MediaPress] Photo tab without creating the galleryThank 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.
Forum: Plugins
In reply to: [BP Profile Search] Add prefix to USER ID when searchThanks a lot. This code works fine.
Forum: Plugins
In reply to: [BP Profile Search] Add prefix to USER ID when searchYes, 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
Forum: Plugins
In reply to: [BP Profile Search] Add prefix to USER ID when searchIs is not solved yet.