Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,351 through 11,375 (of 94,559 total)
  • Author
    Search Results
  • #265747
    @mercime
    Participant

    Tara Claeys of Design TLC, LLC kicks off our new series of BuddyPress case studies from Developers and Site Builders. Read all about it: Total Wellness Challenge: Fitness with BuddyPress

    #265739
    lalitavalon
    Participant

    Hello,

    I have xprofile field in my buddypress form. It is a drop down field there are multiple entris in this drop down. In another page we want to make filter so that is why I want to get all the entries in the select box of of xprofile dropdown field. Please help me how we can get the all the fields

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

    burstboard
    Participant

    Hi,

    I want to replace the default comment button (.bp-primary-action) on the activity feed with a font awesome icon. I was able to find a function for the delete button (.bp-secondary-action) that is working just fine. However, my attempts to rework this function to apply to the comment button has not worked. I’m hoping someone could take a look and offer some ideas for a solution.

    The original WORKING function which for the delete button replacement can be found below with it’s source:

    function sc_swap_delete_text( $link ) {
    	$trash = '<i class="icon-trash icon-large"></i>';
    	
    	$link = str_replace("Delete", $trash, $link);
    	
    	return $link;
    }
    add_filter( 'bp_get_activity_delete_link', 'sc_swap_delete_text', 1, 1 );

    source: https://buddypress.org/support/topic/font-awesome-breaks-ajax-on-delete-link/

    Below is the NON-FUNCTIONING example of the function I’ve been attempting. I’m looking for some ideas on a fix here:

    function sc_swap_comment_text( $link ) {
    	$fareply = '<i class="icon-fa fa-reply"></i>';
    	
    	$link = str_replace("Comment ", $fareply, $link);
    	
    	return $link;
    }
    add_filter( 'bp_get_activity_comment_link', 'sc_swap_comment_text', 1, 1 );

    Regards,

    #265727
    Nahum
    Participant

    After reading this up and down https://codex.buddypress.org/plugindev/post-types-activities/ and trying to find different ways of doing the same kinds of registering of custom post type post and comment tracking…I could never get it working 100%.

    Either the custom post / custom post comment filters disappear when I add

    //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' );

    or set everything up with the CPT registering I can’t modify the comment activity action after the fact…
    add_filter('bp_blogs_activity_new_comment_action', 'comment_activity_action', 11, 3);

    Finally I ended up trying taking the bp_blogs_register_post_tracking_args function from bp-blogs-activity.php and modifying for my custom post type…and it worked all the way up to 99% of the way because some CPT comment activities get recorded as activity_updates and not as blog activities.

    add_filter( 'bp_activity_get_post_type_tracking_args', 'bp_blogs_register_video_tracking_args', 10, 2 );

    Is it ok to go bp_activity_get_post_type_tracking_args instead of bp_activity_set_post_type_tracking_args? I’m just trying to get my own CPT up with post and comments tracking…and I would like to modify the activity actions of each.

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

    #265708
    xx1182
    Participant

    I’ve installed wordpress with a basic LEMP setup.. Installed the plugin, changed permalinks, but my website doesn’t change at all, it didn’t add pages, and when i click up on the right corner(where my username is) every page redirects to a 404.
    Do i need to change something in the Nginx conf?

    hypnoscient
    Participant

    Hi,

    I’m using Buddypress with BBPress & ActiveMember360. AM360 protects the forum, that works great.

    However, I want to filter in the activity stream for users that do not have the rights to access the forum and that does not work.

    Here is a global view of my system :

    It’s a membership website where you can’t access anything if you are not a member. Login is mandatory.

    I have 2 kind of membership :

    1. One for the whole site and community access
    2. One that does not allow access to the whole community protected parts but grants access to a specific course.

    The course is associated to a group and a group forum.

    The standard membership forums are not part of a group.

    Members of 1 can see the sitewide activity but not the course group & forums activity : that works well.

    However, member of 2 can see sitewide activity even if I set the forums to private or hidden, which seems logical since they are not part of a group and such Buddypress doesnt know it shouldn’t show them (If I got the documentation / posts here right).

    I would like however to find a way to filter the activity stream.

    I’m trying to play with bp_parse_args but for it to work I have to check for each bbp_create_topic (or reply) activity if the user has access to it, and if not, to not display it.

    I’m getting crasy with that and I wondered if any of you could point me to the right direction.

    I’ve tried to assign the n°1 membership to a Buddypress group and assign it a forum. I made that forum a parent one, and all others below, set to hidden or private. But it does not work.

    Any hints, help, directions ?

    Is what I want to do even possible ?

    Thanks a lot for your time,

    shirleyddsn
    Participant

    I’m working on figuring out how to make customizations to my buddypress website. I hadn’t been able to find anything that made sense until I found THIS webpage, that I was trying to follow along with the tutorial.

    This tutorial finally helped me figure out where the folders are supposed to go in my child theme folder, but I still for the life of me can’t get any CSS to change.

    I’ve created both a file called style.css and custom.css that I have attempted to put in –

    wp-content/themes/*mytheme*/buddypress/buddypress
    and
    wp-content/themes/*mytheme*/buddypress/buddypress

    I have also attempted to change the style.css in my wordpress dashboard->appearance->edit page, with no results.

    Thinking that maybe I was using the wrong #id or .Class somehow, I decided to try to put a red border around EVERYTHING just to see if I could get SOMETHING to work (* {border: 1px solid red;} ) and I can’t get anything to work in any location.

    Can someone please help me figure out where this custom stylesheet is supposed to go? I’m going kinda crazy over here.

    manm0untain
    Participant

    Hi

    I am having some problems with the profile photo upload / crop thing, basically either the crop function shrinks down to about 7px x 7px, or it just tells me there was a problem cropping the image.

    On further investigation this seems to be caused by images with long file names.

    Does anyone have any workaround for this?

    Your help is appreciated many thanks 🙂

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

    #265676
    andyomeire
    Participant

    I have a buddypress site, with activity plus plugin installed but when I attempt to attach a file the button disappears.
    I am using social magazine theme which is buddypress compatible.
    Please assist me to resolve this. I am new in wp.
    Thanks

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

    #265674
    andyomeire
    Participant

    I have a buddypress website with Activity page as my frontpage
    But when users login to the page , wp-admin page displays instead of the activity page.
    Please assist me. I am new in wp.
    Website: uturuonline.com

    blairscheepers
    Participant

    Hello there,

    Newbie here. I am trying to figure out how to add the member directory to the drop-down menu on the top right of the screen, under the profile picture.

    I’ve tried including the member page on the home menu, but I can’t seem to lock the directory from non-members of the site.

    I’m using WordPress 4.7.4 running Twenty Eleven theme. Buddypress Version 2.8.2. Site 12shortstories.com.

    Thanks for all of your help.

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

    #265637
    shemakeswebsites
    Participant

    Hello! Does anyone know how I can edit the registration form so that the wordpress name and the buddypress username is the same? People get confused at sign up and when their profile is created, they have two names. I was hoping for a function that would automatically populate the buddypress username field with the same value that is in put in the wordpress username area….but I can’t figure it out.

    I came across a topic that they somehow hid the wordpress name field and had it populated dynamically with the buddypress username at sign up, but they haven’t responded to offer any insight on accomplishing this. If this has been addressed, please point me in the right direction. I’m surprised that there isn’t more documentation on this, as it is definitely confusing and redundant.

    Thank you.

    #265634
    rhj4
    Participant

    Is there a list of shortcodes that describes what shortcodes are supported by buddypress?

Viewing 25 results - 11,351 through 11,375 (of 94,559 total)
Skip to toolbar