Categories
News WordPress

I am joining the team at Oomph!

I am excited to announce that I will be joining the WordPress team at Oomph in early December.

Oomph is a web development and strategy agency dedicated to realizing first class web experiences for organizations of all shapes and sizes. “Oomph” is what it takes to create memorable, bold experiences.

Categories
WordPress WordPress Plugins

Plugin Update: BuddyPress Automatic Friends v1.5

BuddyPress Automatic Friends version 1.5 is now available for download.

What’s New in Version 1.5

* Add display that shows which users are selected via the admin panel
* Updated admin menu hook to support multisite
* Updated to support BuddyPress 1.5

Categories
WordPress WordPress Plugins

New Plugin Release: BuddyPress Automatic Friends

I have released a new plugin for BuddyPress that automatically creates and accepts friendships for specified users upon new user registration.  “Tom” thanks you.

You can check it out here!

Categories
Code WordPress

BuddyPress: Disable the Public Members Directory

The following code snippet can be used to disable access to the default BuddyPress Members Directory.  Simply add the following code to your theme’s functions.php file.

//Disable members directory
function disable_directory_members() {
 global $bp, $wp_query;
 $bp_is_directory = false;
 bp_core_redirect( $bp_root_domain );
}
add_action( 'bp_core_action_directory_members', 'disable_directory_members', 2 );

Update – 11/17/2011:  As of BuddyPress v1.5 this post this method is deprecated. You can now achieve this same result by unpublishing the ‘Members’ page from the ‘Pages menu in the admin area.

Categories
Code WordPress

BuddyPress: Remove a Sub Item from a Navigation Menu

This example demonstrates how to remove the Notifications item from the BuddyPress Settings default navigation menu. Simply add the code below to your theme’s functions.php file.

<?php
// Remove Settings->Notifications SubMenu
function skw_remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item( $bp->settings->slug, 'notifications' );
}
}
add_action( 'wp', 'skw_remove_notifications_subnav', 2 );

Here is a similar example that could be used to remove the System Notices menu from the Messages section.

<?php
// Remove Messages->Notices
function skw_remove_notices_subnav() {
global $bp;
if ( $bp->current_component == $bp->messages->slug ) {
bp_core_remove_subnav_item( $bp->messages->slug, 'notices' );
}
}
add_action( 'wp', 'skw_remove_notices_subnav', 11 );