Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 526 through 550 (of 3,450 total)
  • Author
    Search Results
  • #269256
    Arize Nnonyelu
    Participant

    LH Private BP works, I don’t know if you understood the problem I am having. This is my problem, after login the page just refreshes, but the user has already been logged in, then he can browse the site as a logged in member. But might be under the impression that he has not logged in because it didn’t take him to where he was about to go before he was requested to login.

    Logged out user Before login, going to a group named ‘the blog coach’ he clicks on the link sent by a friend example.com/groups/the-blog-coach
    he gets redirected to
    https://www.example.com/login/?redirect_to=%2Fgroups%2Fthe-blog-coach%2F

    Link after logging in still directed to
    https://www.example.com/login/?redirect_to=%2Fgroups%2Fthe-blog-coach%2F

    the page just refreshes no direction. i copied the links uniquely before and after login.

    Before you respond to this, please try to make me understand how far you have understood me and my problem so far? Thanks so far

    #269253
    Boone Gorges
    Keymaster

    Hi @plumbingsuperstore – Oof, sorry to hear about the problems, but glad your hosting provider had a way to roll back.

    BuddyPress doesn’t touch user credentials, so it’s highly unlikely that BuddyPress itself would be the cause of your admin creds not working after BP was installed. I’m guessing that either there’s some user error here, or there’s another plugin interfering with the process. To reiterate, logging into WP should be exactly the same before or after the activation of BP.

    Regarding the 404 error when activating your account: When you install BuddyPress, it should create pages called Register and Activate. It sounds like this worked for Register (since you were able to register a new account), but didn’t for Activate. If you try this again, take careful note of the URLs you see in your browser when registering, the URL that appears in the activation email, and the URL you see in the browser after clicking the activation link. There could be a clue here.

    One final tip: You can stay logged in as an admin in your browser and still test as another user. Open a private browsing window: Firefox https://support.mozilla.org/en-US/kb/private-browsing-use-firefox-without-history, Chrome https://support.google.com/chrome/answer/95464?co=GENIE.Platform%3DDesktop&hl=en, Safari https://www.macworld.com/article/1133941/software-web/safariprivate.html

    #269184
    Boone Gorges
    Keymaster

    It looks, at a glance, like the LH Private BuddyPress plugin ought to be doing what you’re asking for. https://plugins.trac.wordpress.org/browser/lh-private-buddypress/trunk/lh-private-buddypress.php#L101

    If it’s not working, it’s either because of an error in the plugin logic, or because something on your server or WP setup is interfering with the redirect_to parameter.

    Can you share the format of the URL at various points of the process? For example, when visiting example.com/groups/my-private-group as a logged-out user, you should be redirected to:

    example.com/wp-login.php?redirect_to=/groups/my-private-group

    If, after login, you’re being redirected back to wp-login.php, what is the format of the URL then?

    What is the URL format of your BP/WP installation? Are you installed at the top level of a domain example.com or in a subdirectory example.com/buddypress/?

    #269181
    Boone Gorges
    Keymaster

    Hi @aubreyw – The email should show up immediately. If it’s not, the places you should check are:

    1. Is any email being sent from your server? For example, do BP emails (like private message notifications) show up? How about other WP notifications, like a password reset?

    2. Check your spam folders (which it sounds like you’ve already done)

    It’s possible to manually trigger the activation of a changed email address, but it sounds like the more fundamental problem here is that emails aren’t working properly, so it seems better to try to address that problem first.

    #269158
    Arize Nnonyelu
    Participant

    FIXED PARTIALLY. I was using BP Redirect To Profile so I disabled it, the contents are still private and it doesn’t keep redirecting.

    But the problem I am having is that after login it will just refresh the login page without directing to anywhere. Some people won’t know that they have been logged in already. That is why I used to Redirect Plugin initially so that it can direct to somewhere.

    So asking the masters, how can the login direct to where they left off? For instance, sent a logged out user a group link, and his tries to visit the groups and login page appears, how can he continue straight to the group after login?

    #269041
    friendlygooners
    Participant

    I mean when I send private message to my members, the message shows notification to everyone who visits my site. Please visit my website now so you can see it http://www.friendlygooners.com

    naomibuch
    Participant

    Hello,

    I am new to Buddypress and this is my first post, I am new to web development also, and my PhP coding is not all that great, my years as a software developer was strictly in a windows environment (vb.net and sql)

    I developed my own website and I am using Buddypress as part of my social media for users to connect with each other.

    I have spent endless hours researching a fix, and I have not been able to find anything php file that I can edit in File Manager to edit or remove the line of code.

    When a user updates an Activity, it updates in three places:

    1. The Activity Stream (which is what I want)
    2. The Member’s Profile where the Activity tab was (now removed, which is what I want)
    3. Under the Member’s profile cover, with that pesky “view link” (which I DO NOT want to show)

    And the “view link” is a bit buggy also, sometimes when a user clicks on it, it throws a 404 error, sometimes it opens up a blank page, and sometimes it opens up the recent activity that they posted in the Activity Stream.

    Also in the members directory I have a button to send the user a private message whether or not they are friends.

    When I click on a user name from the member’s directory, it take me to the compose a message like it is suppose to do, and the user name appears , but it does not save the user name in the send to box, do you have a fix for this also?

    Thank you very much, a fix to these problems are greatly appreciated.

    Naomi

    #268891
    Boone Gorges
    Keymaster

    @louisarthur – Thanks for sending me credentials. I’ve logged into your site to have a look.

    As you note in your email, there’s no href attribute on these links. It’s not clear to me how this would be the case, but I can give you a starting point for looking into it yourself. Briefly, the buttons will be built without an href if the button constructing function passes an empty link_href parameter to the BP_Button class. The functions used in the two cases are different:

    Message public: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/bp-activity-template.php?marks=3090#L3079

    Message privé: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-messages/bp-messages-template.php?marks=1362#L1360

    The logic in each case is different, but since neither is showing up, I’m guessing that one of two things is happening:

    1. One of the conditional checks shared between them is failing for some reason: bp_is_my_profile(), is_user_logged_in().

    2. Something on your installation – perhaps your theme but probably a plugin (since you said Twenty Seventeen was exhibiting the problem as well) – is filtering both ‘bp_get_send_private_message_link’ and ‘bp_get_send_public_message_link’, and then incorrect returning empty strings.

    To test idea #2, you might try – if you can – searching through your codebase for those filter names.

    #268630
    David Cavins
    Keymaster

    Hi @paksunny-

    #1 can be accomplished by adding this code to you bp-custom.php file (or wherever you keep your customizations): https://gist.github.com/dcavins/c65f3856dd6ed5be37eef115ab09405a

    #2 Try this plugin: https://wordpress.org/plugins/buddypress-private-message-for-friends-only/

    -David

    Arize Nnonyelu
    Participant

    Next time try hiring an expert or consult a more experienced developer in private to sort out some issues.

    Without being told the people that started this Buddypress has tried a lot. I don’t think they need this sort of discouragement.

    please nobody should regard this topic.

    #268581
    David Cavins
    Keymaster

    I’m confused about what you’re trying to do, but if you want to restrict access to forums, then, yes, private groups are an excellent option. First, create a forum in wp-admin, then create a private group. Then, in the group management tab, check the box “Yes, I want this group to have a forum” and select the forum you just created.

    Then, only users who belong to private group will be able to use that forum.

    #268524
    dhsllc
    Participant

    Did you find a solution to recover the activity stream? My private group activity stream is no longer showing past activity even though the activity is still in the database.

    #268350

    In reply to: Help with this code

    livingflame
    Participant

    Okey, here is the correct code, thanks to @brajesh

    // Adding message button in members directory 
    
    function filter_message_button_link( $link ) {
    
        $link =  wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) );
    
    return $link;
    
    }
    
    function display_private_message_button() {
    
        if( is_user_logged_in() && bp_get_member_user_id() != bp_loggedin_user_id() ) {
    
            //bp_send_message_button();
            ?>
            <div id="send-private-message" class="generic-button">
    
                <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div>
            </div>
    
            <?php
            add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 );
            }
    }
    add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );
    
    
    sarahjones123
    Participant

    I’m trying to set up a membership site and may go with WooCommerce Membership. But I have a hard time finding a way to solve a problem.

    When a member’s membership (via WooCommerce Membership) is cancelled, his Buddypress WordPress user account is still active, which means he can still log in and freely contact other members. i need to find a way to restrict these cancelled members from accessing BP entirely, or at least from Private Message so they can’t contact other members.

    So far the closest one i found is this thread
    https://buddypress.org/support/topic/hiderestrict-access-to-private-messaging/#post-170393

    According to the note, USER_TO_DISALLOW would be my cancelled WooCommerce users. But I wouldn’t know which member would cancel (or their membership level) upfront so this codes don’t seem to work for my site. Besides, it’s 4+ years old and I’m not sure if it’s still relevant.

    The other one is
    https://buddypress.org/support/topic/restrict-private-messages/

    The moderator said there’s a hook available in BuddyPress called messages_message_before_save which can be used to do things before a message is sent. But I don’t know how to write a function to customize it for my need.

    Can anyone help? If you happen to know any other membership plugins that can achieve this, I’d really appreciate if you can let me know.

    Thank you.

    #268216
    lofiz
    Participant

    I am trying to build a contact form that I can load on any page that would send a private message to a user. I already have the selected user/s in an array and now I would like to take that plus form data to (I’m guessing) message_new_message

    Sample HTML Form

    <form>
    <label>Subject</label>
    <input id="subjec_input" name="subject_input" type="text">
    <label>Message Body</label>
    <textarea id="body_input" name="body_input"></textarea>
    <button id="submit_btn" name="submit_btn">Submit</button>
    </form>

    How I think arguments are given to the function

    `messages_new_message( $args = array( ‘recipients’ => $user_id, ‘subject’ => $title, ‘content’ => $message );

    Any help would be appreciated. Thanks

    #268157

    In reply to: Help with this code

    livingflame
    Participant

    Help me with the code.
    I need the Message button visible only to logged in users (Just like the Add Friend button works).

    Check the code, please.

    // Adding message button in members loop
    
    function filter_message_button_link( $link ) {
    
        $link =  wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) );
    
    return $link;
    
    }
    
    function display_private_message_button() {
    
        if( bp_get_member_user_id() != bp_loggedin_user_id() ) {
    
            //bp_send_message_button();
            ?>
            <div id="send-private-message" class="generic-button">
    
                <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div>
            </div>
    
            <?php
            add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 );
            }
    }
    add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );
    
    


    @modemlooper


    @sbrajesh


    @mercime

    #267579
    shanebp
    Moderator

    Have you tried BP Simple Private ?

    You can also get it here: PhiloPress

    #267045
    andrew55
    Participant

    Robin W over at bbPress was kind enough to provide this filter for functions.php:

    add_filter( 'bbp_get_topic_subscribers', 'rew_filter_subscrbers' );
    add_filter( 'bbp_get_forum_subscribers', 'rew_filter_subscrbers' );
    
    function rew_filter_subscribers ($users) {
    	$role = 'my_custom_role' ;
    	$filtered_ids = array();
    	foreach ( (array) $users as $user_id ) {
    		$user_info = get_userdata($user_id);
    		$user_roles = $user_info->roles ;
    		if (!in_array ($role, $user_roles)) {
    			array_push($filtered_IDs, $user_id);
    		}
    	
    	}
    return $filtered_ids ;
    }

    Used with a custom role, it works great at preventing emails from going out from bbPress.

    Of course, BuddyPress sends out several emails (friend request, private messages, etc).

    Any ideas on how I can modify the filter above to prevent sending of BuddyPress emails to user if they have a custom role enabled? Even a place to go where I might find some ideas to work with?

    Thanks for any suggestions.

    #266588
    kariellen35
    Participant

    I did end up installing this plugin and it is exactly what I was looking for so thank you!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!

    Take care,
    Kari

    #266587

    In reply to: Remove RSS feed

    kariellen35
    Participant

    Thank you so much for your help!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!

    Take care,
    Kari

    #266566
    livingflame
    Participant

    // Restrict Private Message to friends.

    Does not work with the new BuddyPress. ;-/

    Renato Alves
    Moderator

    BuddyPress has a API that you can use: https://codex.buddypress.org/component/private-messages/

    You can hook at the WooCommerce actions when sending the emails and send your private messages.

    Hope that helps! 🙂

    #266411
    artempr
    Participant

    Nice , Thanks. Actually i d like to change messaging logic a little bit. In case of writing to user a private message i d like not to create a new message thread object, but to search instead for existing message thread between me and the user. If there is one, send my message to that thread and open existing dialog. I ve researched send function and i came to conclusion ,that i must change the function.
    I believe that wont hurt the logic.I m alomost sure. What d say other participants about my idea?

    #266241
    shanebp
    Moderator

    Have you tried: https://wordpress.org/plugins/bp-simple-private/ ?

    You can also get it from PhiloPress.

    #266062
    metalhead
    Participant

    There is a plugin called BP Simple Private that allows you to restrict access to all Buddypress pages to logged in users only. Then, if people try to visit Buddypress pages after you install the plugin, they will get redirected to the home page.

    But if I’m understanding you wrong – and you want to have a separate site just for your buddypress groups, then I will recommend setting up WordPress Multisite.

    And if I’m understanding you right – which bells and whistles do you want to disable? I’ve disabled a few things with CSS & PHP hacks – but like what do you want to see gone?

Viewing 25 results - 526 through 550 (of 3,450 total)
Skip to toolbar