Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 751 through 775 (of 3,870 total)
  • Author
    Search Results
  • #268223
    lofiz
    Participant

    I am using messages_new_message to send private messages from a custom form.

    I would like the sent messages to NOT be in the senders Sent box.

    I have tried editing messages_new_message but have been unsuccessful.

    Any thoughts?

    #268222
    maelga
    Participant

    Hi, when members receive a PM, an email is sent with the subject “New message from *username*”.
    How can I filter *username* to show the user *display name* instead?
    For example change “New message from zizam123” to “New message from James Z.” assuming ‘James Z.’ is the user’s display name in WP.

    #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

    #268179
    arjunsinghal
    Participant

    Hi
    I am a newbie. I am planning to add buddypress to a multi-author WordPress site for better front-end handling and networking features. I am planning to go with Boss theme from BuddyBoss. I am also planning on wpmu dev plugins to enhance the site. And keep my site supported by expert developers since I am not very experienced with back-end code.

    However, I am wondering, if there is a way to implement encryption for the messaging sections – private messages and inbox, by using a plugin / SSL certificates? What would be the easiest way.

    Any comments / help will be appreciated.

    #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

    lofiz
    Participant

    I have used https://en-gb.wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ and https://en-gb.wordpress.org/plugins/pods/ to create a new taxonomy that users can be part of.

    Example usage: Users can be part of ‘team red’, ‘team green’ or ‘team blue’.

    I would like to enable any user to send private messages to all members of a selected team.

    I have looked at mass mailing plugins and am new to BP. My thoughts are that either there is a way to code a private message procedure to search through users and send a message to the matching profiles. OR, look into Groups.

    If it is the latter, I would like Groups to be completely hidden from non-group members.

    Any thoughts welcome. Thank you.

    #267867
    metalhead
    Participant

    I’ve seen this topic discussed in an old thread, however, the solution was never made public.

    I’m looking for a way to thwart the the input box display for additional recipients while composing a message.

    The best way to do this, I assume, is to check to see if the first recipient string is empty. If it’s not empty, then we need to use inline css to hide the element:

    input#send-to-input.send-to-input.ac_input (I think that’s the one)

    I tried to take a hack at compose.php in my child theme, in an attempt to locate the spot where the additional recipient text box gets displayed. However, I can’t identify which variable needs to be checked (to see if it’s a blank string or not.)

    Any advice on this subject will be very helpful. Once I get it working, I’ll be glad to share the instructions in this thread so others can accomplish the same task with ease.

    Thank you.

    edh890
    Participant

    I’m having this dilemma on the site I’m currently building. I use Paid Membership Pro as my membership plugin to register members, and after registration, members are linked to BP as their profile pages.

    Now I need to add another group of users, advertisers, to the site. And after advertisers register via a differrent plugin, even though they have their own account / profile from the plugin they register through, these members will also automatically show up in BP, since at backend admin, they are just like other members from Paid Membership Pro, they are all Users. What that also means these advertisers can easily go to any member’s BP profile and private message them, just like any other members from Paid Membership Pro.

    Some plugin author suggested I use https://wordpress.org/plugins/user-role-editor/ to use user role to set restriction to a certain role’s access to BP. But I did not see any option there to block these advertisers’ role’s access to buddypress.

    Does anyone know of a way to achieve this? Thank you.

    felix92
    Participant

    Hello,

    I try to activate the private message function from settings-components. When I activate this feature I get following fatal error:

    Fatal error: Uncaught Error: Cannot use object of type Closure as array in /home/ogtpartn/public_html/education/wp-content/themes/boss/buddyboss-inc/theme-functions.php:548 Stack trace: #0 /home/ogtpartn/public_html/education/wp-content/themes/boss/buddyboss-inc/theme-functions.php(570): buddyboss_remove_anonymous_object_filter(‘wp_footer’, ‘BP_Legacy’, ‘sitewide_notice…’) #1 /home/ogtpartn/public_html/education/wp-includes/class-wp-hook.php(298): buddyboss_fix_sitewide_notices(Object(WP)) #2 /home/ogtpartn/public_html/education/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(false, Array) #3 /home/ogtpartn/public_html/education/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #4 /home/ogtpartn/public_html/education/wp-includes/class-wp.php(746): do_action_ref_array(‘wp’, Array) #5 /home/ogtpartn/public_html/education/wp-includes/functions.php(955): WP->main(”) #6 /home/ogtpartn/public_html/education/wp-blog-header.php(16): wp() #7 /home/ogtpartn/public_html/education/index.php(17): require(‘/home/ogtp in /home/ogtpartn/public_html/education/wp-content/themes/boss/buddyboss-inc/theme-functions.php on line 548

    Anyone know how to solve this issue?

    Thanks in advance for your support
    Felix

    #267579
    shanebp
    Moderator

    Have you tried BP Simple Private ?

    You can also get it here: PhiloPress

    docdaddy
    Participant

    I’m using OneSocial as a theme, with bbPress and BuddyPress. One thing that keeps me from using other themes: with OneSocial there is an icon next to the current user icon that shows when the user has new Private Mail. I cannot figure out how to get that new PM alert on other themes. I know with BuddyPress I can active PMS and I have those turned on, just not how to add an alert for the user.

    Thanks.

    #267345
    richerma9
    Participant

    Hello!
    I activated BuddyPress and linked components to WordPress Pages (pages that were automatically created by BuddyPress). When I connect to my membership website as a member (on the front end), the BuddyPress pages are empty. I am wondering if this has to do with my theme (https://www.ait-themes.club/wordpress-themes/directory2/). BuddyPress Pages work with Twente Fifteen theme.

    Permalinks are activated to “Post name”.
    Wordpress version: 4.8
    BuddyPress version: 2.9
    Website : https://unicpnl.org (under construction – I can provide test user access in private)

    If this has to do with my theme, can you give me a hint where to begin to find a fix?

    Thanks for your help 🙂

    kleobud
    Participant

    Hi, anyone know how to detect / prevent exchange of phone/email in PM’s?

    Or, is there a way for such messages to be flagged then approved by admin?

    Alternatively, worst case, for admin to have to approve all PM’s?

    Any advice greatly appreciated.

    samnine
    Participant

    How can I do this within BuddyPress – a system , where it automaticallys enable / disable PM feature between vendors and site visitors, to enable / disable site visitors to PM vendors?

    Thanks.

    #267237
    DAM
    Participant

    Hello,

    how can i set a limit of the number of emails notifications sent for private messages for each user?
    Members are receiving a new email on every reply received, I would like to limit it to 1 every hour from the same user or to send it only if current user is not online.

    Thanks

    #267193
    livingflame
    Participant

    Hi

    @r-a-y


    @shanebp

    I have this code (example img. LINK),

    But, bp_loggedin_user_id() not work.
    The Button is visible for all. Like Add Friend Button [ + ] the Message button needs to be visible only for Logged in users.

    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 );
    #267093
    kleobud
    Participant

    Does anyone know if it is possible to integrate mailchimp with bp so that mailchimp, rather than wordpress, sends out bp emails such as notifications for private messaging,etc.?

    #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.

    Shaktimaan
    Participant
    add_filter( 'bp_get_send_message_button', function( $array ) {
        if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) {
            return $array;
        } else {
            return '';
        }
    } );

    I am using the above filter to hide private message button to non friends. It works but it also hides private message button to site admins and bbpress moderators. I want site admins and bbpress moderatos (bbp_moderator) could send and receive private messages even if they are not friend.

    Any solution?

    andrew55
    Participant

    We use a membership script integrated with WP and BuddyPress. When users unsubscribe from emails in script, they still get email notifications from BuddyPress (private messages notifications, etc). This is bad.

    It’s easy for us to assign these members a custom role. Is there a way to prevent BuddyPress from sending emails to these users who have this custom role?

    I see here that you can create functions for creating new capabilities (for User Role Editor plugin):

    User Role Editor WordPress plugin – Change roles easily

    Is there a function, or another method I can use to prevent BuddyPress from sending of all emails for users who have specific custom role?

    Thanks for any suggestions!

    eitayz
    Participant

    Hello,

    I’m trying to add a button so nonregistered users can contact register users from the profile page via private message.
    Saw this discussion here:
    https://buddypress.org/support/search/private+message+button/

    But nothing worked for me. My website is not in English, should it be a problem? It looks like it bp-custom.php is not recognized, tried inserting the codes to function.php as well. Nothing works…

    I’d be happy for some help here.
    Tnx

    #266914
    slimmyweight
    Participant

    Hi I have just watched a tutorial on setting up buddypress

    I have it working but however I can’t seem to find the answer to this either.

    On my admin profile – settings – profile visibility

    How can I change this so only members can see it for other members accounts and is it possible for me to set my own account (the admin account) to private so no one else can see it.

    Thanks

    #266884
    bambidotexe
    Participant

    Hello,

    I would like to show the members list in private group to users who do not belong to the said group.
    I was thinking i had to change access and visibility of the nav items so i did that:

    function change_access_group_nav_tabs() {
      if(bp_is_group()) {
        buddypress()->groups->nav->edit_nav( array('visibility' => 'public'), 'members', bp_current_item() );
        buddypress()->groups->nav->edit_nav( array('access' => 'anyone'), 'members', bp_current_item() );
      }
    }
    add_action( 'bp_actions', 'change_access_group_nav_tabs' );

    But it didnt work…

    Any suggestion how to proceed?

    Thanks in advance 🙂

    cinto2009
    Participant

    BuddyPress private/public message custom fields – messages not getting outer mails such as gmail.

    #266877
    Julian45123
    Participant

    Hi,
    To choose a group to enter I’ve created a form and depend on what you answer the form choose a group for you. I want to create a link and put it and the end of the form so people of that group can join it. The group must be private.
    Thanks.

Viewing 25 results - 751 through 775 (of 3,870 total)
Skip to toolbar