Replies
- Brajesh Singh on January 23, 2018 at 9:38 pm in reply to: [Resolved] lot of error 404 by clicking on the picture of a member to see his profile #13121
Hi Herve,
I am sorry for the delayed reply.Your best bet is to do a Search and replace on table for the old to new urls( Only the link upto dire ctory part)
You can use this
https://github.com/interconnectit/Search-Replace-DB
It is very easy to use and you can see what changes will happen before actually running.
Hope that helps.
Regards
Brajesh - Brajesh Singh on January 23, 2018 at 9:22 pm in reply to: Any known sliders/slideshows that work with MediaPress specific galleries? #13120
Hi Sam,
Thank you.Before assisting further,can you please check if a slider like this will solve the purpose
http://sachinchoolur.github.io/lightGallery/If yes, Then I can suggest some way.
Thank you
Brajesh - Brajesh Singh on January 23, 2018 at 9:20 pm in reply to: [Resolved] MediaPress activity feed stopped working… #13118
Ok. Marking it as resolved. Let us continue the discussion there.
- Brajesh Singh on January 23, 2018 at 9:19 pm in reply to: filter the buddypress members in the list of members #13117
Hi Herve,
My mistake. I forgot that bp_has_members() won’t use xprofile_query instead it should be specified on BP_User_QueryHere is the updated code
/** * Custom filter for members list for Herve. * * @param BP_User_Query $query query object. * * @return array */ function buddydev_filter_members_list_herve( $query ) { if ( ! is_user_logged_in() ) { return; } $user_id = get_current_user_id(); // get the value for the field. // Use field id for better performance. $searching_for = xprofile_get_field_data( 'I search', $user_id, 'comma' ); if ( empty( $searching_for ) ) { return; } $xprofile_query = isset( $query->query_vars['xprofile_query'] ) ? $query->query_vars['xprofile_query'] : array(); $xprofile_query[] = array( 'field' => 'I am', // I sugget using field id for more efficiency. 'value' => $searching_for, 'compare' => '=', ); if ( ! empty( $xprofile_query ) ) { $query->query_vars['xprofile_query'] = $xprofile_query; } return $query; } add_action( 'bp_pre_user_query_construct', 'buddydev_filter_members_list_herve', 0 );Replace the field with actual field is/name and it will work. Please make sure to remove the old code.
Regards
Brajesh - Brajesh Singh on January 23, 2018 at 9:08 pm in reply to: [Resolved] MediaPress activity feed not working #13116
Hi Richard,
Are you looking for it for the uploads from Gallery->Upload screen or from the activity upload screen.If it is for activity upload screen, My question will be what happens when you post the activity with attached media?
If it is for Gallery upload screen, Please visit Dashboard->settings->BuddyPress and you can enable automatic posting to activity there.
Best Regards
Brajesh - Brajesh Singh on January 23, 2018 at 9:05 pm in reply to: My Gallery/Galleries/Album/s title/label #13115
Hi Richard,
Agree about the plural. About being configurable, isn’t translating it the same?In next update, I will update the string to use plurals instead. For now, Please feel free to translate it.
- Brajesh Singh on January 23, 2018 at 8:58 pm in reply to: [Resolved] MediaPress Lightbox 50/50 success/failure #13114
Can you please use user switching plugin and check it? I am not sure whay will that happen.
- Brajesh Singh on January 23, 2018 at 8:56 pm in reply to: [Resolved] MediaPress photos should Inherit gallery permissions #13113
Hi Richard,
The media inherits the privacy of parent gallery unless you specify the privacy manually.Please see
https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L289Line 289-299.
We use any custom privacy if given with the request, otherwise we use gallery privacy and if that is also not available, we use the default specified in the admin.
I am not sure what is happening on your install but your expectations are correct and that is exactly how we are handling it.
If there is any other information, Please do let me know.
Thank you
Brajesh - Brajesh Singh on January 23, 2018 at 8:45 pm in reply to: [Resolved] Member Types Pro – assign member type on signup based on role? #13111
Hi Sam,
I am sorry for the delayed reply.1. On BuddyPress Signup, Roles to Member Type mapping will not work. The role to member type mapping will work in all other scenario.
The reason behind this decision is BuddyPress changes role twice on registration and that amkes things very difficult to differentiate.
2. If the role changing is triggered by WooCommerce and or admin, It will change the member type.
In case you are using WooCommerce Membership, I have a better solution(We can allow direcly mapping from the memberships to the member type ).
Thank you
Brajesh Hi Richard,
The debug mode is limited to showing the gallery id/media id and privacy on the single attachment page in the admin.We plan to allow better debug capabilities for front end in future.
Thank you
Brajesh