Replies
- Brajesh Singh on February 1, 2020 at 7:23 pm in reply to: [Resolved] Restrict access to Buddypress if no member type #27551
Hi Gavin,
Thank you.Please use the following code.
// Check access for user. add_action( 'bp_template_redirect', function () { if ( ! is_user_logged_in() || is_super_admin() ) { return; } // User has somemeber type? if ( bp_get_member_type( bp_loggedin_user_id() ) ) { return; } // redirect as user does not ahve any member type. $redirect_to = site_url( '/' ); //change with where you want to redirect. Make sure it is outside buddypress. if ( is_buddypress() ) { // if we are in BuddyPress section, redirect. bp_core_redirect( $redirect_to ); } } );It redirects user to site home page if they try to access any BuddyPress content.
Regards
Brajesh - Brajesh Singh on February 1, 2020 at 7:18 pm in reply to: Automatically Publish to activity for new Media Upload #27550This reply has been marked as private.
- Brajesh Singh on February 1, 2020 at 7:10 pm in reply to: Add new tab with custom content in members directory #27549
Hi,
Thank you for the suggestion. I will consider it in future.You can use code to add it for now. It will need 2 parts. 1 Adding tab and 2 handling ajax request for generating the output.
Regards
Brajesh - Brajesh Singh on February 1, 2020 at 7:08 pm in reply to: Add profiles fields in members directory #27548
Hi,
Thank you for the question.
You are using a premium theme and I will suggest contacting the theme author for the same. Our Premium theme comes with this feature pre-built.
Regards
Brajesh haha, that is typical Bollywood for us 🙂
- Brajesh Singh on January 31, 2020 at 2:25 am in reply to: Automatically Publish to activity for new Media Upload #27536This reply has been marked as private.
- Brajesh Singh on January 31, 2020 at 2:24 am in reply to: Automatically Publish to activity for new Media Upload #27535
Hi Daniel,
1. Would it be not more beneficial and simpler to just integrate the media upload content to the activity instead of only the information that new media was created?
That should happen for the media uploads. Is it not showing the actual media with that activity?
2. The problem is button being overridden by thrive nouveau. It is overwriting the background(which shows control image) and the border for the controls.
We may need to override that. I am sharing css in a private reply as it contains your site url.
3. Please use css to hide the history for now.
Regards
Brajesh - Brajesh Singh on January 31, 2020 at 2:16 am in reply to: [Resolved] Restrict access to Buddypress if no member type #27534
Hi Gavin,
Thank you for the topic.Yes, It is doable with a few lines of code.
Can you please help me understand how do you perceive hiding BuddyPress? What features do we restrict fro the user?
Please let me know the features we need to restrict(example:- do not allow access to profile) and I will assist.
Thank you
Brajesh Hi Johan,
Thank you for the suggestion.In case of BuddyPress, There is a filter to limit the length but it is by number of characters and not the words.
I have added this option in the Community Builder Pro(Customize->BuddyPress->Activity). It will be available with next release(Friday/Saturday).
Thank you
Brajesh- Brajesh Singh on January 30, 2020 at 10:14 pm in reply to: Visible Gallery Only Private Groups #27532
Hi Javier,
Thank you for confirming.Please use the gallery list shortcode.
https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/
Regards
Brajesh