Replies
- Brajesh Singh on October 14, 2020 at 4:51 pm in reply to: [Resolved] Check via PHP if user have galleries Mediapress #33922
Hi Giacomo,
Please make sure to avoid the return statement. I have updated the code.1. Please clarify the question. I am not sure of the question.
2. The php code can be used in your ajax handler, I do not see any issue. If you want to implement a client side check using js, you can create an ajax andpoint for your own implementation that checks the status.Regards
Brajesh - Brajesh Singh on October 14, 2020 at 4:47 pm in reply to: Recent Visitors For BuddyPress Profile – BuG / error ? Visual page notifications #33920This reply has been marked as private.
- Brajesh Singh on October 14, 2020 at 4:47 pm in reply to: From/To Values Profile Field Type with two drop down select boxes #33919
Hi Carsten,
Thank you for the suggestion.This is not the intended purpose of this field. It is a free form field. What you are suggesting is a specific use case and we should be better off with a different field type. It will be nice if you can suggest a name for the new field type, I will be glad to have it.
Regards
Brajesh - Brajesh Singh on October 14, 2020 at 4:45 pm in reply to: create a directory of member types who are currently online? #33918
Hi Nick,
Sorry for the delaye.
@ravisharma checked the plugin today and found that you can usetype=onlinein the current shortcode to find the online members(BuddyPress considers user online if they have been active in last 15 minutes. This duration can be customized via a hook).
Regards
Brajesh - Brajesh Singh on October 14, 2020 at 2:46 am in reply to: [Resolved] Check via PHP if user have galleries Mediapress #33906
Hi,
You may use$count = mpp_get_gallery_count( array( 'component' => 'members', 'component_id' => $user_id, // replace with user id. 'type' => 'photo',// photo, video,audio,doc 'status' => 'public',// if empty, will check for all accessible galleries for the visitor ) );Regards
Brajesh- This reply was modified 5 years, 10 months ago by
Brajesh Singh. Reason: updated code
- This reply was modified 5 years, 10 months ago by
- Brajesh Singh on October 14, 2020 at 2:34 am in reply to: [Resolved] Buddypress Profil Visit Restrictions – UPDATE #33905This reply has been marked as private.
- Brajesh Singh on October 14, 2020 at 2:32 am in reply to: Recent Visitors For BuddyPress Profile – BuG / error ? Visual page notifications #33904This reply has been marked as private.
- Brajesh Singh on October 14, 2020 at 2:31 am in reply to: [Resolved] Upload default image into Mediapress Uploader #33903
Hi Jkk,
All images are WordPress atatchment with some extra metadata. Please see mpp_add_media() funciton.Regards
Brajesh Hi Steven,
Thank you for using the plugin.At the moment, the plugin only allows adding a list of specified members.
The reason is to avoid trouble for site admins. If we let them do it based on conditions, it could lead to 1000s of friendship on a medium install and not a great experience for new user.The plugin is not suited for your use case currently.
Regards
BrajeshThank you for confirming.
If your goal is to keep the functionality but hide the tab, then css is the best suited option.
Regards
Brajesh