Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 301 through 325 (of 3,866 total)
  • Author
    Search Results
  • danielafer
    Participant

    Hi, thanks for replying. I’m not as interested as having content or a private community. I am interested in not indexing all links generated by buddypress, such as mypage / members / juan
    I consider that these links do not generate any value for my site.
    With that code can I achieve this?

    Varun Dubey
    Participant

    @danielafer use private community plugin or BP lock , it will help to keep your community private for logged in users.
    If you do not want the private community approaches you can also use no-index.

    function no_index_for_buddypress() {
        if ( is_buddyPress() ) {
            echo '<meta name="robots" content="noindex, nofollow">';
        } else {
        }
    }
    add_action( 'wp_head', 'no_index_for_buddypress' );
    #312563
    optimizedpanama
    Participant

    https://wmchub.com/ is a private members site, only accessible for Registered Users.

    However, when one of the groups is selected, when logged in as as a Register User’ the user is taken to the Home page rather than the group.

    If logged in as Admin, the Group displays correctly.

    I cannot see where the Group access controll is managed in Buddy Press.

    Any help would be greatly appreciated!

    Regards,

    Mike

    #312547
    bojates
    Participant

    Thanks. I’m not using the Friends module, and I’m not finding an issue with the private messaging returning results. It’s just the full range of profile fields being searched, I think, that’s causing the problem with too broad a search result.

    I am happy to write some custom code. Has anyone got some pointers on where to start?

    Thanks.

    #312535
    shanebp
    Moderator

    For private messages, auto-complete only shows your friends.
    To access everyone, put this in your theme/functions.php or in plugins/bp-custom.php
    define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

    To customize the options provided by autocomplete, you would need to write some custom code.

    #312456
    Watbube
    Participant

    Hello, it has been quite a while since I dealt with Buddy Press. But wasn’t there a plugin that could be used to control who can read the post (only me, friends, members)?

    I am already, a little while looking but unfortunately no plugin that performs this function. Would anyone have a tip for me?

    Greetings Watbube

    asfand10
    Participant

    Hi,
    I have platform “span-geneva.ch”, I have two main roles “partner” and “subscriber”. I don’t want subscriber to message partner or partner to message subscriber. However subscriber can direct message subscriber. Is there a function that will allow me to do this.
    Regards,

    bluesweet
    Participant

    Theme – Cera
    I am still struggling to figure out how to separate the activity streams. I just want each member to have their own activity stream.
    Let me explain…
    I have an activity stream in each members profile page already but..they all share the same feed.
    I want the activity feeds to be separate.
    If I post in members page A then post in members page B – you will have to go to both members pages to see each post. Example- A post stays in A members page
    Please someone help
    I want to learn how to customize this myself.

    Chuck141
    Participant

    Hi,

    I hope everyone is staying safe. Thanks to everyone for posting helpful answers, I have already go so far considering my lack of coding.

    I want to remove “Add Friend” & “Private Message” on profiles ONLY for logged out users. But keep these buttons for logged in users, can this be done?

    Kind Regards, Chuck.

    #312241
    jcorbalan
    Participant

    Hello, I want to create a private site for professionals to post their own articles:

    – Registered users can post an article with some custom fields (Article title, author, city (from a list), work center (a conditional list depending on the city field and attachment (pdf or mp4).

    – Registered users can see and rate other users articles (1-5 stars) but not their own.

    – ¿Can rating author be visible only for some roles?

    – ¿Can it be limited to a number of posts per user?

    Thanks in advance.

    vraiwp
    Participant

    Hi, I am new to BP. We want to make it possible to upload a file (pdf, doc, jpg, video, anything) right when you post a message so that the file is associated with the message.

    I need to know how to attach a file with the message using the buddypress rest api and have it uploaded with the message.

    What I found so far is using the private messaging, however, I did not see how to attach a file to the message in the examples viewing the following url: https://developer.buddypress.org/bp-rest-api/reference/private-messaging/

    Please help.

    Thank you.

    #312155
    jedweb
    Participant

    When on the Members page of a Group, there is a search field. This allows you to search for members but it seems to only search username or Last Name.

    Is it possible to search based on First Name as well?

    WP v5.4.1
    BP v6.0.0
    The site is private so I don’t imagine providing the URL will help.

    Thanks in advance.

    Garrett Hyder
    Participant

    I assume you’re talking about the group listing when referring to ‘clicking the group’. In that case I believe you’d want to customize the groups/groups-loop.php template by copying it into your own theme and conditionally remove the links if the current user isn’t a member.
    Here’s docs on the template hierarchy in Buddypress – https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    That should allow you to control that list of groups and suppress links depending on role.
    As to the request access form if for some off chance they make it to that screen, if you want to suppress the form with a blocking message when they’re a member you can use the same template replacement concept to replace groups/single/home.php

    Or potentially this plugin by @imath may be more appropriate as you could just make the groups private/hidden;
    https://github.com/imath/altctrl-public-group

    tskpbls
    Participant

    Ok, let’s investigate further then …

    I reinstalled default 2020 WP theme, deactivated all plugins (double checked) but bbpress and buddypress, although I’ve kept wpmu admin dashboard plugin… I am on a very fresh install (less than 24 hours)

    I am still facing the same issue :

    Link to a google drive folder with screenshots (public / private / hidden) : https://drive.google.com/drive/folders/1MWlx_eMelveGBSK_9MHEIoLd1NJRHz1D?usp=sharing

    buddypress is installed according to this codex guideline : B. Network-wide Activation – BuddyPress root blog in Secondary Site

    Buddypress seems to work ok, activity, group and email tabs under admin menu of the admin network page, main site shows forum tabs only and subsite 1 (?id=2) holds buddypress frontend pages.

    Soooo, maybe a clue here : Why does the group edit screen say “aucun forum” (no forum) attached to group when in the meantime I can see the forum tab and the input text boxes of the first subject when group is not hidden?

    Many infos here, sorry for that, but I guess I can’t be more accurate than that in my perception of the problem.

    Hope this helps you to understand the problem better.

    Thanks !

    tskpbls
    Participant

    Hi there,

    I am here to report the following issue :

    On a multisite install with wp 5.4.1, with buddypress (6.0.0) & bbpress (2.6.4), setting up a forum for a group that is supposed to be hidden makes this group not accessible to admin or group creator. (Myself, as a super-admin/group creator/group admin cant reach my hidden group when bbpress is activated.)

    This occurs only when bbpress is activated multisite or single subsite and a buddypress group (buddypress installed network wide) is set to hidden. It seems to work ok with group set as private, or public.

    Can you replicate this?

    #311874
    welsh10
    Participant

    Hi,

    Does anyone know how to remove the Join Group option for Private groups based on a WP Role?
    Was thinking of using below, but need to work out how the button is called.

    $current_user = new WP_User(wp_get_current_user()->id);
    $user_roles = $current_user->roles; 
    foreach ($user_roles as $role) {
    
       if  ($role == 'subscriber' ){
         //code here for subscribers
       }
    
    Thanks to anyone who helps
    
    kitakitune
    Participant

    Hello! Thanks for the great plugins.
    I’m writing this question using a translation software because I’m Japanese and I don’t speak English.
    I’m sorry if it’s hard to read.

    What I want you to help me with is exactly what the title says.
    The private messaging feature, which works in legacy, doesn’t work in Nouveau.

    I first tried the contents of the two URLs below.
    It was 19 months ago, but only because it was so similar to the current situation.
    I’ve removed “https://&#8221; from the URL.

    buddypress.org/support/topic/private-message-button-not-working-right/

    buddypress.trac.wordpress.org/ticket/7908

    But since it didn’t improve, the

    I installed the version of “6.0.0-RC2” on this site to make sure that it was fixed.
    However, the situation did not change.

    I was wondering if it was something I was going through.
    I tried everything I could to stop all other plugins, verify with various themes, change the PHP version, clear the cache, reinstall, etc., but it didn’t improve.

    The Nouveau feature is great, and I’d like to be able to use it somehow.

    Please help me.

    Below.
    buddypress.org/support/topic/when-asking-for-support-2/
    I also wrote a response to the list I found in
    I’m sorry if I’m wrong in my perception.

    1. which version of WordPress are you running?

    Answer: “Version 5.4.1-en.

    2. did you install WordPress as a directory or subdomain installation?
    I did a quick install against the domain on the server.
    If the directory is installed, is it in the root or subdirectory?

    4. Have you upgraded from a previous version of WordPress? If so, from which version?
    One front.

    5. was WordPress working properly before installing/upgrading BuddyPress (BP)? Examples: permalinks, creating a new post, comments.
    It was functioning properly.

    6. What version of BP are you running?
    6.0.0-RC2.

    7.Have you upgraded from a previous version of BP? If so, from which version?
    5.2.

    Are there any plugins other than BuddyPress installed and activated? If so, which one is it?
    BuddyPress is not surprising.

    9.Are you using a standard WordPress theme or a customized theme?
    It’s standard stuff.

    10.Which theme do you use?
    TWENTY SEVENTEEN.

    11. Have you changed the core file in any way?
    No.

    Is there a custom function in bp-custom.php?
    No.

    13. if you’re running bbPress, which version is it? Or do you have bbPress built into your BuddyPress installation?
    No, I’m not using it.
    14.Please provide a list of errors in the server log file: codex.wordpress.org/Debugging_in_WordPress
    Is this it?
    Notice: Trying to access array offset on value of type int in /home/xx/tarianpapa.com/public_html/wp-includes/formatting.php on line 904

    15. Which company offers your hosting?
    //www.xserver.ne.jp/でしょうか
    16.Is the server running Windows, or if it’s Linux…Apache, nginx or something else?
    It’s a server called the X server, I think it’s Windows.
    17. Which BP theme do you use?
    If you mean NOUVEAU or Legacy, then NOUVEAU.
    18. did you overload the BuddyPress template file?
    I don’t think they did.
    19. Are there any other site customizations that you think are relevant to the problem?
    No, sir.

    Basic troubleshooting.

    BP Themes: Is this issue specific to the theme set in Dashboard->Settings->BuddyPRess->Options?
    It only happens in NOUVEAU.
    You can use the private message feature normally in Legacy.

    woofy123
    Participant

    @shanebp

    Hi, thanks for your reply before. I checked with the creators of the plugin and they say they can’t do it. so i decided to check by myself….the wise chat plugin redirects notifications to the email and the code for that is below….i don’t know coding and all that so i seriously need your help…what code do i put inplace of the email so that messages are reduirected to buddypress notifications? Please help..The code—–

    `<?php

    /**
    * WiseChat user notifications services.
    *
    * @author Kainex <contact@kaine.pl>
    */
    class WiseChatUserNotificationsService {

    /**
    * @var WiseChatUserNotificationsDAO
    */
    private $userNotificationsDAO;

    /**
    * @var WiseChatSentNotificationsDAO
    */
    private $sentNotificationsDAO;

    /**
    * @var WiseChatUsersDAO
    */
    private $usersDAO;

    /**
    * @var WiseChatChannelUsersDAO
    */
    private $channelUsersDAO;

    /**
    * @var WiseChatHttpRequestService
    */
    private $httpRequestService;

    /**
    * @var WiseChatOptions
    */
    private $options;

    public function __construct() {
    $this->options = WiseChatOptions::getInstance();
    $this->userNotificationsDAO = WiseChatContainer::getLazy(‘dao/WiseChatUserNotificationsDAO’);
    $this->sentNotificationsDAO = WiseChatContainer::getLazy(‘dao/WiseChatSentNotificationsDAO’);
    $this->usersDAO = WiseChatContainer::get(‘dao/user/WiseChatUsersDAO’);
    $this->channelUsersDAO = WiseChatContainer::get(‘dao/WiseChatChannelUsersDAO’);
    $this->httpRequestService = WiseChatContainer::getLazy(‘services/WiseChatHttpRequestService’);
    }

    /**
    * Sends all notifications for message.
    *
    * @param WiseChatMessage $message
    * @param WiseChatChannel $channel
    */
    public function send($message, $channel) {
    foreach ($this->userNotificationsDAO->getAll() as $notification) {
    $this->sendNotification($message, $channel, $notification);
    }
    }

    /**
    * Sends the notification.
    *
    * @param WiseChatMessage $message
    * @param WiseChatChannel $channel
    * @param WiseChatUserNotification $notification
    */
    private function sendNotification($message, $channel, $notification) {
    if ($notification->getType() == ’email’) {
    $this->sendEmailNotification($message, $channel, $notification);
    }
    }

    /**
    * Sends e-mail notification.
    *
    * @param WiseChatMessage $message
    * @param WiseChatChannel $channel
    * @param WiseChatUserNotification $notification
    */
    private function sendEmailNotification($message, $channel, $notification) {
    $timeRange = null; // seconds

    if ($notification->getFrequency() == ‘daily’) {
    $timeRange = 24 * 60 * 60;
    }
    if ($notification->getFrequency() == ‘hourly’) {
    $timeRange = 60 * 60;
    }
    if ($timeRange === null) {
    return;
    }

    if ($this->sentNotificationsDAO->wasNotificationSendForUser($notification->getId(), $channel->getId(), $message->getUserId(), $timeRange)) {
    return;
    }

    $recipientUser = $this->usersDAO->get($message->getRecipientId());
    if ($recipientUser === null) {
    return;
    }

    $channelUser = $this->channelUsersDAO->getActiveByUserIdAndChannelId($recipientUser->getId(), $channel->getId());
    if ($channelUser !== null) {
    return;
    }

    if ($recipientUser->getDataProperty(‘disableNotifications’) === true) {
    return;
    }

    if (!($recipientUser->getWordPressId() > 0)) {
    return;
    }

    $recipientWordPressUser = $this->usersDAO->getWpUserByID($recipientUser->getWordPressId());
    if ($recipientWordPressUser === null) {
    return;
    }

    $sentNotification = new WiseChatSentNotification();
    $sentNotification->setNotificationId($notification->getId());
    $sentNotification->setSentTime(time());
    $sentNotification->setChannelId($channel->getId());
    $sentNotification->setUserId($message->getUserId());
    $this->sentNotificationsDAO->save($sentNotification);

    // send the e-mail:
    $templateData = array(
    ‘${recipient}’ => $recipientWordPressUser->display_name,
    ‘${recipient-email}’ => $recipientWordPressUser->user_email,
    ‘${sender}’ => strip_tags($message->getUserName()),
    ‘${message}’ => $message->getText(),
    ‘${channel}’ => $message->getChannelName(),
    ‘${link}’ => $this->httpRequestService->getReferrerURL()
    );
    $emailSubject = str_replace(array_keys($templateData), array_values($templateData), $notification->getDetails()[‘subject’]);
    $emailBody = str_replace(array_keys($templateData), array_values($templateData), $notification->getDetails()[‘content’]);

    wp_mail($recipientWordPressUser->user_email, $emailSubject, $emailBody);
    }
    }

    #311742
    ivanwancora
    Participant

    Thanks @clickallco but that’s not what we are trying.

    What we need is create in the main menu an option with the hidden group of every member and hide all the others the member not’s in them. Because the only way to access to this groups is thought this links. We don’t need private groups because we don’t want the users can request registration or see the other groups.

    #311557
    shanebp
    Moderator

    You are correct. For a private group try this which uses a different hook:

    function schene_promote_group_member( $user_id, $group_id ) {
        $group_member = new BP_Groups_Member( $user_id, $group_id );
        $group_member->promote( 'admin' );
    }
    add_action( 'groups_membership_accepted', 'schene_promote_group_member', 99, 2 );
    #311539
    Andreas
    Participant

    Good morning shanebp,

    yes, of course I did it exactly the way you described. In the end I also found the reason why it did not work: It does work for public groups, but not for private groups. Is this also the same on your side? And if yes, do you know if there is something to get the same result for private groups?

    sandaap
    Participant

    Today, I tried to install BuddyPress the first time. But I still too stupid to get to running.

    First, I tried the actual stable version 5.2.0 without luck. After this, I tried it with 6.0.0RC2 with the same result.

    My problem is: I don’t find out, how to create new topics or manage groups.

    Is there any special URL doing this?

    WordPress: 4.9.13
    PHP: 7.3.x
    Database: MariaDB 10.4.11
    Theme: Hueman 3.5.3

    In BuddyPress 5.2, the pages for Members, Activity, Activation and Registering were created automatically. In BP 6 not and the Repair Tool does not create them automatically.

    All of these pages are empty for me.

    But inside the AdminBar, I see the “0” and I can use the several private pages.

    How can I configure the groups, where I can open topics and how do I do this?

    Sorry, but it seems I’m too stupid for BP… 🙁

    rsandilands
    Participant

    We’re trying to only allow group messaging via CometChat so that only members of a group can message each other. All our groups are private.

    Does anyone know if this is possible?

    tuvidigital
    Participant

    Hello, I have a healthcare site in which I would like to make it a “pro” feature for users to be able to colaborators (contributors).

    My default user will be a subscriber
    However I would only like clients and collaborators to be able to message each other (also admins and superadmins ofcourse).

    I saw a simlillar thread about hiding the private message button but it was ID specific, not role specific. I would appreciate specific information as for my request. Also, where should I paste the code? I am not very experienced. Thanks!

Viewing 25 results - 301 through 325 (of 3,866 total)
Skip to toolbar