Changeset 4066
- Timestamp:
- 02/23/2011 10:13:47 AM (14 years ago)
- Location:
- branches/1.2
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-activity.php
r3775 r4066 99 99 bp_activity_install(); 100 100 } 101 add_action( 'admin_menu', 'bp_activity_check_installed' ); 102 add_action( 'network_admin_menu', 'bp_activity_check_installed' ); 101 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_activity_check_installed' ); 103 102 104 103 function bp_activity_setup_root_component() { -
branches/1.2/bp-blogs.php
r3775 r4066 61 61 } 62 62 } 63 add_action( 'admin_menu', 'bp_blogs_check_installed' ); 64 add_action( 'network_admin_menu', 'bp_blogs_check_installed' ); 63 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_blogs_check_installed' ); 65 64 66 65 function bp_blogs_setup_globals() { -
branches/1.2/bp-core.php
r3775 r4066 285 285 bp_core_install(); 286 286 } 287 add_action( 'admin_menu', 'bp_core_check_installed' ); 288 add_action( 'network_admin_menu', 'bp_core_check_installed' ); 287 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_check_installed' ); 289 288 290 289 /** … … 318 317 add_submenu_page( 'bp-general-settings', __( 'Component Setup', 'buddypress'), __( 'Component Setup', 'buddypress' ), 'manage_options', 'bp-component-setup', 'bp_core_admin_component_setup' ); 319 318 } 320 add_action( 'admin_menu', 'bp_core_add_admin_menu' ); 321 add_action( 'network_admin_menu', 'bp_core_add_admin_menu' ); 319 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu' ); 322 320 323 321 /** -
branches/1.2/bp-core/bp-core-admin.php
r3026 r4066 44 44 <?php if ( function_exists( 'xprofile_install' ) ) :?> 45 45 <tr> 46 <th scope="row">< ?php _e( 'Base profile group name', 'buddypress' ) ?>:</th>46 <th scope="row"><p><?php _e( 'Base profile group name', 'buddypress' ) ?>:</p></th> 47 47 <td> 48 48 <input name="bp-admin[bp-xprofile-base-group-name]" id="bp-xprofile-base-group-name" value="<?php echo get_site_option('bp-xprofile-base-group-name') ?>" /> … … 50 50 </tr> 51 51 <tr> 52 <th scope="row">< ?php _e( 'Full Name field name', 'buddypress' ) ?>:</th>52 <th scope="row"><p><?php _e( 'Full Name field name', 'buddypress' ) ?>:</p></th> 53 53 <td> 54 54 <input name="bp-admin[bp-xprofile-fullname-field-name]" id="bp-xprofile-fullname-field-name" value="<?php echo get_site_option('bp-xprofile-fullname-field-name') ?>" /> … … 56 56 </tr> 57 57 <tr> 58 <th scope="row">< ?php _e( 'Disable BuddyPress to WordPress profile syncing?', 'buddypress' ) ?>:</th>58 <th scope="row"><p><?php _e( 'Disable BuddyPress to WordPress profile syncing?', 'buddypress' ) ?>:</p></th> 59 59 <td> 60 60 <input type="radio" name="bp-admin[bp-disable-profile-sync]"<?php if ( (int)get_site_option( 'bp-disable-profile-sync' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-profile-sync" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> … … 64 64 <?php endif; ?> 65 65 <tr> 66 <th scope="row">< ?php _e( 'Hide admin bar for logged out users?', 'buddypress' ) ?>:</th>66 <th scope="row"><p><?php _e( 'Hide admin bar for logged out users?', 'buddypress' ) ?>:</p></th> 67 67 <td> 68 68 <input type="radio" name="bp-admin[hide-loggedout-adminbar]"<?php if ( (int)get_site_option( 'hide-loggedout-adminbar' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-hide-loggedout-adminbar-yes" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> … … 71 71 </tr> 72 72 <tr> 73 <th scope="row">< ?php _e( 'Disable avatar uploads? (Gravatars will still work)', 'buddypress' ) ?>:</th>73 <th scope="row"><p><?php _e( 'Disable avatar uploads? (Gravatars will still work)', 'buddypress' ) ?>:</p></th> 74 74 <td> 75 75 <input type="radio" name="bp-admin[bp-disable-avatar-uploads]"<?php if ( (int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?> checked="checked"<?php endif; ?> id="bp-admin-disable-avatar-uploads-yes" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> … … 78 78 </tr> 79 79 <tr> 80 <th scope="row">< ?php _e( 'Disable user account deletion?', 'buddypress' ) ?>:</th>80 <th scope="row"><p><?php _e( 'Disable user account deletion?', 'buddypress' ) ?>:</p></th> 81 81 <td> 82 82 <input type="radio" name="bp-admin[bp-disable-account-deletion]"<?php if ( (int)get_site_option( 'bp-disable-account-deletion' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-account-deletion" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> … … 86 86 <?php if ( function_exists( 'bp_forums_setup') ) : ?> 87 87 <tr> 88 <th scope="row">< ?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</th>88 <th scope="row"><p><?php _e( 'Disable global forum directory?', 'buddypress' ) ?>:</p></th> 89 89 <td> 90 90 <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' ) ?> … … 95 95 <?php if ( function_exists( 'bp_activity_install') ) : ?> 96 96 <tr> 97 <th scope="row">< ?php _e( 'Disable activity stream commenting on blog and forum posts?', 'buddypress' ) ?>:</th>97 <th scope="row"><p><?php _e( 'Disable activity stream commenting on blog and forum posts?', 'buddypress' ) ?>:</p></th> 98 98 <td> 99 99 <input type="radio" name="bp-admin[bp-disable-blogforum-comments]"<?php if ( (int)get_site_option( 'bp-disable-blogforum-comments' ) || false === get_site_option( 'bp-disable-blogforum-comments' ) ) : ?> checked="checked"<?php endif; ?> id="bp-disable-blogforum-comments" value="1" /> <?php _e( 'Yes', 'buddypress' ) ?> … … 104 104 105 105 <tr> 106 <th scope="row">< ?php _e( 'Default User Avatar', 'buddypress' ) ?></th>106 <th scope="row"><p><?php _e( 'Default User Avatar', 'buddypress' ) ?></p></th> 107 107 <td> 108 108 <p><?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address', 'buddypress' ) ?></p> -
branches/1.2/bp-core/bp-core-cssjs.php
r3279 r4066 45 45 <?php 46 46 } 47 add_action( 'admin_head', 'bp_core_admin_menu_icon_css' );47 add_action( is_multisite() ? 'network_admin_menu' : 'admin_head', 'bp_core_admin_menu_icon_css' ); 48 48 49 49 function bp_core_confirmation_js() { -
branches/1.2/bp-forums.php
r3775 r4066 103 103 add_submenu_page( 'bp-general-settings', __( 'Forums Setup', 'buddypress' ), __( 'Forums Setup', 'buddypress' ), 'manage_options', 'bb-forums-setup', "bp_forums_bbpress_admin" ); 104 104 } 105 add_action( 'admin_menu', 'bp_forums_add_admin_menu' ); 106 add_action( 'network_admin_menu', 'bp_forums_add_admin_menu' ); 105 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_forums_add_admin_menu' ); 107 106 108 107 /* Forum Functions */ -
branches/1.2/bp-forums/bp-forums-admin.php
r3186 r4066 12 12 <p><?php _e( 'Settings Saved.', 'buddypress' ) ?></p> 13 13 </div> 14 <?php endif; ?> 15 16 <?php 14 <?php endif; 17 15 18 16 if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) { 19 17 update_site_option( 'bb-config-location', false ); 20 18 bp_forums_bbpress_install_wizard(); 21 } else { ?> 22 <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=bb-forums-setup&reinstall=1' ) ); ?> 19 } else { 20 $url = 'admin.php?page=bb-forums-setup&reinstall=1'; 21 $reinstall = is_multisite() ? network_admin_url( $url ) : admin_url( $url ); ?> 22 23 <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' ), $reinstall ); ?> 23 24 <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> 25 24 26 <?php 25 27 } … … 30 32 31 33 function bp_forums_bbpress_install_wizard() { 32 $post_url = site_url( 'wp-admin/admin.php?page=bb-forums-setup' ); 34 $url = 'admin.php?page=bb-forums-setup'; 35 $post_url = is_multisite() ? network_admin_url( $url ) : admin_url( $url ); 33 36 34 37 switch( $_REQUEST['step'] ) { … … 68 71 // Just write the contents to screen 69 72 _e( 'A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.', 'buddypress' ); 70 ?>< code style="display:block; margin-top: 30px;"><pre><?php echo htmlspecialchars( $result ) ?></pre></code><?php73 ?><br /><textarea cols="110" rows="50" style="margin: 10px 0 50px 0;"><?php echo htmlspecialchars( $result ) ?></textarea><?php 71 74 break; 72 75 } -
branches/1.2/bp-friends.php
r3775 r4066 62 62 friends_install(); 63 63 } 64 add_action( 'admin_menu', 'friends_check_installed' ); 65 add_action( 'network_admin_menu', 'friends_check_installed' ); 64 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'friends_check_installed' ); 66 65 67 66 function friends_setup_nav() { -
branches/1.2/bp-groups.php
r3775 r4066 117 117 groups_install(); 118 118 } 119 add_action( 'admin_menu', 'groups_check_installed' ); 120 add_action( 'network_admin_menu', 'groups_check_installed' ); 119 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'groups_check_installed' ); 121 120 122 121 function groups_setup_nav() { -
branches/1.2/bp-loader.php
r3568 r4066 5 5 Description: Social networking in a box. Build a social network for your company, school, sports team or niche community all based on the power and flexibility of WordPress. 6 6 Author: The BuddyPress Community 7 Version: 1.2. 77 Version: 1.2.8 8 8 Author URI: http://buddypress.org/community/members/ 9 Site Wide Only: true10 9 Network: true 11 10 */ 12 11 13 define( 'BP_VERSION', '1.2. 7' );12 define( 'BP_VERSION', '1.2.8' ); 14 13 15 14 /*** -
branches/1.2/bp-messages.php
r3775 r4066 97 97 messages_install(); 98 98 } 99 add_action( 'admin_menu', 'messages_check_installed' ); 100 add_action( 'network_admin_menu', 'messages_check_installed' ); 99 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'messages_check_installed' ); 101 100 102 101 function messages_setup_nav() { -
branches/1.2/bp-xprofile.php
r3775 r4066 152 152 xprofile_install(); 153 153 } 154 add_action( 'admin_menu', 'xprofile_add_admin_menu' ); 155 add_action( 'network_admin_menu', 'xprofile_add_admin_menu' ); 154 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_menu' ); 156 155 157 156 /** -
branches/1.2/bp-xprofile/bp-xprofile-cssjs.php
r3804 r4066 9 9 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' ); 10 10 } 11 add_action( 'admin_menu', 'xprofile_add_admin_css' ); 12 add_action( 'network_admin_menu', 'xprofile_add_admin_css' ); 11 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_css' ); 13 12 14 13 function xprofile_add_admin_js() { … … 22 21 } 23 22 } 24 add_action( 'admin_menu', 'xprofile_add_admin_js', 1 ); 25 add_action( 'network_admin_menu', 'xprofile_add_admin_js', 1 ); 23 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'xprofile_add_admin_js', 1 ); 26 24 27 25 ?> -
branches/1.2/license.txt
r1366 r4066 3 3 4 4 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 675 Mass Ave, Cambridge, MA 02139, USA 5 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 6 6 7 Everyone is permitted to copy and distribute verbatim copies 7 8 of this license document, but changing it is not allowed. -
branches/1.2/readme.txt
r3569 r4066 2 2 Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges 3 3 Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, mingle, social, community, networks, networking, cms 4 Requires at least: 3. 05 Tested up to: 3. 0.36 Stable tag: 1.2. 74 Requires at least: 3.1 5 Tested up to: 3.1 6 Stable tag: 1.2.8 7 7 8 8 == Description == … … 62 62 Of course! First install and activate BuddyPress, then download and activate the <a href="http://wordpress.org/extend/plugins/bp-template-pack/">template extension pack</a>. This plugin will run you through the process step-by-step. 63 63 64 Be sure to also try out the default theme bundled with BuddyPress. It provides all the awesome features of a standard WordPress blog, but also integrates the BuddyPress features both seamlessly and beaut fully. It's also really easy to modify with custom header support, widget support and via a <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>.64 Be sure to also try out the default theme bundled with BuddyPress. It provides all the awesome features of a standard WordPress blog, but also integrates the BuddyPress features both seamlessly and beautifully. It's also really easy to modify with custom header support, widget support and via a <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>. 65 65 66 66 = Will this work on standard WordPress and WordPress MU? = … … 96 96 == Languages == 97 97 98 BuddyPress is available in more than 20 languages. For more information about BuddyPress in your language please select a lang auge site from the list below. Is your language missing? Please send a message to the <a href="http://lists.automattic.com/mailman/listinfo/wp-polyglots">WP-Polygots</a> mailing list and request for your language to be set up.98 BuddyPress is available in more than 20 languages. For more information about BuddyPress in your language please select a language site from the list below. Is your language missing? Please send a message to the <a href="http://lists.automattic.com/mailman/listinfo/wp-polyglots">WP-Polygots</a> mailing list and request for your language to be set up. 99 99 100 100 * <a href="http://br.buddypress.org/">Brasil</a> … … 118 118 * <a href="http://tw.buddypress.org/">正體中文</a> 119 119 120 The <a href="http://i18n.svn.buddypress.org/">BuddyPress lang auge file repository</a> includes some language that have not yet set up a localization site.120 The <a href="http://i18n.svn.buddypress.org/">BuddyPress language file repository</a> includes some language that have not yet set up a localization site. 121 121 122 122 == Upgrade Notice == 123 123 124 = 1.2. 7=125 Fixes over 10 bugs. 124 = 1.2.8 = 125 Compatibility with WordPress 3.1 126 126 127 127 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.