Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 526 through 550 (of 3,868 total)
  • Author
    Search Results
  • #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.

    #279675
    danimella
    Participant

    I have a WordPress site with budypress and Paid/Free memberships created with PMPro (Paid Membership Pro)

    I would like to have this functionality

    1. Only Paid members can send Private Messages to other members
    2. Free Members who are messaged by paid members can reply. Free Members cannot compose new messages only answer if previously they have been contacted)

    Anyone can help?

    #279424
    zatrox
    Participant

    Hi,

    First of all I’m sorry for my newbie question.

    I want to create a networking web page for users to create private spaces for their companies. For eg. a user will create XYZ Company space and only @xyx.com mail owners will be able to see content. And another user will create ABC Company space and only @abc.com users will be able to see its content.

    Can I do this with buddypress?

    shanebp
    Moderator

    It’s okay to place a call for devs here.
    It’s nice to see the occasional person who doesn’t want free work.

    Because there is no way to do a private message on these forums, typically we make sure the OP includes a method to contact them.
    Then we close the thread so that any discussion takes place elsewhere.


    @elichersky333
    – how can you be contacted ?

    #279193
    mrditt
    Participant

    Could anyone give experiences or comparisons between iFlyChat and BP Better Messages? I need a solution that gives users the ability to have private chats and group chats with the ability to send attachments. Iflychat is expensive (if including the group chat option) and I’m concerned about the logging of private information, BP Better Messages seems like a good option but I wanted to get feedback first. Alternatively, if anyone has experience with any other solutions, that would be really appreciated too.

    donniewalden
    Participant

    I am de-bugging a new client’s old website. They have over 3k active paying users so this is a bit of a sensitive job.

    The issue: I have the buddypress private message system activated and have a php file located: buddypress/members/single/message/single.php

    This all works correctly except for the “message” variable. When the user gets a private message it shows up appropriately in their inbox with the “highlight” tag displaying the email and excerpt (which is basically the whole message if it’s short).

    I understand the the $message variable is packaged into a $content variable which is served as that highlight. So the excerpt displays the actual private message that is sent in the inbox list, but when you open that actual message, the massage that was in the excerpt is replaced with “[deleted]”

    It might be helpful to note these are messages sent from non-users of the website. These people sending the messages are not logged in and should be able to simply leave a message to this persons inbox. The user comes back as “Deleted User” since they aren’t logged in, but all I need to find out is how to make the content from the excerpt show up in the actual message. It’s just saying [deleted].

    Thank you in advancce!

    I have a screenshot if it’s helpful but don’t think I can attach it here.

    #279061
    Anonymous User 16484011
    Inactive

    Hi !

    Prashant,

    Today I see your profile and some how I go to this page where you post this plugin and I see that on WordPress plugin official page “https://wordpress.org/plugins/bp-custom-functionalities/&#8221; and here has the developer name is yours !

    Congrats ! to you man for making this plugin. I installed and it’s very useful me. Specially it’s one feature “Private profile – that means one member can not see other members profile.”

    Thanks man,

    Keep it up !

    Regards

    Anonymous User 16484011
    Inactive

    I am not using any buddy press template I use Youzer plugin. I think this plugin gives me this template. as you can see in the video path.

    By the way …

    1. I can’t understand your above answer.

    2. What can I do wrong in the video ?

    3. What can I do now for preventing users other than admin to delete the private conversation.

    4. Can I put your above code in plugin’s directory’s path “\wp-content\plugins\youzer\includes\public\templates\members\single\messages” single.php file ?

    5. Is any other way or plugin to prevent users other than admin to delete private message ?

    Thanks

    Adarsh Verma
    Participant

    I’ve been using bbPress and BuddyPress since long and am aware that if a user creates a topic in any forum, that also gets listed in user profile -> Forums tab.

    Here is what exactly I’ve done:

    When I create a private group and attach a forum with it. And a non-admin member becomes a member of that private group. Now that member creates a topic in that private forum, that topic does show globally on the /forums page. But when that user checks his profile for the topics he created, there no topic is shown. Which means the topics that show up globally, doesn’t show on the profile page.

    For the information, I’m using the following versions of the plugins and theme:
    1. bbPress – 2.5.14
    2. BuddyPress – 3.2.0
    3. Twenty Sixteen – 1.5
    4. WordPress – 4.9.8

    Please help me with this issue. Also, let me know if some guys have come across such a situation.

    Thanks in advance!

    randomuser2000
    Participant

    Short story:
    How can i migrate my users from Ultimate Member to BuddyPress?

    Long story:
    I was really get frauded by this Ultimate Member guys claiming their plugin is the Ultimate solution and BuddyPress is a bloated hard to configure ancient relic. I payed for hundreds of dollars for their complete bundle and a bug from their plugin which i discovered very lately killed site (they create a record in wp-options table for every damn user!) And that was eating my server’s 8 GB of ram and them system were forced to kill MySQL for extra ram. This also caused a corrupted database etc..

    Anyway i have around 40k users now in Ultimate Member and my license expired so i can’t use Private Messaging (they charge 45$ for just PM!!) so i want to use BuddyPress (which i should have done from the beginining).

    So is there a way to migrate to BuddyPress keeping all users?

    #278887

    In reply to: Site Wide Activity

    Prashant Singh
    Participant

    Private group activities are by default excluded from the sitewide activity so this plugin already excludes them. No need to do any settings, it works out of the box.

    Thanks

    #278875

    In reply to: Site Wide Activity

    mrditt
    Participant

    I did look at it, but it doesn’t seem to give an option to exclude private group activity, I’m I correct? If so, is there any work around? Thank you!

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