Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 501 through 525 (of 3,819 total)
  • Author
    Search Results
  • shanebp
    Moderator

    If you mean the Private Message button at the top of a profile page, then place this code in bp-custom.php or in your theme > functions.php

    function lindsay_profile_button() {
    ?>
    	<div class="generic-button"><a href="https://google.com" >go to google</a></div>
    <?php
    }
    add_action( 'bp_member_header_actions', 'lindsay_profile_button', 25 );

    If ‘Private Messaging’ means something else, then you need to talk to the creators of that code because it does not come from BuddyPress.

    lindsaybwd
    Participant

    Can someone please assist in how I can create a specific button next to ‘Private Messaging’ to link to an existing page?

    bbtrouble
    Participant

    Hello, we’re having issues with BuddyPress private messaging on our site https://www.lightstalking.com/

    We’re using Version 4.1.0 of BuddyPress running on WP 4.9.8

    This issues happens only with an admin account – it’s impossible to send new private messages from an admin account to other users of forum.

    When we try to do that, we get an error message (I attached a screenshot of it) – https://www.screencast.com/t/XoU5ZLRaAtf

    Let us know if there’s anything to do about this.

    Best regards,
    LightStalking team

    #282441
    diegomiguel05
    Participant

    Hello shanebp, thank you very much for your response:

    We have realized that users could not access the home page of other private groups due to the inteference of another active plugin. Deactivating it, users already have access to the home page of others private groups, but still can not see the list of members of those groups. I’ve been trying to use your code (in function.php and writing it as html text), but it does not work, possibly I’m not writing it in the right place. Do you know how to solve this problem, please??

    Thank you very much for your help.

    #282432
    matwin23
    Participant

    I just switched theme in admin to legacy and private message is now working. Must be a Nouveau bug.

    #282431
    matwin23
    Participant

    Since upgrading to 4.0 I can no longer send private messages. When I go into compose a message all fields are there but when clicking ‘send’ it just hides the text in the message box and does not send the message. When clicking in the message box the text re-appears.

    Public messages work fine.

    Im running all the latest updates, the nouveau BP theme with storefront theme. All was working fine before 4.0 update.

    thanks

    diegomiguel05
    Participant

    Hello, I’d like to ask some help, please.

    I need that any user of my site could access the others groups home pages (even others private groups which the user don’t belong to) and access the members lists of any group. Does anybody know any hook or any other way?

    Thanks in advance.

    #282393
    Carsten Lund
    Participant

    This is a five year old topic, but stil unsolved.
    Help is appreciated, can anyone in here figure out why the code is not working?

    How to make subject field in private messages isn’t required?

    I did not test this but go into the theme folder members/single/messages/compose.php
    find this:

    <input type=”text” name=”subject” id=”subject” value=”<?php bp_messages_subject_value(); ?>” />
    change it to this:
    <input type=”hidden” name=”subject” id=”subject” value=”private message” />

    #282311
    frosttho
    Participant

    Hey All!

    It’s me again. I upgraded from BuddyPress 3.2.0 to 4.0.0. After the Upgrade the “Add Members” Form on the Group Page in the Backend was empty. I only got the title “Add new member”.

    Is there any workaround?

    Thanks in Advance
    frosttho

    WordPress Version 4.9.8
    BuddyPress Version 4.0.0
    BuddyPress Plugin: LH Private BuddyPress 1.0.8
    Running on Apache / Ubuntu 18.04

    nasakenaisensei
    Participant

    WordPress version 4.9.8
    BuddyPress version 4.0.0
    theme SocialChef – Social Recipe WordPress Theme

    https://husbii.com/members/husbii/messages/

    Log in
    ID:husbii
    password:demodemodemo

    Hi there

    I can not see the details of Private Messages.

    When the number of characters is large,

    At the end of the sentence,

    […]

    Although it is displayed,

    You can not click on this,

    Every message,

    I can not see the details.

    To see the contents of the message,

    What should I do now?

    funkman733
    Participant

    Hi, I need to consent the Private Messages reply only to specific User Role.
    So every registered user can read the Private Messages, butI need to to consent the Private Messages reply only to specific User Role.

    What Should I do to do that?

    #282256
    ncovello
    Participant

    Hello,

    I made a button below each post for sending a message to the post author. But I need also that the subject line fills automatically with the post title and ID.

    This is the code I have now:

    /**
     * Get a link to send PM to the given User.
     *
     * @param int $user_id user id.
     *
     * @return string
     */
    function buddydev_get_send_private_message_to_user_url( $user_id ) {
        return wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( $user_id ));
    }
    
    /**
     * Shortcode [bp-pm-button username=optional_some_user_name]
     *
     * @param array $atts shortcode attributes.
     * @param string $content content.
     *
     * @return string
     */
    function buddydev_private_message_button_shortcode( $atts, $content = '' ) {
    
    $atts = shortcode_atts( array(
    'user_id'   => '',
    'username'  => '',
    'label'     => 'Send Private Message',
    ), $atts );
    
    $user_id = absint( $atts['user_id'] );
    $user_login = $atts['username'];
    
    // if the username is given, override the user id.
    if ( $user_login ) {
    $user = get_user_by( 'login', $user_login );
    if ( ! $user ) {
    return '';
    }
    $user_id = $user->ID;
    }
      
    if ( ! $user_id ) {
    if ( ! in_the_loop() ) {
    return '';
    }
    
    $user_id = get_the_author_meta('ID' );
    }
    
    }
    
    add_shortcode( 'bp-pm-button', 'buddydev_private_message_button_shortcode' );
    
    /**
     * Get the button for the post author.
     *
     * @return string
     */
    function buddydev_get_author_private_message_button() {
        if ( ! in_the_loop()) {
            return '';
        }
     
        $user_id = get_the_author_meta('ID');
        // can't pm to themselves.
        if ( bp_loggedin_user_id() === $user_id ) {
            return '';
        }
     
        return sprintf('<a class="sg-popup-id-11605" id="private-message-bp" href="%1$s">%2$s</a>', buddydev_get_send_private_message_to_user_url( $user_id ), 'Send Private Message' );
    }
    
    /**
     * Do you want to automatically inject the button on each post?
     *
     * @param string $entry_content entry content.
     *
     * @return string
     */
    function buddydev_inject_private_message_button( $entry_content ) {
        // append at the bottom.
        $entry_content = $entry_content . buddydev_get_author_private_message_button();
        // if you want to only do it on single entry pages(single post etc), you can comment the above line
        // and uncomment the block below
        /* if ( is_singular() ) {
            $entry_content = $entry_content . buddydev_get_author_private_message_button();
        } */
     
        // want to test for a post type, you may use is_singular('post_type_name') instead of is_singular()
        return $entry_content;
    }
    // append to the post entry?
    add_filter( 'the_content', 'buddydev_inject_private_message_button' );

    Thank you!

    #282244
    shanebp
    Moderator

    Did you try to narrow down the issue ?

    For example:

    Did you try deactivating LH Private BuddyPress ?
    If the menus return, then you should follow up with the creators of the LH Private BuddyPress plugin.

    Did you try switching from Nouveau to the other template pack – BuddyPress Legacy ?

    #282241
    frosttho
    Participant

    Hey all,

    I’m using the Mesmerize Design and I’m verry happy about it. But after installing BuddyPress I recognized that the Member and Group Navigations on the profile pages are missing.
    In both settings (horizontal and vertical) the don’t appear.
    Aquick view in /wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/home.php didn’t help me.

    Do you have any idea how to get the menu back? Users are nearly unable to use it without this navigation bar.

    Thanks!
    frosttho

    WordPress Version 4.9.8
    BuddyPress Version 3.2.0
    BuddyPress Plugin: LH Private BuddyPress 1.0.8
    Running on Apache / Ubuntu 18.04

    #282205
    lookingahead
    Participant

    OH guess what…? 😀 Figured it out.

    I have a solution that so, sooo…..SSOOOOOOO many other people have been looking for, and I’m elated to say I’ve found it.

    Been cruising Stack Exchange, various WordPress plugin support threads, installing plugin after plugin, reading blogposts made by developers, comments made by disillusioned masses….I mean, it’s endless.

    But THANK GOD I found a solution!

    So it turns out that the code that BuddyDev mentioned was not to blame for the 500 error I mentioned in my intro. It was actually due to one of the two plugins that is recommended in BuddyDev’s tutorial (and they are now fixing that bug). 🙂

    I figured this out as I tried to reproduce the error while activating plugins in a different sequence.

    The first time I did this, I’d had BuddyPress disabled when I’d installed both plugins. I’d also already put the code mentioned in their tutorial into my bp-custom file. I then activated BuddyPress, and the site failed.

    This time, I had BuddyPress already activated, then installed and activated one of the two plugins BuddyDev recommended to use in the tutorial…and all was well. THEN…I installed the second plugin. And upon clicking ‘Activate’ the site failed again. NOTE: on the second attempt to reproduce the 500 error, I hadn’t put the code from the tutorial into my bp-custom file….

    And according to BuddyDev, even before I tried to reproduce the error, the bp-custom code I was using was sound.

    So when the site failed upon my attempt to reproduce the error, I knew: that plugin was to blame.

    Then, I found out more about that plugin…it is designed to be used for users to have extra fields to fill out upon signup, fields that would show in their Member Profile. And I have Member Profiles disabled. Wa-la!

    I then asked BuddyDev if I needed the plugin that failed…and THANKFULLY they said, ‘no — not needed for what you want to do.’

    WHEW!! 😀

    So, a summary:
    – Use custom code in bp-custom (pasted below)
    – Use one plugin in particular from BuddyDev
    – Do not use another plugin recommended by BuddyDev

    The plugin to DEFINITELY use, that was listed in their tutorial: ‘BuddyPress Member Type Generator’…that affects the ability for Webmasters to set custom member types AND an avatar specific to every custom type created! 😀

    The other plugin that was recommended in that tutorial, that is NOT needed to change user avatars for custom member types…not ever, as it has nothing to do with avatars — it was merely recommended in their tutorial so people could manage user profiles: ‘BP XProfile Member Type Field’

    SO. If you want to have a different default avatar for different member types, then you will need to use the ‘BuddyPress Member Type Generator’ plugin. Not the other one.

    Steps to take:
    1.] Download the ‘BuddyPress Member Type Generator’ plugin from BudyDev

    2.] Read their tutorial (I’ll paste a link below in follow-up comments to this comment)…do everything EXCEPT install the ‘BP XProfile Member Type Field’ plugin — it’s not needed for assigning an avatar via custom member type; it just is recommended in their tutorial to use so you can manage user fields 🙂

    3.] Use the code I’ll also paste below (in the follow-up comments) — modify it to your site’s name but insert your site name where I typed ‘sitenameprivate’…etc.

    4.] For creating more avatars with custom member types in the future, you’ll always have to update that same code in the bp-custom file…via FTP/SFTP; tbh that process is easy as pie once you realize how to do it

    5.] For making your life easier with switching out avatar images for member types without having to re-do the bp-custom file: just save over the image in your media library that is used for that particular member type…so the path is the same and your code won’t need to be changed

    Simple, yet difficult to find.

    Thank GOD FOR BUDDYDEV!!! <3

    #282201
    diegomiguel05
    Participant

    Hello, I hope someone could help me, please.

    I need that any user of my site could contact the administrators of others groups directly (even others private groups which the users don’t belong to). So, is it possible in the groups directory of BuddyPress to show the administrators of each group next to groups titles and its details?

    Thanks in advance.

    #282141
    filipfek
    Participant

    Hi 🙂
    I do not know if my problem is more concerned with buddypress support or bbpress support, but I wrote here.

    My WordPress
    bbPress 2.5.14
    BuddyPress 3.2.0
    I use theme Eduma.

    I’m using BuddyPress and created a group with a private forum. The problem is that the group forum has no template. If I check the page, it has all classes. It looks like it can’t read the css bbpress file (it look like that Annex1). I created the forum using bbPress. My forum looks like that Annex 2 and the group forum should look exactly the same. How can I do this? I will be grateful for your help.

    #281894
    david22c
    Participant

    Hi,
    Would someone be kind enough to help me with changing a buddypress error message? (wordpress 4.9.8, buddypress 3.1.0)

    I am restricting private messaging to user’s friends/connections. Currently, the error message returned when sending a private message to someone not in your network is “Message not sent. Please try again.” which doesn’t make sense. I would like it to say something like, “Sorry, you can only send a private message to connections in your network.” How might I change this error message?

    I have been using the following code in child functions to restrict private messaging:

    // if not site admin, restrict PMs to friends
    function pp_check_message_recipients( $message_info ) {
    
    //  site admins are not restricted
    if ( is_super_admin() )
    return $message_info;
    
    $recipients = $message_info->recipients;
    
    $friend_ids = friends_get_friend_user_ids( bp_displayed_user_id() ); 
    
    $nf = 0; 
    
    foreach ( $recipients as $key => $recipient ) {
    
    if ( ! in_array( $recipient->user_id, $friend_ids ) ) 
    $nf++;
    
    }
    
    // if any recipients are not friends, remove everyone from the recipient's list
    if (  $nf > 0 ) 
    unset( $message_info->recipients );
    
    return $message_info;
    }
    add_action( 'messages_message_before_save', 'pp_check_message_recipients' );
    jimmyvandijk
    Participant

    Hi guys,

    I’m having this problem that when I activate the private messaging function, an old sitewide announcement lockes the site. I cannot close it! And I cannot delete this message either. See this video
    Unable to display content. Adobe Flash is required.
    Could you please help me out?

    Kind regards

    #281389
    Brajesh Singh
    Participant

    Thank you.

    My first suggestion will be to try disabling the LH Private BuddyPress, if that does not solve it you should try deactivating Youzer and BP Force Profile photo(assuming bp-custom.php) and child theme’s functions.php does not have any redirection.

    Please give it a try and let me know if any of the above resolves the issue?

    #281388
    Arize Nnonyelu
    Participant

    is there anything special about the site? Like any redirection setup or content restriction?

    LH Private BuddyPress? Restricts non logged in users from accessing other users profile, activity etc

    #281387
    Arize Nnonyelu
    Participant

    …are you using any content restriction/redirection plugin?

    wp super cache
    youzer
    title remover
    short codes for buddypress
    super pwa
    lh private buddypress
    gutenberg
    font awesome 4 menus
    child theme configurator
    buddypress global search
    buddypress activity autoloader
    buddypress
    bp force profile photo

    reinhardtjohn
    Participant

    Hello!

    I am currently using BuddyPress for a community site which is private. I have all of the site completely locked down, and the last thing I see possible for spam is that a user could create an account with a bad name, which can be seen if a user uses the search function on the members page.

    At the moment the Pending users are NOT showing up in the Members Loop, but do show up in the search. I am using a plugin to do the approval process, and another to remove the buddypress activation email.

    Is there any way to modify the members search page to not return users still pending?

    Please help!

    Never Active users ARE showing in the members page, but not pending ones. However, pending users are showing up in Members search results.

    Any help on where to start for editing the members search loop and checking the pending status would be great.

    reinhardtjohn
    Participant

    Hello!

    I am currently using BuddyPress for a community site which is private. I have all of the site completely locked down, and the last thing I see possible for spam is that a user could create an account with a bad name, which can be seen if a user uses the search function on the members page.

    At the moment the Never Active is NOT showing up in the Members Loop because of a plugin I am using.

    Is there any way to modify the members search page to not return users are either still pending, never active yet, or anything like that?

    Please help!

    Thanks!

    #280710
    binaryfabric
    Participant

    Hey,

    Is there a way to allow users to post to a group without having to join it. I thought that public groups would take care of this but it does not.

    I saw this issue here from a while back: https://buddypress.org/support/topic/open-groups-let-all-members-post-in-every-group-without-joining/

    But Im not sure if it has been solved or not.
    I followed the link in that post to the trac and it lead to this ticket:
    https://buddypress.trac.wordpress.org/ticket/6677

    I understand that public/private/hidden groups were added since then, but Im not sure if this was solved regarding that.

Viewing 25 results - 501 through 525 (of 3,819 total)
Skip to toolbar