Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2011 02:55:32 PM (15 years ago)
Author:
boonebgorges
Message:

Abstracts component setup admin form and reinstates Component Setup dashboard panel. Changes the way that admin styles are loaded so that they load on each BP admin panel. Refactors some bp_is_x() functions so they don't throw errors when components are disabled. Fixes #2943

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r3737 r3745  
    299299        if ( !current_user_can( 'activate_plugins' ) )
    300300            return false;
     301       
     302        if ( !function_exists( 'bp_core_admin_component_options' ) )
     303            require ( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-admin.php' );
    301304
    302305        $disabled_components = apply_filters( 'bp_deactivated_components', get_site_option( 'bp-deactivated-components' ) ); ?>
     
    304307        <p><?php _e( "BuddyPress is made up of a number of individual components, each one adding a distinct feature. The first step is to decide which of these features you'd like to enable on your site. All features are enabled by default, and don't worry, you can change your mind at any point in the future.", 'buddypress' ) ?></p>
    305308
    306         <div class="component">
    307             <h5><?php _e( "Extended Profiles", 'buddypress' ) ?></h5>
    308 
    309             <div class="radio">
    310                 <input type="radio" name="bp_components[bp-xprofile.php]" value="1"<?php if ( !isset( $disabled_components['bp-xprofile.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    311                 <input type="radio" name="bp_components[bp-xprofile.php]" value="0"<?php if ( isset( $disabled_components['bp-xprofile.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    312             </div>
    313 
    314             <img src="<?php echo plugins_url( 'buddypress/screenshot-2.gif' ) ?>" alt="Activity Streams" />
    315             <p><?php _e( "Fully editable profile fields allow you to define the fields users can fill in to describe themselves. Tailor profile fields to suit your audience.", 'buddypress' ) ?></p>
    316         </div>
    317 
    318         <div class="component">
    319             <h5><?php _e( "Friend Connections", 'buddypress' ) ?></h5>
    320 
    321             <div class="radio">
    322                 <input type="radio" name="bp_components[bp-friends.php]" value="1"<?php if ( !isset( $disabled_components['bp-friends.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    323                 <input type="radio" name="bp_components[bp-friends.php]" value="0"<?php if ( isset( $disabled_components['bp-friends.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    324             </div>
    325 
    326             <img src="<?php echo plugins_url( 'buddypress/screenshot-4.gif' ) ?>" alt="Activity Streams" />
    327             <p><?php _e( "Let your users make connections so they can track the activity of others, or filter on only those users they care about the most.", 'buddypress' ) ?></p>
    328         </div>
    329 
    330         <div class="component">
    331             <h5><?php _e( "Discussion Forums", 'buddypress' ) ?></h5>
    332 
    333             <div class="radio">
    334                 <input type="radio" name="bp_components[bp-forums.php]" value="1"<?php if ( !isset( $disabled_components['bp-forums.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    335                 <input type="radio" name="bp_components[bp-forums.php]" value="0"<?php if ( isset( $disabled_components['bp-forums.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    336             </div>
    337 
    338             <img src="<?php echo plugins_url( 'buddypress/screenshot-6.gif' ) ?>" alt="Activity Streams" />
    339             <p><?php _e( "Full powered discussion forums built directly into groups allow for more conventional in-depth conversations. <strong>NOTE: This will require an extra (but easy) setup step.</strong>", 'buddypress' ) ?></p>
    340         </div>
    341 
    342         <div class="component">
    343             <h5><?php _e( "Activity Streams", 'buddypress' ) ?></h5>
    344 
    345             <div class="radio">
    346                 <input type="radio" name="bp_components[bp-activity.php]" value="1"<?php if ( !isset( $disabled_components['bp-activity.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    347                 <input type="radio" name="bp_components[bp-activity.php]" value="0"<?php if ( isset( $disabled_components['bp-activity.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    348             </div>
    349 
    350             <img src="<?php echo plugins_url( 'buddypress/screenshot-1.gif' ) ?>" alt="Activity Streams" />
    351             <p><?php _e( "Global, personal and group activity streams with threaded commenting, direct posting, favoriting and @mentions. All with full RSS feed and email notification support.", 'buddypress' ) ?></p>
    352         </div>
    353 
    354         <div class="component">
    355             <h5><?php _e( "Extensible Groups", 'buddypress' ) ?></h5>
    356 
    357             <div class="radio">
    358                 <input type="radio" name="bp_components[bp-groups.php]" value="1"<?php if ( !isset( $disabled_components['bp-groups.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    359                 <input type="radio" name="bp_components[bp-groups.php]" value="0"<?php if ( isset( $disabled_components['bp-groups.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    360             </div>
    361 
    362             <img src="<?php echo plugins_url( 'buddypress/screenshot-3.gif' ) ?>" alt="Activity Streams" />
    363             <p><?php _e( "Powerful public, private or hidden groups allow your users to break the discussion down into specific topics with a separate activity stream and member listing.", 'buddypress' ) ?></p>
    364         </div>
    365 
    366         <div class="component">
    367             <h5><?php _e( "Private Messaging", 'buddypress' ) ?></h5>
    368 
    369             <div class="radio">
    370                 <input type="radio" name="bp_components[bp-messages.php]" value="1"<?php if ( !isset( $disabled_components['bp-messages.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    371                 <input type="radio" name="bp_components[bp-messages.php]" value="0"<?php if ( isset( $disabled_components['bp-messages.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    372             </div>
    373 
    374             <img src="<?php echo plugins_url( 'buddypress/screenshot-5.gif' ) ?>" alt="Activity Streams" />
    375             <p><?php _e( "Private messaging will allow your users to talk to each other directly, and in private. Not just limited to one on one discussions, your users can send messages to multiple recipients.", 'buddypress' ) ?></p>
    376         </div>
    377 
    378         <?php if ( is_multisite() ) : ?>
    379 
    380             <div class="component">
    381                 <h5><?php _e( "Blog Tracking", 'buddypress' ) ?></h5>
    382 
    383                 <div class="radio">
    384                     <input type="radio" name="bp_components[bp-blogs.php]" value="1"<?php if ( !isset( $disabled_components['bp-blogs.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Enabled', 'buddypress' ) ?> &nbsp;
    385                     <input type="radio" name="bp_components[bp-blogs.php]" value="0"<?php if ( isset( $disabled_components['bp-blogs.php'] ) ) : ?> checked="checked" <?php endif; ?>/> <?php _e( 'Disabled', 'buddypress' ) ?>
    386                 </div>
    387 
    388                 <img src="<?php echo plugins_url( 'buddypress/screenshot-7.gif' ) ?>" alt="Activity Streams" />
    389                     <p><?php _e( "Track new blogs, new posts and new comments across your entire blog network.", 'buddypress' ) ?></p>
    390             </div>
    391 
    392         <?php else: ?>
    393 
    394             <input type="hidden" name="bp_components[bp-blogs.php]" value="0" />
    395 
    396         <?php endif; ?>
     309        <?php bp_core_admin_component_options() ?>
    397310
    398311        <div class="submit clear">
Note: See TracChangeset for help on using the changeset viewer.