Replies
- Brajesh Singh on November 1, 2018 at 2:46 pm in reply to: [Resolved] How to disable public and private messages for specific users #18485
Thank you Tosin.
I am glad the code worked.
1. Yes, It is still possible to send the message. We have only removed the button.
I don’t see any way to completely restrict from receiving. If we use filter ‘bp_activity_do_mentions’ it will disable for all users.
We can use it for disabling mention for the sender though(It won’t send notifications etc, but the user can manually mention and it will appear in the mention stream).
Regards
Brajesh - Brajesh Singh on November 1, 2018 at 2:34 pm in reply to: Group Tabs Creator Pro – tab for specific group #18484
Hi Hugo,
If you create only one sub tab, It is the default sub tab and you can place the content there.Regards
Brajesh - Brajesh Singh on November 1, 2018 at 2:33 pm in reply to: [Resolved] Sort Single Document Gallery #18483
Thank you for confirming.
Yes, That is expected behaviour. User’s reordering manually overwrites the default.
I also believe it is the correct way to avoid user confusion.
Marking resolved.
Regards
Brajesh - Brajesh Singh on November 1, 2018 at 2:31 pm in reply to: Wow, it\'s quick! you have got it updated, the buddy circle title. ! #18482
Hi Kino,
Thank you.There can be many reason for the line issue. Can you please link me to a screenshot to help me understand it. Hopefully, I can assist you with it.
Regards
Brajesh - Brajesh Singh on November 1, 2018 at 2:29 pm in reply to: Rename filename video upload mandatory #18479
Hi Bjorn,
I am sorry but there is no way to rename file before/after upload for now.Why the file name looks like uuid, are you using some plugin to do it or is it the vido creation software that is naming file as that?
MediPress does not encode file names, It will simply sanitize name(replace space, invalid characters etc).
Also, are you referring to media title change instead of the file name? if yes, media title is changeable after the upload.
Regards
Brajesh Marking resolved as per https://buddydev.com/support/forums/topic/wow-its-quick-you-have-got-it-updated-the-buddy-circle-title/
Regards
Brajesh
- Brajesh Singh on November 1, 2018 at 5:57 am in reply to: [Resolved] Conditional Fields only work on one group #18473
Hi Nikita,
For the select, radio, checkboxes BuddyPress deletes and recreates the field. It is not the conditional field plugin, It is BuddyPress which is deleting/recreating option field(these are child fields) and that’s why you are seeing the changed value.
Since we use values to compare, I believe you can ignore the changed field id and the plugin will work for you.
Regards
Brajesh - Brajesh Singh on October 31, 2018 at 8:24 pm in reply to: Plugin Activity As Wire – Fb Wall does write to the wall of a user #18470
Hi Thorsten,
yes, That’s correct. It is exactly what you have written. The only difference is it you get a post form on other user’s profile.regards
Brajesh - Brajesh Singh on October 31, 2018 at 8:20 pm in reply to: [Resolved] How to disable public and private messages for specific users #18469
Hi Tosin,
Thank you for clarifying.Please remove the old code and use the following
/** * Is user restricted from receiving message. * * @param int $user_id user id. * * @return bool */ function buddydev_is_user_restricted( $user_id ) { // These user's won't be able to send the message. $restricted_user_ids = array( 2, 4766812, 4766806, 4766824, 4766786, 4766838 ); return in_array( $user_id, $restricted_user_ids ); } /** * Hide public message button if needed. * * @param array $r button args. * * @return array */ function buddydev_hide_public_button( $r ) { if ( bp_is_user() && buddydev_is_user_restricted( bp_displayed_user_id() ) ) { $r = array(); } return $r; } add_filter( 'bp_get_send_public_message_button', 'buddydev_hide_public_button' ); /** * Hide private message button if needed. * * @param array $r args. * * @return array */ function buddydev_hide_private_button( $r ) { if ( bp_is_user() && buddydev_is_user_restricted( bp_displayed_user_id() ) ) { $r = array(); } return $r; } add_filter( 'bp_get_send_message_button_args', 'buddydev_hide_private_button' );Hope this helps. Please let me know if it works for you or not?
Regards
Brajesh - Brajesh Singh on October 31, 2018 at 7:07 pm in reply to: [Resolved] Sort Single Document Gallery #18466
Instead of
$args['order'] = 'ASC';Please use both.
$args['orderby'] = 'title'; $args['order'] = 'ASC';Does that work?