Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @evanvolgas

    Participant

    Hey I’m actually having a lot of trouble with this too on a few websites…. WordPress 3.8, BuddyPress 1.9, few plugins, VPS with over a ram of memory each (not enough imo but whatever) and cachhing… the site is plenty fast enough on Pingdom tests and WebPagetest.org… but the add friend functionality is painfully slow….

    Cicade, did you ever find any culprits here? Has anyone else noticed with this with BP 1.9? I had not before, with 1.8. Just curious if this was solved, or if anyone else is seeing a problem/has a solution.

    @evanvolgas

    Participant

    I’ve had a lot of luck with the W3TC plugin. I set object caching to Disk, Page caching to APC, and minification with CloudFlare (I’d use APC otherwise). If you have a lot of memory to work with, by all means use APC on the disk too…. the VPS’s I’ve worked on lately had only a gig and object cache with that had a tendency to crash under moderate traffic.

    “Is it safe to say that the caching plugins do not provide a good solution for Buddypress? And that a server side caching solution is the best option?”

    This question doesn’t quite make a lot of sense. APC, memcache… hell even disk is server side. And the plugins available are doing that. The question is what’s right for your site… and that really depends on what you’re starting with on your server (which I presume is a VPS not a VPN)

    Anyway, W3TC works for me…but you’re gonna get a lot of answers cause it really just depends.

    Key thing to note: “My site has reached popularity that I need it now.”

    If you didn’t already know, play with caching on a test server. It’s useful stuff, but you can crash the site very easily if you make a mistake. This is not a toy to play with on a live website.

    @evanvolgas

    Participant

    Hi. Create buddypress.php in your theme and add the following:

    <?php
    /**
     * Genesis Framework.
     *
     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.
     *
     * @package Genesis\Templates
     * @author  StudioPress
     * @license GPL-2.0+
     * @link    http://my.studiopress.com/themes/genesis/
     */
    
    //* This file handles BuddyPress pages
    
    //* Remove the entry footer markup (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    
    //* Remove the entry meta in the entry footer (requires HTML5 theme support)
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    genesis();
    

    If you notice the breadcrumbs pointing to home and don’t want them to, add this

    add_filter ( 'genesis_home_crumb', 'sp_breadcrumb_home_link' ); // Genesis >= 1.5
    function sp_breadcrumb_home_link( $crumb ) {
    	return preg_replace('/href="[^"]*"/', 'href="whatever link you want"', $crumb);
    }
    
    add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' );
    function sp_breadcrumb_args( $args ) {
    	$args['home'] = 'Whatever Text You Want';
    	$args['sep'] = ' / ';
    	$args['list_sep'] = ', '; // Genesis 1.5 and later
    	$args['prefix'] = '<div class="breadcrumb">';
    	$args['suffix'] = '</div>';
    	$args['heirarchial_attachments'] = true; // Genesis 1.5 and later
    	$args['heirarchial_categories'] = true; // Genesis 1.5 and later
    	$args['display'] = true;
    	$args['labels']['prefix'] = 'You are here: ';
    	$args['labels']['author'] = 'Archives for ';
    	$args['labels']['category'] = 'Archives for '; // Genesis 1.6 and later
    	$args['labels']['tag'] = 'Archives for ';
    	$args['labels']['date'] = 'Archives for ';
    	$args['labels']['search'] = 'Search for ';
    	$args['labels']['tax'] = 'Archives for ';
    	$args['labels']['post_type'] = 'Archives for ';
    	$args['labels']['404'] = 'Not found: '; // Genesis 1.5 and later
    return $args;
    }

    @evanvolgas

    Participant

    Awesome. Apologies for mixing terminology. Thanks so much for sending this. Makes perfect sense.

    @evanvolgas

    Participant

    That’s what made sense to me too but I’m not really clear on where to apply the filter… is the filter applying to

    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) )

    or is it applying to

    <?php while ( bp_members() ) : bp_the_member();

    (or somewhere else for that matter). I know it’s probably obvious. Just having a hard time figuring out where to apply the filter.

    Thanks for your help and speedy reply. I appreciate it.

    @evanvolgas

    Participant

    Hey, your answer turned me onto bp-custom though and it was helpful to read what you’d originally shared too. WordPress to BuddyPress… a bit different, but very cool stuff.

    For those interested, the problem was that the nonprofit had several usernames/emails identical to each other. The default “add new user” search in the groups admin area was for user_name and user_email… not helpful in this client’s case. aces responded with https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/ which, while not the right solution for this specific problem, turned me onto this
    https://codex.buddypress.org/developer/customizing/bp-custom-php/, which is (or at least it works… is there ever the one right solution? not sure.”

    In any case, I created a bp-custom.php file and unhooked the original search function

    remove_action( ‘wp_ajax_bp_group_admin_member_autocomplete’, ‘bp_groups_admin_autocomplete_handler’ );

    Then I changed the autocomplete handler to show display_name and added the action back in

    add_action( ‘wp_ajax_bp_group_admin_member_autocomplete’, ‘mbb_groups_admin_autocomplete_handler’ );

    This one is solved. Turned out it was simple after all. @aces, thanks for sharing what you did. I read over the link you shared and saw the link to bp-custom, which somehow I didn’t find when I was looking into this earlier. I appreciate your help and it looks like the problem is solved 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar