Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/13/2008 11:20:15 PM (18 years ago)
Author:
apeatling
Message:

Added ability for group admins to:

  • Promote users to moderators
  • Demote users to regular group members
  • Ban and kick users from a group
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r516 r540  
    3030        foreach( (array) $bp['bp_nav'] as $nav_item ) {
    3131                /* If the current component matches the nav item id, then add a highlight CSS class. */
    32                 if ( $bp['current_component'] == $nav_item['css_id'] && bp_is_home() ) {
     32                if ( $bp['current_component'] == $nav_item['css_id'] ) {
    3333                        $selected = ' class="current"';
    3434                } else {
     
    3737               
    3838                /* If we are viewing another person (current_userid does not equal loggedin_userid)
    39                    then check to see if the two users are friends. if they are, add a highligh CSS class
     39                   then check to see if the two users are friends. if they are, add a highlight CSS class
    4040                   to the friends nav item if it exists. */
    41                 if ( !bp_is_home() ) {
    42                         if ( function_exists('friends_check_friendship') ) {
     41                if ( !bp_is_home() && $bp['current_userid'] ) {
     42                        if ( function_exists('friends_install') ) {
    4343                                if ( friends_check_friendship( $bp['loggedin_userid'], $bp['current_userid'] ) && $nav_item['css_id'] == $bp['friends']['slug'] ) {
    4444                                        $selected = ' class="current"';
    45                                 } else {
     45                                } else { 
    4646                                        $selected = '';
    4747                                }
Note: See TracChangeset for help on using the changeset viewer.