Skip to:
Content

BuddyPress.org

Changeset 6267


Ignore:
Timestamp:
08/29/2012 02:48:45 AM (12 years ago)
Author:
boonebgorges
Message:

First pass at Group Administration Dashboard panels

  • Introduces top-level Groups menu
  • Sortable, filterable list of sitewide groups
  • Single group admin pages
  • Autocomplete for adding users to a group
  • Bulk modification of group member roles

See #4414

Location:
trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/css/common.css

    r6264 r6267  
    1414div#icon-buddypress-activity {
    1515    background: url( ../images/icons32.png ) no-repeat -10px -6px;
     16}
     17
     18div#icon-buddypress-groups {
     19    background: url( ../images/icons32.png ) no-repeat -250px -6px;
    1620}
    1721
     
    7074}
    7175
     76/* Groups */
     77ul#adminmenu li.toplevel_page_bp-groups .wp-menu-image a img,
     78ul#adminmenu li.toplevel_page_bp-groups_network .wp-menu-image a img {
     79    display: none;
     80}
     81ul#adminmenu li.toplevel_page_bp-groups .wp-menu-image a,
     82ul#adminmenu li.toplevel_page_bp-groups_network .wp-menu-image a {
     83    background-image: url( ../images/menu.png ) !important;
     84    background-position: -61px -34px;
     85}
     86ul#adminmenu li.toplevel_page_bp-groups:hover .wp-menu-image a,
     87ul#adminmenu li.toplevel_page_bp-groups.current .wp-menu-image a,
     88ul#adminmenu li.toplevel_page_bp-groups.wp-has-current-submenu .wp-menu-image a,
     89ul#adminmenu li.toplevel_page_bp-groups_network:hover .wp-menu-image a,
     90ul#adminmenu li.toplevel_page_bp-groups_network.current .wp-menu-image a,
     91ul#adminmenu li.toplevel_page_bp-groups_network.wp-has-current-submenu .wp-menu-image a {
     92    background-position: -61px -2px;
     93}
     94th.column-gid {
     95    width: 60px;
     96}
     97td.column-gid {
     98    vertical-align: middle;
     99}
     100table.bp-group-members th,
     101table.bp-group-members td {
     102    padding: 5px 0;
     103}
     104table.bp-group-members .uid-column {
     105    padding-left: 20px;
     106    padding-right: 20px;
     107}
     108table.bp-group-members .uname-column {
     109    width: 70%;
     110}
     111table.bp-group-members .urole-column {
     112    padding-left: 20px;
     113    padding-right: 20px;
     114}
    72115
    73116/* Components
  • trunk/bp-groups/bp-groups-classes.php

    r6259 r6267  
    708708        return $wpdb->get_var( implode( ' ', $sql ) );
    709709    }
     710
     711    /**
     712     * Get an array containing ids for each group type
     713     *
     714     * A bit of a kludge workaround for some issues
     715     * with bp_has_groups()
     716     *
     717     * @since 1.7
     718     *
     719     * @return array
     720     */
     721    function get_group_type_ids() {
     722        global $wpdb, $bp;
     723
     724        $ids = array();
     725
     726        $ids['all']     = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name}" ) );
     727        $ids['public']  = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'public'" ) );
     728        $ids['private'] = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'private'" ) );
     729        $ids['hidden']  = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'hidden'" ) );
     730
     731        return $ids;
     732    }
    710733}
    711734
  • trunk/bp-groups/bp-groups-loader.php

    r6093 r6267  
    9999            'widgets',
    100100            'activity',
     101            'admin',
    101102            'template',
    102103            'buddybar',
Note: See TracChangeset for help on using the changeset viewer.