bp_admin_setting_callback_bbpress_configuration

The bb-config.php location field.

Description

bp_admin_setting_callback_bbpress_configuration(); 

Usage

  1. if ( !function_exists( 'bp_admin_setting_callback_bbpress_configuration' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-settings.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_admin_setting_callback_bbpress_configuration(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-settings.php  
  1. function bp_admin_setting_callback_bbpress_configuration() { 
  2.  
  3. $config_location = bp_get_option( 'bb-config-location' ); 
  4. $file_exists = (bool) ( file_exists( $config_location ) || is_file( $config_location ) ); ?> 
  5.  
  6. <input name="bb-config-location" type="text" id="bb-config-location" value="<?php bp_form_option( 'bb-config-location', '' ); ?>" class="medium-text" style="width: 300px;" /> 
  7.  
  8. <?php if ( false === $file_exists ) : ?> 
  9.  
  10. <a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>" title="<?php esc_attr_e( 'Attempt to save a new config file.', buddypress ); ?>"><?php _e( 'Repair', buddypress ) ?></a> 
  11. <span class="attention"><?php _e( 'File does not exist', buddypress ); ?></span> 
  12.  
  13. <?php endif; ?> 
  14.  
  15. <p class="description"><?php _e( 'Absolute path to your bbPress configuration file.', buddypress ); ?></p> 
  16.  
  17. <?php