Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,101 through 8,125 (of 69,109 total)
  • Author
    Search Results
  • #265796
    Nahum
    Participant

    @shanebp thanks for the reply

    I was looking at the BP component references, even on your event simple plugin to get an idea…

    If what I would like to do is just assign all my CPT comments tracking under a united CPT comments component or post component with all the different cpt post actions in one stream, I would need to create a different plugin for each combination of mixed activities?

    Let’s say I want to move around specific actons like “updated_profiles” from activity to custom component in order to address an issue like this https://buddypress.org/support/topic/removing-actions-from-activity-stream-with-filtering-options/…wouldn’t it be a solution to reassign an unwanted action to a custom component.

    #265781

    Add this to your CSS:

    #buddypress div.item-list-tabs ul li a span { float: left; }

    zsauce
    Participant

    After much research through many old threads, using the combination of a few, I figured out how to remove the “All Members” view of the Activity feed.

    I originally tried a solution posted by paulhastings0 on the page https://buddypress.org/support/topic/change-the-default-activity-tab/

    However, as a member in that thread posted a few comments later, this only changes the default selection of the tab, it does not in fact change the feed that is loaded. So the tab said “My Friends” (or whatever tab you set as selected), but the feed that loaded was still the “All Members” feed.

    The second option I found (which I can’t find again to link to while writing this) only removed the “All Members” tab option, but simply left the tab as a blank space, while still loading the “All Members” feed.

    If you combine the two solutions however, it works like a charm!

    So, here’s the solution:

    You should be working in the BP Child theme.
    1) Copy the index.php file from ../wp-content/themes/boss/buddypress/activity
    2) Paste the index.php into your ../wp-content/themes/boss-child/buddypress/activity directory (it doesn’t exist, so you’ll have to create it)
    3) Use the first solution by paulhastings0 in the old thread to change which tab is default selected by removing class="selected" from the <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> line (on line 24) and add class="selected" to the new tab you want selected (I chose the “My Friends” tab, so for me it was <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'boss' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'boss' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> on line 34.
    4) Now, delete the <li id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'boss' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'boss' ), bp_get_total_member_count() ); ?></a></li> code from line 24.

    Hope this saves someone from hours of searching like I did!

    #265765
    r-a-y
    Keymaster
    #265734
    Nahum
    Participant

    well I was trying post the my code, but I think I spammed myself after trying to edit the reply to this …
    CPT (and custom title thing)

    add_action('init', 'video_register_my_cpt');
    function video_register_my_cpt() {
    register_post_type('video', array( 
    'label' => 'Videos',
    'description' => 'Latest Videos',
    'public' => true,
    'show_ui' => true,
    'show_in_menu' => true,
    'menu_position' => 5,
     'show_in_nav_menus' => false,
    'capability_type' => 'post',
    'hierarchical' => false,
    'rewrite' => array('slug' => 'videos'),
    'query_var' => true,
    'has_archive' => true,
    'exclude_from_search' => false,
    'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','buddypress-activity'), 
    'bp_activity' => array(
                'component_id' => buddypress()->blogs->id,
                'action_id'    => 'new_video',
                'format_callback' => 'bp_blogs_format_activity_action_new_blog_post',
                'comment_action_id' => 'new_video_comment',
                'comment_format_callback' => 'bp_activity_format_activity_action_custom_post_type_comment',
                'contexts'     => array( 'activity', 'member' ),
                'position'     => 40,
                ),
      'taxonomies' => array('video_category','video_tag'),
      'labels' => array(
      'name' => 'Videos',
      'singular_name' => 'Video',
      'menu_name' => 'Videos',
      'add_new' => 'Add Video',
      'add_new_item' => 'Add New Video',
      'edit' => 'Edit',
      'edit_item' => 'Edit Video',
      'new_item' => 'New Video',
      'view' => 'View Video',
      'view_item' => 'View Video',
      'search_items' => 'Search Videos',
      'not_found' => 'No Videos Found',
      'not_found_in_trash' => 'No Videos Found in Trash',
                
                'bp_activity_admin_filter' => __( 'New video published', 'custom-domain' ),
                'bp_activity_front_filter' => __( 'Videos', 'custom-domain' ),
                'bp_activity_new_post'     => __( '%1$s added <a href="%2$s">[Video]</a>', 'custom-domain' ),
                'bp_activity_new_post_ms'  => __( '%1$s added <a href="%2$s">[Video]</a>','custom-domain' ),
                
                'bp_activity_comments_admin_filter' => __( 'Comments about video', 'custom-domain' ), // label for the Admin dropdown filter
                'bp_activity_comments_front_filter' => __( 'Video Comments', 'custom-domain' ),        // label for the Front dropdown filter
                'bp_activity_new_comment'           => __( '%1$s commented on a <a href="%2$s">video</a>', 'custom-domain' ),
                'bp_activity_new_comment_ms'        => __( '%1$s commented on a <a href="%2$s">[Video]</a>, on the site %3$s', 'custom-domain' )
    
      )
    
    ) ); }
    
    function my_video_include_post_type_title( $action, $activity ) {
      if ( empty( $activity->id ) ) {
        return $action;
      }
    
      if ( 'new_video' != $activity->type && 'new_video_comment' !=$activity->type ) {
        return $action;
      }
    
      preg_match_all( '/<a.*?>([^>]*)<\/a>/', $action, $matches );
    
      if ( empty( $matches[1][1] ) || '[Video]' != $matches[1][1] ) {
        return $action;
      }
    
      $post_type_title = bp_activity_get_meta( $activity->id, 'post_title' );
    
      if ( empty( $post_type_title ) ) {
    
        switch_to_blog( $activity->item_id );
    
        $post_type_title = get_post_field( 'post_title', $activity->secondary_item_id );
    
        // We have a title save it in activity meta to avoid switching blogs too much
        if ( ! empty( $post_type_title ) ) {
          bp_activity_update_meta( $activity->id, 'post_title', $post_type_title );
        }
    
        restore_current_blog();
      }
    
      return str_replace( $matches[1][1], esc_html( $post_type_title ), $action );
    }
    add_filter( 'bp_activity_custom_post_type_post_action', 'my_video_include_post_type_title', 10, 2 );
    
    

    BP CUSTOM

    
    /*////////////////////////////////////////////////////////////////////////////////////////////*/
    // Modifying CPT Activity Actions
    /*///////////////////////////////////////////////////////////////////////////////////////////*/
    
    function record_blogpost_activity_action( $activity_action, $post, $post_permalink ) {
    global $bp;
    
    if( $post->post_type == 'jobs' || get_post_type($post->ID) == 'jobs' ) {
      
      $activity_action  = sprintf( __( '%1$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>');
    
    } elseif( $post->post_type == 'video' || get_post_type($post->ID) == 'video' ) {
    
      $activity_action  = sprintf( __( '%1$s posted a video', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
    
    } elseif($post->post_type == 'post'  ) {
    
      $activity_action  = sprintf( __( '%1$s posted a blog', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
    
    }  
    
    return $activity_action;
    }
    
    add_filter('bp_blogs_activity_new_post_action', 'record_blogpost_activity_action', 11, 3);
    
    /*////////////////////////////////////////////////////////////////////////////////////////////*/
    // Modifying CPT Comment Activity Actions
    /*///////////////////////////////////////////////////////////////////////////////////////////*/
    
    function comment_activity_action( $activity_action, $post, $post_permalink ) {
    global $bp;
    if( $post->post_type == 'post' ) {
    
      $activity_action  = sprintf( __( '%1$s commented on %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
    
    } elseif( $post->post_type == 'video' || get_post_type($post->ID) == 'video' ) {
    
      $activity_action = sprintf( __( '%1$s replied on the video %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . esc_url( $post_permalink ). '">' . $post->post_title . '</a>' );
    
    } 
    return $activity_action;
    
    }
    
    add_filter('bp_blogs_activity_new_comment_action', 'comment_activity_action', 11, 3);
    
    /*//// ? /////*/
    function bbg_record_video_post_type_comments( $post_types ) {
          $post_types[] = 'video';
          return $post_types;
      }
    //add_filter( 'bp_blogs_record_post_post_types', 'bbg_record_video_post_type_comments' );
    //add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_video_post_type_comments' );
    

    doing it this way, everything works except my custom comment action.

    #265714
    MadManSam
    Participant

    @dono12 I’m experiencing the same browser behavior, and it would be a better UI for notifications if we were to add AJAX and a batch (read/unread) feature would be great too.

    Or is that open to use something like wp-api for buddypress to solve this.
    How did you solve this?

    #265710
    threwthenevr
    Participant

    Update: nvm it only worked flawlessly when I had it all to the default wp-login.php.

    When someone registers to my site they are redirected to my buddypress register.php and within that page is would say thank you for registering please check your email for activation link.

    I wanted to place a resend activation email on the same page so I placed this code in that register.php file

    $resend_url=( ‘If you have not received an email yet, click here to resend it.’, ‘buddypress’ ), esc_url( $resend_url ) );

    The problem is ran into is the plugin wp security I use has an option to change the wp-login.php to whatever I want so I just renamed it to /login.

    I then changed the wp-login.php in the code to login?action and the linked redirected to the correct wp-login now the /login page but never sent the resent activation email.

    I also have it when a user trys to login without activating first it would post an error on the login popup with the resend activation email, if I keep wp-login.php it works but if I change the wp-login.php to just /login it won’t work.

    Those two issues have me confused. I’m totally new to php and recently been studying as much as I can but all the documentation out there had me struggling to Figuer this out.
    Does anyone by chance have any insight on this?

    #265682
    lalitavalon
    Participant

    Hello, I found the solution for the same.

    Customize the URL Slugs of BuddyPress Components


    this is the link that is helpful for me.
    There are many internal configuration settings that can be changed by adding a configuration definition line to our wp-content/plugins/bp-custom.php file.

    My another concerned is that In the message there is a button of starred and also a feature to make a message as a star marked so i want to disable/remove this feature form the message please help me in this if you have any idea

    #265679
    Henry Wright
    Moderator

    The Customizing Labels, Messages, and URLs article should help.

    #265675
    lalitavalon
    Participant

    Hi @henry,
    There are some labels like friends, nitifications, messages etc we want to change thees labels. Suppose we have to change Friends to Member and also url corresponding. How we can chnage all the things in the buddy press because buddypress donot provide any settings to change so please help me.

    #265669
    danbp
    Participant

    Please don’t double post. Closing this one as duplicate.

    #265667
    danbp
    Participant
    #265655

    In reply to: Disable Alphabetical

    Brajesh Singh
    Participant

    Do you want to remove the “Alphabetical” in the Order By dropdown?

    If you are using a BuddyPress specific theme, please look into yourtheme/buddypress/members/index.php and you will see the code there for this option. Just remove that.

    if you are not using a BuddyPress specific theme or your theme does not have this file, you can copy index.php file from plugins/buddypress/bp-templates/bp-legacy/buddypress/members directory and put it in yourtheme/buddypress/members directory.

    then you can modify the file to remove the dropdown option.

    Hope that helps.

    Regards
    Brajesh

    #265648

    In reply to: Membership

    Henry Wright
    Moderator

    You’ll probably need a plugin for that, or even custom code a solution because, by default, BuddyPress doesn’t give members the opportunity to create new pages.

    #265643
    lalitavalon
    Participant

    Hi @Henry Wright,

    I use the buddypress in my website and select the page for registration in setting of the buddypress. By default it is taking the default page.php layout like there is side bar my default page.php so i want to chnage the default page to my template and add disffrent page side at registration page.

    #265638
    shemakeswebsites
    Participant

    I found the solution. I tested the script I had tried before…but this time it worked. If anyone else is interested, see the script at the end of this post:

    https://buddypress.org/support/topic/username-vs-display-name/

    #265629

    In reply to: Ephemeral Messages

    Henry Wright
    Moderator

    You’d need to build a custom solution because I don’t think there’s anything available, at least for BuddyPress.

    Take a look at the WordPress Transients API. That might help.

    https://codex.wordpress.org/Transients_API

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

    #265619
    EMRETHEAVIATOR
    Participant

    The problem is solved. It was because of an old code I used to hide admin. Anyone needs to hide admin can use this link.

    #265618
    EMRETHEAVIATOR
    Participant

    Thank you very much. The problem is solved. Anyone has the same problem can use this link.

    #265614
    Henry Wright
    Moderator

    There are a few to choose from. I haven’t tried lately myself but these seem to be popular:

    lalitavalon
    Participant

    I useed the same website with diffrent link on local host it is working fine there is no issue.
    But I actaully try to set up the same website again on local differnt link and try to install the buddypress plugin getting errors and not able to uninstall.
    Still if you want some information please find below:

    Theme -custom theme
    php version 7.0.9
    Install type single
    List of plugins:

    Advanced Custom Fields
    Advanced Custom Fields: Date and Time Picker
    Advanced Custom Fields: Repeater Field
    All In One SEO Pack

    Breadcrumb NavXT

    BuddyPress
    Captcha

    Contact Form 7
    Dephue Data Design Hide Update Notifications – Developer Edition
    Limit Login Attempts
    Lockdown WP Admin
    Login With Ajax
    Restrict Categories
    Visualizer: Charts and Graphs
    WP-Mail-SMTP
    WPFront User Role Editor

    Host Type: Local

    danbp
    Participant

    Hi,

    please provide more details about your install. For now it is just impossible to help.

    Used theme ?
    Php version ?
    Install type ? (single, network)
    List of plugins ?
    Hoster and plan, server type ?

    You can also read here before posting.

    Thank you for comprehension.

    #265605
    Anil Sharma
    Participant

    you Can also check previous topic on this

    how to add new members to groups automatically?

    zsauce
    Participant

    This is the bar and menu I am trying to get rid of:
    WordPress Admin Bar

    While this is the bar I’m trying to maintain, but all of these options disappear when I hide the WordPress Admin Bar above:
    BuddyPress Admin Bar

Viewing 25 results - 8,101 through 8,125 (of 69,109 total)
Skip to toolbar