Skip to:
Content

BuddyPress.org

Changeset 1861


Ignore:
Timestamp:
09/12/2009 12:30:43 AM (16 years ago)
Author:
apeatling
Message:

Added option to turn off forum directory if your bbPress tables sit in a different database (meaning the directory won't work anyway)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1836 r1861  
    14791479
    14801480    /* Make sure account deletion is not disabled */
    1481     if ( ( 1 == (int)get_site_option( 'bp-disable-account-deletion' ) && !is_site_admin() ) )
     1481    if ( ( !(int) get_site_option( 'bp-disable-account-deletion' ) && !is_site_admin() ) )
    14821482        return false;
    14831483
  • trunk/bp-core/bp-core-admin.php

    r1784 r1861  
    9292                        <input type="radio" name="bp-admin[bp-disable-account-deletion]"<?php if ( !(int)get_site_option( 'bp-disable-account-deletion' ) || '' == get_site_option( 'bp-disable-account-deletion' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-account-deletion" value="0" /> <?php _e( 'No', 'buddypress' ) ?>
    9393                    </td>           
     94                </tr>
     95                <?php if ( function_exists( 'bp_forums_setup') ) : ?>
     96                <tr>
     97                    <th scope="row"><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</th>
     98                    <td>
     99                        <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( (int)get_site_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> &nbsp;
     100                        <input type="radio" name="bp-admin[bp-disable-forum-directory]"<?php if ( !(int)get_site_option( 'bp-disable-forum-directory' ) || '' == get_site_option( 'bp-disable-forum-directory' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-forum-directory" value="0" /> <?php _e( 'No', 'buddypress' ) ?>
     101                    </td>           
    94102                </tr>               
    95                 <?php if ( !locate_template( array( 'registration/register.php' ) ) ) :?>
     103                <?php endif; ?>
     104                           
     105                <?php if ( !locate_template( array( 'registration/register.php' ) ) ) : ?>
    96106                <tr>
    97107                    <th scope="row"><?php _e('Select theme to use for BuddyPress generated pages', 'buddypress' ) ?>:</th>
  • trunk/bp-core/bp-core-settings.php

    r1784 r1861  
    2222    bp_core_new_subnav_item( array( 'name' => __( 'Notifications', 'buddypress' ), 'slug' => 'notifications', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_notification_settings', 'position' => 20, 'user_has_access' => bp_is_home() ) );
    2323   
    24     if ( !is_site_admin() && 1 != (int)get_site_option( 'bp-disable-account-deletion' ) )
     24    if ( !is_site_admin() && !(int) get_site_option( 'bp-disable-account-deletion' ) )
    2525        bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_home() ) );
    2626}
  • trunk/bp-forums/bp-forums-admin.php

    r1753 r1861  
    2020        else { ?>
    2121            <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=buddypress/bp-forums.php&reinstall=1' ) ); ?>
     22            <p><?php _e( 'NOTE: The forums directory will only work if your bbPress tables are in the same database as your WordPress tables. If you are not using an existing bbPress install you can ignore this message.', 'buddypress' ) ?></p>
    2223        <?php   
    2324        }
Note: See TracChangeset for help on using the changeset viewer.