Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,326 through 1,350 (of 3,460 total)
  • Author
    Search Results
  • #170386
    Henry
    Member

    You could do it like that but each time you update BuddyPress you’ll lose the changes you’ve made to bp-messages-template.php. I’d try to avoid making changes to the plugin core.

    #170385
    tayenewm
    Participant

    That process seems beyond me and very long (and I cannot find the /plugins/buddypress/bp-languages folder) I just want to change the “Private Message” button label. Can I access/change it quickly like this:
    1. access buddypress/bp-messages/bp-messages-template.php
    2. change the ‘link text’ to the new label name in this block of code?

    function bp_get_send_message_button() {
    // Note: ‘bp_get_send_message_button’ is a legacy filter. Use
    // ‘bp_get_send_message_button_args’ instead. See #4536
    return apply_filters( ‘bp_get_send_message_button’,
    bp_get_button( apply_filters( ‘bp_get_send_message_button_args’, array(
    ‘id’ => ‘private_message’,
    ‘component’ => ‘messages’,
    ‘must_be_logged_in’ => true,
    ‘block_self’ => true,
    ‘wrapper_id’ => ‘send-private-message’,
    ‘link_href’ => bp_get_send_private_message_link(),
    ‘link_title’ => __( ‘Send a private message to this user.’, ‘buddypress’ ),
    ‘link_text’ => __( ‘Private Message’, ‘buddypress’ ),
    ‘link_class’ => ‘send-message’,
    ) ) )

    #170384
    Henry
    Member

    you would add something like this to your theme’s functions.php

    function bp_disable_messaging() {
    	global $bp;
    	
    	if ( USER_TO_DISALLOW && bp_is_current_component('messages') ) {
    		wp_redirect( home_url() );
    		exit();
    	}
    }
    add_action('wp','bp_disable_messaging');

    Note: USER_TO_DISALLOW would be your unpaid WooCommerce users. You would need to get whatever this was from WooCommerce as I’m not familiar with the plugin. Once you’ve added that bit in the code should work.

    #170380
    Henry
    Member

    This will help you. It shows you how to change most of the text labels and messages outputted by BuddyPress:

    https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/

    Will there ever be a resolution to this problem? BP 1.8 with bbPress 2.3.2 on WP 3.6 still sees forum posts in Private groups appearing in non-group members’ activity streams!

    shanebp
    Moderator

    You’ll need to know the user_id for the teacher.

    Then check the array for that id. If it’s found, remove it.

    And tell the student why, something like:

    bp_core_add_message( __( 'You cannot send a private message to the teacher.', 'buddypress' ), 'error' );

    Artisantopia
    Participant

    thank you @shanebp.

    I only know enough about filters to get myself into trouble! I’ve just had a look at that one. Are you suggesting that I remove the teacher from the array so they don’t show in the list of members to send to? Is that how that works?

    How would that work from the member/student perspective?

    I really appreciate any guidance you can give me.

    Thank you.

    shanebp
    Moderator

    Do you know how to use filters?

    Take a look at function send() in
    \buddypress\bp-messages\bp-messages-classes.php

    It has lots of filters.
    I’d use the do_action_ref_array

    Rachel Biel
    Participant

    A related issue is how forum post links show up elsewhere. For example, we have a private group on facebook and I am directing them to the various forum topics that I am creating. All of the links show up as TAFA Forum Group. It gets really confusing if you post a lot of them. I would think this also has to do with how the permalinks and feeds show up. I don’t know if this is a buddypress or bbpress issue, but I hope it’s addressed in future updates. Social media is a part of our world now and buddypress needs to be able to function just as wordpress does if content can have viral potential.

    Hugo Ashmore
    Participant

    Closing thread.


    @whitewolf1988
    Please avoid name calling, even in jest. People have the right to monetize their work if they so wish, it’s a common plugin model to have free version and premium, why do think people should work for no return?

    whitewolf1988
    Participant

    @bp-help WordPress is free and so’s buddypress. If you dont give me free then you suck!

    bp-help
    Participant

    @whitewolf1988
    Negative! I want a lot but I ain’t to old for my wants to hurt me! So please don’t ask this again!

    whitewolf1988
    Participant

    @bp-help I need for free! I want all for free please!

    bp-help
    Participant

    @whitewolf1988
    Negative! The only free version is on the WP repository.

    whitewolf1988
    Participant

    @bphelp Can I have for free please?

    bp-help
    Participant

    @whitewolf1988
    Updated to 3.6 and I also have a version that allows to unblock entire categories but I am thinking on monetizing it because hardly no one donates and I think the flexibility of unblocking an entire category is worth a couple bucks. Let me know if your interested.

    bp-help
    Participant

    @whitewolf1988
    Just updated Private Community For BP to 3.5 you can now unblock your posts as well as pages.

    #169644
    meg@info
    Participant

    hi @tduschei, i suggest you use private-community-for-bp-lite plugin by @bp-help

    https://wordpress.org/plugins/private-community-for-bp-lite

    #169630
    shanebp
    Moderator

    @westwoodchristopher

    We should continue this conversation in private.
    You can contact me via my profile info.

    #169616
    @mercime
    Participant

    @rairai-ni What other plugins do you have activated in your site? Check if those are compatible with latest BP version. If not, deactivate those plugins and check if members of private group can see group’s contents.

    #169545
    bp-help
    Participant

    @grmadmin
    It makes no logical since to view the registration if you already have the credentials to be logged in. That is default behavior. Instead of using another computer to check it why not just use a different browser on the same computer? Alternatively you could use the same browser by using firefox’s private window or chromes incognito window.

    bp-help
    Participant

    @whitewolf1988
    There are other plugins out there that will accomplish this. This plugin is primarily for BP and bbPress pages. I may however integrate this in a future update.

    #169235
    LogicWolf
    Participant

    Hi David,

    Hoping I’ll be able to help. I’ve seen alot of questions on the topic of How To Change and Reorder BuddyPress Group tabs and not much great direction. Hopefully you won’t be saying that after my posts… What I’m really hoping is someone comes in with a simpler, more elegant solution 🙂

    Were you able to control the standard tabs?

    For the standard group tabs, you can control them directly like this:

    if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) 
    {
            $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 10;
            $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['position'] = 60;
            $bp->bp_options_nav[$bp->groups->current_group->slug]['notifications']['position'] = 110;
    }

    So the code to put in functions.php might look like this:

    function whff_setup_nav() 
    {
    
      if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) 
      {
         $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 10;
         $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['position'] = 60;
         $bp->bp_options_nav[$bp->groups->current_group->slug]['notifications']['position'] = 110;
    }
    
    } 
    add_action( 'bp_setup_nav', 'whff_setup_nav', 100000 );

    CUSTOM BUDDYPRESS GROUP TABS
    Now, the non-standard tabs are the tricky ones. You can’t access them through $bp->bp_options_nav (at least I couldn’t figure out how to do this.)

    Nonstandard Group tabs through the $wp_filter global. A good starting point is to dump the $wp_filter variable and get a look at it’s guts. Add this code in functions.php:

    global $wp_filter;
        
    foreach ( (array)$wp_filter as $key => $value ) 
    {
       echo '<pre>';
       echo '<strong>' . $key . ': </strong><br />';
       print_r( $value );
       echo '</pre>';
    }
    

    $wp_filter is a bunch of nested arrays. Search through the output for your Group Tab Names (i.e. search for “Calendar”) and you will find something like this:

    [00000000746c6153000000004e38ec1f_register] => Array
                    (
                        [function] => Array
                            (
                                [0] => BP_Group_Calendar_Extension Object
                                    (
                                        [visibility] => private
                                        [enable_create_step] => 
                                        [enable_nav_item] => 1
                                        [enable_edit_item] => 
                                        [name] => Calendar
                                        [slug] => calendar
                                        [admin_name] => 
                                        [admin_slug] => 
                                        [create_name] => 
                                        [create_slug] => 
                                        [create_step_position] => 81
                                        [nav_item_position] => 40
                                        [nav_item_name] => 
                                        [display_hook] => groups_custom_group_boxes
                                        [template_file] => groups/single/plugins
                                    )
    
                                [1] => _register
                            )
    
                        [accepted_args] => 1
                    )
    

    That’s your Group tab and all the hooks you need to change attributes (in this case it’s the tab that says “Calendar”.)

    But… unfortunately you can’t use the [00000000746c6153000000004e38ec1f_register] as a handle — that string is random and changes every time. But, now you know the class name is BP_Group_Calendar_Extension Object and you can search for that in the $wp_filter array and make the changes.

    Hope this gets you closer, let me know how you make out. Cheers David!

    #169213
    kuching
    Participant

    I did further tests.

    If I try to disable bbpress only, I still don’t get it working; however I noticed that I can attempt to send private message replies – although it will throw an error after redirect and page reload.

    If I try to disable all other plugins (including bbp) it still doesn’t work. Could it be my own theme? It’s hard to debug…Anyone ever ran across similar problems?

    🙁

    #169167
    b1gft
    Participant

    On the default theme I just removed it from the menu bar. On the other theme which automatically shows pages, I made it private.
    Same results both ways, stoped the links working.

Viewing 25 results - 1,326 through 1,350 (of 3,460 total)
Skip to toolbar