Version Description
Fixes over 25 issues
Download this release
Release Info
Developer | boonebgorges |
Plugin | BuddyPress |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.5.1
- bp-activity/bp-activity-actions.php +1 -1
- bp-activity/bp-activity-notifications.php +1 -1
- bp-activity/bp-activity-template.php +1 -1
- bp-core/admin/bp-core-update.php +19 -3
- bp-core/bp-core-catchuri.php +11 -11
- bp-core/bp-core-functions.php +16 -4
- bp-core/bp-core-widgets.php +1 -1
- bp-core/deprecated/1.5.php +15 -0
- bp-forums/bp-forums-template.php +1 -1
- bp-groups/bp-groups-actions.php +9 -3
- bp-groups/bp-groups-forums.php +16 -1
- bp-groups/bp-groups-loader.php +2 -2
- bp-groups/bp-groups-notifications.php +1 -1
- bp-groups/bp-groups-screens.php +8 -3
- bp-groups/bp-groups-template.php +2 -2
- bp-groups/bp-groups-widgets.php +1 -1
- bp-loader.php +7 -7
- bp-members/bp-members-signup.php +4 -2
- bp-messages/js/autocomplete/license.bgiframe.txt +19 -19
- bp-settings/bp-settings-actions.php +1 -1
- bp-themes/bp-default/_inc/css/default.css +6 -0
- bp-themes/bp-default/blogs/index.php +3 -3
- bp-themes/bp-default/forums/single/topic.php +5 -3
- bp-themes/bp-default/functions.php +45 -2
- bp-themes/bp-default/groups/single/forum.php +7 -3
- bp-themes/bp-default/groups/single/forum/topic.php +7 -3
- bp-themes/bp-default/license.txt +280 -280
- bp-themes/bp-default/readme.txt +21 -21
- bp-themes/bp-default/rtl.css +2 -2
- bp-themes/bp-default/style.css +2 -2
- bp-xprofile/bp-xprofile-classes.php +5 -3
- bp-xprofile/bp-xprofile-template.php +15 -6
- license.txt +280 -280
- readme.txt +105 -102
bp-activity/bp-activity-actions.php
CHANGED
@@ -190,7 +190,7 @@ function bp_activity_action_post_update() {
|
|
190 |
global $bp;
|
191 |
|
192 |
// Do not proceed if user is not logged in, not viewing activity, or not posting
|
193 |
-
if ( !is_user_logged_in() || bp_is_activity_component() || !bp_is_current_action( 'post' ) )
|
194 |
return false;
|
195 |
|
196 |
// Check the nonce
|
190 |
global $bp;
|
191 |
|
192 |
// Do not proceed if user is not logged in, not viewing activity, or not posting
|
193 |
+
if ( !is_user_logged_in() || !bp_is_activity_component() || !bp_is_current_action( 'post' ) )
|
194 |
return false;
|
195 |
|
196 |
// Check the nonce
|
bp-activity/bp-activity-notifications.php
CHANGED
@@ -211,7 +211,7 @@ To view the original activity, your comment and all replies, log in and visit: %
|
|
211 |
/* Send the message */
|
212 |
$to = apply_filters( 'bp_activity_new_comment_notification_comment_author_to', $to );
|
213 |
$subject = apply_filters( 'bp_activity_new_comment_notification_comment_author_subject', $subject, $poster_name );
|
214 |
-
$message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link );
|
215 |
|
216 |
wp_mail( $to, $subject, $message );
|
217 |
|
211 |
/* Send the message */
|
212 |
$to = apply_filters( 'bp_activity_new_comment_notification_comment_author_to', $to );
|
213 |
$subject = apply_filters( 'bp_activity_new_comment_notification_comment_author_subject', $subject, $poster_name );
|
214 |
+
$message = apply_filters( 'bp_activity_new_comment_notification_comment_author_message', $message, $poster_name, $content, $settings_link, $thread_link );
|
215 |
|
216 |
wp_mail( $to, $subject, $message );
|
217 |
|
bp-activity/bp-activity-template.php
CHANGED
@@ -2439,7 +2439,7 @@ function bp_sitewide_activity_feed_link() {
|
|
2439 |
* @return string The sitewide activity feed link
|
2440 |
*/
|
2441 |
function bp_get_sitewide_activity_feed_link() {
|
2442 |
-
return apply_filters( 'bp_get_sitewide_activity_feed_link',
|
2443 |
}
|
2444 |
|
2445 |
/**
|
2439 |
* @return string The sitewide activity feed link
|
2440 |
*/
|
2441 |
function bp_get_sitewide_activity_feed_link() {
|
2442 |
+
return apply_filters( 'bp_get_sitewide_activity_feed_link', bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/feed/' );
|
2443 |
}
|
2444 |
|
2445 |
/**
|
bp-core/admin/bp-core-update.php
CHANGED
@@ -265,6 +265,13 @@ class BP_Core_Setup_Wizard {
|
|
265 |
}
|
266 |
|
267 |
function step_ms_update() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
if ( !current_user_can( 'activate_plugins' ) )
|
269 |
return false;
|
270 |
|
@@ -336,7 +343,9 @@ class BP_Core_Setup_Wizard {
|
|
336 |
|
337 |
</div>
|
338 |
|
339 |
-
|
|
|
|
|
340 |
}
|
341 |
|
342 |
function step_components() {
|
@@ -362,7 +371,12 @@ class BP_Core_Setup_Wizard {
|
|
362 |
}
|
363 |
|
364 |
function step_pages() {
|
365 |
-
global $bp;
|
|
|
|
|
|
|
|
|
|
|
366 |
|
367 |
if ( !current_user_can( 'activate_plugins' ) )
|
368 |
return false;
|
@@ -526,7 +540,9 @@ class BP_Core_Setup_Wizard {
|
|
526 |
|
527 |
</div>
|
528 |
|
529 |
-
|
|
|
|
|
530 |
}
|
531 |
|
532 |
function step_permalinks() {
|
265 |
}
|
266 |
|
267 |
function step_ms_update() {
|
268 |
+
global $wpdb;
|
269 |
+
|
270 |
+
// Make sure that page info is pulled from bp_get_root_blog_id() (except when in
|
271 |
+
// multisite mode)
|
272 |
+
if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )
|
273 |
+
switch_to_blog( bp_get_root_blog_id() );
|
274 |
+
|
275 |
if ( !current_user_can( 'activate_plugins' ) )
|
276 |
return false;
|
277 |
|
343 |
|
344 |
</div>
|
345 |
|
346 |
+
<?php
|
347 |
+
|
348 |
+
restore_current_blog();
|
349 |
}
|
350 |
|
351 |
function step_components() {
|
371 |
}
|
372 |
|
373 |
function step_pages() {
|
374 |
+
global $bp, $wpdb;
|
375 |
+
|
376 |
+
// Make sure that page info is pulled from bp_get_root_blog_id() (except when in
|
377 |
+
// multisite mode)
|
378 |
+
if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )
|
379 |
+
switch_to_blog( bp_get_root_blog_id() );
|
380 |
|
381 |
if ( !current_user_can( 'activate_plugins' ) )
|
382 |
return false;
|
540 |
|
541 |
</div>
|
542 |
|
543 |
+
<?php
|
544 |
+
|
545 |
+
restore_current_blog();
|
546 |
}
|
547 |
|
548 |
function step_permalinks() {
|
bp-core/bp-core-catchuri.php
CHANGED
@@ -250,6 +250,17 @@ function bp_core_set_uri_globals() {
|
|
250 |
return;
|
251 |
}
|
252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
// Bump the offset
|
254 |
if ( isset( $bp_uri[$uri_offset + 2] ) ) {
|
255 |
$bp_uri = array_merge( array(), array_slice( $bp_uri, $uri_offset + 2 ) );
|
@@ -368,17 +379,6 @@ function bp_core_catch_no_access() {
|
|
368 |
if ( $bp_no_status_set )
|
369 |
return false;
|
370 |
|
371 |
-
// If the displayed user was marked as a spammer and the logged-in user is not a super admin, 404.
|
372 |
-
if ( isset( $bp->displayed_user->id ) && bp_core_is_user_spammer( $bp->displayed_user->id ) ) {
|
373 |
-
if ( !$bp->loggedin_user->is_super_admin ) {
|
374 |
-
bp_do_404();
|
375 |
-
return;
|
376 |
-
|
377 |
-
} else {
|
378 |
-
bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'error' );
|
379 |
-
}
|
380 |
-
}
|
381 |
-
|
382 |
if ( !isset( $wp_query->queried_object ) && !bp_is_blog_page() ) {
|
383 |
bp_do_404();
|
384 |
}
|
250 |
return;
|
251 |
}
|
252 |
|
253 |
+
// If the displayed user is marked as a spammer, 404 (unless logged-
|
254 |
+
// in user is a super admin)
|
255 |
+
if ( !empty( $bp->displayed_user->id ) && bp_core_is_user_spammer( $bp->displayed_user->id ) ) {
|
256 |
+
if ( is_super_admin() ) {
|
257 |
+
bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'error' );
|
258 |
+
} else {
|
259 |
+
bp_do_404();
|
260 |
+
return;
|
261 |
+
}
|
262 |
+
}
|
263 |
+
|
264 |
// Bump the offset
|
265 |
if ( isset( $bp_uri[$uri_offset + 2] ) ) {
|
266 |
$bp_uri = array_merge( array(), array_slice( $bp_uri, $uri_offset + 2 ) );
|
379 |
if ( $bp_no_status_set )
|
380 |
return false;
|
381 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
if ( !isset( $wp_query->queried_object ) && !bp_is_blog_page() ) {
|
383 |
bp_do_404();
|
384 |
}
|
bp-core/bp-core-functions.php
CHANGED
@@ -136,7 +136,9 @@ function bp_core_get_directory_pages() {
|
|
136 |
// Get pages and IDs
|
137 |
if ( $page_ids = bp_core_get_directory_page_ids() ) {
|
138 |
|
139 |
-
|
|
|
|
|
140 |
$page_ids_sql = implode( ',', (array)$page_ids );
|
141 |
$page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ) );
|
142 |
|
@@ -838,6 +840,16 @@ function bp_core_action_search_site( $slug = '' ) {
|
|
838 |
case 'posts':
|
839 |
$slug = '';
|
840 |
$var = '/?s=';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
841 |
break;
|
842 |
|
843 |
case 'blogs':
|
@@ -971,14 +983,14 @@ function bp_core_get_root_options() {
|
|
971 |
// BuddyPress core settings
|
972 |
'bp-deactivated-components' => serialize( array( ) ),
|
973 |
'bp-blogs-first-install' => '0',
|
974 |
-
'bp-disable-
|
975 |
'bp-xprofile-base-group-name' => 'Base',
|
976 |
'bp-xprofile-fullname-field-name' => 'Name',
|
977 |
'bp-disable-profile-sync' => '0',
|
978 |
'bp-disable-avatar-uploads' => '0',
|
979 |
'bp-disable-account-deletion' => '0',
|
980 |
'bp-disable-blogforum-comments' => '0',
|
981 |
-
'bb-config-location' => ABSPATH,
|
982 |
'hide-loggedout-adminbar' => '0',
|
983 |
|
984 |
// Useful WordPress settings
|
@@ -1451,4 +1463,4 @@ function bp_do_404( $redirect = 'remove_canonical_direct' ) {
|
|
1451 |
if ( 'remove_canonical_direct' == $redirect )
|
1452 |
remove_action( 'template_redirect', 'redirect_canonical' );
|
1453 |
}
|
1454 |
-
?>
|
136 |
// Get pages and IDs
|
137 |
if ( $page_ids = bp_core_get_directory_page_ids() ) {
|
138 |
|
139 |
+
// Always get page data from the root blog, except on multiblog mode, when it comes
|
140 |
+
// from the current blog
|
141 |
+
$posts_table_name = bp_is_multiblog_mode() ? $wpdb->posts : $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts';
|
142 |
$page_ids_sql = implode( ',', (array)$page_ids );
|
143 |
$page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ) );
|
144 |
|
840 |
case 'posts':
|
841 |
$slug = '';
|
842 |
$var = '/?s=';
|
843 |
+
|
844 |
+
// If posts aren't displayed on the front page, find the post page's slug.
|
845 |
+
if ( 'page' == get_option( 'show_on_front' ) ) {
|
846 |
+
$page = get_post( get_option( 'page_for_posts' ) );
|
847 |
+
|
848 |
+
if ( !is_wp_error( $page ) && !empty( $page->post_name ) ) {
|
849 |
+
$slug = $page->post_name;
|
850 |
+
$var = '?s=';
|
851 |
+
}
|
852 |
+
}
|
853 |
break;
|
854 |
|
855 |
case 'blogs':
|
983 |
// BuddyPress core settings
|
984 |
'bp-deactivated-components' => serialize( array( ) ),
|
985 |
'bp-blogs-first-install' => '0',
|
986 |
+
'bp-disable-blogforum-comments' => '0',
|
987 |
'bp-xprofile-base-group-name' => 'Base',
|
988 |
'bp-xprofile-fullname-field-name' => 'Name',
|
989 |
'bp-disable-profile-sync' => '0',
|
990 |
'bp-disable-avatar-uploads' => '0',
|
991 |
'bp-disable-account-deletion' => '0',
|
992 |
'bp-disable-blogforum-comments' => '0',
|
993 |
+
'bb-config-location' => ABSPATH . 'bb-config.php',
|
994 |
'hide-loggedout-adminbar' => '0',
|
995 |
|
996 |
// Useful WordPress settings
|
1463 |
if ( 'remove_canonical_direct' == $redirect )
|
1464 |
remove_action( 'template_redirect', 'redirect_canonical' );
|
1465 |
}
|
1466 |
+
?>
|
bp-core/bp-core-widgets.php
CHANGED
@@ -22,7 +22,7 @@ class BP_Core_Members_Widget extends WP_Widget {
|
|
22 |
$widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) );
|
23 |
parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops );
|
24 |
|
25 |
-
if ( is_active_widget( false, false, $this->id_base ) ) {
|
26 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
|
27 |
wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.dev.js', array( 'jquery' ), '20110723' );
|
28 |
else
|
22 |
$widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) );
|
23 |
parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops );
|
24 |
|
25 |
+
if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {
|
26 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
|
27 |
wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.dev.js', array( 'jquery' ), '20110723' );
|
28 |
else
|
bp-core/deprecated/1.5.php
CHANGED
@@ -50,6 +50,21 @@ function bp_core_is_main_site( $blog_id = '' ) {
|
|
50 |
return is_main_site( $blog_id );
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/** Admin ******************************************************************/
|
54 |
|
55 |
/**
|
50 |
return is_main_site( $blog_id );
|
51 |
}
|
52 |
|
53 |
+
/**
|
54 |
+
* WPMU version of is_super_admin()
|
55 |
+
*
|
56 |
+
* @deprecated 1.5
|
57 |
+
* @deprecated Use is_super_admin()
|
58 |
+
* @param int $user_id Optional. Defaults to logged-in user
|
59 |
+
* @return bool True if is super admin
|
60 |
+
*/
|
61 |
+
if ( !function_exists( 'is_site_admin' ) ) {
|
62 |
+
function is_site_admin( $user_id = false ) {
|
63 |
+
_deprecated_function( __FUNCTION__, '1.5', 'is_super_admin()' );
|
64 |
+
return is_super_admin( $user_id );
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
/** Admin ******************************************************************/
|
69 |
|
70 |
/**
|
bp-forums/bp-forums-template.php
CHANGED
@@ -1323,7 +1323,7 @@ function bp_forum_permalink( $forum_id = 0 ) {
|
|
1323 |
global $bp;
|
1324 |
|
1325 |
if ( bp_is_groups_component() ) {
|
1326 |
-
$permalink = trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . bp_current_item() . 'forum' );
|
1327 |
} else {
|
1328 |
if ( empty( $forum_id ) ) {
|
1329 |
global $topic_template;
|
1323 |
global $bp;
|
1324 |
|
1325 |
if ( bp_is_groups_component() ) {
|
1326 |
+
$permalink = trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . bp_current_item() . '/forum' );
|
1327 |
} else {
|
1328 |
if ( empty( $forum_id ) ) {
|
1329 |
global $topic_template;
|
bp-groups/bp-groups-actions.php
CHANGED
@@ -243,11 +243,17 @@ function groups_action_leave_group() {
|
|
243 |
|
244 |
// User wants to leave any group
|
245 |
if ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
|
246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' );
|
248 |
-
|
249 |
bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) );
|
250 |
-
|
251 |
bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) );
|
252 |
}
|
253 |
|
243 |
|
244 |
// User wants to leave any group
|
245 |
if ( groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
|
246 |
+
|
247 |
+
// Stop sole admins from abandoning their group
|
248 |
+
$group_admins = groups_get_group_admins( $bp->groups->current_group->id );
|
249 |
+
if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == $bp->loggedin_user->id )
|
250 |
+
bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' );
|
251 |
+
|
252 |
+
elseif ( !groups_leave_group( $bp->groups->current_group->id ) )
|
253 |
bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' );
|
254 |
+
else
|
255 |
bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) );
|
256 |
+
|
257 |
bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) );
|
258 |
}
|
259 |
|
bp-groups/bp-groups-forums.php
CHANGED
@@ -23,11 +23,26 @@ function groups_new_group_forum( $group_id = 0, $group_name = '', $group_desc =
|
|
23 |
do_action( 'groups_new_group_forum', $forum_id, $group_id );
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function groups_update_group_forum( $group_id ) {
|
27 |
|
28 |
$group = new BP_Groups_Group( $group_id );
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
return false;
|
32 |
|
33 |
$args = array(
|
23 |
do_action( 'groups_new_group_forum', $forum_id, $group_id );
|
24 |
}
|
25 |
|
26 |
+
/**
|
27 |
+
* Updates group forum metadata (title, description, slug) when the group's details are edited
|
28 |
+
*
|
29 |
+
* @package BuddyPress
|
30 |
+
* @subpackage Groups
|
31 |
+
*
|
32 |
+
* @param int $group_id Group id, passed from groups_details_updated
|
33 |
+
*/
|
34 |
function groups_update_group_forum( $group_id ) {
|
35 |
|
36 |
$group = new BP_Groups_Group( $group_id );
|
37 |
|
38 |
+
/**
|
39 |
+
* Bail in the following three situations:
|
40 |
+
* 1. Forums are not enabled for this group
|
41 |
+
* 2. The BP Forum component is not enabled
|
42 |
+
* 3. The built-in bbPress forums are not correctly installed (usually means they've been
|
43 |
+
* uninstalled)
|
44 |
+
*/
|
45 |
+
if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && !bp_forums_is_installed_correctly() ) )
|
46 |
return false;
|
47 |
|
48 |
$args = array(
|
bp-groups/bp-groups-loader.php
CHANGED
@@ -215,7 +215,7 @@ class BP_Groups_Component extends BP_Component {
|
|
215 |
) );
|
216 |
|
217 |
// Auto join group when non group member performs group activity
|
218 |
-
$this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' );
|
219 |
}
|
220 |
|
221 |
/**
|
@@ -466,4 +466,4 @@ class BP_Groups_Component extends BP_Component {
|
|
466 |
// Create the groups component
|
467 |
$bp->groups = new BP_Groups_Component();
|
468 |
|
469 |
-
?>
|
215 |
) );
|
216 |
|
217 |
// Auto join group when non group member performs group activity
|
218 |
+
$this->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) && BP_DISABLE_AUTO_GROUP_JOIN ? false : true;
|
219 |
}
|
220 |
|
221 |
/**
|
466 |
// Create the groups component
|
467 |
$bp->groups = new BP_Groups_Component();
|
468 |
|
469 |
+
?>
|
bp-groups/bp-groups-notifications.php
CHANGED
@@ -41,7 +41,7 @@ To view the group: %2$s
|
|
41 |
unset( $message, $to );
|
42 |
}
|
43 |
|
44 |
-
do_action( 'bp_groups_sent_updated_email', $user_ids, $subject,
|
45 |
}
|
46 |
|
47 |
function groups_notification_new_membership_request( $requesting_user_id, $admin_id, $group_id, $membership_id ) {
|
41 |
unset( $message, $to );
|
42 |
}
|
43 |
|
44 |
+
do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, '', $group_id );
|
45 |
}
|
46 |
|
47 |
function groups_notification_new_membership_request( $requesting_user_id, $admin_id, $group_id, $membership_id ) {
|
bp-groups/bp-groups-screens.php
CHANGED
@@ -140,7 +140,7 @@ function groups_screen_group_forum() {
|
|
140 |
check_admin_referer( 'bp_forums_new_reply' );
|
141 |
|
142 |
// Auto join this user if they are not yet a member of this group
|
143 |
-
if (
|
144 |
groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id );
|
145 |
|
146 |
$topic_page = isset( $_GET['topic_page'] ) ? $_GET['topic_page'] : false;
|
@@ -337,7 +337,7 @@ function groups_screen_group_forum() {
|
|
337 |
if ( $user_is_banned ) {
|
338 |
$error_message = __( "You have been banned from this group.", 'buddypress' );
|
339 |
|
340 |
-
} elseif (
|
341 |
// Auto join this user if they are not yet a member of this group
|
342 |
groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id );
|
343 |
}
|
@@ -640,8 +640,13 @@ function groups_screen_group_admin_manage_members() {
|
|
640 |
if ( !check_admin_referer( 'groups_demote_member' ) )
|
641 |
return false;
|
642 |
|
|
|
|
|
|
|
|
|
|
|
643 |
// Demote a user.
|
644 |
-
|
645 |
bp_core_add_message( __( 'There was an error when demoting that user, please try again', 'buddypress' ), 'error' );
|
646 |
else
|
647 |
bp_core_add_message( __( 'User demoted successfully', 'buddypress' ) );
|
140 |
check_admin_referer( 'bp_forums_new_reply' );
|
141 |
|
142 |
// Auto join this user if they are not yet a member of this group
|
143 |
+
if ( bp_groups_auto_join() && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )
|
144 |
groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id );
|
145 |
|
146 |
$topic_page = isset( $_GET['topic_page'] ) ? $_GET['topic_page'] : false;
|
337 |
if ( $user_is_banned ) {
|
338 |
$error_message = __( "You have been banned from this group.", 'buddypress' );
|
339 |
|
340 |
+
} elseif ( bp_groups_auto_join() && !is_super_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) {
|
341 |
// Auto join this user if they are not yet a member of this group
|
342 |
groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id );
|
343 |
}
|
640 |
if ( !check_admin_referer( 'groups_demote_member' ) )
|
641 |
return false;
|
642 |
|
643 |
+
// Stop sole admins from abandoning their group
|
644 |
+
$group_admins = groups_get_group_admins( $bp->groups->current_group->id );
|
645 |
+
if ( 1 == count( $group_admins ) && $group_admins[0]->user_id == $user_id )
|
646 |
+
bp_core_add_message( __( 'This group must have at least one admin', 'buddypress' ), 'error' );
|
647 |
+
|
648 |
// Demote a user.
|
649 |
+
elseif ( !groups_demote_member( $user_id, $bp->groups->current_group->id ) )
|
650 |
bp_core_add_message( __( 'There was an error when demoting that user, please try again', 'buddypress' ), 'error' );
|
651 |
else
|
652 |
bp_core_add_message( __( 'User demoted successfully', 'buddypress' ) );
|
bp-groups/bp-groups-template.php
CHANGED
@@ -273,7 +273,7 @@ function bp_has_groups( $args = '' ) {
|
|
273 |
$r = wp_parse_args( $args, $defaults );
|
274 |
extract( $r );
|
275 |
|
276 |
-
if (
|
277 |
if ( isset( $_REQUEST['group-filter-box'] ) && !empty( $_REQUEST['group-filter-box'] ) )
|
278 |
$search_terms = $_REQUEST['group-filter-box'];
|
279 |
elseif ( isset( $_REQUEST['s'] ) && !empty( $_REQUEST['s'] ) )
|
@@ -2184,7 +2184,7 @@ function bp_group_creation_previous_link() {
|
|
2184 |
$previous_steps[] = $slug;
|
2185 |
}
|
2186 |
|
2187 |
-
return apply_filters( 'bp_get_group_creation_previous_link', trailingslashit( bp_get_root_domain() ) .
|
2188 |
}
|
2189 |
|
2190 |
function bp_is_last_group_creation_step() {
|
273 |
$r = wp_parse_args( $args, $defaults );
|
274 |
extract( $r );
|
275 |
|
276 |
+
if ( empty( $search_terms ) ) {
|
277 |
if ( isset( $_REQUEST['group-filter-box'] ) && !empty( $_REQUEST['group-filter-box'] ) )
|
278 |
$search_terms = $_REQUEST['group-filter-box'];
|
279 |
elseif ( isset( $_REQUEST['s'] ) && !empty( $_REQUEST['s'] ) )
|
2184 |
$previous_steps[] = $slug;
|
2185 |
}
|
2186 |
|
2187 |
+
return apply_filters( 'bp_get_group_creation_previous_link', trailingslashit( bp_get_root_domain() ) . bp_get_groups_root_slug() . '/create/step/' . array_pop( $previous_steps ) );
|
2188 |
}
|
2189 |
|
2190 |
function bp_is_last_group_creation_step() {
|
bp-groups/bp-groups-widgets.php
CHANGED
@@ -19,7 +19,7 @@ class BP_Groups_Widget extends WP_Widget {
|
|
19 |
$widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
|
20 |
parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops );
|
21 |
|
22 |
-
if ( is_active_widget( false, false, $this->id_base ) ) {
|
23 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
|
24 |
wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.dev.js', array( 'jquery' ) );
|
25 |
else
|
19 |
$widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) );
|
20 |
parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops );
|
21 |
|
22 |
+
if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) {
|
23 |
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG )
|
24 |
wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.dev.js', array( 'jquery' ) );
|
25 |
else
|
bp-loader.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://buddypress.org
|
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 |
* Author: The BuddyPress Community
|
7 |
-
* Version: 1.5
|
8 |
* Author URI: http://buddypress.org/community/members/
|
9 |
* Network: true
|
10 |
*/
|
@@ -17,7 +17,7 @@ global $wpdb;
|
|
17 |
|
18 |
// Define the BuddyPress version
|
19 |
if ( !defined( 'BP_VERSION' ) )
|
20 |
-
define( 'BP_VERSION', '1.5' );
|
21 |
|
22 |
// Define the database version
|
23 |
if ( !defined( 'BP_DB_VERSION' ) )
|
@@ -60,7 +60,7 @@ if ( !defined( 'BP_SEARCH_SLUG' ) )
|
|
60 |
define( 'BP_SEARCH_SLUG', 'search' );
|
61 |
|
62 |
// Setup the BuddyPress theme directory
|
63 |
-
register_theme_directory(
|
64 |
|
65 |
/** Loader ********************************************************************/
|
66 |
|
@@ -79,17 +79,17 @@ if ( !$bp->database_version = get_site_option( 'bp-db-version' ) ) {
|
|
79 |
// This is a new installation.
|
80 |
if ( empty( $bp->database_version ) ) {
|
81 |
$bp->maintenance_mode = 'install';
|
82 |
-
require(
|
83 |
|
84 |
// There is a previous installation
|
85 |
} else {
|
86 |
// Load core
|
87 |
-
require(
|
88 |
|
89 |
// Check if an update is required
|
90 |
if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_network_activate ) ) {
|
91 |
$bp->maintenance_mode = 'update';
|
92 |
-
require(
|
93 |
}
|
94 |
}
|
95 |
|
@@ -133,4 +133,4 @@ function bp_loader_deactivate() {
|
|
133 |
register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' );
|
134 |
endif;
|
135 |
|
136 |
-
?>
|
4 |
* Plugin URI: http://buddypress.org
|
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 |
* Author: The BuddyPress Community
|
7 |
+
* Version: 1.5.1
|
8 |
* Author URI: http://buddypress.org/community/members/
|
9 |
* Network: true
|
10 |
*/
|
17 |
|
18 |
// Define the BuddyPress version
|
19 |
if ( !defined( 'BP_VERSION' ) )
|
20 |
+
define( 'BP_VERSION', '1.5.1' );
|
21 |
|
22 |
// Define the database version
|
23 |
if ( !defined( 'BP_DB_VERSION' ) )
|
60 |
define( 'BP_SEARCH_SLUG', 'search' );
|
61 |
|
62 |
// Setup the BuddyPress theme directory
|
63 |
+
register_theme_directory( BP_PLUGIN_DIR . '/bp-themes' );
|
64 |
|
65 |
/** Loader ********************************************************************/
|
66 |
|
79 |
// This is a new installation.
|
80 |
if ( empty( $bp->database_version ) ) {
|
81 |
$bp->maintenance_mode = 'install';
|
82 |
+
require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
|
83 |
|
84 |
// There is a previous installation
|
85 |
} else {
|
86 |
// Load core
|
87 |
+
require( BP_PLUGIN_DIR . '/bp-core/bp-core-loader.php' );
|
88 |
|
89 |
// Check if an update is required
|
90 |
if ( (int)$bp->database_version < (int)constant( 'BP_DB_VERSION' ) || isset( $bp->is_network_activate ) ) {
|
91 |
$bp->maintenance_mode = 'update';
|
92 |
+
require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
|
93 |
}
|
94 |
}
|
95 |
|
133 |
register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' );
|
134 |
endif;
|
135 |
|
136 |
+
?>
|
bp-members/bp-members-signup.php
CHANGED
@@ -23,9 +23,11 @@ function bp_core_screen_signup() {
|
|
23 |
// If the user is logged in, redirect away from here
|
24 |
if ( is_user_logged_in() ) {
|
25 |
if ( bp_is_component_front_page( 'register' ) )
|
26 |
-
|
27 |
else
|
28 |
-
|
|
|
|
|
29 |
|
30 |
return;
|
31 |
}
|
23 |
// If the user is logged in, redirect away from here
|
24 |
if ( is_user_logged_in() ) {
|
25 |
if ( bp_is_component_front_page( 'register' ) )
|
26 |
+
$redirect_to = bp_get_root_domain() . '/' . bp_get_members_root_slug();
|
27 |
else
|
28 |
+
$redirect_to = bp_get_root_domain();
|
29 |
+
|
30 |
+
bp_core_redirect( apply_filters( 'bp_loggedin_register_page_redirect_to', $redirect_to ) );
|
31 |
|
32 |
return;
|
33 |
}
|
bp-messages/js/autocomplete/license.bgiframe.txt
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
Copyright 2010, Brandon Aaron (http://brandonaaron.net/)
|
2 |
-
|
3 |
-
Permission is hereby granted, free of charge, to any person obtaining
|
4 |
-
a copy of this software and associated documentation files (the
|
5 |
-
"Software"), to deal in the Software without restriction, including
|
6 |
-
without limitation the rights to use, copy, modify, merge, publish,
|
7 |
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8 |
-
permit persons to whom the Software is furnished to do so, subject to
|
9 |
-
the following conditions:
|
10 |
-
|
11 |
-
The above copyright notice and this permission notice shall be
|
12 |
-
included in all copies or substantial portions of the Software.
|
13 |
-
|
14 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15 |
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16 |
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17 |
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18 |
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19 |
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1 |
+
Copyright 2010, Brandon Aaron (http://brandonaaron.net/)
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
4 |
+
a copy of this software and associated documentation files (the
|
5 |
+
"Software"), to deal in the Software without restriction, including
|
6 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
7 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8 |
+
permit persons to whom the Software is furnished to do so, subject to
|
9 |
+
the following conditions:
|
10 |
+
|
11 |
+
The above copyright notice and this permission notice shall be
|
12 |
+
included in all copies or substantial portions of the Software.
|
13 |
+
|
14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
bp-settings/bp-settings-actions.php
CHANGED
@@ -92,7 +92,7 @@ function bp_core_screen_general_settings() {
|
|
92 |
}
|
93 |
|
94 |
// Add user feedback messages
|
95 |
-
if ( empty( $pass_error ) && empty( $pwd_error ) )
|
96 |
bp_core_add_message( __( 'Changes saved.', 'buddypress' ), 'success' );
|
97 |
|
98 |
elseif ( !empty( $pass_error ) )
|
92 |
}
|
93 |
|
94 |
// Add user feedback messages
|
95 |
+
if ( empty( $pass_error ) && empty( $pwd_error ) && ( empty( $email_error ) ) )
|
96 |
bp_core_add_message( __( 'Changes saved.', 'buddypress' ), 'success' );
|
97 |
|
98 |
elseif ( !empty( $pass_error ) )
|
bp-themes/bp-default/_inc/css/default.css
CHANGED
@@ -1089,6 +1089,9 @@ form#whats-new-form textarea {
|
|
1089 |
padding: 6px;
|
1090 |
width: 98%;
|
1091 |
}
|
|
|
|
|
|
|
1092 |
form#whats-new-form #whats-new-options select {
|
1093 |
max-width: 200px;
|
1094 |
margin-top: 12px;
|
@@ -1101,6 +1104,9 @@ form#whats-new-form #whats-new-submit {
|
|
1101 |
overflow: auto;
|
1102 |
height: 0;
|
1103 |
}
|
|
|
|
|
|
|
1104 |
#whats-new:focus {
|
1105 |
border-color: rgba(31, 179, 221, 0.9) !important;
|
1106 |
outline-color: rgba(31, 179, 221, 0.9);
|
1089 |
padding: 6px;
|
1090 |
width: 98%;
|
1091 |
}
|
1092 |
+
body.no-js form#whats-new-form textarea {
|
1093 |
+
height: 50px;
|
1094 |
+
}
|
1095 |
form#whats-new-form #whats-new-options select {
|
1096 |
max-width: 200px;
|
1097 |
margin-top: 12px;
|
1104 |
overflow: auto;
|
1105 |
height: 0;
|
1106 |
}
|
1107 |
+
body.no-js #whats-new-options {
|
1108 |
+
height: auto;
|
1109 |
+
}
|
1110 |
#whats-new:focus {
|
1111 |
border-color: rgba(31, 179, 221, 0.9) !important;
|
1112 |
outline-color: rgba(31, 179, 221, 0.9);
|
bp-themes/bp-default/blogs/index.php
CHANGED
@@ -32,11 +32,11 @@
|
|
32 |
|
33 |
<div class="item-list-tabs" role="navigation">
|
34 |
<ul>
|
35 |
-
<li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>
|
36 |
|
37 |
<?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
|
38 |
|
39 |
-
<li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug()
|
40 |
|
41 |
<?php endif; ?>
|
42 |
|
@@ -74,7 +74,7 @@
|
|
74 |
<?php do_action( 'bp_directory_blogs_content' ); ?>
|
75 |
|
76 |
<?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
|
77 |
-
|
78 |
<?php do_action( 'bp_after_directory_blogs_content' ); ?>
|
79 |
|
80 |
</form><!-- #blogs-directory-form -->
|
32 |
|
33 |
<div class="item-list-tabs" role="navigation">
|
34 |
<ul>
|
35 |
+
<li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug() ?>"><?php printf( __( 'All Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count() ); ?></a></li>
|
36 |
|
37 |
<?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
|
38 |
|
39 |
+
<li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug() ?>"><?php printf( __( 'My Sites <span>%s</span>', 'buddypress' ), bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
|
40 |
|
41 |
<?php endif; ?>
|
42 |
|
74 |
<?php do_action( 'bp_directory_blogs_content' ); ?>
|
75 |
|
76 |
<?php wp_nonce_field( 'directory_blogs', '_wpnonce-blogs-filter' ); ?>
|
77 |
+
|
78 |
<?php do_action( 'bp_after_directory_blogs_content' ); ?>
|
79 |
|
80 |
</form><!-- #blogs-directory-form -->
|
bp-themes/bp-default/forums/single/topic.php
CHANGED
@@ -33,9 +33,11 @@
|
|
33 |
|
34 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
35 |
<ul>
|
36 |
-
|
37 |
-
<
|
38 |
-
|
|
|
|
|
39 |
|
40 |
<?php if ( bp_forums_has_directory() ) : ?>
|
41 |
|
33 |
|
34 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
35 |
<ul>
|
36 |
+
<?php if ( is_user_logged_in() ) : ?>
|
37 |
+
<li>
|
38 |
+
<a href="#post-topic-reply" class="show-hide-new"><?php _e( 'New Reply', 'buddypress' ) ?></a>
|
39 |
+
</li>
|
40 |
+
<?php endif; ?>
|
41 |
|
42 |
<?php if ( bp_forums_has_directory() ) : ?>
|
43 |
|
bp-themes/bp-default/functions.php
CHANGED
@@ -139,7 +139,7 @@ if ( !function_exists( 'bp_dtheme_enqueue_scripts' ) ) :
|
|
139 |
*/
|
140 |
function bp_dtheme_enqueue_scripts() {
|
141 |
// Bump this when changes are made to bust cache
|
142 |
-
$version = '
|
143 |
|
144 |
// Enqueue the global JS - Ajax will not work without it
|
145 |
wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), $version );
|
@@ -179,7 +179,7 @@ if ( !function_exists( 'bp_dtheme_enqueue_styles' ) ) :
|
|
179 |
*/
|
180 |
function bp_dtheme_enqueue_styles() {
|
181 |
// Bump this when changes are made to bust cache
|
182 |
-
$version = '
|
183 |
|
184 |
// Register our main stylesheet
|
185 |
wp_register_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version );
|
@@ -731,4 +731,47 @@ function bp_dtheme_content_nav( $nav_id ) {
|
|
731 |
<?php endif;
|
732 |
}
|
733 |
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
734 |
?>
|
139 |
*/
|
140 |
function bp_dtheme_enqueue_scripts() {
|
141 |
// Bump this when changes are made to bust cache
|
142 |
+
$version = '20111013';
|
143 |
|
144 |
// Enqueue the global JS - Ajax will not work without it
|
145 |
wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), $version );
|
179 |
*/
|
180 |
function bp_dtheme_enqueue_styles() {
|
181 |
// Bump this when changes are made to bust cache
|
182 |
+
$version = '20111013';
|
183 |
|
184 |
// Register our main stylesheet
|
185 |
wp_register_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version );
|
731 |
<?php endif;
|
732 |
}
|
733 |
endif;
|
734 |
+
|
735 |
+
/**
|
736 |
+
* Adds the no-js class to the body tag.
|
737 |
+
*
|
738 |
+
* This function ensures that the <body> element will have the 'no-js' class by default. If you're
|
739 |
+
* using JavaScript for some visual functionality in your theme, and you want to provide noscript
|
740 |
+
* support, apply those styles to body.no-js.
|
741 |
+
*
|
742 |
+
* The no-js class is removed by the JavaScript created in bp_dtheme_remove_nojs_body_class().
|
743 |
+
*
|
744 |
+
* @package BuddyPress
|
745 |
+
* @since 1.5.1
|
746 |
+
* @see bp_dtheme_remove_nojs_body_class()
|
747 |
+
*/
|
748 |
+
function bp_dtheme_add_nojs_body_class( $classes ) {
|
749 |
+
$classes[] = 'no-js';
|
750 |
+
return array_unique( $classes );
|
751 |
+
}
|
752 |
+
add_filter( 'bp_get_the_body_class', 'bp_dtheme_add_nojs_body_class' );
|
753 |
+
|
754 |
+
/**
|
755 |
+
* Dynamically removes the no-js class from the <body> element.
|
756 |
+
*
|
757 |
+
* By default, the no-js class is added to the body (see bp_dtheme_add_no_js_body_class()). The
|
758 |
+
* JavaScript in this function is loaded into the <body> element immediately after the <body> tag
|
759 |
+
* (note that it's hooked to bp_before_header), and uses JavaScript to switch the 'no-js' body class
|
760 |
+
* to 'js'. If your theme has styles that should only apply for JavaScript-enabled users, apply them
|
761 |
+
* to body.js.
|
762 |
+
*
|
763 |
+
* This technique is borrowed from WordPress, wp-admin/admin-header.php.
|
764 |
+
*
|
765 |
+
* @package BuddyPress
|
766 |
+
* @since 1.5.1
|
767 |
+
* @see bp_dtheme_add_nojs_body_class()
|
768 |
+
*/
|
769 |
+
function bp_dtheme_remove_nojs_body_class() {
|
770 |
+
?><script type="text/javascript">//<![CDATA[
|
771 |
+
(function(){var c=document.body.className;c=c.replace(/no-js/,'js');document.body.className=c;})();
|
772 |
+
//]]></script>
|
773 |
+
<?php
|
774 |
+
}
|
775 |
+
add_action( 'bp_before_header', 'bp_dtheme_remove_nojs_body_class' );
|
776 |
+
|
777 |
?>
|
bp-themes/bp-default/groups/single/forum.php
CHANGED
@@ -13,9 +13,13 @@ else : ?>
|
|
13 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
14 |
<ul>
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
|
20 |
<?php if ( bp_forums_has_directory() ) : ?>
|
21 |
|
13 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
14 |
<ul>
|
15 |
|
16 |
+
<?php if ( is_user_logged_in() ) : ?>
|
17 |
+
|
18 |
+
<li>
|
19 |
+
<a href="#post-new" class="show-hide-new"><?php _e( 'New Topic', 'buddypress' ) ?></a>
|
20 |
+
</li>
|
21 |
+
|
22 |
+
<?php endif; ?>
|
23 |
|
24 |
<?php if ( bp_forums_has_directory() ) : ?>
|
25 |
|
bp-themes/bp-default/groups/single/forum/topic.php
CHANGED
@@ -6,9 +6,13 @@
|
|
6 |
|
7 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
8 |
<ul>
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
|
13 |
<?php if ( bp_forums_has_directory() ) : ?>
|
14 |
|
6 |
|
7 |
<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
|
8 |
<ul>
|
9 |
+
<?php if ( is_user_logged_in() ) : ?>
|
10 |
+
|
11 |
+
<li>
|
12 |
+
<a href="<?php bp_forum_topic_new_reply_link() ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ) ?></a>
|
13 |
+
</li>
|
14 |
+
|
15 |
+
<?php endif; ?>
|
16 |
|
17 |
<?php if ( bp_forums_has_directory() ) : ?>
|
18 |
|
bp-themes/bp-default/license.txt
CHANGED
@@ -1,280 +1,280 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
5 |
-
675 Mass Ave, Cambridge, MA 02139, USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Library General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
Thus, it is not the intent of this section to claim rights or contest
|
124 |
-
your rights to work written entirely by you; rather, the intent is to
|
125 |
-
exercise the right to control the distribution of derivative or
|
126 |
-
collective works based on the Program.
|
127 |
-
|
128 |
-
In addition, mere aggregation of another work not based on the Program
|
129 |
-
with the Program (or with a work based on the Program) on a volume of
|
130 |
-
a storage or distribution medium does not bring the other work under
|
131 |
-
the scope of this License.
|
132 |
-
|
133 |
-
3. You may copy and distribute the Program (or a work based on it,
|
134 |
-
under Section 2) in object code or executable form under the terms of
|
135 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
136 |
-
|
137 |
-
a) Accompany it with the complete corresponding machine-readable
|
138 |
-
source code, which must be distributed under the terms of Sections
|
139 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
140 |
-
|
141 |
-
b) Accompany it with a written offer, valid for at least three
|
142 |
-
years, to give any third party, for a charge no more than your
|
143 |
-
cost of physically performing source distribution, a complete
|
144 |
-
machine-readable copy of the corresponding source code, to be
|
145 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
146 |
-
customarily used for software interchange; or,
|
147 |
-
|
148 |
-
c) Accompany it with the information you received as to the offer
|
149 |
-
to distribute corresponding source code. (This alternative is
|
150 |
-
allowed only for noncommercial distribution and only if you
|
151 |
-
received the program in object code or executable form with such
|
152 |
-
an offer, in accord with Subsection b above.)
|
153 |
-
|
154 |
-
The source code for a work means the preferred form of the work for
|
155 |
-
making modifications to it. For an executable work, complete source
|
156 |
-
code means all the source code for all modules it contains, plus any
|
157 |
-
associated interface definition files, plus the scripts used to
|
158 |
-
control compilation and installation of the executable. However, as a
|
159 |
-
special exception, the source code distributed need not include
|
160 |
-
anything that is normally distributed (in either source or binary
|
161 |
-
form) with the major components (compiler, kernel, and so on) of the
|
162 |
-
operating system on which the executable runs, unless that component
|
163 |
-
itself accompanies the executable.
|
164 |
-
|
165 |
-
If distribution of executable or object code is made by offering
|
166 |
-
access to copy from a designated place, then offering equivalent
|
167 |
-
access to copy the source code from the same place counts as
|
168 |
-
distribution of the source code, even though third parties are not
|
169 |
-
compelled to copy the source along with the object code.
|
170 |
-
|
171 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
172 |
-
except as expressly provided under this License. Any attempt
|
173 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
174 |
-
void, and will automatically terminate your rights under this License.
|
175 |
-
However, parties who have received copies, or rights, from you under
|
176 |
-
this License will not have their licenses terminated so long as such
|
177 |
-
parties remain in full compliance.
|
178 |
-
|
179 |
-
5. You are not required to accept this License, since you have not
|
180 |
-
signed it. However, nothing else grants you permission to modify or
|
181 |
-
distribute the Program or its derivative works. These actions are
|
182 |
-
prohibited by law if you do not accept this License. Therefore, by
|
183 |
-
modifying or distributing the Program (or any work based on the
|
184 |
-
Program), you indicate your acceptance of this License to do so, and
|
185 |
-
all its terms and conditions for copying, distributing or modifying
|
186 |
-
the Program or works based on it.
|
187 |
-
|
188 |
-
6. Each time you redistribute the Program (or any work based on the
|
189 |
-
Program), the recipient automatically receives a license from the
|
190 |
-
original licensor to copy, distribute or modify the Program subject to
|
191 |
-
these terms and conditions. You may not impose any further
|
192 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
193 |
-
You are not responsible for enforcing compliance by third parties to
|
194 |
-
this License.
|
195 |
-
|
196 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
197 |
-
infringement or for any other reason (not limited to patent issues),
|
198 |
-
conditions are imposed on you (whether by court order, agreement or
|
199 |
-
otherwise) that contradict the conditions of this License, they do not
|
200 |
-
excuse you from the conditions of this License. If you cannot
|
201 |
-
distribute so as to satisfy simultaneously your obligations under this
|
202 |
-
License and any other pertinent obligations, then as a consequence you
|
203 |
-
may not distribute the Program at all. For example, if a patent
|
204 |
-
license would not permit royalty-free redistribution of the Program by
|
205 |
-
all those who receive copies directly or indirectly through you, then
|
206 |
-
the only way you could satisfy both it and this License would be to
|
207 |
-
refrain entirely from distribution of the Program.
|
208 |
-
|
209 |
-
If any portion of this section is held invalid or unenforceable under
|
210 |
-
any particular circumstance, the balance of the section is intended to
|
211 |
-
apply and the section as a whole is intended to apply in other
|
212 |
-
circumstances.
|
213 |
-
|
214 |
-
It is not the purpose of this section to induce you to infringe any
|
215 |
-
patents or other property right claims or to contest validity of any
|
216 |
-
such claims; this section has the sole purpose of protecting the
|
217 |
-
integrity of the free software distribution system, which is
|
218 |
-
implemented by public license practices. Many people have made
|
219 |
-
generous contributions to the wide range of software distributed
|
220 |
-
through that system in reliance on consistent application of that
|
221 |
-
system; it is up to the author/donor to decide if he or she is willing
|
222 |
-
to distribute software through any other system and a licensee cannot
|
223 |
-
impose that choice.
|
224 |
-
|
225 |
-
This section is intended to make thoroughly clear what is believed to
|
226 |
-
be a consequence of the rest of this License.
|
227 |
-
|
228 |
-
8. If the distribution and/or use of the Program is restricted in
|
229 |
-
certain countries either by patents or by copyrighted interfaces, the
|
230 |
-
original copyright holder who places the Program under this License
|
231 |
-
may add an explicit geographical distribution limitation excluding
|
232 |
-
those countries, so that distribution is permitted only in or among
|
233 |
-
countries not thus excluded. In such case, this License incorporates
|
234 |
-
the limitation as if written in the body of this License.
|
235 |
-
|
236 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
237 |
-
of the General Public License from time to time. Such new versions will
|
238 |
-
be similar in spirit to the present version, but may differ in detail to
|
239 |
-
address new problems or concerns.
|
240 |
-
|
241 |
-
Each version is given a distinguishing version number. If the Program
|
242 |
-
specifies a version number of this License which applies to it and "any
|
243 |
-
later version", you have the option of following the terms and conditions
|
244 |
-
either of that version or of any later version published by the Free
|
245 |
-
Software Foundation. If the Program does not specify a version number of
|
246 |
-
this License, you may choose any version ever published by the Free Software
|
247 |
-
Foundation.
|
248 |
-
|
249 |
-
10. If you wish to incorporate parts of the Program into other free
|
250 |
-
programs whose distribution conditions are different, write to the author
|
251 |
-
to ask for permission. For software which is copyrighted by the Free
|
252 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
253 |
-
make exceptions for this. Our decision will be guided by the two goals
|
254 |
-
of preserving the free status of all derivatives of our free software and
|
255 |
-
of promoting the sharing and reuse of software generally.
|
256 |
-
|
257 |
-
NO WARRANTY
|
258 |
-
|
259 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
260 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
261 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
262 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
263 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
264 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
265 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
266 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
267 |
-
REPAIR OR CORRECTION.
|
268 |
-
|
269 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
270 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
271 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
272 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
273 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
274 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
275 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
276 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
277 |
-
POSSIBILITY OF SUCH DAMAGES.
|
278 |
-
|
279 |
-
END OF TERMS AND CONDITIONS
|
280 |
-
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
5 |
+
675 Mass Ave, Cambridge, MA 02139, USA
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The licenses for most software are designed to take away your
|
12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
13 |
+
License is intended to guarantee your freedom to share and change free
|
14 |
+
software--to make sure the software is free for all its users. This
|
15 |
+
General Public License applies to most of the Free Software
|
16 |
+
Foundation's software and to any other program whose authors commit to
|
17 |
+
using it. (Some other Free Software Foundation software is covered by
|
18 |
+
the GNU Library General Public License instead.) You can apply it to
|
19 |
+
your programs, too.
|
20 |
+
|
21 |
+
When we speak of free software, we are referring to freedom, not
|
22 |
+
price. Our General Public Licenses are designed to make sure that you
|
23 |
+
have the freedom to distribute copies of free software (and charge for
|
24 |
+
this service if you wish), that you receive source code or can get it
|
25 |
+
if you want it, that you can change the software or use pieces of it
|
26 |
+
in new free programs; and that you know you can do these things.
|
27 |
+
|
28 |
+
To protect your rights, we need to make restrictions that forbid
|
29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
+
These restrictions translate to certain responsibilities for you if you
|
31 |
+
distribute copies of the software, or if you modify it.
|
32 |
+
|
33 |
+
For example, if you distribute copies of such a program, whether
|
34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
35 |
+
you have. You must make sure that they, too, receive or can get the
|
36 |
+
source code. And you must show them these terms so they know their
|
37 |
+
rights.
|
38 |
+
|
39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
40 |
+
(2) offer you this license which gives you legal permission to copy,
|
41 |
+
distribute and/or modify the software.
|
42 |
+
|
43 |
+
Also, for each author's protection and ours, we want to make certain
|
44 |
+
that everyone understands that there is no warranty for this free
|
45 |
+
software. If the software is modified by someone else and passed on, we
|
46 |
+
want its recipients to know that what they have is not the original, so
|
47 |
+
that any problems introduced by others will not reflect on the original
|
48 |
+
authors' reputations.
|
49 |
+
|
50 |
+
Finally, any free program is threatened constantly by software
|
51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
52 |
+
program will individually obtain patent licenses, in effect making the
|
53 |
+
program proprietary. To prevent this, we have made it clear that any
|
54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
+
|
56 |
+
The precise terms and conditions for copying, distribution and
|
57 |
+
modification follow.
|
58 |
+
|
59 |
+
GNU GENERAL PUBLIC LICENSE
|
60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
+
|
62 |
+
0. This License applies to any program or other work which contains
|
63 |
+
a notice placed by the copyright holder saying it may be distributed
|
64 |
+
under the terms of this General Public License. The "Program", below,
|
65 |
+
refers to any such program or work, and a "work based on the Program"
|
66 |
+
means either the Program or any derivative work under copyright law:
|
67 |
+
that is to say, a work containing the Program or a portion of it,
|
68 |
+
either verbatim or with modifications and/or translated into another
|
69 |
+
language. (Hereinafter, translation is included without limitation in
|
70 |
+
the term "modification".) Each licensee is addressed as "you".
|
71 |
+
|
72 |
+
Activities other than copying, distribution and modification are not
|
73 |
+
covered by this License; they are outside its scope. The act of
|
74 |
+
running the Program is not restricted, and the output from the Program
|
75 |
+
is covered only if its contents constitute a work based on the
|
76 |
+
Program (independent of having been made by running the Program).
|
77 |
+
Whether that is true depends on what the Program does.
|
78 |
+
|
79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
80 |
+
source code as you receive it, in any medium, provided that you
|
81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
+
notices that refer to this License and to the absence of any warranty;
|
84 |
+
and give any other recipients of the Program a copy of this License
|
85 |
+
along with the Program.
|
86 |
+
|
87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
89 |
+
|
90 |
+
2. You may modify your copy or copies of the Program or any portion
|
91 |
+
of it, thus forming a work based on the Program, and copy and
|
92 |
+
distribute such modifications or work under the terms of Section 1
|
93 |
+
above, provided that you also meet all of these conditions:
|
94 |
+
|
95 |
+
a) You must cause the modified files to carry prominent notices
|
96 |
+
stating that you changed the files and the date of any change.
|
97 |
+
|
98 |
+
b) You must cause any work that you distribute or publish, that in
|
99 |
+
whole or in part contains or is derived from the Program or any
|
100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
101 |
+
parties under the terms of this License.
|
102 |
+
|
103 |
+
c) If the modified program normally reads commands interactively
|
104 |
+
when run, you must cause it, when started running for such
|
105 |
+
interactive use in the most ordinary way, to print or display an
|
106 |
+
announcement including an appropriate copyright notice and a
|
107 |
+
notice that there is no warranty (or else, saying that you provide
|
108 |
+
a warranty) and that users may redistribute the program under
|
109 |
+
these conditions, and telling the user how to view a copy of this
|
110 |
+
License. (Exception: if the Program itself is interactive but
|
111 |
+
does not normally print such an announcement, your work based on
|
112 |
+
the Program is not required to print an announcement.)
|
113 |
+
|
114 |
+
These requirements apply to the modified work as a whole. If
|
115 |
+
identifiable sections of that work are not derived from the Program,
|
116 |
+
and can be reasonably considered independent and separate works in
|
117 |
+
themselves, then this License, and its terms, do not apply to those
|
118 |
+
sections when you distribute them as separate works. But when you
|
119 |
+
distribute the same sections as part of a whole which is a work based
|
120 |
+
on the Program, the distribution of the whole must be on the terms of
|
121 |
+
this License, whose permissions for other licensees extend to the
|
122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
+
Thus, it is not the intent of this section to claim rights or contest
|
124 |
+
your rights to work written entirely by you; rather, the intent is to
|
125 |
+
exercise the right to control the distribution of derivative or
|
126 |
+
collective works based on the Program.
|
127 |
+
|
128 |
+
In addition, mere aggregation of another work not based on the Program
|
129 |
+
with the Program (or with a work based on the Program) on a volume of
|
130 |
+
a storage or distribution medium does not bring the other work under
|
131 |
+
the scope of this License.
|
132 |
+
|
133 |
+
3. You may copy and distribute the Program (or a work based on it,
|
134 |
+
under Section 2) in object code or executable form under the terms of
|
135 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
136 |
+
|
137 |
+
a) Accompany it with the complete corresponding machine-readable
|
138 |
+
source code, which must be distributed under the terms of Sections
|
139 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
140 |
+
|
141 |
+
b) Accompany it with a written offer, valid for at least three
|
142 |
+
years, to give any third party, for a charge no more than your
|
143 |
+
cost of physically performing source distribution, a complete
|
144 |
+
machine-readable copy of the corresponding source code, to be
|
145 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
146 |
+
customarily used for software interchange; or,
|
147 |
+
|
148 |
+
c) Accompany it with the information you received as to the offer
|
149 |
+
to distribute corresponding source code. (This alternative is
|
150 |
+
allowed only for noncommercial distribution and only if you
|
151 |
+
received the program in object code or executable form with such
|
152 |
+
an offer, in accord with Subsection b above.)
|
153 |
+
|
154 |
+
The source code for a work means the preferred form of the work for
|
155 |
+
making modifications to it. For an executable work, complete source
|
156 |
+
code means all the source code for all modules it contains, plus any
|
157 |
+
associated interface definition files, plus the scripts used to
|
158 |
+
control compilation and installation of the executable. However, as a
|
159 |
+
special exception, the source code distributed need not include
|
160 |
+
anything that is normally distributed (in either source or binary
|
161 |
+
form) with the major components (compiler, kernel, and so on) of the
|
162 |
+
operating system on which the executable runs, unless that component
|
163 |
+
itself accompanies the executable.
|
164 |
+
|
165 |
+
If distribution of executable or object code is made by offering
|
166 |
+
access to copy from a designated place, then offering equivalent
|
167 |
+
access to copy the source code from the same place counts as
|
168 |
+
distribution of the source code, even though third parties are not
|
169 |
+
compelled to copy the source along with the object code.
|
170 |
+
|
171 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
172 |
+
except as expressly provided under this License. Any attempt
|
173 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
174 |
+
void, and will automatically terminate your rights under this License.
|
175 |
+
However, parties who have received copies, or rights, from you under
|
176 |
+
this License will not have their licenses terminated so long as such
|
177 |
+
parties remain in full compliance.
|
178 |
+
|
179 |
+
5. You are not required to accept this License, since you have not
|
180 |
+
signed it. However, nothing else grants you permission to modify or
|
181 |
+
distribute the Program or its derivative works. These actions are
|
182 |
+
prohibited by law if you do not accept this License. Therefore, by
|
183 |
+
modifying or distributing the Program (or any work based on the
|
184 |
+
Program), you indicate your acceptance of this License to do so, and
|
185 |
+
all its terms and conditions for copying, distributing or modifying
|
186 |
+
the Program or works based on it.
|
187 |
+
|
188 |
+
6. Each time you redistribute the Program (or any work based on the
|
189 |
+
Program), the recipient automatically receives a license from the
|
190 |
+
original licensor to copy, distribute or modify the Program subject to
|
191 |
+
these terms and conditions. You may not impose any further
|
192 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
193 |
+
You are not responsible for enforcing compliance by third parties to
|
194 |
+
this License.
|
195 |
+
|
196 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
197 |
+
infringement or for any other reason (not limited to patent issues),
|
198 |
+
conditions are imposed on you (whether by court order, agreement or
|
199 |
+
otherwise) that contradict the conditions of this License, they do not
|
200 |
+
excuse you from the conditions of this License. If you cannot
|
201 |
+
distribute so as to satisfy simultaneously your obligations under this
|
202 |
+
License and any other pertinent obligations, then as a consequence you
|
203 |
+
may not distribute the Program at all. For example, if a patent
|
204 |
+
license would not permit royalty-free redistribution of the Program by
|
205 |
+
all those who receive copies directly or indirectly through you, then
|
206 |
+
the only way you could satisfy both it and this License would be to
|
207 |
+
refrain entirely from distribution of the Program.
|
208 |
+
|
209 |
+
If any portion of this section is held invalid or unenforceable under
|
210 |
+
any particular circumstance, the balance of the section is intended to
|
211 |
+
apply and the section as a whole is intended to apply in other
|
212 |
+
circumstances.
|
213 |
+
|
214 |
+
It is not the purpose of this section to induce you to infringe any
|
215 |
+
patents or other property right claims or to contest validity of any
|
216 |
+
such claims; this section has the sole purpose of protecting the
|
217 |
+
integrity of the free software distribution system, which is
|
218 |
+
implemented by public license practices. Many people have made
|
219 |
+
generous contributions to the wide range of software distributed
|
220 |
+
through that system in reliance on consistent application of that
|
221 |
+
system; it is up to the author/donor to decide if he or she is willing
|
222 |
+
to distribute software through any other system and a licensee cannot
|
223 |
+
impose that choice.
|
224 |
+
|
225 |
+
This section is intended to make thoroughly clear what is believed to
|
226 |
+
be a consequence of the rest of this License.
|
227 |
+
|
228 |
+
8. If the distribution and/or use of the Program is restricted in
|
229 |
+
certain countries either by patents or by copyrighted interfaces, the
|
230 |
+
original copyright holder who places the Program under this License
|
231 |
+
may add an explicit geographical distribution limitation excluding
|
232 |
+
those countries, so that distribution is permitted only in or among
|
233 |
+
countries not thus excluded. In such case, this License incorporates
|
234 |
+
the limitation as if written in the body of this License.
|
235 |
+
|
236 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
237 |
+
of the General Public License from time to time. Such new versions will
|
238 |
+
be similar in spirit to the present version, but may differ in detail to
|
239 |
+
address new problems or concerns.
|
240 |
+
|
241 |
+
Each version is given a distinguishing version number. If the Program
|
242 |
+
specifies a version number of this License which applies to it and "any
|
243 |
+
later version", you have the option of following the terms and conditions
|
244 |
+
either of that version or of any later version published by the Free
|
245 |
+
Software Foundation. If the Program does not specify a version number of
|
246 |
+
this License, you may choose any version ever published by the Free Software
|
247 |
+
Foundation.
|
248 |
+
|
249 |
+
10. If you wish to incorporate parts of the Program into other free
|
250 |
+
programs whose distribution conditions are different, write to the author
|
251 |
+
to ask for permission. For software which is copyrighted by the Free
|
252 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
253 |
+
make exceptions for this. Our decision will be guided by the two goals
|
254 |
+
of preserving the free status of all derivatives of our free software and
|
255 |
+
of promoting the sharing and reuse of software generally.
|
256 |
+
|
257 |
+
NO WARRANTY
|
258 |
+
|
259 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
260 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
261 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
262 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
263 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
264 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
265 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
266 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
267 |
+
REPAIR OR CORRECTION.
|
268 |
+
|
269 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
270 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
271 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
272 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
273 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
274 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
275 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
276 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
277 |
+
POSSIBILITY OF SUCH DAMAGES.
|
278 |
+
|
279 |
+
END OF TERMS AND CONDITIONS
|
280 |
+
|
bp-themes/bp-default/readme.txt
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
-
--- BuddyPress Default ---
|
2 |
-
Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
3 |
-
|
4 |
-
|
5 |
-
--- Installation ---
|
6 |
-
The theme is bundled with BuddyPress. After activating the plugin, BuddyPress Default will be added to the "Appearance > Themes" menu in your WordPress admin area.
|
7 |
-
|
8 |
-
|
9 |
-
--- About BuddyPress ---
|
10 |
-
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. BuddyPress will let users register on your site and start creating profiles, posting messages, making connections, creating and interacting in groups and much more.
|
11 |
-
|
12 |
-
For help with BuddyPress Default, or for more information about BuddyPress, please visit http://buddypress.org/.
|
13 |
-
|
14 |
-
|
15 |
-
--- Building a BuddyPress theme ---
|
16 |
-
If you want to make a custom theme based on BuddyPress Default, DO NOT copy and edit it. By doing this you will make updates and maintenance much harder for yourself. Instead, please review this codex page for instructions on how to build a BuddyPress child theme:
|
17 |
-
|
18 |
-
http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
|
19 |
-
|
20 |
-
|
21 |
-
--- Changelog ---
|
22 |
A list of changes is available at http://codex.buddypress.org/theme-development/bp-default-theme-changelog/.
|
1 |
+
--- BuddyPress Default ---
|
2 |
+
Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
3 |
+
|
4 |
+
|
5 |
+
--- Installation ---
|
6 |
+
The theme is bundled with BuddyPress. After activating the plugin, BuddyPress Default will be added to the "Appearance > Themes" menu in your WordPress admin area.
|
7 |
+
|
8 |
+
|
9 |
+
--- About BuddyPress ---
|
10 |
+
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. BuddyPress will let users register on your site and start creating profiles, posting messages, making connections, creating and interacting in groups and much more.
|
11 |
+
|
12 |
+
For help with BuddyPress Default, or for more information about BuddyPress, please visit http://buddypress.org/.
|
13 |
+
|
14 |
+
|
15 |
+
--- Building a BuddyPress theme ---
|
16 |
+
If you want to make a custom theme based on BuddyPress Default, DO NOT copy and edit it. By doing this you will make updates and maintenance much harder for yourself. Instead, please review this codex page for instructions on how to build a BuddyPress child theme:
|
17 |
+
|
18 |
+
http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
|
19 |
+
|
20 |
+
|
21 |
+
--- Changelog ---
|
22 |
A list of changes is available at http://codex.buddypress.org/theme-development/bp-default-theme-changelog/.
|
bp-themes/bp-default/rtl.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Theme Name: BuddyPress Default
|
3 |
* Theme URI: http://buddypress.org/extend/themes/
|
4 |
* Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
5 |
-
* Version: 1.5
|
6 |
* Author: the BuddyPress team
|
7 |
* Author URI: http://buddypress.org
|
8 |
* License: GNU General Public License
|
@@ -21,4 +21,4 @@
|
|
21 |
*
|
22 |
* This file intentionally left blank. CSS is enqueued in functions.php
|
23 |
*
|
24 |
-
*/
|
2 |
* Theme Name: BuddyPress Default
|
3 |
* Theme URI: http://buddypress.org/extend/themes/
|
4 |
* Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
5 |
+
* Version: 1.5.1
|
6 |
* Author: the BuddyPress team
|
7 |
* Author URI: http://buddypress.org
|
8 |
* License: GNU General Public License
|
21 |
*
|
22 |
* This file intentionally left blank. CSS is enqueued in functions.php
|
23 |
*
|
24 |
+
*/
|
bp-themes/bp-default/style.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* Theme Name: BuddyPress Default
|
3 |
* Theme URI: http://buddypress.org/extend/themes/
|
4 |
* Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
5 |
-
* Version: 1.5
|
6 |
* Author: the BuddyPress team
|
7 |
* Author URI: http://buddypress.org
|
8 |
* License: GNU General Public License
|
@@ -21,4 +21,4 @@
|
|
21 |
*
|
22 |
* This file intentionally left blank. CSS is enqueued in functions.php
|
23 |
*
|
24 |
-
*/
|
2 |
* Theme Name: BuddyPress Default
|
3 |
* Theme URI: http://buddypress.org/extend/themes/
|
4 |
* Description: Clean and stylish, BuddyPress Default lets you build a social network straight out of the box. Make it yours with a custom menu, header image, and background. Along with five widgetized areas (one in the sidebar, four in the footer), BP-Default supports featured images (as custom header images on posts and pages) and is furnished with an optional one-column page template that removes the sidebar, and a stylesheet for the admin Visual Editor.
|
5 |
+
* Version: 1.5.1
|
6 |
* Author: the BuddyPress team
|
7 |
* Author URI: http://buddypress.org
|
8 |
* License: GNU General Public License
|
21 |
*
|
22 |
* This file intentionally left blank. CSS is enqueued in functions.php
|
23 |
*
|
24 |
+
*/
|
bp-xprofile/bp-xprofile-classes.php
CHANGED
@@ -511,7 +511,7 @@ Class BP_XProfile_Field {
|
|
511 |
function get_children( $for_editing = false ) {
|
512 |
global $wpdb, $bp;
|
513 |
|
514 |
-
|
515 |
if ( 'asc' == $this->order_by && !$for_editing )
|
516 |
$sort_sql = 'ORDER BY name ASC';
|
517 |
else if ( 'desc' == $this->order_by && !$for_editing )
|
@@ -519,7 +519,7 @@ Class BP_XProfile_Field {
|
|
519 |
else
|
520 |
$sort_sql = 'ORDER BY option_order ASC';
|
521 |
|
522 |
-
|
523 |
if ( !$this->id )
|
524 |
$parent_id = -1;
|
525 |
else
|
@@ -530,7 +530,7 @@ Class BP_XProfile_Field {
|
|
530 |
if ( !$children = $wpdb->get_results( $sql ) )
|
531 |
return false;
|
532 |
|
533 |
-
return $children;
|
534 |
}
|
535 |
|
536 |
function delete_children() {
|
@@ -748,6 +748,8 @@ Class BP_XProfile_Field {
|
|
748 |
</select>
|
749 |
</div>
|
750 |
|
|
|
|
|
751 |
<?php $this->render_admin_form_children(); ?>
|
752 |
<?php } else { ?>
|
753 |
<input type="hidden" name="required" id="required" value="1" />
|
511 |
function get_children( $for_editing = false ) {
|
512 |
global $wpdb, $bp;
|
513 |
|
514 |
+
// This is done here so we don't have problems with sql injection
|
515 |
if ( 'asc' == $this->order_by && !$for_editing )
|
516 |
$sort_sql = 'ORDER BY name ASC';
|
517 |
else if ( 'desc' == $this->order_by && !$for_editing )
|
519 |
else
|
520 |
$sort_sql = 'ORDER BY option_order ASC';
|
521 |
|
522 |
+
// This eliminates a problem with getting all fields when there is no id for the object
|
523 |
if ( !$this->id )
|
524 |
$parent_id = -1;
|
525 |
else
|
530 |
if ( !$children = $wpdb->get_results( $sql ) )
|
531 |
return false;
|
532 |
|
533 |
+
return apply_filters( 'bp_xprofile_field_get_children', $children );
|
534 |
}
|
535 |
|
536 |
function delete_children() {
|
748 |
</select>
|
749 |
</div>
|
750 |
|
751 |
+
<?php do_action( 'xprofile_field_additional_options', &$this ) ?>
|
752 |
+
|
753 |
<?php $this->render_admin_form_children(); ?>
|
754 |
<?php } else { ?>
|
755 |
<input type="hidden" name="required" id="required" value="1" />
|
bp-xprofile/bp-xprofile-template.php
CHANGED
@@ -578,7 +578,7 @@ function bp_the_profile_field_options( $args = '' ) {
|
|
578 |
// If MySQL timestamp
|
579 |
} else {
|
580 |
$day = mysql2date( 'j', $date );
|
581 |
-
$month = mysql2date( 'F', $date );
|
582 |
$year = mysql2date( 'Y', $date );
|
583 |
}
|
584 |
}
|
@@ -611,11 +611,20 @@ function bp_the_profile_field_options( $args = '' ) {
|
|
611 |
case 'month':
|
612 |
$eng_months = array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' );
|
613 |
|
614 |
-
$months = array(
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
619 |
|
620 |
$html .= '<option value=""' . selected( $month, '', false ) . '>------</option>';
|
621 |
|
578 |
// If MySQL timestamp
|
579 |
} else {
|
580 |
$day = mysql2date( 'j', $date );
|
581 |
+
$month = mysql2date( 'F', $date, false ); // Not localized, so that selected() works below
|
582 |
$year = mysql2date( 'Y', $date );
|
583 |
}
|
584 |
}
|
611 |
case 'month':
|
612 |
$eng_months = array( 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' );
|
613 |
|
614 |
+
$months = array(
|
615 |
+
__( 'January', 'buddypress' ),
|
616 |
+
__( 'February', 'buddypress' ),
|
617 |
+
__( 'March', 'buddypress' ),
|
618 |
+
__( 'April', 'buddypress' ),
|
619 |
+
__( 'May', 'buddypress' ),
|
620 |
+
__( 'June', 'buddypress' ),
|
621 |
+
__( 'July', 'buddypress' ),
|
622 |
+
__( 'August', 'buddypress' ),
|
623 |
+
__( 'September', 'buddypress' ),
|
624 |
+
__( 'October', 'buddypress' ),
|
625 |
+
__( 'November', 'buddypress' ),
|
626 |
+
__( 'December', 'buddypress' )
|
627 |
+
);
|
628 |
|
629 |
$html .= '<option value=""' . selected( $month, '', false ) . '>------</option>';
|
630 |
|
license.txt
CHANGED
@@ -1,280 +1,280 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
5 |
-
675 Mass Ave, Cambridge, MA 02139, USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Library General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
Thus, it is not the intent of this section to claim rights or contest
|
124 |
-
your rights to work written entirely by you; rather, the intent is to
|
125 |
-
exercise the right to control the distribution of derivative or
|
126 |
-
collective works based on the Program.
|
127 |
-
|
128 |
-
In addition, mere aggregation of another work not based on the Program
|
129 |
-
with the Program (or with a work based on the Program) on a volume of
|
130 |
-
a storage or distribution medium does not bring the other work under
|
131 |
-
the scope of this License.
|
132 |
-
|
133 |
-
3. You may copy and distribute the Program (or a work based on it,
|
134 |
-
under Section 2) in object code or executable form under the terms of
|
135 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
136 |
-
|
137 |
-
a) Accompany it with the complete corresponding machine-readable
|
138 |
-
source code, which must be distributed under the terms of Sections
|
139 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
140 |
-
|
141 |
-
b) Accompany it with a written offer, valid for at least three
|
142 |
-
years, to give any third party, for a charge no more than your
|
143 |
-
cost of physically performing source distribution, a complete
|
144 |
-
machine-readable copy of the corresponding source code, to be
|
145 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
146 |
-
customarily used for software interchange; or,
|
147 |
-
|
148 |
-
c) Accompany it with the information you received as to the offer
|
149 |
-
to distribute corresponding source code. (This alternative is
|
150 |
-
allowed only for noncommercial distribution and only if you
|
151 |
-
received the program in object code or executable form with such
|
152 |
-
an offer, in accord with Subsection b above.)
|
153 |
-
|
154 |
-
The source code for a work means the preferred form of the work for
|
155 |
-
making modifications to it. For an executable work, complete source
|
156 |
-
code means all the source code for all modules it contains, plus any
|
157 |
-
associated interface definition files, plus the scripts used to
|
158 |
-
control compilation and installation of the executable. However, as a
|
159 |
-
special exception, the source code distributed need not include
|
160 |
-
anything that is normally distributed (in either source or binary
|
161 |
-
form) with the major components (compiler, kernel, and so on) of the
|
162 |
-
operating system on which the executable runs, unless that component
|
163 |
-
itself accompanies the executable.
|
164 |
-
|
165 |
-
If distribution of executable or object code is made by offering
|
166 |
-
access to copy from a designated place, then offering equivalent
|
167 |
-
access to copy the source code from the same place counts as
|
168 |
-
distribution of the source code, even though third parties are not
|
169 |
-
compelled to copy the source along with the object code.
|
170 |
-
|
171 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
172 |
-
except as expressly provided under this License. Any attempt
|
173 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
174 |
-
void, and will automatically terminate your rights under this License.
|
175 |
-
However, parties who have received copies, or rights, from you under
|
176 |
-
this License will not have their licenses terminated so long as such
|
177 |
-
parties remain in full compliance.
|
178 |
-
|
179 |
-
5. You are not required to accept this License, since you have not
|
180 |
-
signed it. However, nothing else grants you permission to modify or
|
181 |
-
distribute the Program or its derivative works. These actions are
|
182 |
-
prohibited by law if you do not accept this License. Therefore, by
|
183 |
-
modifying or distributing the Program (or any work based on the
|
184 |
-
Program), you indicate your acceptance of this License to do so, and
|
185 |
-
all its terms and conditions for copying, distributing or modifying
|
186 |
-
the Program or works based on it.
|
187 |
-
|
188 |
-
6. Each time you redistribute the Program (or any work based on the
|
189 |
-
Program), the recipient automatically receives a license from the
|
190 |
-
original licensor to copy, distribute or modify the Program subject to
|
191 |
-
these terms and conditions. You may not impose any further
|
192 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
193 |
-
You are not responsible for enforcing compliance by third parties to
|
194 |
-
this License.
|
195 |
-
|
196 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
197 |
-
infringement or for any other reason (not limited to patent issues),
|
198 |
-
conditions are imposed on you (whether by court order, agreement or
|
199 |
-
otherwise) that contradict the conditions of this License, they do not
|
200 |
-
excuse you from the conditions of this License. If you cannot
|
201 |
-
distribute so as to satisfy simultaneously your obligations under this
|
202 |
-
License and any other pertinent obligations, then as a consequence you
|
203 |
-
may not distribute the Program at all. For example, if a patent
|
204 |
-
license would not permit royalty-free redistribution of the Program by
|
205 |
-
all those who receive copies directly or indirectly through you, then
|
206 |
-
the only way you could satisfy both it and this License would be to
|
207 |
-
refrain entirely from distribution of the Program.
|
208 |
-
|
209 |
-
If any portion of this section is held invalid or unenforceable under
|
210 |
-
any particular circumstance, the balance of the section is intended to
|
211 |
-
apply and the section as a whole is intended to apply in other
|
212 |
-
circumstances.
|
213 |
-
|
214 |
-
It is not the purpose of this section to induce you to infringe any
|
215 |
-
patents or other property right claims or to contest validity of any
|
216 |
-
such claims; this section has the sole purpose of protecting the
|
217 |
-
integrity of the free software distribution system, which is
|
218 |
-
implemented by public license practices. Many people have made
|
219 |
-
generous contributions to the wide range of software distributed
|
220 |
-
through that system in reliance on consistent application of that
|
221 |
-
system; it is up to the author/donor to decide if he or she is willing
|
222 |
-
to distribute software through any other system and a licensee cannot
|
223 |
-
impose that choice.
|
224 |
-
|
225 |
-
This section is intended to make thoroughly clear what is believed to
|
226 |
-
be a consequence of the rest of this License.
|
227 |
-
|
228 |
-
8. If the distribution and/or use of the Program is restricted in
|
229 |
-
certain countries either by patents or by copyrighted interfaces, the
|
230 |
-
original copyright holder who places the Program under this License
|
231 |
-
may add an explicit geographical distribution limitation excluding
|
232 |
-
those countries, so that distribution is permitted only in or among
|
233 |
-
countries not thus excluded. In such case, this License incorporates
|
234 |
-
the limitation as if written in the body of this License.
|
235 |
-
|
236 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
237 |
-
of the General Public License from time to time. Such new versions will
|
238 |
-
be similar in spirit to the present version, but may differ in detail to
|
239 |
-
address new problems or concerns.
|
240 |
-
|
241 |
-
Each version is given a distinguishing version number. If the Program
|
242 |
-
specifies a version number of this License which applies to it and "any
|
243 |
-
later version", you have the option of following the terms and conditions
|
244 |
-
either of that version or of any later version published by the Free
|
245 |
-
Software Foundation. If the Program does not specify a version number of
|
246 |
-
this License, you may choose any version ever published by the Free Software
|
247 |
-
Foundation.
|
248 |
-
|
249 |
-
10. If you wish to incorporate parts of the Program into other free
|
250 |
-
programs whose distribution conditions are different, write to the author
|
251 |
-
to ask for permission. For software which is copyrighted by the Free
|
252 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
253 |
-
make exceptions for this. Our decision will be guided by the two goals
|
254 |
-
of preserving the free status of all derivatives of our free software and
|
255 |
-
of promoting the sharing and reuse of software generally.
|
256 |
-
|
257 |
-
NO WARRANTY
|
258 |
-
|
259 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
260 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
261 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
262 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
263 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
264 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
265 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
266 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
267 |
-
REPAIR OR CORRECTION.
|
268 |
-
|
269 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
270 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
271 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
272 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
273 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
274 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
275 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
276 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
277 |
-
POSSIBILITY OF SUCH DAMAGES.
|
278 |
-
|
279 |
-
END OF TERMS AND CONDITIONS
|
280 |
-
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
5 |
+
675 Mass Ave, Cambridge, MA 02139, USA
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The licenses for most software are designed to take away your
|
12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
13 |
+
License is intended to guarantee your freedom to share and change free
|
14 |
+
software--to make sure the software is free for all its users. This
|
15 |
+
General Public License applies to most of the Free Software
|
16 |
+
Foundation's software and to any other program whose authors commit to
|
17 |
+
using it. (Some other Free Software Foundation software is covered by
|
18 |
+
the GNU Library General Public License instead.) You can apply it to
|
19 |
+
your programs, too.
|
20 |
+
|
21 |
+
When we speak of free software, we are referring to freedom, not
|
22 |
+
price. Our General Public Licenses are designed to make sure that you
|
23 |
+
have the freedom to distribute copies of free software (and charge for
|
24 |
+
this service if you wish), that you receive source code or can get it
|
25 |
+
if you want it, that you can change the software or use pieces of it
|
26 |
+
in new free programs; and that you know you can do these things.
|
27 |
+
|
28 |
+
To protect your rights, we need to make restrictions that forbid
|
29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
+
These restrictions translate to certain responsibilities for you if you
|
31 |
+
distribute copies of the software, or if you modify it.
|
32 |
+
|
33 |
+
For example, if you distribute copies of such a program, whether
|
34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
35 |
+
you have. You must make sure that they, too, receive or can get the
|
36 |
+
source code. And you must show them these terms so they know their
|
37 |
+
rights.
|
38 |
+
|
39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
40 |
+
(2) offer you this license which gives you legal permission to copy,
|
41 |
+
distribute and/or modify the software.
|
42 |
+
|
43 |
+
Also, for each author's protection and ours, we want to make certain
|
44 |
+
that everyone understands that there is no warranty for this free
|
45 |
+
software. If the software is modified by someone else and passed on, we
|
46 |
+
want its recipients to know that what they have is not the original, so
|
47 |
+
that any problems introduced by others will not reflect on the original
|
48 |
+
authors' reputations.
|
49 |
+
|
50 |
+
Finally, any free program is threatened constantly by software
|
51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
52 |
+
program will individually obtain patent licenses, in effect making the
|
53 |
+
program proprietary. To prevent this, we have made it clear that any
|
54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
+
|
56 |
+
The precise terms and conditions for copying, distribution and
|
57 |
+
modification follow.
|
58 |
+
|
59 |
+
GNU GENERAL PUBLIC LICENSE
|
60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
+
|
62 |
+
0. This License applies to any program or other work which contains
|
63 |
+
a notice placed by the copyright holder saying it may be distributed
|
64 |
+
under the terms of this General Public License. The "Program", below,
|
65 |
+
refers to any such program or work, and a "work based on the Program"
|
66 |
+
means either the Program or any derivative work under copyright law:
|
67 |
+
that is to say, a work containing the Program or a portion of it,
|
68 |
+
either verbatim or with modifications and/or translated into another
|
69 |
+
language. (Hereinafter, translation is included without limitation in
|
70 |
+
the term "modification".) Each licensee is addressed as "you".
|
71 |
+
|
72 |
+
Activities other than copying, distribution and modification are not
|
73 |
+
covered by this License; they are outside its scope. The act of
|
74 |
+
running the Program is not restricted, and the output from the Program
|
75 |
+
is covered only if its contents constitute a work based on the
|
76 |
+
Program (independent of having been made by running the Program).
|
77 |
+
Whether that is true depends on what the Program does.
|
78 |
+
|
79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
80 |
+
source code as you receive it, in any medium, provided that you
|
81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
+
notices that refer to this License and to the absence of any warranty;
|
84 |
+
and give any other recipients of the Program a copy of this License
|
85 |
+
along with the Program.
|
86 |
+
|
87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
89 |
+
|
90 |
+
2. You may modify your copy or copies of the Program or any portion
|
91 |
+
of it, thus forming a work based on the Program, and copy and
|
92 |
+
distribute such modifications or work under the terms of Section 1
|
93 |
+
above, provided that you also meet all of these conditions:
|
94 |
+
|
95 |
+
a) You must cause the modified files to carry prominent notices
|
96 |
+
stating that you changed the files and the date of any change.
|
97 |
+
|
98 |
+
b) You must cause any work that you distribute or publish, that in
|
99 |
+
whole or in part contains or is derived from the Program or any
|
100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
101 |
+
parties under the terms of this License.
|
102 |
+
|
103 |
+
c) If the modified program normally reads commands interactively
|
104 |
+
when run, you must cause it, when started running for such
|
105 |
+
interactive use in the most ordinary way, to print or display an
|
106 |
+
announcement including an appropriate copyright notice and a
|
107 |
+
notice that there is no warranty (or else, saying that you provide
|
108 |
+
a warranty) and that users may redistribute the program under
|
109 |
+
these conditions, and telling the user how to view a copy of this
|
110 |
+
License. (Exception: if the Program itself is interactive but
|
111 |
+
does not normally print such an announcement, your work based on
|
112 |
+
the Program is not required to print an announcement.)
|
113 |
+
|
114 |
+
These requirements apply to the modified work as a whole. If
|
115 |
+
identifiable sections of that work are not derived from the Program,
|
116 |
+
and can be reasonably considered independent and separate works in
|
117 |
+
themselves, then this License, and its terms, do not apply to those
|
118 |
+
sections when you distribute them as separate works. But when you
|
119 |
+
distribute the same sections as part of a whole which is a work based
|
120 |
+
on the Program, the distribution of the whole must be on the terms of
|
121 |
+
this License, whose permissions for other licensees extend to the
|
122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
+
Thus, it is not the intent of this section to claim rights or contest
|
124 |
+
your rights to work written entirely by you; rather, the intent is to
|
125 |
+
exercise the right to control the distribution of derivative or
|
126 |
+
collective works based on the Program.
|
127 |
+
|
128 |
+
In addition, mere aggregation of another work not based on the Program
|
129 |
+
with the Program (or with a work based on the Program) on a volume of
|
130 |
+
a storage or distribution medium does not bring the other work under
|
131 |
+
the scope of this License.
|
132 |
+
|
133 |
+
3. You may copy and distribute the Program (or a work based on it,
|
134 |
+
under Section 2) in object code or executable form under the terms of
|
135 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
136 |
+
|
137 |
+
a) Accompany it with the complete corresponding machine-readable
|
138 |
+
source code, which must be distributed under the terms of Sections
|
139 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
140 |
+
|
141 |
+
b) Accompany it with a written offer, valid for at least three
|
142 |
+
years, to give any third party, for a charge no more than your
|
143 |
+
cost of physically performing source distribution, a complete
|
144 |
+
machine-readable copy of the corresponding source code, to be
|
145 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
146 |
+
customarily used for software interchange; or,
|
147 |
+
|
148 |
+
c) Accompany it with the information you received as to the offer
|
149 |
+
to distribute corresponding source code. (This alternative is
|
150 |
+
allowed only for noncommercial distribution and only if you
|
151 |
+
received the program in object code or executable form with such
|
152 |
+
an offer, in accord with Subsection b above.)
|
153 |
+
|
154 |
+
The source code for a work means the preferred form of the work for
|
155 |
+
making modifications to it. For an executable work, complete source
|
156 |
+
code means all the source code for all modules it contains, plus any
|
157 |
+
associated interface definition files, plus the scripts used to
|
158 |
+
control compilation and installation of the executable. However, as a
|
159 |
+
special exception, the source code distributed need not include
|
160 |
+
anything that is normally distributed (in either source or binary
|
161 |
+
form) with the major components (compiler, kernel, and so on) of the
|
162 |
+
operating system on which the executable runs, unless that component
|
163 |
+
itself accompanies the executable.
|
164 |
+
|
165 |
+
If distribution of executable or object code is made by offering
|
166 |
+
access to copy from a designated place, then offering equivalent
|
167 |
+
access to copy the source code from the same place counts as
|
168 |
+
distribution of the source code, even though third parties are not
|
169 |
+
compelled to copy the source along with the object code.
|
170 |
+
|
171 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
172 |
+
except as expressly provided under this License. Any attempt
|
173 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
174 |
+
void, and will automatically terminate your rights under this License.
|
175 |
+
However, parties who have received copies, or rights, from you under
|
176 |
+
this License will not have their licenses terminated so long as such
|
177 |
+
parties remain in full compliance.
|
178 |
+
|
179 |
+
5. You are not required to accept this License, since you have not
|
180 |
+
signed it. However, nothing else grants you permission to modify or
|
181 |
+
distribute the Program or its derivative works. These actions are
|
182 |
+
prohibited by law if you do not accept this License. Therefore, by
|
183 |
+
modifying or distributing the Program (or any work based on the
|
184 |
+
Program), you indicate your acceptance of this License to do so, and
|
185 |
+
all its terms and conditions for copying, distributing or modifying
|
186 |
+
the Program or works based on it.
|
187 |
+
|
188 |
+
6. Each time you redistribute the Program (or any work based on the
|
189 |
+
Program), the recipient automatically receives a license from the
|
190 |
+
original licensor to copy, distribute or modify the Program subject to
|
191 |
+
these terms and conditions. You may not impose any further
|
192 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
193 |
+
You are not responsible for enforcing compliance by third parties to
|
194 |
+
this License.
|
195 |
+
|
196 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
197 |
+
infringement or for any other reason (not limited to patent issues),
|
198 |
+
conditions are imposed on you (whether by court order, agreement or
|
199 |
+
otherwise) that contradict the conditions of this License, they do not
|
200 |
+
excuse you from the conditions of this License. If you cannot
|
201 |
+
distribute so as to satisfy simultaneously your obligations under this
|
202 |
+
License and any other pertinent obligations, then as a consequence you
|
203 |
+
may not distribute the Program at all. For example, if a patent
|
204 |
+
license would not permit royalty-free redistribution of the Program by
|
205 |
+
all those who receive copies directly or indirectly through you, then
|
206 |
+
the only way you could satisfy both it and this License would be to
|
207 |
+
refrain entirely from distribution of the Program.
|
208 |
+
|
209 |
+
If any portion of this section is held invalid or unenforceable under
|
210 |
+
any particular circumstance, the balance of the section is intended to
|
211 |
+
apply and the section as a whole is intended to apply in other
|
212 |
+
circumstances.
|
213 |
+
|
214 |
+
It is not the purpose of this section to induce you to infringe any
|
215 |
+
patents or other property right claims or to contest validity of any
|
216 |
+
such claims; this section has the sole purpose of protecting the
|
217 |
+
integrity of the free software distribution system, which is
|
218 |
+
implemented by public license practices. Many people have made
|
219 |
+
generous contributions to the wide range of software distributed
|
220 |
+
through that system in reliance on consistent application of that
|
221 |
+
system; it is up to the author/donor to decide if he or she is willing
|
222 |
+
to distribute software through any other system and a licensee cannot
|
223 |
+
impose that choice.
|
224 |
+
|
225 |
+
This section is intended to make thoroughly clear what is believed to
|
226 |
+
be a consequence of the rest of this License.
|
227 |
+
|
228 |
+
8. If the distribution and/or use of the Program is restricted in
|
229 |
+
certain countries either by patents or by copyrighted interfaces, the
|
230 |
+
original copyright holder who places the Program under this License
|
231 |
+
may add an explicit geographical distribution limitation excluding
|
232 |
+
those countries, so that distribution is permitted only in or among
|
233 |
+
countries not thus excluded. In such case, this License incorporates
|
234 |
+
the limitation as if written in the body of this License.
|
235 |
+
|
236 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
237 |
+
of the General Public License from time to time. Such new versions will
|
238 |
+
be similar in spirit to the present version, but may differ in detail to
|
239 |
+
address new problems or concerns.
|
240 |
+
|
241 |
+
Each version is given a distinguishing version number. If the Program
|
242 |
+
specifies a version number of this License which applies to it and "any
|
243 |
+
later version", you have the option of following the terms and conditions
|
244 |
+
either of that version or of any later version published by the Free
|
245 |
+
Software Foundation. If the Program does not specify a version number of
|
246 |
+
this License, you may choose any version ever published by the Free Software
|
247 |
+
Foundation.
|
248 |
+
|
249 |
+
10. If you wish to incorporate parts of the Program into other free
|
250 |
+
programs whose distribution conditions are different, write to the author
|
251 |
+
to ask for permission. For software which is copyrighted by the Free
|
252 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
253 |
+
make exceptions for this. Our decision will be guided by the two goals
|
254 |
+
of preserving the free status of all derivatives of our free software and
|
255 |
+
of promoting the sharing and reuse of software generally.
|
256 |
+
|
257 |
+
NO WARRANTY
|
258 |
+
|
259 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
260 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
261 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
262 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
263 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
264 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
265 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
266 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
267 |
+
REPAIR OR CORRECTION.
|
268 |
+
|
269 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
270 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
271 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
272 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
273 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
274 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
275 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
276 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
277 |
+
POSSIBILITY OF SUCH DAMAGES.
|
278 |
+
|
279 |
+
END OF TERMS AND CONDITIONS
|
280 |
+
|
readme.txt
CHANGED
@@ -1,102 +1,105 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
-
Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges
|
3 |
-
Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, social, community, networks, networking, cms
|
4 |
-
Requires at least: 3.2
|
5 |
-
Tested up to: 3.2.1
|
6 |
-
Stable tag: 1.5
|
7 |
-
|
8 |
-
Social networking in a box. Build a social network for your company, school, sports team or niche community.
|
9 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
-
BuddyPress lets users register on your site and start creating profiles, posting messages, making connections, creating and interacting in groups and much more. A social network in a box, BuddyPress lets you build a social network for your company, school, sports team or niche community.
|
13 |
-
|
14 |
-
<h4>Try the Demo</h4>
|
15 |
-
|
16 |
-
If you're interested in seeing what a default installation of BuddyPress has to offer, try out the BuddyPress Test Drive! This site is a community of BuddyPress users looking to try out and discuss the latest features of BuddyPress.
|
17 |
-
|
18 |
-
<a href="http://testbp.org/">BuddyPress Test Drive</a>
|
19 |
-
|
20 |
-
<h4>Who's Using BuddyPress?</h4>
|
21 |
-
|
22 |
-
More and more BuddyPress powered sites are popping up. You can take a look at some of the best sites on the <a href="http://buddypress.org/showcase/">BuddyPress Showcase</a>.
|
23 |
-
|
24 |
-
<h4>Plugins: Adding So Much More</h4>
|
25 |
-
|
26 |
-
BuddyPress boasts an ever growing array of new features developed by an awesome plugin development community. There are more than 330 BuddyPress plugins available, and the list is growing every day.
|
27 |
-
|
28 |
-
<h4>More Information</h4>
|
29 |
-
|
30 |
-
Visit the <a href="http://buddypress.org/">BuddyPress website</a> for more information about BuddyPress.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
You can download and install BuddyPress using the built in WordPress plugin installer. If you download BuddyPress manually, make sure it is uploaded to "/wp-content/plugins/buddypress/".
|
35 |
-
|
36 |
-
Activate BuddyPress in the "Plugins" admin panel using the "Activate" link. You'll then see a message asking you to complete the BuddyPress Installation Wizard, which will guide you through configuring your site for BuddyPress.
|
37 |
-
|
38 |
-
--- Discussion Forums ---
|
39 |
-
|
40 |
-
BuddyPress includes full support for discussion forums. Each group created on your site can have its own forum. If you'd like to enable this feature, after completing the Installation Wizard, visit the "Forums Setup" item under the "BuddyPress" menu in your WordPress admin area, and follow the on-screen instructions.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Can I use my existing WordPress theme? =
|
45 |
-
|
46 |
-
Of course! Once you've installed and activated BuddyPress, the Installation Wizard will guide you through the available theme options. You'll be given the option of installing the <a href="http://wordpress.org/extend/plugins/bp-template-pack/">BuddyPress Template Pack</a>, which will help you add BuddyPress compatibility to your existing theme.
|
47 |
-
|
48 |
-
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 BuddyPress's features in a seamless and beautiful way. The BuddyPress Default theme is a snap to customize, with full support for custom headers and backgrounds and multiple widget areas. It also makes a great starting point for your own <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>.
|
49 |
-
|
50 |
-
= Will this work on WordPress multisite? =
|
51 |
-
|
52 |
-
Yes! If your WordPress site has multisite enabled, BuddyPress will support the global tracking of blogs, posts and comments.
|
53 |
-
|
54 |
-
= Where can I get support? =
|
55 |
-
|
56 |
-
The support forums can be found at <a href="http://buddypress.org/forums/">http://buddypress.org/forums/</a>.
|
57 |
-
|
58 |
-
= Where can I find documentation? =
|
59 |
-
|
60 |
-
The documentation codex can be found at <a href="http://codex.buddypress.org/">http://codex.buddypress.org/</a>.
|
61 |
-
|
62 |
-
= Where can I report a bug? =
|
63 |
-
|
64 |
-
Report bugs and participate in development at <a href="http://buddypress.trac.wordpress.org/">http://buddypress.trac.wordpress.org</a>.
|
65 |
-
|
66 |
-
= Where can I get the bleeding edge version of BuddyPress? =
|
67 |
-
|
68 |
-
Check out the development trunk of BuddyPress via Subversion, from <a href="http://buddypress.svn.wordpress.org/trunk/">http://buddypress.svn.wordpress.org/trunk/</a>
|
69 |
-
|
70 |
-
== Screenshots ==
|
71 |
-
|
72 |
-
1. **Activity Streams** - Global, personal and group activity streams with threaded commenting, direct posting, favoriting and @mentions. All with full RSS feeds and email notification support.
|
73 |
-
2. **Extended Profiles** - Fully editable rofile fields allow you to define the fields users can fill in to describe themselves. Tailor profile fields to suit your audience.
|
74 |
-
3. **Extensible Groups** - Powerful public, private or hidden groups allow your users to break the discussion down into specific topics. Extend groups with your own custom features using the group extension API.
|
75 |
-
4. **Friend Connections** - Let your users make connections so they can track the activity of others, or filter on only those users they care about the most.
|
76 |
-
5. **Private Messaging** - 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.
|
77 |
-
6. **Discussion Forums** - Full powered discussion forums built directly into groups allow for more conventional in-depth conversations.
|
78 |
-
7. **WordPress Blogging** - Allow your users to start their own WordPress sites (using WordPress's Multisite feature), and track posts and comments from across your blog network in the activity stream.
|
79 |
-
8. **User Settings** - Give your users complete control over profile and notification settings. Settings are fully integrated into your theme, and can be disabled by the administrator.
|
80 |
-
|
81 |
-
== Languages ==
|
82 |
-
|
83 |
-
BuddyPress is available in more than 20 languages. For more information, check out the <a href="http://codex.buddypress.org/getting-started/translations/">translation page</a> on the BuddyPress Codex.
|
84 |
-
|
85 |
-
== Upgrade Notice ==
|
86 |
-
|
87 |
-
= 1.5 =
|
88 |
-
|
89 |
-
|
90 |
-
= 1.
|
91 |
-
|
92 |
-
|
93 |
-
= 1.2.
|
94 |
-
Compatibility with WordPress 3.
|
95 |
-
|
96 |
-
= 1.2.
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
1 |
+
=== Plugin Name ===
|
2 |
+
Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges
|
3 |
+
Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, social, community, networks, networking, cms
|
4 |
+
Requires at least: 3.2
|
5 |
+
Tested up to: 3.2.1
|
6 |
+
Stable tag: 1.5.1
|
7 |
+
|
8 |
+
Social networking in a box. Build a social network for your company, school, sports team or niche community.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
|
12 |
+
BuddyPress lets users register on your site and start creating profiles, posting messages, making connections, creating and interacting in groups and much more. A social network in a box, BuddyPress lets you build a social network for your company, school, sports team or niche community.
|
13 |
+
|
14 |
+
<h4>Try the Demo</h4>
|
15 |
+
|
16 |
+
If you're interested in seeing what a default installation of BuddyPress has to offer, try out the BuddyPress Test Drive! This site is a community of BuddyPress users looking to try out and discuss the latest features of BuddyPress.
|
17 |
+
|
18 |
+
<a href="http://testbp.org/">BuddyPress Test Drive</a>
|
19 |
+
|
20 |
+
<h4>Who's Using BuddyPress?</h4>
|
21 |
+
|
22 |
+
More and more BuddyPress powered sites are popping up. You can take a look at some of the best sites on the <a href="http://buddypress.org/showcase/">BuddyPress Showcase</a>.
|
23 |
+
|
24 |
+
<h4>Plugins: Adding So Much More</h4>
|
25 |
+
|
26 |
+
BuddyPress boasts an ever growing array of new features developed by an awesome plugin development community. There are more than 330 BuddyPress plugins available, and the list is growing every day. Check out our list of <a href="http://buddypress.org/extend/recommended-plugins/">popular and recommended plugins</a>; for a full list of plugins, please visit the <a href="http://buddypress.org/extend/plugins/">BuddyPress.org plugins page</a>. You can install any of these plugins automatically, using the plugin installer on your WordPress Dashboard.
|
27 |
+
|
28 |
+
<h4>More Information</h4>
|
29 |
+
|
30 |
+
Visit the <a href="http://buddypress.org/">BuddyPress website</a> for more information about BuddyPress.
|
31 |
+
|
32 |
+
== Installation ==
|
33 |
+
|
34 |
+
You can download and install BuddyPress using the built in WordPress plugin installer. If you download BuddyPress manually, make sure it is uploaded to "/wp-content/plugins/buddypress/".
|
35 |
+
|
36 |
+
Activate BuddyPress in the "Plugins" admin panel using the "Activate" link. You'll then see a message asking you to complete the BuddyPress Installation Wizard, which will guide you through configuring your site for BuddyPress.
|
37 |
+
|
38 |
+
--- Discussion Forums ---
|
39 |
+
|
40 |
+
BuddyPress includes full support for discussion forums. Each group created on your site can have its own forum. If you'd like to enable this feature, after completing the Installation Wizard, visit the "Forums Setup" item under the "BuddyPress" menu in your WordPress admin area, and follow the on-screen instructions.
|
41 |
+
|
42 |
+
== Frequently Asked Questions ==
|
43 |
+
|
44 |
+
= Can I use my existing WordPress theme? =
|
45 |
+
|
46 |
+
Of course! Once you've installed and activated BuddyPress, the Installation Wizard will guide you through the available theme options. You'll be given the option of installing the <a href="http://wordpress.org/extend/plugins/bp-template-pack/">BuddyPress Template Pack</a>, which will help you add BuddyPress compatibility to your existing theme.
|
47 |
+
|
48 |
+
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 BuddyPress's features in a seamless and beautiful way. The BuddyPress Default theme is a snap to customize, with full support for custom headers and backgrounds and multiple widget areas. It also makes a great starting point for your own <a href="http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/">child theme</a>.
|
49 |
+
|
50 |
+
= Will this work on WordPress multisite? =
|
51 |
+
|
52 |
+
Yes! If your WordPress site has multisite enabled, BuddyPress will support the global tracking of blogs, posts and comments.
|
53 |
+
|
54 |
+
= Where can I get support? =
|
55 |
+
|
56 |
+
The support forums can be found at <a href="http://buddypress.org/forums/">http://buddypress.org/forums/</a>.
|
57 |
+
|
58 |
+
= Where can I find documentation? =
|
59 |
+
|
60 |
+
The documentation codex can be found at <a href="http://codex.buddypress.org/">http://codex.buddypress.org/</a>.
|
61 |
+
|
62 |
+
= Where can I report a bug? =
|
63 |
+
|
64 |
+
Report bugs and participate in development at <a href="http://buddypress.trac.wordpress.org/">http://buddypress.trac.wordpress.org</a>.
|
65 |
+
|
66 |
+
= Where can I get the bleeding edge version of BuddyPress? =
|
67 |
+
|
68 |
+
Check out the development trunk of BuddyPress via Subversion, from <a href="http://buddypress.svn.wordpress.org/trunk/">http://buddypress.svn.wordpress.org/trunk/</a>
|
69 |
+
|
70 |
+
== Screenshots ==
|
71 |
+
|
72 |
+
1. **Activity Streams** - Global, personal and group activity streams with threaded commenting, direct posting, favoriting and @mentions. All with full RSS feeds and email notification support.
|
73 |
+
2. **Extended Profiles** - Fully editable rofile fields allow you to define the fields users can fill in to describe themselves. Tailor profile fields to suit your audience.
|
74 |
+
3. **Extensible Groups** - Powerful public, private or hidden groups allow your users to break the discussion down into specific topics. Extend groups with your own custom features using the group extension API.
|
75 |
+
4. **Friend Connections** - Let your users make connections so they can track the activity of others, or filter on only those users they care about the most.
|
76 |
+
5. **Private Messaging** - 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.
|
77 |
+
6. **Discussion Forums** - Full powered discussion forums built directly into groups allow for more conventional in-depth conversations.
|
78 |
+
7. **WordPress Blogging** - Allow your users to start their own WordPress sites (using WordPress's Multisite feature), and track posts and comments from across your blog network in the activity stream.
|
79 |
+
8. **User Settings** - Give your users complete control over profile and notification settings. Settings are fully integrated into your theme, and can be disabled by the administrator.
|
80 |
+
|
81 |
+
== Languages ==
|
82 |
+
|
83 |
+
BuddyPress is available in more than 20 languages. For more information, check out the <a href="http://codex.buddypress.org/getting-started/translations/">translation page</a> on the BuddyPress Codex.
|
84 |
+
|
85 |
+
== Upgrade Notice ==
|
86 |
+
|
87 |
+
= 1.5.1 =
|
88 |
+
Fixes over 25 issues
|
89 |
+
|
90 |
+
= 1.5 =
|
91 |
+
See: http://codex.buddypress.org/releases/version-1-5/
|
92 |
+
|
93 |
+
= 1.2.9 =
|
94 |
+
Compatibility with WordPress 3.2
|
95 |
+
|
96 |
+
= 1.2.8 =
|
97 |
+
Compatibility with WordPress 3.1
|
98 |
+
|
99 |
+
= 1.2.7 =
|
100 |
+
Fixes over 10 bugs.
|
101 |
+
|
102 |
+
== Changelog ==
|
103 |
+
|
104 |
+
See http://codex.buddypress.org/releases/version-1-5/ for 1.5.
|
105 |
+
See http://buddypress.org/about/release-history/ for all other versions.
|