Replies
Hi Tosin,
Please see
https://buddydev.com/mediapress/topics/api-guides/configuring-mediapress-internals/Regards
Brajesh- Brajesh Singh on April 18, 2018 at 9:47 pm in reply to: [Resolved] BuddyPress Simple Front End Post | 'Add Media' button not appearing. #14621
Hi Brendan,
sorry about that.Here is how it works:-
WordPress needs the user to have ‘upload_files’ and ‘edit_post’ capability to allow user upload and then attach the uploaded media to post.
Since this is a common thing, The plugin does it if you are using the form on any of the BuddyPress section.
If you are not using it from BuddyPress section, we need to manually enable it.
For now, I will suggest putting it in your theme’s functions.php as we need the capability to be updated for ajax upload too.
Please give a try and let me know what happens.
Regards
Brajesh - Brajesh Singh on April 18, 2018 at 9:06 pm in reply to: Activities : no storage, erase all activities automatically every year #14618
Hi Herve,
Here is the code for three/** * Exclude BuddyPress activity types form listing. * * @param array $args activity args. * * @return array */ function buddydev_exclude_activity_types( $args ) { // do not modify if the scope is laready set. if ( ! empty( $args['scope'] ) ) { return $args; } // exclude the activity types if scope is not set. $args['filter_query'] = array( array( 'column' => 'type', 'value' => array( 'friendship_created', 'new_member', 'updated_profile' ), 'compare' => 'NOT IN' ) ); return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_exclude_activity_types' );Hope this helps.
Regards
Brajesh - Brajesh Singh on April 18, 2018 at 7:36 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14615
Hi Sujee,
You are welcome.If you want, I can assist with the code. It is pretty easy to accomplish
1. Register private post type
2. In the author box select the assigned counsellor as author
3. Add the actual content for that counsellor.
4. Create a simple shortcode to fetch the post for that user and that’s all.I believe It may be helpful for others too using the BuddyPress Profile Tabs Pro plugin.
Best regards
Brajesh - Brajesh Singh on April 18, 2018 at 7:30 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14613
Thank you for clarifying.
In my view, It will make much more sense to have a post type for the counsellors home content and assign a content page entry to a counsellor. After that, you simply put a shortcode in the home tab and it shows the content for that counsellor.
That way, you can manage the content in better way and also won’t have to create too many tabs for the counsellors.
What do you think of this approach?
- Brajesh Singh on April 18, 2018 at 7:24 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14611
Hi Sujee,
Thank you for clarifying.Sorry, the above code I suggested works on the basis of member type.
Before assisting further, May I ask what you need to create different home pages for different counsellors? Is it because you want to show different content or is there any other reason?
Thank you
Brajesh - Brajesh Singh on April 18, 2018 at 6:55 pm in reply to: [Resolved] Redirect admin URL profile and setting profile to 404 & dropdown profile tabs #14609
Hi Julia,
I am rephrasing your question1. Do you want to disable access to site admin’s profile?
2. I am still confused, please clarify.3. Do you want the logged in users to be unable to check site’s home page and when they try to check home page they should be redirected to their profile?
Thank you
Brajesh Hi Leland,
Thank you for posting.In the current setup, we can accomplish it in the same way as the activity upload.
Use an uploader and if the document gallery is not present, create it automatically for the user.
The hook for it will be ‘mpp_get_context_gallery’ . We use it internally for automatically creating wall galleries.Here is the implementation for the activity wall gallery
https://github.com/buddydev/mediapress/blob/master/modules/buddypress/activity/mpp-activity-hooks.php#L136Hope that helps.
Regards
Brajesh- Brajesh Singh on April 18, 2018 at 6:50 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14607
Hi Sujee,
I am sorry but I could not understand you last reply.We are not dealing with permalink here. It is for the default tab, so should work just fine if you click on a user’s link.
Regards
Brajesh Hi Julia
1. You will see it when you have a realtime notification. It does not show for older notifications.
2. That is beyond the scope of this plugin. If you are looking to list notifications, I will suggets using BuddyPress Notifcations Widget
https://buddydev.com/plugins/buddypress-notifications-widget/Regards
Brajesh