Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1 through 25 (of 3,863 total)
  • Author
    Search Results
  • activadorr
    Participant

    A potential solution is to customize the BuddyPress plugin or use a custom code snippet to modify how posts from private or hidden groups are displayed. You can use a function that checks if a user is a member of a private or hidden group, then filter the posts accordingly for the dashboard widget. Activadorr

    function custom_filter_dashboard_activity($query) {
        if ( is_user_logged_in() ) {
            $user_id = get_current_user_id();
            
            // Get user groups
            $user_groups = groups_get_user_groups($user_id);
            
            // Filter activity to show only from the user's groups
            $query->set('in', implode(',', $user_groups['groups']));
        }
        return $query;
    }
    add_filter('bp_has_activity', 'custom_filter_dashboard_activity');
    
    balton129
    Participant

    Hi Bradley,

    To display group-specific posts on the dashboard while maintaining privacy, you can use a custom query to fetch activity from only the groups a user belongs to. Add the following to your theme’s functions.php:

    `php
    function bp_custom_dashboard_activity( $args ) {
    if ( is_user_logged_in() ) {
    $user_id = get_current_user_id();
    $group_ids = bp_get_user_groups( $user_id );
    if ( ! empty( $group_ids ) ) {
    $args[‘filter’][‘object’] = ‘groups’;
    $args[‘filter’][‘primary_id’] = $group_ids;
    }
    }
    return $args;
    }
    add_filter( ‘bp_after_has_activities_parse_args’, ‘bp_custom_dashboard_activity’ );
    `

    This ensures only posts from the user’s private or hidden groups show on their dashboard. For wiki articles, use group IDs as metadata to filter visibility. Test thoroughly to maintain privacy.

    Let me know if you need help refining this further!

    GyziieDK
    Participant

    Hello guys!

    I’ve seen this question in here a couple of times and maybe others would enjoy this code.
    I couldn’t find a good solution in trying to “hide” the official and hidden groups, when users are creating them (it just would not allow me to hide them!).

    I then managed to fix a code and make it work so at least it shows an error when a user (besides admin) tries to create a group that is NOT private. In this way when a user tries to create a public/hidden group it will not allow the user to “proceed” with the next step unless private group is chosen.

    Feel free to update the CSS to your liking!

    Hope it helps, enjoy! πŸ™‚

    function restrict_group_type_selection() {
        // Ensure this script only runs during the group settings creation step
        if (bp_is_group_creation_step('group-settings')) {
            // Check if the user is not an admin (wrap the condition outside the script for cleaner HTML output)
            if (!current_user_can('manage_options')) {
                ?>
                <style type="text/css">
                    .group-type-error-message {
    					color: #ffffff;
    					background-color: #f95959;
    					position: relative;
    					margin-top: 20px !important;
    					border: 0 !important;
    					font-weight: 600;
    					}
    				}
                </style>
                <script type="text/javascript">
                    document.addEventListener('DOMContentLoaded', function () {
                        const nextButton = document.getElementById('group-creation-next'); // Target the "Next step" button
                        if (nextButton) {
                            nextButton.addEventListener('click', function (event) {
                                const selectedGroupType = document.querySelector('input[name="group-status"]:checked');
                                let errorContainer = document.getElementById('group-type-error-message');
    
                                // Remove any existing error message
                                if (errorContainer) {
                                    errorContainer.remove();
                                }
    
                                if (!selectedGroupType || selectedGroupType.value !== 'private') {
                                    // Prevent moving to the next step if the group type is not 'private'
                                    event.preventDefault();
    
                                    // Create and display a styled error message
                                    errorContainer = document.createElement('div');
                                    errorContainer.id = 'group-type-error-message';
                                    errorContainer.className = 'group-type-error-message';
                                    errorContainer.innerText = 'You are only allowed to create private groups.';
    
                                    // Insert the error message after the "Next" button
                                    nextButton.parentNode.appendChild(errorContainer);
                                }
                            });
                        }
                    });
                </script>
                <?php
            }
        }
    }
    add_action('bp_after_group_settings_creation_step', 'restrict_group_type_selection');
    #335691
    Simplix Innovations
    Participant

    Hello,

    Suppose that I have 100 groups (public, private, hidden) and many people request to join my private groups. I receive like 1000 join requests (200 in one group and 800 for the rest of the groups).

    My questions Is there any way to do the following:

    • Bulk approving or rejecting group join requests for a single group
    • Bulk approving or rejecting group join requests for all the groups I have under one place instead of opening group by group

    Hopefully, this is something achievable (or an easy workaround using a plugin or code) as it’s a very important function that I couldn’t find.

    #335690
    Simplix Innovations
    Participant

    Hello,

    Suppose that I have 100 groups (public, private, hidden) and many people request to join my private groups. I receive like 1000 join requests (200 in one group and 800 for the rest of the groups).

    My questions Is there any way to do the following:

    • Bulk approving or rejecting group join requests for a single group
    • Bulk approving or rejecting group join requests for all the groups I have under one place instead of opening group by group

    Hopefully, this is something achievable (or an easy workaround using a plugin or code) as it’s a very important function that I couldn’t find.

    #335662
    wpuser
    Participant

    Hi there,

    I had the issue with posting a reply yesterday too. Weird.
    That is why I split my message in 2 and than I could post it.

    I was able to read your share txt and the next replies and also view that images.

    Anyway… I am willing (if you are willing to put the time in it) to give you access to my staging site, but I rather not post the link in public, to avoid traffic from Google and such to that staging website. But there does not seem to be a way to share the link with you in private. Do you have any suggestions?

    To further explain my situation: I did not make any customizations to my buddypress or xprofile plugin that have anything to do with the profile fields. From the clean install, the “Name” field is already there from the start, when installing the buddypress plugin.

    I am not adding users via the admin section, I am letting them signup via the website register form. So following this process, the situation is as described before, where the “Name” will be filled in by the user as part of the registration process. The Name field is mandatory, set by Buddypress, which I can not influence nor rename.

    I did nothing to influence the Name field, other than translating it like I explained before.
    The Name is operating as a seperate field, that does not seem to link to username by default. And that is also not what I want. Because it would lead to the username being shown twice on a profile page, which is ridicilous of course. Since you can not block or hide the Name field, it will be there. Also, the Name field is always on the register form, and the field is mandatory (which you cannot change), so people CAN and probably will fill in something different than their username. Most likely their first name. Which is what happened on my site anyway, people fill in their regular first name. Only a handfull will choose like a second username/nickname for the field value. Anyway, in 99% process of the time, the Name field is populated with a different value than the username as a result of the website registration process (which is not changed, it is by default like that, since installing buddypress).

    I use the BuddyX theme. But the issue is not related to the theme, because using a default WordPress theme (like twenty two or so), will have the same result.

    So, it poses as a problem, if the usernames show up on the userlist, but the sorting will go on the “Name” field, which is not identical to the username. This will lead to a really undesired situation, where the sorting does not seem to work properly on the frontend, because “invisible” the userlist is sorted on the Name field.

    And also, this is new. Before, this was not the case. It did NOT sort on the “Name” field. And I’m oblivious why it does now, what is the intent by changing this.

    So, to address the situation, and to avoid having duplicate usernames on the profile page, I would rather stick with people using the Name field as their first name or something like that.

    I would like to sort on display name. Is there a way to do that? Do you have a suggestion?

    talhaarif05
    Participant

    I’m encountering an issue with BuddyPress default email notifications on my site. Only two types of emails are being triggered: private messages and friend requests. However, other default emails, such as group invitations and account activations, comments etc, are not being sent. Could you please assist in identifying the cause of this issue or guide me on troubleshooting steps?

    MikeAlan
    Participant

    I am admin for a fairly comprehensive site, still under construction.
    I’m in the process of setting up the various sidebar widgets. They all work well except Sitewide notices, which has been set to be at the top of the right-hand sidebar, but it only displays a blank widget area, no title.
    The widget setup screen/right-hand sidebar/’sitewide Notices’ just says “Preview unavailable”
    Buddypress Settings/Private Messaging has been activated (ticked)
    There’s no “This is a notice to all users” box in the front end Messages/Compose screen.

    The site uses the latest versions of Buddypress and WordPress.
    The current theme is Theme4Press’s Evolve Plus

    I’ve tried deactivating all plugins except Buddypress.
    I have tried switching the theme to Twenty Seventeen, but all to no avail!

    Any help would be very much appreciated in getting the Sitewide Notices to work.

    #335388
    GyziieDK
    Participant

    Sorry for tagging you out like that, but noticed you’re mod and thought you might be able to help! – Sounds good – it’s apparently an issue in all groups and not just the private ones. πŸ™‚

    Looking forward for an update on this issue. Thanks!

    GyziieDK
    Participant

    Hello guys!

    I’ve noticed that when I’m on a (private) group’s own activity wall and I wait for a few seconds – it comes up with a button to “Load Newest” activites. When this button is pressed it loads EVERYTHING from the main activity wall and not just the items from that specific group.

    The meaning behind the “Load Newest” when within a group, should (I assume) be to load the newest posts/activites within that specific (again private) group. Anything else makes no sense.

    Also when page is refreshed all the activites that dosen’t belong in the group is removed.

    Is anyone else having the same issue or is this just a third party conflict on my end?

    If anyone else is having the same issue, then this should be fixed/looked into in an upcomming update for sure.

    If anyone has a solution to this, please let me know! πŸ™‚

    Thanks!

    daihlo
    Participant

    Found an issue.

    I have several Groups with Forums made, then if I make a Group and select not to have a forum on that group, the ‘forum’ tab will still show and will link to whichever forum is my first one created.
    This happens with any group that does not have a forum.

    Even worse, the first forum I have created is part of a private group which should be for members of that group only.

    This forum shows on the forum tab in any group that does not have a forum and even allows others to post within it this way!

    I have looked up this issue in lots of dated posts and found no solution even though finding it being a long stranding issue for a number of people…

    Please help as I am aiming to launch my site this month but will have to remove BBpress if cannot fix this.

    Thanks

    #334997
    Kimber254
    Participant

    Hi, I set up an email for recipient has received a private message. I wanted to add their name {{recipient.name}} and username {{recipient.username}} when a private message notification is emailed to them but they are not showing up. Any thoughts as to why. Thank you I hope my email codes show up.

    Hi {{recipient.name}}, username {{recipient.username}}

    {{sender.name}} sent you a new message: "{{usersubject}}"

    "{{usermessage}}"

    Go to the discussion to reply or catch up on the conversation.

    #334986
    Venutius
    Moderator

    have you set the BP to private? Or installed a privacy plugin?

    stephunique
    Participant

    Hello all,

    I have hidden myself as an admin, on my test site running buddypress, for obvious reasons. However, I discovered that when composing a message using Buddypress messages, when the user types in a partial name of the recipient, even a single letter, everyone that matches that name will show up, even if they are hidden from the directory. For example, typing “@a” will show “@admin” (me) as well as “@adam” or “@amanda” and this is no good.

    Is there a way to remove certain users (ideally by user roles) from showing up in the “to” field?

    I have WordPress 6.6.1 and Buddypress 14.0.0.

    Thank you

    #334864
    Renato Alves
    Moderator

    Three things:

    – I can’t replicate the issue you have.
    user_name is not a valid field, btw. It was deprecated.

    Using the followwing payload, I actually get this in BuddyPress 14.0 since you are using + in the user_login, that’s not valid.

    Request Payload.

    
    curl -X POST "https://bp-demo.test/wp-json/buddypress/v1/signup/" \
         -d "context=edit" \
         -d "user_email=pratik@testmail.com" \
         -d "user_login=testthe+request+" \
         -d "password=\"']));L)Q542q8dL3" \
         -d "signup_field_data[0][field_id]=1" \
         -d "signup_field_data[0][value]=testthe+request+" \
         -d "state=gggg" \
         -d "country=AZE" \
         -d "postal_code=444444" \
         -d "mobile_phone=555555555"
    
    
    {
      "code": "bp_rest_signup_validation_failed",
      "data": {
        "status": 500
      },
      "message": "Usernames can contain only letters, numbers, ., -, and @"
    }
    

    Here is the BP configuration I have locally, taken from my local site: https://bp-demo.test/wp-admin/site-health.php?tab=debug

    
    version: 14.0.0
    active_components: Extended Profiles, Settings, Friend Connections, Private Messages, Activity Streams, Notifications, User Groups, Site Directory, Members, Members Invitations
    url_parser: BP Rewrites API
    global_community_visibility: anyone
    template_pack: BuddyPress Nouveau 14.0.0
    ! hide-loggedout-adminbar: Yes
    ! bp-disable-account-deletion: Yes
    ! bp-disable-avatar-uploads: Yes
    ! bp-disable-cover-image-uploads: Yes
    bp-enable-members-invitations: No
    bp-enable-membership-requests: No
    ! bp-disable-profile-sync: Yes
    ! bp_restrict_group_creation: Yes
    ! bp-disable-group-avatar-uploads: Yes
    ! bp-disable-group-cover-image-uploads: Yes
    ! bp-disable-group-activity-deletions: Yes
    ! bp-disable-blogforum-comments: No
    _bp_enable_heartbeat_refresh: Yes
    
    #334759
    lmstearn
    Participant

    WP: 6.6.1, BBClassic & BuddyPress: 14.0, Stearnvault.com
    This enquiry is regarding excerpts from private posts displayed in the search hit results of the in-built Site Search. Looking for repro before filing at Trac.
    Because of the privacy concerns, the code from this SO thread is used to disable all search at the site at this time.
    Thanks.

    #334753
    Lars Henriksen
    Participant

    Hello BP-developers

    Thank you for maintaining and developing Buddypress!

    I have an issue with translating some site messages and labels, i.e. ‘members-only area’ + ‘This community area is accessible to logged-in members only.’ , text in buttons like ‘view group’ and some time stamps like ‘a month ago’

    I use Loco Translate, and I update the strings, but the translations don’t show.

    Here is a link to a group, which redirects to ‘private community’

    WP 6.6.1
    BP 14.0.0

    #334733

    In reply to: disable rss

    Venutius
    Moderator

    Yep could you create a new thread for this? It just means we keep to the same topic and it won’t confuse future viewers.

    I’ve decided to write a new bp privacy plugin which makes all bbp, wp, and bp pages private, disables xml rpc and also rest, removes the rss links and aims to deal with all privacy issues in one plugin, with settings to give flexibility.

    #334514
    barsaalvaro2024
    Participant

    Hi, Please any one knows a Plugin like “BuddyDrive” I need the administrator be able to send private files to a specific user or users, please I would appreciate any suggestions, I’m desperate

    #334177
    GyziieDK
    Participant

    Hello @megainfo

    Not sure if you’re still online here, but I could use some help with the BuddyPress Activity Pricavy plugin. It does work – for the most part, but when my users set the content for private or “fiends only” it still shows up to everyone under their private profile stream (everyone else can still se it no matter the setting).

    Hope you can help! πŸ™‚

    #334167
    GyziieDK
    Participant

    Hello guys!

    I’m going crazy from trying to find the answer to this one, I hope you’re able to help! πŸ™‚

    I noticed that the only person wo can see their activity, groups, friends and content under their profile page is the user itself (at least on the theme I’m using). I can’t even (as admin) go to others user profile and see their content. I’ve noticed on other themes that this content IS available for other users (which makes sense) – the theme I’m currently using gives the user the option to post “public, private or to friends” – so there is no need for it to be “hidden”.

    I would like my users to be able to “browse” other members profiles – hope that makes sense!

    I really appreciate anyone who can help me figure this one out! πŸ™‚

    Thanks!

    #334092
    Lukasz Liniewicz
    Participant

    Is there any chance that end-to-end encryption will be implemented for private messages?

    #334057
    Earl_D
    Participant

    Just discovered the members only option not working in my closed private BP site. Running the lates WP and BP. Anyone encountered anything like this?

    #333968
    windhillruss
    Participant

    When a user receives an eMail Notification, the full content of the Message is included along with the link to Join the Discussion. More often than not the user replies to the email and therefore doesn’t need to login to the Discussion. Can this be adjusted so that the eMail only says ‘You have a new Message’ and then the link? Thanks. Buddypress 12.4.1 and Better Messages plugin.

    JSanke
    Participant

    If you switch to BuddyPress Legacy in the settings, this problem resolves. But I cannot post public or group messages, only private messages. Can’t add anything to the group feed.

Viewing 25 results - 1 through 25 (of 3,863 total)
Skip to toolbar