Archive for the ‘bp customization’ Category

Fix for (BuddyPress) Recent Networkwide Posts widget

May 14, 2013

In BP 1.7.1 the (BuddyPress) Recent Networkwide Posts widget didn’t gave to the admin the option to change the widget title. See https://buddypress.trac.wordpress.org/ticket/4982

You can fix it by  just replace the /buddypress/bp_blogs/bp-blogs-widgets.php with this
https://buddypress.trac.wordpress.org/attachment/ticket/4982/bp-blogs-widgets.php

But I think, that in the next version of Buddypress the BP team will implement a better solution.

Advertisements

Customize profile and group menus in BuddyPress 1.5

April 9, 2012

If you want to change the initial group page from /home to for example /forum and/or change the tab order of a Buddypress group in BP 1.5. you can use the following into your theme’s  functions.php
code from Andrew Tegenkamp on http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/changing-group-tab-display-defaults/?topic_page=3&num=15
`

function redirect_group_home() {
global $bp;
$path = clean_url($_SERVER['REQUEST_URI']);
$path = apply_filters('bp_uri', $path);
if (bp_is_group_home() && strpos($path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug']) === false) {
if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
bp_core_redirect($path . 'forum/');
}
}
}


function move_group_tabs() {
global $bp;
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'] = '98';
$bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = __('Activity', 'buddypress');
}
$bp->bp_options_nav[$bp->groups->current_group->slug]['admin']['position'] = '100';
$bp->bp_options_nav[$bp->groups->current_group->slug]['forum']['position'] = '10';

}

add_action(‘bp_init’, ‘redirect_group_home’);
add_action(‘bp_init’, ‘move_group_tabs’);

Customize profile and group menus in BuddyPress

April 13, 2011

A very useful article in http://themekraft.com/2011/02/customize-profile-and-group-menus-in-buddypress/

For Buddypress 1.5 see https://lenasterg.wordpress.com/2012/04/09/customize-profile-and-group-menus-in-buddypress-1-5/

%d bloggers like this: