Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1 through 25 (of 5,233 total)
  • Author
    Search Results
  • Indigetal WebCraft
    Participant

    BuddyPress activities have a single visibility control: hide_sitewide (0 or 1). This provides binary visibility — shown everywhere, or hidden from sitewide feeds. There’s no way to express:

    – **”Only me”** — private activity visible only to the author
    – **”Friends only”** — visible only to the author’s friends
    – **”Logged-in users”** — hidden from anonymous visitors
    – **”Group members only”** — visible only within the group context where it was posted

    Per-item privacy is a foundational social platform feature. Facebook has had it since 2009. LinkedIn, Twitter/X (with protected tweets), Instagram, and every major social network support some form of per-post audience control. It’s as fundamental to a social platform as hide_sitewide is — just multi-valued instead of binary.

    This is not a request for any specific addon’s needs. It’s a request for the same kind of infrastructure that hide_sitewide provides — a first-class column that any addon can use to implement privacy-aware features.

    #### Current State

    BuddyPress 14.4.0’s activity query system is well-designed for extensibility:

    – bp_activity_get_where_conditions lets addons inject WHERE clauses
    – bp_activity_get_join_sql lets addons add JOINs
    – Data hydration uses SELECT * (in populate() and the cache-miss path of get()), so any column added to the table is automatically returned to calling code
    – bp_activity_before_save / bp_activity_after_save provide save-time hooks

    An addon **can** add a privacy column via dbDelta and filter queries via bp_activity_get_where_conditions. However, the save() method has a hardcoded column list in its INSERT/UPDATE SQL (in BP_Activity_Activity::save()), meaning an addon must do a separate $wpdb->update() after every save — a double-write on every activity creation. This works but is suboptimal, and the column’s general-purpose nature (used by media addons, document addons, moderation addons, group addons — not just one feature) argues for core inclusion.

    #### Proposed Change

    **Schema:** Add one column + index to bp_activity in bp_core_install_activity_streams() (in bp-core-admin-schema.php). dbDelta() handles adding the column on upgrade automatically:

    sql

    
    -- Added after the existing <code>is_spam</code> column in the CREATE TABLE definition:
    privacy varchar(75) NOT NULL DEFAULT 'public',
    -- Added to the KEY list:
    KEY privacy (privacy)
    

    **Model class (BP_Activity_Activity):**

    1. Add public $privacy = 'public'; property
    2. In save() — add privacy to the INSERT/UPDATE column list alongside the existing columns (user_id, component, type, action, content, etc.)
    3. In get() — add 'privacy' to the $r defaults (default false, meaning no filtering). When set, add AND a.privacy IN (...) to the WHERE conditions.

    **REST API (BP_REST_Activity_Endpoint):**

    4. In prepare_item_for_response() — expose privacy in the response object (paralleling how hide_sitewide is currently exposed as hidden)
    5. In prepare_item_for_database() — accept privacy as a writable field on create/update

    **Migration:** dbDelta() runs on every upgrade via bp_core_install(), so modifying the CREATE TABLE definition is sufficient for the schema change. A DB version bump in bp-core-update.php tracks the upgrade.

    #### Scope

    – ~40 lines of changes across 4 files (bp-core-admin-schema.php, class-bp-activity-activity.php, class-bp-rest-activity-endpoint.php, bp-core-update.php)
    – Default value 'public' — 100% backward compatible
    – Existing queries that don’t pass privacy return all activities as before
    – hide_sitewide continues to work as-is (orthogonal — hide_sitewide controls directory listing, privacy controls per-item access)

    #### What Core Provides vs. What Addons Handle

    To be explicit about scope: this proposal adds **storage and query filtering only**. Core would:

    – Store the privacy value on each activity row
    – Allow get() callers to filter by privacy value(s)
    – Expose/accept the field through the REST API

    Core would **not** need to:

    – Define a fixed set of allowed values (addons register the values they need — e.g., 'onlyme', 'friends', 'loggedin')
    – Enforce access control based on privacy values (addons hook into bp_activity_get_where_conditions to inject viewer-aware WHERE clauses, exactly as they would today for any custom filtering)
    – Provide UI for selecting privacy (addon/theme territory)

    This mirrors how hide_sitewide works today — core stores the flag and filters on it; the decision of *when* to set it is made by callers (groups component, plugins, etc.).

    #### Prior Art

    BuddyBoss Platform (a BuddyPress-derived platform) implemented this exact column. Their bp_activity schema includes privacy varchar(75) NOT NULL DEFAULT 'public', and their media, document, video, and moderation subsystems all depend on it for privacy filtering. The column is referenced in their activity save/query paths, REST API, and template layer — making it one of the most cross-cutting additions they made to the activity table. The fact that an independent platform needed this to build standard social features demonstrates both the demand and the general-purpose nature of the column.

    I’m happy to submit a PR for this change.

    #338381
    bbbt
    Participant

    Hello,

    We use bbpress, buddypress, and bbp-private-groups in a WordPress installation.
    In the Buddypress group settings, the group administrator can also create a forum.

    I am looking for a hook to add a specific group from bbp-private-groups to a group forum when creating the group forum:
    add_post_meta( $forum_id, ‘_private_group’, ‘group1’, false );.

    I tried the hook bbp_insert_forum.
    But at that point, the group and the forum are not yet linked.

    Does anyone have any idea which hook I can use?
    Thank you very much!

    #338285
    Antipole
    Participant

    @emaralive – thanks for that. I had tried BuddyPress Messaging Control and thought that was not working too. But I checked again – the user I was testing it on was not of the class I thought they were (duh!).

    The basic fuctionality of blocking all private messages for a given class of user is working for me.
    Allowing them to still message admins seems to fail to block other messaging. But I can live with what does work.

    Thanks again.

    #338266
    emaralive
    Moderator

    See the following threads to see if they get you closer to an answer:

    Blocking private messaging for Subscriber users
    Restricting private messages

    Antipole
    Participant

    I need to stop users with only subscriber status from BuddyPress private messaging.

    The plugin ‘BuddyPress Restrict Messages’ looks like exactly what I need but it does not seem to work and appears to be abandoned.

    Any advice/suggestions on how to do this. please?

    Jesse Rie Santamina
    Participant

    Hi BuddyPress Support Team,

    We’ve run into an issue with BuddyPress email notifications specifically with “A member receives a new private message”.

    1.) Private Messaging is enabled in BuddyPress Settings.
    2.) I created an email with the trigger “A member receives a new private message.”
    3.) To test, I sent a private message as another user. The test message does appear in the BuddyPress Private Message inbox of the recipient, so messaging itself is working.
    4.) However, the email notification is never triggered.

    For troubleshooting, I installed a mail logging plugin, and there are no logs showing BuddyPress attempting to send the notification email when a private message is received. We’ve tested this multiple times but the email notification for trigger “A member receives a new private message” is not working.

    Could you please confirm if this is a known issue or if additional configuration is required to get this notification working?

    Thank you for your assistance!

    #338151
    Ricsca2
    Participant

    If a private message has 15 replies, you have to scroll to the bottom of the page to see the new reply…
    It would be helpful if the first message was the new one.
    Can I reverse the order?
    Thanks

    #337989
    Ricsca2
    Participant

    Is there a way to make student profiles only for registered users? These pages aren’t interesting to Google and therefore penalize indexing.

    emaralive
    Moderator

    The login page shown in the 1st screenshot is due to having the Community Visibility option set to “Members Only” (Private Community) within BuddyPress options. This option was introduced in version 12.0.0 and there appears to be some situations in which the default WordPress login page appears as opposed to the intended “Private Community” login page. Nevertheless, the “Private Community” login page can be disabled by utilizing the bp_view_no_access_redirect_to_login_screen filter hook and you will want your callback function to return a value of true. The following link is the line of code where the filter hook resides for v14.3.4:

    bp_view_no_access_redirect_to_login_screen

    The registration page shown in the 2nd screenshot is actually the BuddyPress registration page. Why it looks different is because the Buddyx theme is utilizing CSS rules to alter/change the appearance. You should contact Wbcom Designs support regarding the restoration of the default appearance.

    #337883
    Ricsca2
    Participant

    Where can I set in admin which fields to make public and which private, and where can I set users to be able to decide? For example, I created the surname field and associated it with the WordPress profile field, but the user can’t decide whether to make it private because it’s always public.
    Thanks

    #337512

    Topic: Allinop

    in forum Showcase
    WPabmm
    Participant

    Just wanted to share a project I’ve been working on, allinop.com. It’s a private collaboration space where you can create invite-only projects with forums, tasks, and shared docs, all simple and distraction-free.

    Nothing fancy, but it’s been useful for a few small teams already. Would love any thoughts or feedback if you have a moment.

    Thanks for taking a look!

    Arni
    Participant

    The problem with sending private messages to multiple recipients may be due to bugs in an older version of BuddyPress. Make sure you have the latest version installed. Also try disabling other plugins to check for conflicts.
    Hope this helps!

    flamuren
    Participant

    Hi,

    I love buddypress and wpjm combo. Its free and helps people get jobs, which is my private project.

    However I am not so tech savy and not any real coding.

    My question is if its possible, within reason, to add two choices on the member page, to filter out two user classes/types (wpjm candidates and employers).

    Today I have active members and “my friends” as tabs and also a search member field under that. I would like to add candidates and employers, to filter out those users. Mainly employers – since it woud be nice for candidates to reach out if it seems good match.

    I guess find the teamplate for members, add it to my child theme and ad buttons, and then connect the buttons with a filter option in the child theme function file?

    Best regards,

    Flamur

    Earl_D
    Participant

    Is there a way to sort messages particularly private messages by date newest to oldest.

    #337176
    duyha83
    Participant

    Thanks for the reply! According to the event log in the All-In-One Security (AIOS) plugin, the last successful sending of a password reset email was on March 25. Before that, emails were sent fine. Now, all emails are sent except for password reset.
    Before March 25, there was definitely a situation (trigger) for password reset. Users actively used it. And now they constantly write to me by email that the password is not coming.
    Yes, I have been using the WP Mail SMTP plugin for a long time.
    Here are all the situations (triggers) that remain in the administration panel.

    The recipient was mentioned in the activity feed.
    The user responded to a message in the activity feed that the recipient left.
    The user responded to a comment in the activity feed that the recipient left.
    The site participant sent the recipient an invitation to visit the site.
    The recipient has successfully activated the account.
    The recipient has registered a new account on the site.
    The user sent a friend request to the recipient.
    The recipient has received confirmation of the friendship request.
    The recipient was mentioned in the group’s activity feed.
    The group details have been updated.
    The user sent an invitation to the group to the recipient.
    The recipient’s status within the group has been changed.
    The user requested permission to join the group.
    The recipient sent a request to join the group, which was confirmed.
    The recipient requested permission to join the group, which was accepted by the administrator.
    The recipient sent a request to join the group, which was rejected.
    The recipient requested to join the group, which was rejected by the administrator.
    Someone requested a membership on this site.
    The site membership request was rejected.
    The recipient received a private message.
    The recipient has changed their email address

    #337147
    jasperdemann
    Participant

    Hi

    I’m using BuddyX Pro with the BuddyBoss Platform and I have an issue where the colour of the active page name in a dropdown menu won’t change on some pages.
    The people at both BuddyX and BB both tell me it’s not theme-/platform-related, but something within BP.

    On the ‘Settings’ page, when viewing the submenus ‘Notification Preferences’ and ‘Privacy’, the word ‘Settings’ in the dropdown menu is blue, showing the page is active (screenshot 1), but when viewing ‘Blocked Members’ or ‘Export Data’, the active page colour in the dropdown menu isn’t showing (screenshot 2).

    I’ve tried all sorts of CSS and even a couple of menu-builder plugins, but I can’t find a fix.

    Can anyone give me any advice on where to look for the issue as I’ve reached the limit of my knowledge!

    The site is private, so I can’t attach a link, unfortunately.

    screenshot 1

    screenshot 2

    Kudzai V
    Participant

    Hello! I’m using the BuddyX theme with buddypress. When someone clicks the “x” delete conversation button, the whole conversation is deleted without any confirmation message asking if the user is sure. So if you accidentally click the x, the whole conversation is gone forever. Any way to avoid this? Or does anyone know php I can add to fix this? ChatGPT’s code didn’t work.

    emaralive
    Moderator

    Hi,

    I’m not sure I, totally, understand your inquiry but, I’ll provide some information that may be of some help. The BP Nouveau template pack provides for use of the wp_editor() function configured as TinyMCE and by default provides 7 buttons, e.g.:

    • Bold
    • Italic
    • Bulleted list
    • Numbered (ordered) list
    • Blockquote
    • Link
    • Image

    Compose and Reply makes use of the same wp_editor and due the use of various filter hooks, the number of buttons can be altered by a plugin or someone implementing custom code. Depending on the code that is external to BuddyPress, there is opportunity to make various buttons available to different users.

    For the sake of simplicity, the following screenshot is a simple illustration:

    Screenshot of Private Message visual editor

    As for settings within BuddyPress, there isn’t a UI available for this purpose. However, some plugins that provide additional TinyMCE buttons, may offer UI settings.

    #336488
    Mike Witt
    Participant

    Hi @tkserver,

    I’m not a BP expert, just a user like you. But I wonder if you could supply any further information about exactly what’s happening, what other plug-ins you’re using, and so on.

    If a private message is going to someone that it wasn’t intended for that sounds pretty serious. Maybe if you provided some more details it would be possible to replicate the issue?

    TKServer
    Participant

    I’ve got a bug the last few weeks it seems. When a private message is sent from one user to another, a “random” 3rd user ends up attached to the message. Is this a known BuddyPress bug?

    tuckeror
    Participant

    The following weird behavior is only happening in private or hidden groups, not public groups:

    If I go to a group page (again, private or hidden) and post an update, the feed then loads content from a different, public group instead of the current group. From what I can tell from my testing, this error only occurs when the “Activity auto-refresh” BuddyPress setting is checked. But, whether or not that is checked, the just-posted update is not displayed, not at the top of the feed or anywhere else, until after the page is refreshed. Also, refreshing the page corrects the issue of the wrong group activity. In other words, everything looks as it should only after refreshing the page.

    Any ideas?

    Thanks!

    #336326
    emaralive
    Moderator

    For some reason you are getting a 404 page (Page not found”). Does this happen immediately after you create a group? Meaning, after creating a group you should be taken to the newly created group page but you are redirected to a 404 page, is this correct?

    Also, this anomaly happens with all group types (public, private & hidden)?

    #336133
    dracou
    Participant

    Hi,

    I want to have multiple groups co-existing into the same wordpress installation.
    I created 4 dummy users:
    user1 and user2 belong to demo1 member type from the extended profile tab
    user3 and user4 belong to demo2 member type from the extended profile tab
    img

    Now, I noticed that user3 can see the content of user1 and user2. Please note that I named my demo users with display name including the “group” they belong to 😉
    img

    How can I make sure that all content of a specific and defined (by what) group of users is strictly private and can be seen only by members of this group?

    Anyone an idea please?

    Thanks,

    #336103
    emaralive
    Moderator

    Hi @dreampixel,

    Thanks for bringing this to my attention. It looks like some of the notifications are not being deleted when in actuality all should be deleted that are related to the deleted user.

    For example:

    • new_membership_request <- this is what you initially indicated
    • bbp_new_reply <- this what you indicated next
    • new_message <- notification for Private Messages

    The issue is that the function that deletes notifications in the event of a deleted user does not take into account that some notifications have the user_id of deleted user placed in the secondary_item_id column in the bp_notifications`database table.

    Long story shorter, I have a tentative patch that I am testing that will provide a remedy for this bug. I’ll create a ticket for a fix once I’m satisfied with the patch. I’ll keep you updated as to the progress and I’ll try to fit this into the next available release.

Viewing 25 results - 1 through 25 (of 5,233 total)
Skip to toolbar