Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 551 through 575 (of 3,460 total)
  • Author
    Search Results
  • #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?

    #266018
    alancr
    Participant

    Hi, i was thinking of using the plugin bb media for the users to upload numerous photos to their profiles. As i think with buddypress and bb press the profile only allows one main photo.
    Ultimately I would like the users to have a main photo and then their own private photo gallery which other users can see all their profile and gallery photos

    #265974

    In reply to: Need custom login page

    metalhead
    Participant

    BP Simple Private

    #265965
    shanebp
    Moderator

    Have you tried: BP Simple Private ?

    #265916
    jorge17
    Participant

    Can I create private groups in which the contents are public for the whole world?

    #265683
    shanebp
    Moderator

    To prevent non-members from viewing the members directory you can use this plugin:
    BP Simple Private

    #265630

    In reply to: Ephemeral Messages

    r-a-y
    Keymaster

    You could probably run a cronjob to remove various activity items and private message threads if they’re older than a certain interval.

    Of course, this would need to be custom-developed.

    #265623

    In reply to: Ephemeral Messages

    Henry Wright
    Moderator

    Private messaging in BuddyPress is persistent (saved to the db). There is also “flash” messages but these are stored as a cookie and are removed after the page request.

    #265586

    In reply to: BuddyPress Groups

    shanebp
    Moderator

    The widget’s ajax call does not check to see who is viewing it.
    So only public groups will appear; hidden & private groups will not appear even though you are a member.
    You could write your own widget that uses the logged-in member’s id.
    Use the group widget code as a reference:
    buddypress\bp-groups\bp-groups-widgets.php

    jeffacubed
    Participant

    Hi @arbolife any chance you even vaguely remember what you did to get new user activation email being sent out when using WPML + BuddyPress? Like you, everything works 100% correctly on the ‘English’ side when new users register, requests membership for a private BP group, logs-in, etc – BUT if a user registers on the french registration page (fr/register/) they never get any emails (I they are foever listed as “pending” in the user area). I’ve also noticed that no emails (outgoing) get triggered if an existing user switches to the /fr/ side & tries to join a private BuddyPress group. Trying to access the /fr/wp-login.php page (or the password reset) from the /fr/ side will also trigger a 404 page. So, like you mentioned, it’s a setting “somewhere” in WPML to resolve these (many) anomalies, but for whatever reason, I can’t see to find the resolution!

    My test setup:

    WP: 3.7.4
    BP: 2.8.2
    WPML: 3.7.0
    BuddyPress WPML Plugin: 1.5.5.1

    -Jeff

    #265373
    ketzita
    Participant

    I’m going to do the bump.. But let’s take an easier approach to this topic:

    Anyone know how I can at least prevent the member-header from being displayed upon creation of a private message?

    Let’s forget about sticking the recipient’s photo in there for now, and take it one step at a time.

    I just don’t know which file this involves. compose.php seems to make no reference to bp_displayed_user_avatar(), so I’m wondering why is the avatar appearing?

    donburikun
    Participant

    I would like to hide “Send To (Username or Friend’s Name)” from the private message compose page. Can this be achieved by css or does it require editing of other files?

    Optionally, I would like to hide change the wording of this.

    Can anyone advise on to best achieve one of the above? Thank you.

    #265045
    bigbankclub
    Participant

    So I’m guessing — that for each user I want share a unique item I need to edit code?

    ** The idea is to share information for the each user; but unique to each user.

    So 100 users need to access a private link unique to them — I think this process will need one to create a page each time?

    #264932
    Henry Wright
    Moderator

    Being a premium theme the best thing to do is contact their support team. Unfortunately, because the SocialChef theme’s code is private there’s not much we can do here to help.

    #264679

    In reply to: How do I??

    jayhova4x4
    Participant

    Yes, That is to say members of a specific group have full access to forums that that group has privileges to. If a forum is a child forum any group that has access to the child has access to the parent and the parent’s parent etc. Forums to which a user does not have access might be either private or hidden.

    #264443
    Dominic Bowkett
    Participant

    you can hide Rss feed link from public to private.

Viewing 25 results - 551 through 575 (of 3,460 total)
Skip to toolbar