bbPress - Version 2.0-beta-3

Version Description

  • Akismet integration
  • Fixes replies within wp-admin
  • Fixes reply notification links
  • Fixes inconsistent breadcrumb behavior
  • Fixes theme compatibility issues
  • Fixes archive and page conflicts
  • Improvements to unpretty permalink support
  • Improvements to importer
  • Improvements to multisite support
  • Normalize theme, shortcodes, and template parts
  • Add humans.txt
  • Add empty index.php files to prevent snooping
  • Add max length to topic titles (default 80 chars)
Download this release

Release Info

Developer johnjamesjacoby
Plugin Icon 128x128 bbPress
Version 2.0-beta-3
Comparing to
See all releases

Code changes from version 2.0-beta-2b to 2.0-beta-3

Files changed (84) hide show
  1. bbp-admin/bbp-admin.php +4 -4
  2. bbp-admin/bbp-forums.php +15 -3
  3. bbp-admin/bbp-functions.php +38 -6
  4. bbp-admin/bbp-metaboxes.php +54 -15
  5. bbp-admin/bbp-replies.php +65 -47
  6. bbp-admin/bbp-settings.php +101 -5
  7. bbp-admin/bbp-tools.php +2 -0
  8. bbp-admin/bbp-topics.php +45 -29
  9. bbp-admin/images/index.php +7 -0
  10. bbp-admin/importers/bbpress.php +2 -2
  11. bbp-admin/importers/index.php +7 -0
  12. bbp-admin/index.php +7 -0
  13. bbp-admin/styles/index.php +7 -0
  14. bbp-includes/{bbp-general-functions.php → bbp-common-functions.php} +71 -7
  15. bbp-includes/{bbp-general-template.php → bbp-common-template.php} +357 -141
  16. bbp-includes/bbp-core-akismet.php +569 -0
  17. bbp-includes/bbp-core-compatibility.php +870 -282
  18. bbp-includes/bbp-core-hooks.php +265 -28
  19. bbp-includes/bbp-core-loader.php +0 -208
  20. bbp-includes/bbp-core-options.php +46 -2
  21. bbp-includes/bbp-core-shortcodes.php +232 -87
  22. bbp-includes/bbp-core-widgets.php +2 -8
  23. bbp-includes/bbp-forum-functions.php +47 -69
  24. bbp-includes/bbp-forum-template.php +68 -5
  25. bbp-includes/bbp-reply-functions.php +75 -46
  26. bbp-includes/bbp-reply-template.php +17 -7
  27. bbp-includes/bbp-topic-functions.php +93 -45
  28. bbp-includes/bbp-topic-template.php +85 -13
  29. bbp-includes/bbp-user-functions.php +3 -9
  30. bbp-includes/bbp-user-template.php +12 -13
  31. bbp-includes/index.php +7 -0
  32. bbp-languages/bbpress.pot +1959 -1856
  33. bbp-languages/index.php +9 -0
  34. bbp-themes/bbp-twentyten/archive-forum.php +2 -14
  35. bbp-themes/bbp-twentyten/archive-topic.php +6 -28
  36. bbp-themes/bbp-twentyten/bbpress/content-archive-forum.php +26 -0
  37. bbp-themes/bbp-twentyten/bbpress/content-archive-topic.php +30 -0
  38. bbp-themes/bbp-twentyten/bbpress/content-single-forum.php +46 -0
  39. bbp-themes/bbp-twentyten/bbpress/{single-topic.php → content-single-topic-lead.php} +0 -4
  40. bbp-themes/bbp-twentyten/bbpress/content-single-topic.php +47 -0
  41. bbp-themes/bbp-twentyten/bbpress/content-single-user-edit.php +21 -0
  42. bbp-themes/bbp-twentyten/bbpress/content-single-user.php +26 -0
  43. bbp-themes/bbp-twentyten/bbpress/content-single-view.php +31 -0
  44. bbp-themes/bbp-twentyten/bbpress/feedback-logged-in.php +14 -0
  45. bbp-themes/bbp-twentyten/bbpress/{no-access.php → feedback-no-access.php} +0 -0
  46. bbp-themes/bbp-twentyten/bbpress/{no-forums.php → feedback-no-forums.php} +0 -0
  47. bbp-themes/bbp-twentyten/bbpress/{no-topics.php → feedback-no-topics.php} +0 -0
  48. bbp-themes/bbp-twentyten/bbpress/form-merge.php +0 -103
  49. bbp-themes/bbp-twentyten/bbpress/form-reply.php +83 -77
  50. bbp-themes/bbp-twentyten/bbpress/form-split.php +0 -106
  51. bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php +104 -0
  52. bbp-themes/bbp-twentyten/bbpress/form-topic-split.php +108 -0
  53. bbp-themes/bbp-twentyten/bbpress/form-topic.php +16 -2
  54. bbp-themes/bbp-twentyten/bbpress/form-user-login.php +2 -2
  55. bbp-themes/bbp-twentyten/bbpress/loop-forums.php +5 -1
  56. bbp-themes/bbp-twentyten/bbpress/loop-replies.php +4 -0
  57. bbp-themes/bbp-twentyten/bbpress/loop-topics.php +5 -0
  58. bbp-themes/bbp-twentyten/bbpress/pagination-replies.php +4 -0
  59. bbp-themes/bbp-twentyten/bbpress/pagination-topics.php +4 -0
  60. bbp-themes/bbp-twentyten/bbpress/single-forum.php +0 -44
  61. bbp-themes/bbp-twentyten/bbpress/single-user.php +0 -39
  62. bbp-themes/bbp-twentyten/bbpress/user-edit.php +0 -30
  63. bbp-themes/bbp-twentyten/css/bbpress-rtl.css +6 -2
  64. bbp-themes/bbp-twentyten/css/bbpress.css +6 -2
  65. bbp-themes/bbp-twentyten/functions.php +4 -4
  66. bbp-themes/bbp-twentyten/page-front-forums.php +1 -13
  67. bbp-themes/bbp-twentyten/page-front-topics.php +1 -19
  68. bbp-themes/bbp-twentyten/page-topics-no-replies.php +4 -4
  69. bbp-themes/bbp-twentyten/single-forum.php +2 -36
  70. bbp-themes/bbp-twentyten/{bbpress/action-edit.php → single-reply-edit.php} +4 -11
  71. bbp-themes/bbp-twentyten/single-topic-edit.php +32 -0
  72. bbp-themes/bbp-twentyten/single-topic-merge.php +35 -0
  73. bbp-themes/bbp-twentyten/{bbpress/action-split-merge.php → single-topic-split.php} +2 -12
  74. bbp-themes/bbp-twentyten/single-topic.php +2 -30
  75. bbp-themes/bbp-twentyten/single-user-edit.php +29 -0
  76. bbp-themes/bbp-twentyten/{bbpress/user.php → single-user.php} +1 -1
  77. bbp-themes/bbp-twentyten/{bbpress/view.php → single-view.php} +2 -16
  78. bbp-themes/bbp-twentyten/style.css +1 -1
  79. bbp-themes/bbp-twentyten/taxonomy-topic-tag.php +1 -1
  80. bbp-themes/index.php +9 -0
  81. bbpress.php +193 -165
  82. humans.txt +46 -0
  83. index.php +7 -0
  84. readme.txt +17 -2
bbp-admin/bbp-admin.php CHANGED
@@ -96,13 +96,13 @@ class BBP_Admin {
96
 
97
  // Register bbPress admin style
98
  // @todo Refresh for 3.2 UI
99
- //add_action( 'admin_init', array( $this, 'register_admin_style' ) );
100
 
101
  // Add the importers
102
- add_action( 'admin_init', array( $this, 'register_importers' ) );
103
 
104
  // Add the settings
105
- add_action( 'admin_init', array( $this, 'register_admin_settings' ) );
106
 
107
  // Forums 'Right now' Dashboard widget
108
  add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget_right_now' ) );
@@ -347,7 +347,7 @@ class BBP_Admin {
347
  return;
348
 
349
  // Set $bbp->theme_compat to true to bypass nag
350
- if ( !empty( $bbp->theme_compat ) && !current_theme_supports( 'bbpress' ) ) { ?>
351
 
352
  <div id="message" class="updated fade">
353
  <p style="line-height: 150%"><?php printf( __( "<strong>bbPress is in Theme Compatability Mode</strong>. Your forums are using default styling.", 'bbpress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=bbpress&tab=search' ) ) ?></p>
96
 
97
  // Register bbPress admin style
98
  // @todo Refresh for 3.2 UI
99
+ //add_action( 'bbp_admin_init', array( $this, 'register_admin_style' ) );
100
 
101
  // Add the importers
102
+ add_action( 'bbp_admin_init', array( $this, 'register_importers' ) );
103
 
104
  // Add the settings
105
+ add_action( 'bbp_admin_init', array( $this, 'register_admin_settings' ) );
106
 
107
  // Forums 'Right now' Dashboard widget
108
  add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget_right_now' ) );
347
  return;
348
 
349
  // Set $bbp->theme_compat to true to bypass nag
350
+ if ( !empty( $bbp->theme_compat->theme ) && !current_theme_supports( 'bbpress' ) ) { ?>
351
 
352
  <div id="message" class="updated fade">
353
  <p style="line-height: 150%"><?php printf( __( "<strong>bbPress is in Theme Compatability Mode</strong>. Your forums are using default styling.", 'bbpress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=bbpress&tab=search' ) ) ?></p>
bbp-admin/bbp-forums.php CHANGED
@@ -107,8 +107,8 @@ class BBP_Forums_Admin {
107
  */
108
  function _setup_help() {
109
 
110
- // Prevent debug notices
111
- $contextual_help = '';
112
 
113
  /** New/Edit **********************************************************/
114
 
@@ -225,12 +225,15 @@ class BBP_Forums_Admin {
225
  * @return int Forum id
226
  */
227
  function attributes_metabox_save( $forum_id ) {
228
- global $bbp;
229
 
230
  // Bail if doing an autosave
231
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
232
  return $forum_id;
233
 
 
 
 
 
234
  // Bail if current user cannot edit this forum
235
  if ( !current_user_can( 'edit_forum', $forum_id ) )
236
  return $forum_id;
@@ -286,6 +289,15 @@ class BBP_Forums_Admin {
286
  }
287
  }
288
 
 
 
 
 
 
 
 
 
 
289
  do_action( 'bbp_forum_attributes_metabox_save', $forum_id );
290
 
291
  return $forum_id;
107
  */
108
  function _setup_help() {
109
 
110
+ // Define local variable(s)
111
+ $contextual_help = array();
112
 
113
  /** New/Edit **********************************************************/
114
 
225
  * @return int Forum id
226
  */
227
  function attributes_metabox_save( $forum_id ) {
 
228
 
229
  // Bail if doing an autosave
230
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
231
  return $forum_id;
232
 
233
+ // Bail if not a post request
234
+ if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
235
+ return $forum_id;
236
+
237
  // Bail if current user cannot edit this forum
238
  if ( !current_user_can( 'edit_forum', $forum_id ) )
239
  return $forum_id;
289
  }
290
  }
291
 
292
+ // Parent ID
293
+ $parent_id = ( !empty( $_POST['parent_id'] ) && is_numeric( $_POST['parent_id'] ) ) ? $_POST['parent_id'] : 0;
294
+
295
+ // Update the forum meta bidness
296
+ bbp_update_forum( array(
297
+ 'forum_id' => $forum_id,
298
+ 'post_parent' => (int) $parent_id
299
+ ) );
300
+
301
  do_action( 'bbp_forum_attributes_metabox_save', $forum_id );
302
 
303
  return $forum_id;
bbp-admin/bbp-functions.php CHANGED
@@ -23,7 +23,7 @@ function bbp_admin_separator () {
23
  if ( !current_user_can( 'edit_replies' ) )
24
  return;
25
 
26
- $menu[] = array( '', 'read', 'separator-bbpress', '', 'wp-menu-separator' );
27
  }
28
 
29
  /**
@@ -94,7 +94,7 @@ function bbp_admin_menu_order( $menu_order ) {
94
  }
95
 
96
  /**
97
- * Display the admin notices
98
  *
99
  * @since bbPress (r2613)
100
  *
@@ -178,7 +178,7 @@ function bbp_recount_list() {
178
  * @return array An array of the status code and the message
179
  */
180
  function bbp_recount_topic_replies() {
181
- global $wpdb;
182
 
183
  $statement = __( 'Counting the number of replies in each topic&hellip; %s', 'bbpress' );
184
  $result = __( 'Failed!', 'bbpress' );
@@ -187,7 +187,23 @@ function bbp_recount_topic_replies() {
187
  if ( is_wp_error( $wpdb->query( $sql_delete ) ) )
188
  return array( 1, sprintf( $statement, $result ) );
189
 
190
- $sql = "INSERT INTO `{$wpdb->postmeta}` (`post_id`, `meta_key`, `meta_value`) (SELECT `post_parent`, '_bbp_reply_count', COUNT(`post_status`) as `meta_value` FROM `{$wpdb->posts}` WHERE `post_type` = '" . bbp_get_reply_post_type() . "' AND `post_status` = 'publish' GROUP BY `post_parent`);";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  if ( is_wp_error( $wpdb->query( $sql ) ) )
192
  return array( 2, sprintf( $statement, $result ) );
193
 
@@ -206,7 +222,7 @@ function bbp_recount_topic_replies() {
206
  * @return array An array of the status code and the message
207
  */
208
  function bbp_recount_topic_voices() {
209
- global $wpdb;
210
 
211
  $statement = __( 'Counting the number of voices in each topic&hellip; %s', 'bbpress' );
212
  $result = __( 'Failed!', 'bbpress' );
@@ -215,7 +231,23 @@ function bbp_recount_topic_voices() {
215
  if ( is_wp_error( $wpdb->query( $sql_delete ) ) )
216
  return array( 1, sprintf( $statement, $result ) );
217
 
218
- $sql = "INSERT INTO `{$wpdb->postmeta}` (`post_id`, `meta_key`, `meta_value`) (SELECT `post_parent`, '_bbp_voice_count', COUNT(DISTINCT `post_author`) as `meta_value` FROM `{$wpdb->posts}` WHERE `post_type` = '" . bbp_get_reply_post_type() . "' AND `post_status` = 'publish' GROUP BY `post_parent`);";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  if ( is_wp_error( $wpdb->query( $sql ) ) )
220
  return array( 2, sprintf( $statement, $result ) );
221
 
23
  if ( !current_user_can( 'edit_replies' ) )
24
  return;
25
 
26
+ $menu[] = array( '', 'read', 'separator-bbpress', '', 'wp-menu-separator bbpress' );
27
  }
28
 
29
  /**
94
  }
95
 
96
  /**
97
+ * Assemble the admin notices
98
  *
99
  * @since bbPress (r2613)
100
  *
178
  * @return array An array of the status code and the message
179
  */
180
  function bbp_recount_topic_replies() {
181
+ global $wpdb, $bbp;
182
 
183
  $statement = __( 'Counting the number of replies in each topic&hellip; %s', 'bbpress' );
184
  $result = __( 'Failed!', 'bbpress' );
187
  if ( is_wp_error( $wpdb->query( $sql_delete ) ) )
188
  return array( 1, sprintf( $statement, $result ) );
189
 
190
+ // Post types and status
191
+ $tpt = bbp_get_topic_post_type();
192
+ $rpt = bbp_get_reply_post_type();
193
+ $pps = 'publish';
194
+ $cps = $bbp->closed_status_id;
195
+
196
+ $sql = "INSERT INTO `{$wpdb->postmeta}` (`post_id`, `meta_key`, `meta_value`) (
197
+ SELECT `topics`.`ID` AS `post_id`, '_bbp_reply_count' AS `meta_key`, COUNT(`replies`.`ID`) As `meta_value`
198
+ FROM `{$wpdb->posts}` AS `topics`
199
+ LEFT JOIN `{$wpdb->posts}` as `replies`
200
+ ON `replies`.`post_parent` = `topics`.`ID`
201
+ AND `replies`.`post_status` = '{$pps}'
202
+ AND `replies`.`post_type` = '{$rpt}'
203
+ WHERE `topics`.`post_type` = '{$tpt}'
204
+ AND `topics`.`post_status` IN ( '{$pps}', '{$cps}' )
205
+ GROUP BY `topics`.`ID`);";
206
+
207
  if ( is_wp_error( $wpdb->query( $sql ) ) )
208
  return array( 2, sprintf( $statement, $result ) );
209
 
222
  * @return array An array of the status code and the message
223
  */
224
  function bbp_recount_topic_voices() {
225
+ global $wpdb, $bbp;
226
 
227
  $statement = __( 'Counting the number of voices in each topic&hellip; %s', 'bbpress' );
228
  $result = __( 'Failed!', 'bbpress' );
231
  if ( is_wp_error( $wpdb->query( $sql_delete ) ) )
232
  return array( 1, sprintf( $statement, $result ) );
233
 
234
+ // Post types and status
235
+ $tpt = bbp_get_topic_post_type();
236
+ $rpt = bbp_get_reply_post_type();
237
+ $pps = 'publish';
238
+ $cps = $bbp->closed_status_id;
239
+
240
+ $sql = "INSERT INTO `{$wpdb->postmeta}` (`post_id`, `meta_key`, `meta_value`) (
241
+ SELECT `postmeta`.`meta_value`, '_bbp_voice_count', COUNT(DISTINCT `post_author`) as `meta_value`
242
+ FROM `{$wpdb->posts}` AS `posts`
243
+ LEFT JOIN `{$wpdb->postmeta}` AS `postmeta`
244
+ ON `posts`.`ID` = `postmeta`.`post_id`
245
+ AND `postmeta`.`meta_key` = '_bbp_topic_id'
246
+ WHERE `posts`.`post_type` IN ( '{$tpt}', '{$rpt}' )
247
+ AND `posts`.`post_status` IN ( '{$pps}', '{$cps}' )
248
+ AND `posts`.`post_author` != '0'
249
+ GROUP BY `postmeta`.`meta_value`);";
250
+
251
  if ( is_wp_error( $wpdb->query( $sql ) ) )
252
  return array( 2, sprintf( $statement, $result ) );
253
 
bbp-admin/bbp-metaboxes.php CHANGED
@@ -358,7 +358,7 @@ function bbp_topic_metabox() {
358
  $args = array(
359
  'selected' => bbp_get_topic_forum_id( $post->ID ),
360
  'select_id' => 'parent_id',
361
- 'show_none' => __( '(No Forum)', 'bbpress' )
362
  ); ?>
363
 
364
  <p><strong><?php _e( 'Forum', 'bbpress' ); ?></strong></p>
@@ -389,19 +389,53 @@ function bbp_topic_metabox() {
389
  function bbp_reply_metabox() {
390
  global $post;
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
  $args = array(
393
  'post_type' => bbp_get_topic_post_type(),
394
- 'selected' => $post->post_parent,
395
  'select_id' => 'parent_id',
396
  'orderby' => 'post_date',
397
- 'numberposts' => '50'
398
- ); ?>
 
 
 
 
 
399
 
400
- <p><strong><?php _e( 'Parent Topic', 'bbpress' ); ?></strong></p>
401
 
402
  <p>
403
  <label class="screen-reader-text" for="parent_id"><?php _e( 'Topic', 'bbpress' ); ?></label>
 
404
  <?php bbp_dropdown( $args ); ?>
 
405
  </p>
406
 
407
  <?php
@@ -414,35 +448,40 @@ function bbp_reply_metabox() {
414
  /**
415
  * Anonymous user information metabox
416
  *
417
- * @since bbPress (r)
418
  *
 
 
 
419
  * @uses get_post_meta() To get the author user information
420
  */
421
- function bbp_author_metabox () {
422
- global $post;
423
 
424
- // Bail if topic/reply is not anonymous
425
- if ( bbp_is_reply_anonymous( get_the_ID() ) || bbp_is_topic_anonymous( get_the_ID() ) ) : ?>
 
 
 
426
 
427
  <p><strong><?php _e( 'Name', 'bbpress' ); ?></strong></p>
428
 
429
  <p>
430
  <label class="screen-reader-text" for="bbp_anonymous_name"><?php _e( 'Name', 'bbpress' ); ?></label>
431
- <input type="text" id="bbp_anonymous_name" name="bbp_anonymous_name" value="<?php echo get_post_meta( $post->ID, '_bbp_anonymous_name', true ); ?>" size="38" />
432
  </p>
433
 
434
  <p><strong><?php _e( 'Email', 'bbpress' ); ?></strong></p>
435
 
436
  <p>
437
  <label class="screen-reader-text" for="bbp_anonymous_email"><?php _e( 'Email', 'bbpress' ); ?></label>
438
- <input type="text" id="bbp_anonymous_email" name="bbp_anonymous_email" value="<?php echo get_post_meta( $post->ID, '_bbp_anonymous_email', true ); ?>" size="38" />
439
  </p>
440
 
441
  <p><strong><?php _e( 'Website', 'bbpress' ); ?></strong></p>
442
 
443
  <p>
444
  <label class="screen-reader-text" for="bbp_anonymous_website"><?php _e( 'Website', 'bbpress' ); ?></label>
445
- <input type="text" id="bbp_anonymous_website" name="bbp_anonymous_website" value="<?php echo get_post_meta( $post->ID, '_bbp_anonymous_website', true ); ?>" size="38" />
446
  </p>
447
 
448
  <?php endif; ?>
@@ -451,12 +490,12 @@ function bbp_author_metabox () {
451
 
452
  <p>
453
  <label class="screen-reader-text" for="bbp_author_ip_address"><?php _e( 'IP Address', 'bbpress' ); ?></label>
454
- <input type="text" id="bbp_author_ip_address" name="bbp_author_ip_address" value="<?php echo get_post_meta( $post->ID, '_bbp_author_ip', true ); ?>" size="38" disabled="disabled" />
455
  </p>
456
 
457
  <?php
458
 
459
- do_action( 'bbp_author_metabox', $post->ID );
460
  }
461
 
462
  ?>
358
  $args = array(
359
  'selected' => bbp_get_topic_forum_id( $post->ID ),
360
  'select_id' => 'parent_id',
361
+ 'show_none' => is_super_admin() ? __( '(No Forum)', 'bbpress' ) : '',
362
  ); ?>
363
 
364
  <p><strong><?php _e( 'Forum', 'bbpress' ); ?></strong></p>
389
  function bbp_reply_metabox() {
390
  global $post;
391
 
392
+ // Get some meta
393
+ $reply_topic_id = bbp_get_reply_topic_id( $post->ID );
394
+ $reply_forum_id = bbp_get_reply_forum_id( $post->ID );
395
+ $topic_forum_id = bbp_get_topic_forum_id( bbp_get_reply_topic_id( $post->ID ) );
396
+
397
+ // Allow individual manipulation of reply forum
398
+ if ( current_user_can( 'edit_others_replies' ) || current_user_can( 'moderate' ) ) :
399
+
400
+ // Forums
401
+ $args = array(
402
+ 'selected' => $reply_forum_id,
403
+ 'select_id' => 'bbp_forum_id',
404
+ 'show_none' => __( '(Use Forum of Topic)', 'bbpress' )
405
+ ); ?>
406
+
407
+ <p><strong><?php _e( 'Forum', 'bbpress' ); ?></strong></p>
408
+
409
+ <p>
410
+ <label class="screen-reader-text" for="bbp_forum_id"><?php _e( 'Forum', 'bbpress' ); ?></label>
411
+
412
+ <?php bbp_dropdown( $args ); ?>
413
+
414
+ </p>
415
+
416
+ <?php endif;
417
+
418
+ // Topics
419
  $args = array(
420
  'post_type' => bbp_get_topic_post_type(),
421
+ 'selected' => $reply_topic_id,
422
  'select_id' => 'parent_id',
423
  'orderby' => 'post_date',
424
+ 'numberposts' => '250',
425
+ 'show_none' => is_super_admin() ? __( '(No Topic)', 'bbpress' ) : '',
426
+ );
427
+
428
+ // Allow the dropdown to be filtered, to extend or limit the available
429
+ // topics to choose as the reply parent.
430
+ $args = apply_filters( 'bbp_reply_parent_dropdown', $args ); ?>
431
 
432
+ <p><strong><?php _e( 'Topic', 'bbpress' ); ?></strong></p>
433
 
434
  <p>
435
  <label class="screen-reader-text" for="parent_id"><?php _e( 'Topic', 'bbpress' ); ?></label>
436
+
437
  <?php bbp_dropdown( $args ); ?>
438
+
439
  </p>
440
 
441
  <?php
448
  /**
449
  * Anonymous user information metabox
450
  *
451
+ * @since bbPress (r2828)
452
  *
453
+ * @uses bbp_is_reply_anonymous() To check if reply is anonymous
454
+ * @uses bbp_is_topic_anonymous() To check if topic is anonymous
455
+ * @uses get_the_ID() To get the global post ID
456
  * @uses get_post_meta() To get the author user information
457
  */
458
+ function bbp_author_metabox() {
 
459
 
460
+ // Post ID
461
+ $post_id = get_the_ID();
462
+
463
+ // Show extra bits if topic/reply is anonymous
464
+ if ( bbp_is_reply_anonymous( $post_id ) || bbp_is_topic_anonymous( $post_id ) ) : ?>
465
 
466
  <p><strong><?php _e( 'Name', 'bbpress' ); ?></strong></p>
467
 
468
  <p>
469
  <label class="screen-reader-text" for="bbp_anonymous_name"><?php _e( 'Name', 'bbpress' ); ?></label>
470
+ <input type="text" id="bbp_anonymous_name" name="bbp_anonymous_name" value="<?php echo get_post_meta( $post_id, '_bbp_anonymous_name', true ); ?>" size="38" />
471
  </p>
472
 
473
  <p><strong><?php _e( 'Email', 'bbpress' ); ?></strong></p>
474
 
475
  <p>
476
  <label class="screen-reader-text" for="bbp_anonymous_email"><?php _e( 'Email', 'bbpress' ); ?></label>
477
+ <input type="text" id="bbp_anonymous_email" name="bbp_anonymous_email" value="<?php echo get_post_meta( $post_id, '_bbp_anonymous_email', true ); ?>" size="38" />
478
  </p>
479
 
480
  <p><strong><?php _e( 'Website', 'bbpress' ); ?></strong></p>
481
 
482
  <p>
483
  <label class="screen-reader-text" for="bbp_anonymous_website"><?php _e( 'Website', 'bbpress' ); ?></label>
484
+ <input type="text" id="bbp_anonymous_website" name="bbp_anonymous_website" value="<?php echo get_post_meta( $post_id, '_bbp_anonymous_website', true ); ?>" size="38" />
485
  </p>
486
 
487
  <?php endif; ?>
490
 
491
  <p>
492
  <label class="screen-reader-text" for="bbp_author_ip_address"><?php _e( 'IP Address', 'bbpress' ); ?></label>
493
+ <input type="text" id="bbp_author_ip_address" name="bbp_author_ip_address" value="<?php echo get_post_meta( $post_id, '_bbp_author_ip', true ); ?>" size="38" disabled="disabled" />
494
  </p>
495
 
496
  <?php
497
 
498
+ do_action( 'bbp_author_metabox', $post_id );
499
  }
500
 
501
  ?>
bbp-admin/bbp-replies.php CHANGED
@@ -119,8 +119,8 @@ class BBP_Replies_Admin {
119
  */
120
  function _setup_help() {
121
 
122
- // Prevent debug notices
123
- $contextual_help = '';
124
 
125
  /** New/Edit **********************************************************/
126
 
@@ -226,20 +226,33 @@ class BBP_Replies_Admin {
226
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
227
  return $reply_id;
228
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  // Current user cannot edit this reply
230
  if ( !current_user_can( 'edit_reply', $reply_id ) )
231
  return $reply_id;
232
 
233
- // Load the reply
234
- if ( !$reply = bbp_get_reply( $reply_id ) )
235
- return $reply_id;
236
 
237
- // OK, we're authenticated: we need to find and save the data
238
- $parent_id = isset( $reply->parent_id ) ? $reply->parent_id : 0;
239
 
240
- do_action( 'bbp_reply_attributes_metabox_save', $reply_id, $parent_id );
 
241
 
242
- return $parent_id;
243
  }
244
 
245
  /**
@@ -299,6 +312,10 @@ class BBP_Replies_Admin {
299
  if ( empty( $post_id ) )
300
  return $post_id;
301
 
 
 
 
 
302
  // Bail if doing an autosave
303
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
304
  return $post_id;
@@ -568,24 +585,17 @@ class BBP_Replies_Admin {
568
 
569
  // Output forum name
570
  if ( !empty( $topic_id ) ) {
571
- bbp_topic_title( $topic_id );
572
-
573
- // Link information
574
- $actions = apply_filters( 'reply_topic_row_actions', array (
575
- 'edit' => '<a href="' . add_query_arg( array( 'post' => $topic_id, 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>',
576
- 'view' => '<a href="' . bbp_get_topic_permalink( $topic_id ) . '">' . __( 'View', 'bbpress' ) . '</a>'
577
- ) );
578
 
579
- // Output forum post row links
580
- foreach ( $actions as $action => $link )
581
- $formatted_actions[] = '<span class="' . $action . '">' . $link . '</span>';
582
 
583
- if ( !empty( $topic_id ) )
584
- echo '<div class="row-actions">' . implode( ' | ', $formatted_actions ) . '</div>';
585
 
586
  // Reply has no topic
587
  } else {
588
- _e( '(No Topic)', 'bbpress' );
589
  }
590
 
591
  break;
@@ -593,30 +603,30 @@ class BBP_Replies_Admin {
593
  // Forum
594
  case 'bbp_reply_forum' :
595
 
596
- // Get Forum ID
597
- $forum_id = bbp_get_topic_forum_id( $topic_id );
 
598
 
599
  // Output forum name
600
- if ( !empty( $forum_id ) ) {
601
- bbp_forum_title( $forum_id );
602
-
603
- // Link information
604
- $actions = apply_filters( 'reply_topic_forum_row_actions', array (
605
- 'edit' => '<a href="' . add_query_arg( array( 'post' => $forum_id, 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>',
606
- 'view' => '<a href="' . bbp_get_forum_permalink( $forum_id ) . '">' . __( 'View', 'bbpress' ) . '</a>'
607
- ) );
608
-
609
- // Output forum post row links
610
- foreach ( $actions as $action => $link )
611
- $formatted_actions[] = '<span class="' . $action . '">' . $link . '</span>';
612
-
613
- // Show forum actions
614
- if ( !empty( $forum_id ) )
615
- echo '<div class="row-actions">' . implode( ' | ', $formatted_actions ) . '</div>';
616
-
617
  // Reply has no forum
618
  } else {
619
- _e( '(No Forum)', 'bbpress' );
620
  }
621
 
622
  break;
@@ -674,11 +684,12 @@ class BBP_Replies_Admin {
674
  if ( bbp_get_reply_post_type() == $reply->post_type ) {
675
  unset( $actions['inline hide-if-no-js'] );
676
 
677
- // Show view link if it's not set, the reply is trashed and the user can view trashed replies
678
- if ( empty( $actions['view'] ) && 'trash' == $reply->post_status && current_user_can( 'view_trash' ) )
679
- $actions['view'] = '<a href="' . bbp_get_reply_permalink( $reply->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'bbpress' ), bbp_get_reply_title( $reply->ID ) ) ) . '" rel="permalink">' . __( 'View', 'bbpress' ) . '</a>';
680
-
681
- bbp_reply_content( $reply->ID );
 
682
 
683
  // Only show the actions if the user is capable of viewing them
684
  if ( current_user_can( 'moderate', $reply->ID ) ) {
@@ -733,6 +744,13 @@ class BBP_Replies_Admin {
733
  )
734
  return;
735
 
 
 
 
 
 
 
 
736
  // Get which forum is selected
737
  $selected = !empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : '';
738
 
119
  */
120
  function _setup_help() {
121
 
122
+ // Define local variable(s)
123
+ $contextual_help = array();
124
 
125
  /** New/Edit **********************************************************/
126
 
226
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
227
  return $reply_id;
228
 
229
+ // Bail if not a post request
230
+ if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
231
+ return $reply_id;
232
+
233
+ // Check action exists
234
+ if ( empty( $_POST['action'] ) )
235
+ return $reply_id;
236
+
237
+ // Bail if post_type is not a reply
238
+ if ( get_post_type( $reply_id ) != $this->post_type )
239
+ return;
240
+
241
  // Current user cannot edit this reply
242
  if ( !current_user_can( 'edit_reply', $reply_id ) )
243
  return $reply_id;
244
 
245
+ // Get the reply meta post values
246
+ $topic_id = !empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0;
247
+ $forum_id = !empty( $_POST['bbp_forum_id'] ) ? (int) $_POST['bbp_forum_id'] : bbp_get_topic_forum_id( $topic_id );
248
 
249
+ // Formally update the reply
250
+ bbp_update_reply( $reply_id, $topic_id, $forum_id );
251
 
252
+ // Allow other fun things to happen
253
+ do_action( 'bbp_reply_attributes_metabox_save', $reply_id, $topic_id, $forum_id );
254
 
255
+ return $reply_id;
256
  }
257
 
258
  /**
312
  if ( empty( $post_id ) )
313
  return $post_id;
314
 
315
+ // Bail if not a post request
316
+ if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
317
+ return $post_id;
318
+
319
  // Bail if doing an autosave
320
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
321
  return $post_id;
585
 
586
  // Output forum name
587
  if ( !empty( $topic_id ) ) {
 
 
 
 
 
 
 
588
 
589
+ // Topic Title
590
+ if ( !$topic_title = bbp_get_topic_title( $topic_id ) )
591
+ $topic_title = __( 'No Topic', 'bbpress' );
592
 
593
+ // Output the title
594
+ echo $topic_title;
595
 
596
  // Reply has no topic
597
  } else {
598
+ _e( 'No Topic', 'bbpress' );
599
  }
600
 
601
  break;
603
  // Forum
604
  case 'bbp_reply_forum' :
605
 
606
+ // Get Forum ID's
607
+ $reply_forum_id = bbp_get_reply_forum_id( $reply_id );
608
+ $topic_forum_id = bbp_get_topic_forum_id( $topic_id );
609
 
610
  // Output forum name
611
+ if ( !empty( $reply_forum_id ) ) {
612
+
613
+ // Forum Title
614
+ if ( !$forum_title = bbp_get_forum_title( $reply_forum_id ) )
615
+ $forum_title = __( 'No Forum', 'bbpress' );
616
+
617
+ // Alert capable users of reply forum mismatch
618
+ if ( $reply_forum_id != $topic_forum_id ) {
619
+ if ( current_user_can( 'edit_others_replies' ) || current_user_can( 'moderate' ) ) {
620
+ $forum_title .= '<div class="attention">' . __( '(Mismatch)', 'bbpress' ) . '</div>';
621
+ }
622
+ }
623
+
624
+ // Output the title
625
+ echo $forum_title;
626
+
 
627
  // Reply has no forum
628
  } else {
629
+ _e( 'No Forum', 'bbpress' );
630
  }
631
 
632
  break;
684
  if ( bbp_get_reply_post_type() == $reply->post_type ) {
685
  unset( $actions['inline hide-if-no-js'] );
686
 
687
+ // Reply view links to topic
688
+ $actions['view'] = '<a href="' . bbp_get_reply_url( $reply->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'bbpress' ), bbp_get_reply_title( $reply->ID ) ) ) . '" rel="permalink">' . __( 'View', 'bbpress' ) . '</a>';
689
+
690
+ // User cannot view replies in trash
691
+ if ( ( 'trash' == $reply->post_status ) && !current_user_can( 'view_trash' ) )
692
+ unset( $actions['view'] );
693
 
694
  // Only show the actions if the user is capable of viewing them
695
  if ( current_user_can( 'moderate', $reply->ID ) ) {
744
  )
745
  return;
746
 
747
+ // Add Empty Spam button
748
+ if ( !empty( $_GET['post_status'] ) && ( 'spam' == $_GET['post_status'] ) && current_user_can( 'moderate' ) ) {
749
+ wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
750
+ $title = esc_attr__( 'Empty Spam', 'bbpress' );
751
+ submit_button( $title, 'button-secondary apply', 'delete_all', false );
752
+ }
753
+
754
  // Get which forum is selected
755
  $selected = !empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : '';
756
 
bbp-admin/bbp-settings.php CHANGED
@@ -67,7 +67,7 @@ function bbp_admin_setting_callback_throttle() {
67
  function bbp_admin_setting_callback_favorites() {
68
  ?>
69
 
70
- <input id="_bbp_enable_favorites" name="_bbp_enable_favorites" type="checkbox" id="_bbp_enable_favorites" value="1" <?php checked( true, bbp_is_favorites_active( true ) ); ?> />
71
  <label for="_bbp_enable_favorites"><?php _e( 'Allow users to mark topics as favorites?', 'bbpress' ); ?></label>
72
 
73
  <?php
@@ -83,7 +83,7 @@ function bbp_admin_setting_callback_favorites() {
83
  function bbp_admin_setting_callback_subscriptions() {
84
  ?>
85
 
86
- <input id="_bbp_enable_subscriptions" name="_bbp_enable_subscriptions" type="checkbox" id="_bbp_enable_subscriptions" value="1" <?php checked( true, bbp_is_subscriptions_active( true ) ); ?> />
87
  <label for="_bbp_enable_subscriptions"><?php _e( 'Allow users to subscribe to topics', 'bbpress' ); ?></label>
88
 
89
  <?php
@@ -99,7 +99,7 @@ function bbp_admin_setting_callback_subscriptions() {
99
  function bbp_admin_setting_callback_anonymous() {
100
  ?>
101
 
102
- <input id="_bbp_allow_anonymous" name="_bbp_allow_anonymous" type="checkbox" id="_bbp_allow_anonymous" value="1" <?php checked( true, bbp_allow_anonymous( false ) ); ?> />
103
  <label for="_bbp_allow_anonymous"><?php _e( 'Allow guest users without accounts to create topics and replies', 'bbpress' ); ?></label>
104
 
105
  <?php
@@ -230,6 +230,8 @@ function bbp_admin_setting_callback_root_slug() {
230
  <input name="_bbp_root_slug" type="text" id="_bbp_root_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_root_slug', 'forums', true ); ?>" />
231
 
232
  <?php
 
 
233
  }
234
 
235
  /**
@@ -245,6 +247,8 @@ function bbp_admin_setting_callback_topic_archive_slug() {
245
  <input name="_bbp_topic_archive_slug" type="text" id="_bbp_topic_archive_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_archive_slug', 'topics', true ); ?>" />
246
 
247
  <?php
 
 
248
  }
249
 
250
  /** Single Slugs **************************************************************/
@@ -275,7 +279,7 @@ function bbp_admin_setting_callback_single_slug_section() {
275
  function bbp_admin_setting_callback_include_root() {
276
  ?>
277
 
278
- <input id="_bbp_include_root" name="_bbp_include_root" type="checkbox" id="_bbp_include_root" value="1" <?php checked( true, get_option( '_bbp_include_root', true ) ); ?> />
279
  <label for="_bbp_include_root"><?php _e( 'Incude the Forum Base slug in your single forum item links', 'bbpress' ); ?></label>
280
 
281
  <?php
@@ -294,6 +298,8 @@ function bbp_admin_setting_callback_forum_slug() {
294
  <input name="_bbp_forum_slug" type="text" id="_bbp_forum_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_forum_slug', 'forum', true ); ?>" />
295
 
296
  <?php
 
 
297
  }
298
 
299
  /**
@@ -309,6 +315,8 @@ function bbp_admin_setting_callback_topic_slug() {
309
  <input name="_bbp_topic_slug" type="text" id="_bbp_topic_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_slug', 'topic', true ); ?>" />
310
 
311
  <?php
 
 
312
  }
313
 
314
  /**
@@ -324,6 +332,8 @@ function bbp_admin_setting_callback_reply_slug() {
324
  <input name="_bbp_reply_slug" type="text" id="_bbp_reply_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_reply_slug', 'reply', true ); ?>" />
325
 
326
  <?php
 
 
327
  }
328
 
329
  /**
@@ -336,9 +346,12 @@ function bbp_admin_setting_callback_reply_slug() {
336
  function bbp_admin_setting_callback_topic_tag_slug() {
337
  ?>
338
 
339
- <input name="_bbp_topic_tag_slug" type="text" id="_bbp_topic_tag_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_tag_slug', 'tag', true ); ?>" />
340
 
341
  <?php
 
 
 
342
  }
343
 
344
  /** Other Slugs ***************************************************************/
@@ -356,6 +369,8 @@ function bbp_admin_setting_callback_user_slug() {
356
  <input name="_bbp_user_slug" type="text" id="_bbp_user_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_user_slug', 'users', true ); ?>" />
357
 
358
  <?php
 
 
359
  }
360
 
361
  /**
@@ -371,6 +386,8 @@ function bbp_admin_setting_callback_view_slug() {
371
  <input name="_bbp_view_slug" type="text" id="_bbp_view_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_view_slug', 'view', true ); ?>" />
372
 
373
  <?php
 
 
374
  }
375
 
376
  /** Settings Page *************************************************************/
@@ -487,8 +504,87 @@ function bbp_form_option( $option, $default = '' , $slug = false ) {
487
  else
488
  $value = esc_attr( $value );
489
 
 
 
 
 
490
  // Allow plugins to further filter the output
491
  return apply_filters( 'bbp_get_form_option', $value, $option );
492
  }
493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  ?>
67
  function bbp_admin_setting_callback_favorites() {
68
  ?>
69
 
70
+ <input id="_bbp_enable_favorites" name="_bbp_enable_favorites" type="checkbox" id="_bbp_enable_favorites" value="1" <?php checked( bbp_is_favorites_active( true ) ); ?> />
71
  <label for="_bbp_enable_favorites"><?php _e( 'Allow users to mark topics as favorites?', 'bbpress' ); ?></label>
72
 
73
  <?php
83
  function bbp_admin_setting_callback_subscriptions() {
84
  ?>
85
 
86
+ <input id="_bbp_enable_subscriptions" name="_bbp_enable_subscriptions" type="checkbox" id="_bbp_enable_subscriptions" value="1" <?php checked( bbp_is_subscriptions_active( true ) ); ?> />
87
  <label for="_bbp_enable_subscriptions"><?php _e( 'Allow users to subscribe to topics', 'bbpress' ); ?></label>
88
 
89
  <?php
99
  function bbp_admin_setting_callback_anonymous() {
100
  ?>
101
 
102
+ <input id="_bbp_allow_anonymous" name="_bbp_allow_anonymous" type="checkbox" id="_bbp_allow_anonymous" value="1" <?php checked( bbp_allow_anonymous( false ) ); ?> />
103
  <label for="_bbp_allow_anonymous"><?php _e( 'Allow guest users without accounts to create topics and replies', 'bbpress' ); ?></label>
104
 
105
  <?php
230
  <input name="_bbp_root_slug" type="text" id="_bbp_root_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_root_slug', 'forums', true ); ?>" />
231
 
232
  <?php
233
+ // Slug Check
234
+ bbp_form_slug_conflict_check( '_bbp_root_slug', 'forums' );
235
  }
236
 
237
  /**
247
  <input name="_bbp_topic_archive_slug" type="text" id="_bbp_topic_archive_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_archive_slug', 'topics', true ); ?>" />
248
 
249
  <?php
250
+ // Slug Check
251
+ bbp_form_slug_conflict_check( '_bbp_topic_archive_slug', 'topics' );
252
  }
253
 
254
  /** Single Slugs **************************************************************/
279
  function bbp_admin_setting_callback_include_root() {
280
  ?>
281
 
282
+ <input id="_bbp_include_root" name="_bbp_include_root" type="checkbox" id="_bbp_include_root" value="1" <?php checked( get_option( '_bbp_include_root', true ) ); ?> />
283
  <label for="_bbp_include_root"><?php _e( 'Incude the Forum Base slug in your single forum item links', 'bbpress' ); ?></label>
284
 
285
  <?php
298
  <input name="_bbp_forum_slug" type="text" id="_bbp_forum_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_forum_slug', 'forum', true ); ?>" />
299
 
300
  <?php
301
+ // Slug Check
302
+ bbp_form_slug_conflict_check( '_bbp_forum_slug', 'forum' );
303
  }
304
 
305
  /**
315
  <input name="_bbp_topic_slug" type="text" id="_bbp_topic_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_slug', 'topic', true ); ?>" />
316
 
317
  <?php
318
+ // Slug Check
319
+ bbp_form_slug_conflict_check( '_bbp_topic_slug', 'topic' );
320
  }
321
 
322
  /**
332
  <input name="_bbp_reply_slug" type="text" id="_bbp_reply_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_reply_slug', 'reply', true ); ?>" />
333
 
334
  <?php
335
+ // Slug Check
336
+ bbp_form_slug_conflict_check( '_bbp_reply_slug', 'reply' );
337
  }
338
 
339
  /**
346
  function bbp_admin_setting_callback_topic_tag_slug() {
347
  ?>
348
 
349
+ <input name="_bbp_topic_tag_slug" type="text" id="_bbp_topic_tag_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_topic_tag_slug', 'topic-tag', true ); ?>" />
350
 
351
  <?php
352
+
353
+ // Slug Check
354
+ bbp_form_slug_conflict_check( '_bbp_topic_tag_slug', 'topic-tag' );
355
  }
356
 
357
  /** Other Slugs ***************************************************************/
369
  <input name="_bbp_user_slug" type="text" id="_bbp_user_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_user_slug', 'users', true ); ?>" />
370
 
371
  <?php
372
+ // Slug Check
373
+ bbp_form_slug_conflict_check( '_bbp_user_slug', 'users' );
374
  }
375
 
376
  /**
386
  <input name="_bbp_view_slug" type="text" id="_bbp_view_slug" class="regular-text code" value="<?php bbp_form_option( '_bbp_view_slug', 'view', true ); ?>" />
387
 
388
  <?php
389
+ // Slug Check
390
+ bbp_form_slug_conflict_check( '_bbp_view_slug', 'view' );
391
  }
392
 
393
  /** Settings Page *************************************************************/
504
  else
505
  $value = esc_attr( $value );
506
 
507
+ // Fallback to default
508
+ if ( empty( $value ) )
509
+ $value = $default;
510
+
511
  // Allow plugins to further filter the output
512
  return apply_filters( 'bbp_get_form_option', $value, $option );
513
  }
514
 
515
+ /**
516
+ * Used to check if a bbPress slug conflicts with an existing known slug.
517
+ *
518
+ * @since bbPress (r3306)
519
+ *
520
+ * @param string $slug
521
+ * @param string $default
522
+ *
523
+ * @uses bbp_get_form_option() To get a sanitized slug string
524
+ */
525
+ function bbp_form_slug_conflict_check( $slug, $default ) {
526
+
527
+ // Get the form value
528
+ $this_slug = bbp_get_form_option( $slug, $default, true );
529
+
530
+ // Slugs to check
531
+ $core_slugs = apply_filters( 'bbp_slug_conflict_check', array(
532
+
533
+ /** WordPress Core ****************************************************/
534
+
535
+ // Core Post Types
536
+ 'post_base' => array( 'name' => __( 'Posts' ), 'default' => 'post' ),
537
+ 'page_base' => array( 'name' => __( 'Pages' ), 'default' => 'page' ),
538
+ 'revision_base' => array( 'name' => __( 'Revisions' ), 'default' => 'revision' ),
539
+ 'attachment_base' => array( 'name' => __( 'Attachments' ), 'default' => 'attachment' ),
540
+ 'nav_menu_base' => array( 'name' => __( 'Menus' ), 'default' => 'nav_menu_item' ),
541
+
542
+ // Post Tags
543
+ 'tag_base' => array( 'name' => __( 'Tag base' ), 'default' => 'tag' ),
544
+
545
+ // Post Categories
546
+ 'category_base' => array( 'name' => __( 'Category base' ), 'default' => 'category' ),
547
+
548
+ /** bbPress Core ******************************************************/
549
+
550
+ // Forum archive slug
551
+ '_bbp_root_slug' => array( 'name' => __( 'Forums base', 'bbpress' ), 'default' => 'forums' ),
552
+
553
+ // Topic archive slug
554
+ '_bbp_topic_archive_slug' => array( 'name' => __( 'Topics base', 'bbpress' ), 'default' => 'topics' ),
555
+
556
+ // Forum slug
557
+ '_bbp_forum_slug' => array( 'name' => __( 'Forum slug', 'bbpress' ), 'default' => 'forum' ),
558
+
559
+ // Topic slug
560
+ '_bbp_topic_slug' => array( 'name' => __( 'Topic slug', 'bbpress' ), 'default' => 'topic' ),
561
+
562
+ // Reply slug
563
+ '_bbp_reply_slug' => array( 'name' => __( 'Reply slug', 'bbpress' ), 'default' => 'reply' ),
564
+
565
+ // User profile slug
566
+ '_bbp_user_slug' => array( 'name' => __( 'User base', 'bbpress' ), 'default' => 'users' ),
567
+
568
+ // View slug
569
+ '_bbp_view_slug' => array( 'name' => __( 'View base', 'bbpress' ), 'default' => 'view' ),
570
+
571
+ // Topic tag slug
572
+ '_bbp_topic_tag_slug' => array( 'name' => __( 'Topic tag slug', 'bbpress' ), 'default' => 'topic-tag' ),
573
+ ) );
574
+
575
+ // Loop through slugs to check
576
+ foreach( $core_slugs as $key => $value ) {
577
+
578
+ // Get the slug
579
+ $slug_check = bbp_get_form_option( $key, $value['default'], true );
580
+
581
+ // Compare
582
+ if ( ( $slug != $key ) && ( $slug_check == $this_slug ) ) : ?>
583
+
584
+ <span class="attention"><?php printf( __( 'Possible "%s" conflict', 'bbpress' ), $value['name'] ); ?></span>
585
+
586
+ <?php endif;
587
+ }
588
+ }
589
+
590
  ?>
bbp-admin/bbp-tools.php CHANGED
@@ -52,6 +52,8 @@ function bbp_admin_tools() {
52
 
53
  <h2><?php _e( 'bbPress Recount', 'bbpress' ) ?></h2>
54
 
 
 
55
  <p><?php _e( 'bbPress keeps a running count of things like replies to each topic and topics in each forum. In rare occasions these counts can fall out of sync. Using this form you can have bbPress manually recount these items.', 'bbpress' ); ?></p>
56
  <p><?php _e( 'You can also use this form to clean out stale items like empty tags.', 'bbpress' ); ?></p>
57
 
52
 
53
  <h2><?php _e( 'bbPress Recount', 'bbpress' ) ?></h2>
54
 
55
+ <?php do_action( 'admin_notices' ); ?>
56
+
57
  <p><?php _e( 'bbPress keeps a running count of things like replies to each topic and topics in each forum. In rare occasions these counts can fall out of sync. Using this form you can have bbPress manually recount these items.', 'bbpress' ); ?></p>
58
  <p><?php _e( 'You can also use this form to clean out stale items like empty tags.', 'bbpress' ); ?></p>
59
 
bbp-admin/bbp-topics.php CHANGED
@@ -119,8 +119,8 @@ class BBP_Topics_Admin {
119
  */
120
  function _setup_help() {
121
 
122
- // Prevent debug notices
123
- $contextual_help = '';
124
 
125
  /** New/Edit **********************************************************/
126
 
@@ -254,20 +254,28 @@ class BBP_Topics_Admin {
254
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
255
  return $topic_id;
256
 
 
 
 
 
 
 
 
 
257
  // Bail if current user cannot edit this topic
258
  if ( !current_user_can( 'edit_topic', $topic_id ) )
259
  return $topic_id;
260
 
261
- // Load the topic
262
- if ( !$topic = bbp_get_topic( $topic_id ) )
263
- return $topic_id;
264
 
265
- // OK, we're authenticated: we need to find and save the data
266
- $parent_id = isset( $topic->parent_id ) ? $topic->parent_id : 0;
267
 
268
- do_action( 'bbp_topic_attributes_metabox_save', $topic_id, $parent_id );
 
269
 
270
- return $parent_id;
271
  }
272
 
273
  /**
@@ -329,6 +337,10 @@ class BBP_Topics_Admin {
329
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
330
  return $post_id;
331
 
 
 
 
 
332
  // Bail if post_type is not a topic or reply
333
  if ( get_post_type( $post_id ) != $this->post_type )
334
  return;
@@ -640,19 +652,14 @@ class BBP_Topics_Admin {
640
 
641
  // Output forum name
642
  if ( !empty( $forum_id ) ) {
643
- bbp_forum_title( $forum_id );
644
-
645
- // Link information
646
- $actions = apply_filters( 'topic_forum_row_actions', array (
647
- 'edit' => '<a href="' . add_query_arg( array( 'post' => $forum_id, 'action' => 'edit' ), admin_url( '/post.php' ) ) . '">' . __( 'Edit', 'bbpress' ) . '</a>',
648
- 'view' => '<a href="' . bbp_get_forum_permalink( $forum_id ) . '">' . __( 'View', 'bbpress' ) . '</a>'
649
- ) );
650
 
651
- // Output forum post row links
652
- foreach ( $actions as $action => $link )
653
- $formatted_actions[] = '<span class="' . $action . '">' . $link . '</span>';
654
 
655
- echo '<div class="row-actions">' . implode( ' | ', $formatted_actions ) . '</div>';
656
  } else {
657
  _e( '(No Forum)', 'bbpress' );
658
  }
@@ -732,8 +739,6 @@ class BBP_Topics_Admin {
732
  if ( $topic->post_type == $this->post_type ) {
733
  unset( $actions['inline hide-if-no-js'] );
734
 
735
- bbp_topic_content( $topic->ID );
736
-
737
  // Show view link if it's not set, the topic is trashed and the user can view trashed topics
738
  if ( empty( $actions['view'] ) && 'trash' == $topic->post_status && current_user_can( 'view_trash' ) )
739
  $actions['view'] = '<a href="' . bbp_get_topic_permalink( $topic->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'bbpress' ), bbp_get_topic_title( $topic->ID ) ) ) . '" rel="permalink">' . __( 'View', 'bbpress' ) . '</a>';
@@ -751,13 +756,17 @@ class BBP_Topics_Admin {
751
  $actions['closed'] = '<a href="' . $close_uri . '" title="' . esc_attr__( 'Open this topic', 'bbpress' ) . '">' . __( 'Open', 'bbpress' ) . '</a>';
752
  }
753
 
754
- // Sticky
755
- $stick_uri = esc_url( wp_nonce_url( add_query_arg( array( 'topic_id' => $topic->ID, 'action' => 'bbp_toggle_topic_stick' ), remove_query_arg( array( 'bbp_topic_toggle_notice', 'topic_id', 'failed', 'super' ) ) ), 'stick-topic_' . $topic->ID ) );
756
- if ( bbp_is_topic_sticky( $topic->ID ) ) {
757
- $actions['stick'] = '<a href="' . $stick_uri . '" title="' . esc_attr__( 'Unstick this topic', 'bbpress' ) . '">' . __( 'Unstick', 'bbpress' ) . '</a>';
758
- } else {
759
- $super_uri = esc_url( wp_nonce_url( add_query_arg( array( 'topic_id' => $topic->ID, 'action' => 'bbp_toggle_topic_stick', 'super' => '1' ), remove_query_arg( array( 'bbp_topic_toggle_notice', 'topic_id', 'failed', 'super' ) ) ), 'stick-topic_' . $topic->ID ) );
760
- $actions['stick'] = '<a href="' . $stick_uri . '" title="' . esc_attr__( 'Stick this topic to its forum', 'bbpress' ) . '">' . __( 'Stick', 'bbpress' ) . '</a> (<a href="' . $super_uri . '" title="' . esc_attr__( 'Stick this topic to front', 'bbpress' ) . '">' . __( 'to front', 'bbpress' ) . '</a>)';
 
 
 
 
761
  }
762
 
763
  // Spam
@@ -811,6 +820,13 @@ class BBP_Topics_Admin {
811
  )
812
  return;
813
 
 
 
 
 
 
 
 
814
  // Get which forum is selected
815
  $selected = !empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : '';
816
 
119
  */
120
  function _setup_help() {
121
 
122
+ // Define local variable(s)
123
+ $contextual_help = array();
124
 
125
  /** New/Edit **********************************************************/
126
 
254
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
255
  return $topic_id;
256
 
257
+ // Bail if not a post request
258
+ if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
259
+ return $topic_id;
260
+
261
+ // Bail if post_type is not a topic
262
+ if ( get_post_type( $topic_id ) != $this->post_type )
263
+ return;
264
+
265
  // Bail if current user cannot edit this topic
266
  if ( !current_user_can( 'edit_topic', $topic_id ) )
267
  return $topic_id;
268
 
269
+ // Get the forum ID
270
+ $forum_id = !empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0;
 
271
 
272
+ // Formally update the topic
273
+ bbp_update_topic( $topic_id, $forum_id );
274
 
275
+ // Allow other fun things to happen
276
+ do_action( 'bbp_topic_attributes_metabox_save', $topic_id, $forum_id );
277
 
278
+ return $topic_id;
279
  }
280
 
281
  /**
337
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
338
  return $post_id;
339
 
340
+ // Bail if not a post request
341
+ if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
342
+ return $post_id;
343
+
344
  // Bail if post_type is not a topic or reply
345
  if ( get_post_type( $post_id ) != $this->post_type )
346
  return;
652
 
653
  // Output forum name
654
  if ( !empty( $forum_id ) ) {
655
+
656
+ // Forum Title
657
+ if ( !$forum_title = bbp_get_forum_title( $forum_id ) )
658
+ $forum_title = __( 'No Forum', 'bbpress' );
 
 
 
659
 
660
+ // Output the title
661
+ echo $forum_title;
 
662
 
 
663
  } else {
664
  _e( '(No Forum)', 'bbpress' );
665
  }
739
  if ( $topic->post_type == $this->post_type ) {
740
  unset( $actions['inline hide-if-no-js'] );
741
 
 
 
742
  // Show view link if it's not set, the topic is trashed and the user can view trashed topics
743
  if ( empty( $actions['view'] ) && 'trash' == $topic->post_status && current_user_can( 'view_trash' ) )
744
  $actions['view'] = '<a href="' . bbp_get_topic_permalink( $topic->ID ) . '" title="' . esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'bbpress' ), bbp_get_topic_title( $topic->ID ) ) ) . '" rel="permalink">' . __( 'View', 'bbpress' ) . '</a>';
756
  $actions['closed'] = '<a href="' . $close_uri . '" title="' . esc_attr__( 'Open this topic', 'bbpress' ) . '">' . __( 'Open', 'bbpress' ) . '</a>';
757
  }
758
 
759
+ // Dont show sticky if topic links is spam or trash
760
+ if ( !bbp_is_topic_spam( $topic->ID ) && !bbp_is_topic_trash( $topic->ID ) ) {
761
+
762
+ // Sticky
763
+ $stick_uri = esc_url( wp_nonce_url( add_query_arg( array( 'topic_id' => $topic->ID, 'action' => 'bbp_toggle_topic_stick' ), remove_query_arg( array( 'bbp_topic_toggle_notice', 'topic_id', 'failed', 'super' ) ) ), 'stick-topic_' . $topic->ID ) );
764
+ if ( bbp_is_topic_sticky( $topic->ID ) ) {
765
+ $actions['stick'] = '<a href="' . $stick_uri . '" title="' . esc_attr__( 'Unstick this topic', 'bbpress' ) . '">' . __( 'Unstick', 'bbpress' ) . '</a>';
766
+ } else {
767
+ $super_uri = esc_url( wp_nonce_url( add_query_arg( array( 'topic_id' => $topic->ID, 'action' => 'bbp_toggle_topic_stick', 'super' => '1' ), remove_query_arg( array( 'bbp_topic_toggle_notice', 'topic_id', 'failed', 'super' ) ) ), 'stick-topic_' . $topic->ID ) );
768
+ $actions['stick'] = '<a href="' . $stick_uri . '" title="' . esc_attr__( 'Stick this topic to its forum', 'bbpress' ) . '">' . __( 'Stick', 'bbpress' ) . '</a> (<a href="' . $super_uri . '" title="' . esc_attr__( 'Stick this topic to front', 'bbpress' ) . '">' . __( 'to front', 'bbpress' ) . '</a>)';
769
+ }
770
  }
771
 
772
  // Spam
820
  )
821
  return;
822
 
823
+ // Add Empty Spam button
824
+ if ( !empty( $_GET['post_status'] ) && ( 'spam' == $_GET['post_status'] ) && current_user_can( 'moderate' ) ) {
825
+ wp_nonce_field( 'bulk-destroy', '_destroy_nonce' );
826
+ $title = esc_attr__( 'Empty Spam', 'bbpress' );
827
+ submit_button( $title, 'button-secondary apply', 'delete_all', false );
828
+ }
829
+
830
  // Get which forum is selected
831
  $selected = !empty( $_GET['bbp_forum_id'] ) ? $_GET['bbp_forum_id'] : '';
832
 
bbp-admin/images/index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
bbp-admin/importers/bbpress.php CHANGED
@@ -640,10 +640,10 @@ class bbPress_Importer {
640
 
641
  <?php endif; ?>
642
 
643
- <input type="radio" name="step"<?php disabled( $this->is_integrated() ); ?> value="2"<?php checked( $radio, 'user' ); ?> id="step_user" />
644
  <label for="step_user"><?php _e( 'Migrate Users', 'bbpress' ); ?></label>
645
 
646
- <input type="radio" name="step" value="3"<?php checked( $radio, 'board' ); ?> id="step_board" />
647
  <label for="step_board"><?php _e( 'Import Forums, Topics & Posts', 'bbpress' ); ?></label>
648
 
649
  <p class="submit">
640
 
641
  <?php endif; ?>
642
 
643
+ <input type="radio" name="step"<?php disabled( $this->is_integrated() ); ?> value="2"<?php checked( 'user', $radio ); ?> id="step_user" />
644
  <label for="step_user"><?php _e( 'Migrate Users', 'bbpress' ); ?></label>
645
 
646
+ <input type="radio" name="step" value="3"<?php checked( 'board', $radio ); ?> id="step_board" />
647
  <label for="step_board"><?php _e( 'Import Forums, Topics & Posts', 'bbpress' ); ?></label>
648
 
649
  <p class="submit">
bbp-admin/importers/index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
bbp-admin/index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
bbp-admin/styles/index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
bbp-includes/{bbp-general-functions.php → bbp-common-functions.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * bbPress General Functions
5
  *
6
  * @package bbPress
7
  * @subpackage Functions
@@ -830,7 +830,7 @@ function bbp_notify_subscribers( $reply_id = 0 ) {
830
  wp_mail(
831
  $user->user_email,
832
  apply_filters( 'bbp_subscription_mail_title', '[' . get_option( 'blogname' ) . '] ' . $topic->post_title, $reply->ID, $topic->ID ),
833
- sprintf( $message, $poster_name, strip_tags( $reply->post_content ), bbp_get_reply_permalink( $reply->ID ) )
834
  );
835
  }
836
 
@@ -842,9 +842,7 @@ function bbp_notify_subscribers( $reply_id = 0 ) {
842
  /** Login *********************************************************************/
843
 
844
  /**
845
- * Change the logout URL to /login and add smart redirect
846
- *
847
- * This assumes that your login page is 'domain.com/login'
848
  *
849
  * @param string $url URL
850
  * @param string $redirect_to Where to redirect to?
@@ -872,6 +870,68 @@ function bbp_logout_url( $url = '', $redirect_to = '' ) {
872
 
873
  /** Queries *******************************************************************/
874
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875
  /**
876
  * Adds ability to include or exclude specific post_parent ID's
877
  *
@@ -883,13 +943,17 @@ function bbp_logout_url( $url = '', $redirect_to = '' ) {
883
  * @param WP_Query $object
884
  * @return string
885
  */
886
- function bbp_query_post_parent__in( $where, $object ) {
887
  global $wpdb, $wp;
888
 
889
  // Noop if WP core supports this already
890
  if ( in_array( 'post_parent__in', $wp->private_query_vars ) )
891
  return $where;
892
 
 
 
 
 
893
  // Only 1 post_parent so return $where
894
  if ( is_numeric( $object->query_vars['post_parent'] ) )
895
  return $where;
@@ -908,7 +972,7 @@ function bbp_query_post_parent__in( $where, $object ) {
908
  // Return possibly modified $where
909
  return $where;
910
  }
911
- add_filter( 'posts_where', 'bbp_query_post_parent__in', 10, 2 );
912
 
913
  /**
914
  * Query the DB and get the last public post_id that has parent_id as post_parent
1
  <?php
2
 
3
  /**
4
+ * bbPress Common Functions
5
  *
6
  * @package bbPress
7
  * @subpackage Functions
830
  wp_mail(
831
  $user->user_email,
832
  apply_filters( 'bbp_subscription_mail_title', '[' . get_option( 'blogname' ) . '] ' . $topic->post_title, $reply->ID, $topic->ID ),
833
+ sprintf( $message, $poster_name, strip_tags( $reply->post_content ), bbp_get_reply_url( $reply->ID ) )
834
  );
835
  }
836
 
842
  /** Login *********************************************************************/
843
 
844
  /**
845
+ * Return a clean and reliable logout URL
 
 
846
  *
847
  * @param string $url URL
848
  * @param string $redirect_to Where to redirect to?
870
 
871
  /** Queries *******************************************************************/
872
 
873
+ /**
874
+ * Adjusts topic and reply queries to exclude items that might be contained
875
+ * inside hidden or private forums that the user does not have the capability
876
+ * to view.
877
+ *
878
+ * @since bbPress (r3291)
879
+ *
880
+ * @param WP_Query $posts_query
881
+ *
882
+ * @uses apply_filters()
883
+ * @uses bbp_exclude_forum_ids()
884
+ * @uses bbp_get_topic_post_type()
885
+ * @uses bbp_get_reply_post_type()
886
+
887
+ * @return WP_Query
888
+ */
889
+ function bbp_pre_get_posts_exclude_forums( $posts_query ) {
890
+
891
+ // Bail if all forums are explicitly allowed
892
+ if ( true === apply_filters( 'bbp_include_all_forums', $posts_query ) )
893
+ return $posts_query;
894
+
895
+ // Bail if $posts_query is not an object or of incorrect class
896
+ if ( !is_object( $posts_query ) || ( 'WP_Query' != get_class( $posts_query ) ) )
897
+ return $posts_query;
898
+
899
+ // Bail if filters are suppressed on this query
900
+ if ( true == $posts_query->get( 'suppress_filters' ) )
901
+ return $posts_query;
902
+
903
+ // There are forums that need to be excluded
904
+ if ( $forum_ids = bbp_exclude_forum_ids( 'meta_query' ) ) {
905
+
906
+ // Only exclude forums on bbPress queries
907
+ switch ( $posts_query->get( 'post_type' ) ) {
908
+
909
+ // Topics
910
+ case bbp_get_topic_post_type() :
911
+
912
+ // Replies
913
+ case bbp_get_reply_post_type() :
914
+
915
+ // Topics and replies
916
+ case array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ) :
917
+
918
+ // Get any existing meta queries
919
+ $meta_query = $posts_query->get( 'meta_query' );
920
+
921
+ // Add our meta query to existing
922
+ $meta_query[] = $forum_ids;
923
+
924
+ // Set the meta_query var
925
+ $posts_query->set( 'meta_query', $meta_query );
926
+
927
+ break;
928
+ }
929
+ }
930
+
931
+ // Return possibly adjusted query
932
+ return $posts_query;
933
+ }
934
+
935
  /**
936
  * Adds ability to include or exclude specific post_parent ID's
937
  *
943
  * @param WP_Query $object
944
  * @return string
945
  */
946
+ function bbp_query_post_parent__in( $where, $object = '' ) {
947
  global $wpdb, $wp;
948
 
949
  // Noop if WP core supports this already
950
  if ( in_array( 'post_parent__in', $wp->private_query_vars ) )
951
  return $where;
952
 
953
+ // Bail if no object passed
954
+ if ( empty( $object ) )
955
+ return $where;
956
+
957
  // Only 1 post_parent so return $where
958
  if ( is_numeric( $object->query_vars['post_parent'] ) )
959
  return $where;
972
  // Return possibly modified $where
973
  return $where;
974
  }
975
+ //add_filter( 'posts_where', 'bbp_query_post_parent__in', 10, 2 );
976
 
977
  /**
978
  * Query the DB and get the last public post_id that has parent_id as post_parent
bbp-includes/{bbp-general-template.php → bbp-common-template.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * bbPress General Template Tags
5
  *
6
  * @package bbPress
7
  * @subpackage TemplateTags
@@ -70,6 +70,29 @@ function bbp_is_forum( $post_id = 0 ) {
70
  return false;
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  /**
74
  * Check if current page is a bbPress topic
75
  *
@@ -106,6 +129,29 @@ function bbp_is_topic( $post_id = 0 ) {
106
  return false;
107
  }
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  /**
110
  * Check if current page is a topic edit page
111
  *
@@ -155,6 +201,54 @@ function bbp_is_topic_split() {
155
  return false;
156
  }
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  /**
159
  * Check if current page is a bbPress reply
160
  *
@@ -213,22 +307,14 @@ function bbp_is_reply_edit() {
213
  *
214
  * @since bbPress (r2652)
215
  *
216
- * @param bool $query_name_check Optional. Check the query name
217
- * (_bbp_query_name query var), if it is
218
- * 'bbp_user_profile_favorites' or not. Defaults
219
- * to true.
220
- * @uses bbp_is_user_profile_page() To check if it's the user profile page
221
  * @uses bbp_get_query_name() To get the query name
222
  * @return bool True if it's the favorites page, false if not
223
  */
224
- function bbp_is_favorites( $query_name_check = true ) {
225
- if ( !bbp_is_user_profile_page() )
226
- return false;
227
 
228
- if ( !empty( $query_name_check ) && ( !bbp_is_query_name( 'bbp_user_profile_favorites' ) ) )
229
- return false;
230
 
231
- return true;
232
  }
233
 
234
  /**
@@ -236,22 +322,14 @@ function bbp_is_favorites( $query_name_check = true ) {
236
  *
237
  * @since bbPress (r2652)
238
  *
239
- * @param bool $query_name_check Optional. Check the query name
240
- * (_bbp_query_name query var), if it is
241
- * 'bbp_user_profile_favorites' or not. Defaults
242
- * to true.
243
- * @uses bbp_is_user_profile_page() To check if it's the user profile page
244
  * @uses bbp_get_query_name() To get the query name
245
  * @return bool True if it's the subscriptions page, false if not
246
  */
247
- function bbp_is_subscriptions( $query_name_check = true ) {
248
- if ( !bbp_is_user_profile_page() )
249
- return false;
250
 
251
- if ( !empty( $query_name_check ) && ( !bbp_is_query_name( 'bbp_user_profile_subscriptions' ) ) )
252
- return false;
253
 
254
- return true;
255
  }
256
 
257
  /**
@@ -260,22 +338,14 @@ function bbp_is_subscriptions( $query_name_check = true ) {
260
  *
261
  * @since bbPress (r2688)
262
  *
263
- * @param bool $query_name_check Optional. Check the query name
264
- * (_bbp_query_name query var), if it is
265
- * 'bbp_user_profile_favorites' or not. Defaults
266
- * to true.
267
- * @uses bbp_is_user_profile_page() To check if it's the user profile page
268
  * @uses bbp_get_query_name() To get the query name
269
  * @return bool True if it's the topics created page, false if not
270
  */
271
- function bbp_is_topics_created( $query_name_check = true ) {
272
- if ( !bbp_is_user_profile_page() )
273
- return false;
274
 
275
- if ( !empty( $query_name_check ) && ( !bbp_is_query_name( 'bbp_user_profile_topics_created' ) ) )
276
- return false;
277
 
278
- return true;
279
  }
280
 
281
  /**
@@ -291,10 +361,10 @@ function bbp_is_topics_created( $query_name_check = true ) {
291
  function bbp_is_user_home() {
292
  global $bbp;
293
 
294
- if ( !isset( $bbp->displayed_user ) )
295
  return false;
296
 
297
- return $bbp->current_user->ID == $bbp->displayed_user->ID;
298
  }
299
 
300
  /**
@@ -302,13 +372,13 @@ function bbp_is_user_home() {
302
  *
303
  * @since bbPress (r2688)
304
  *
305
- * @uses WP_Query Checks if WP_Query::bbp_is_user_profile_page is set to true
306
  * @return bool True if it's a user's profile page, false if not
307
  */
308
- function bbp_is_user_profile_page() {
309
  global $wp_query;
310
 
311
- if ( !empty( $wp_query->bbp_is_user_profile_page ) && ( true == $wp_query->bbp_is_user_profile_page ) )
312
  return true;
313
 
314
  return false;
@@ -319,13 +389,13 @@ function bbp_is_user_profile_page() {
319
  *
320
  * @since bbPress (r2688)
321
  *
322
- * @uses WP_Query Checks if WP_Query::bbp_is_user_profile_edit is set to true
323
  * @return bool True if it's a user's profile edit page, false if not
324
  */
325
- function bbp_is_user_profile_edit() {
326
  global $wp_query;
327
 
328
- if ( !empty( $wp_query->bbp_is_user_profile_edit ) && ( true == $wp_query->bbp_is_user_profile_edit ) )
329
  return true;
330
 
331
  return false;
@@ -339,7 +409,7 @@ function bbp_is_user_profile_edit() {
339
  * @uses WP_Query Checks if WP_Query::bbp_is_view is true
340
  * @return bool Is it a view page?
341
  */
342
- function bbp_is_view() {
343
  global $wp_query;
344
 
345
  if ( !empty( $wp_query->bbp_is_view ) && ( true == $wp_query->bbp_is_view ) )
@@ -363,9 +433,9 @@ function bbp_is_view() {
363
  * @uses bbp_is_reply()
364
  * @uses bbp_is_reply_edit()
365
  * @uses bbp_is_reply_edit()
366
- * @uses bbp_is_view()
367
- * @uses bbp_is_user_profile_edit()
368
- * @uses bbp_is_user_profile_page()
369
  * @uses bbp_is_user_home()
370
  * @uses bbp_is_subscriptions()
371
  * @uses bbp_is_favorites()
@@ -376,7 +446,15 @@ function bbp_body_class( $wp_classes, $custom_classes = false ) {
376
 
377
  $bbp_classes = array();
378
 
379
- /** Components ********************************************************/
 
 
 
 
 
 
 
 
380
 
381
  if ( bbp_is_forum() )
382
  $bbp_classes[] = bbp_get_forum_post_type();
@@ -399,18 +477,18 @@ function bbp_body_class( $wp_classes, $custom_classes = false ) {
399
  if ( bbp_is_reply_edit() )
400
  $bbp_classes[] = bbp_get_reply_post_type() . '-edit';
401
 
402
- if ( bbp_is_view() )
403
  $bbp_classes[] = 'bbp-view';
404
 
405
- /** User **************************************************************/
406
 
407
- if ( bbp_is_user_profile_edit() ) {
408
  $bbp_classes[] = 'bbp-user-edit';
409
  $bbp_classes[] = 'single';
410
  $bbp_classes[] = 'singular';
411
  }
412
 
413
- if ( bbp_is_user_profile_page() ) {
414
  $bbp_classes[] = 'bbp-user-page';
415
  $bbp_classes[] = 'single';
416
  $bbp_classes[] = 'singular';
@@ -440,7 +518,7 @@ function bbp_body_class( $wp_classes, $custom_classes = false ) {
440
  $bbp_classes[] = 'singular';
441
  }
442
 
443
- /** Clean up **********************************************************/
444
 
445
  // Add bbPress class if we are within a bbPress page
446
  if ( !empty( $bbp_classes ) )
@@ -499,17 +577,21 @@ function bbp_wp_login_action( $args = '' ) {
499
  * @uses apply_filters() Calls 'bbp_redirect_to_field' with the referer field
500
  * and url
501
  */
502
- function bbp_redirect_to_field( $url = '' ) {
503
- // If no URL is passed, try to get the referer and then the request uri
504
- if ( empty( $url ) && ( !$url = wp_get_referer() ) && ( !empty( $_SERVER['REQUEST_URI'] ) ) )
505
- $url = $_SERVER['REQUEST_URI'];
506
 
507
- // Remove loggedout query arg if it's there
508
- $url = (string) esc_attr( remove_query_arg( 'loggedout', $url ) );
 
509
 
510
- $referer_field = '<input type="hidden" name="redirect_to" value="' . $url . '" />';
 
 
 
 
 
 
511
 
512
- echo apply_filters( 'bbp_redirect_to_field', $referer_field, $url );
513
  }
514
 
515
  /**
@@ -722,10 +804,6 @@ function bbp_dropdown( $args = '' ) {
722
  // Hidden forums
723
  if ( current_user_can( 'read_hidden_forums' ) )
724
  $post_stati[] = $bbp->hidden_status_id;
725
-
726
- // Topics
727
- } else {
728
- $r = bbp_exclude_forum_ids( $r );
729
  }
730
 
731
  // Setup the post statuses
@@ -844,7 +922,7 @@ function bbp_reply_form_fields() {
844
 
845
  if ( bbp_is_reply_edit() ) { ?>
846
 
847
- <input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" />
848
  <input type="hidden" name="bbp_reply_id" id="bbp_reply_id" value="<?php bbp_reply_id(); ?>" />
849
  <input type="hidden" name="action" id="bbp_post_action" value="bbp-edit-reply" />
850
 
@@ -861,7 +939,7 @@ function bbp_reply_form_fields() {
861
 
862
  ?>
863
 
864
- <input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" />
865
  <input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="<?php bbp_forum_id(); ?>" />
866
  <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="<?php bbp_topic_id(); ?>" />
867
  <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply" />
@@ -873,7 +951,17 @@ function bbp_reply_form_fields() {
873
 
874
  ?>
875
 
876
- <?php wp_nonce_field( 'bbp-new-reply' );
 
 
 
 
 
 
 
 
 
 
877
  }
878
  }
879
 
@@ -1162,75 +1250,185 @@ function bbp_breadcrumb( $args = array() ) {
1162
  global $bbp;
1163
 
1164
  // Turn off breadcrumbs
1165
- if ( apply_filters( 'bbp_no_breadcrumb', false ) )
1166
  return;
1167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1168
  // Parse args
1169
  $defaults = array(
1170
 
1171
  // HTML
1172
  'before' => '<div class="bbp-breadcrumb"><p>',
1173
  'after' => '</p></div>',
1174
- 'sep' => is_rtl() ? ' &lsaquo; ' : ' &rsaquo; ',
 
1175
 
1176
  // Home
1177
- 'include_home' => true,
1178
- 'home_text' => ( $front = get_option( 'page_on_front' ) ) ? get_the_title( $front ) : __( 'Home' ),
1179
 
1180
  // Forum root
1181
- 'include_root' => get_option( '_bbp_include_root' ),
1182
- 'root_text' => ( $page = get_page_by_path( $bbp->root_slug ) ) ? get_the_title( $page->ID ) : __( 'Forums', 'bbpress' ),
1183
 
1184
  // Current
1185
- 'include_current' => true,
 
1186
  );
1187
- $r = wp_parse_args( $args, $defaults );
1188
  extract( $r );
1189
 
 
 
1190
  // Get post ancestors
1191
- $ancestors = array_reverse( get_post_ancestors( get_the_ID() ) );
 
1192
 
1193
  // Do we want to include a link to home?
1194
- if ( !empty( $include_home ) )
1195
  $breadcrumbs[] = '<a href="' . trailingslashit( home_url() ) . '" class="bbp-breadcrumb-home">' . $home_text . '</a>';
1196
 
1197
  // Do we want to include a link to the forum root?
1198
- if ( !empty( $include_root ) && ( !empty( $page ) && ( $front != $page->ID ) ) )
1199
- $breadcrumbs[] = '<a href="' . trailingslashit( home_url( $bbp->root_slug ) ) . '" class="bbp-breadcrumb-root">' . $root_text . '</a>';
1200
-
1201
- // Loop through parents
1202
- foreach( $ancestors as $parent_id ) {
1203
-
1204
- // Parents
1205
- $parent = get_post( $parent_id );
1206
-
1207
- // Switch through post_type to ensure correct filters are applied
1208
- switch ( $parent->post_type ) {
1209
- // Forum
1210
- case bbp_get_forum_post_type() :
1211
- $breadcrumbs[] = '<a href="' . bbp_get_forum_permalink( $parent->ID ) . '">' . bbp_get_forum_title( $parent->ID ) . '</a>';
1212
- break;
1213
-
1214
- // Topic
1215
- case bbp_get_topic_post_type() :
1216
- $breadcrumbs[] = '<a href="' . bbp_get_topic_permalink( $parent->ID ) . '">' . bbp_get_topic_title( $parent->ID ) . '</a>';
1217
- break;
1218
 
1219
- // Reply (Note: not in most themes)
1220
- case bbp_get_reply_post_type() :
1221
- $breadcrumbs[] = '<a href="' . bbp_get_reply_permalink( $parent->ID ) . '">' . bbp_get_reply_title( $parent->ID ) . '</a>';
1222
- break;
1223
 
1224
- // WordPress Post/Page/Other
1225
- default :
1226
- $breadcrumbs[] = '<a href="' . get_permalink( $parent->ID ) . '">' . get_the_title( $parent->ID ) . '</a>';
1227
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1228
  }
1229
  }
1230
 
 
 
1231
  // Add current page to breadcrumb
1232
- if ( true == $include_current )
1233
- $breadcrumbs[] = '<span class="bbp-breadcrumb-current">' . get_the_title() . '</span>';
 
 
 
 
 
 
1234
 
1235
  // Allow the separator of the breadcrumb to be easily changed
1236
  $sep = apply_filters( 'bbp_breadcrumb_separator', $sep );
@@ -1242,7 +1440,7 @@ function bbp_breadcrumb( $args = array() ) {
1242
  // Build the trail
1243
  $trail = !empty( $breadcrumbs ) ? $before . implode( $sep, $breadcrumbs ) . $after: '';
1244
 
1245
- return apply_filters( 'bbp_get_breadcrumb', $trail );
1246
  }
1247
 
1248
  /** Topic Tags ***************************************************************/
@@ -1296,7 +1494,7 @@ function bbp_template_notices() {
1296
  if ( !isset( $bbp->errors ) || !is_wp_error( $bbp->errors ) || !$bbp->errors->get_error_codes() )
1297
  return;
1298
 
1299
- // Prevent debug notices
1300
  $errors = $messages = array();
1301
 
1302
  // Loop through notices
@@ -1377,8 +1575,8 @@ function bbp_logout_link( $redirect_to = '' ) {
1377
  * @param string $sep Optional, default is '&raquo;'. How to separate the
1378
  * various items within the page title.
1379
  * @param string $seplocation Optional. Direction to display title, 'right'.
1380
- * @uses bbp_is_user_profile_page() To check if it's a user profile page
1381
- * @uses bbp_is_user_profile_edit() To check if it's a user profile edit page
1382
  * @uses bbp_is_user_home() To check if the profile page is of the current user
1383
  * @uses get_query_var() To get the user id
1384
  * @uses get_userdata() To get the user data
@@ -1390,7 +1588,7 @@ function bbp_logout_link( $redirect_to = '' ) {
1390
  * @uses bbp_get_reply_title() To get the reply title
1391
  * @uses is_tax() To check if it's the tag page
1392
  * @uses get_queried_object() To get the queried object
1393
- * @uses bbp_is_view() To check if it's a view
1394
  * @uses bbp_get_view_title() To get the view title
1395
  * @uses apply_filters() Calls 'bbp_raw_title' with the title
1396
  * @uses apply_filters() Calls 'bbp_profile_page_wp_title' with the title,
@@ -1400,61 +1598,77 @@ function bbp_logout_link( $redirect_to = '' ) {
1400
  function bbp_title( $title = '', $sep = '&raquo;', $seplocation = '' ) {
1401
  global $bbp;
1402
 
 
1403
  $_title = $title;
1404
 
1405
- // Profile page
1406
- if ( bbp_is_user_profile_page() ) {
1407
 
1408
- if ( bbp_is_user_home() ) {
1409
- $title = __( 'Your Profile', 'bbpress' );
1410
- } else {
1411
- $userdata = get_userdata( get_query_var( 'bbp_user_id' ) );
1412
- $title = sprintf( __( '%s\'s Profile', 'bbpress' ), $userdata->display_name );
1413
- }
1414
 
1415
- // Profile edit page
1416
- } elseif ( bbp_is_user_profile_edit() ) {
 
1417
 
1418
- if ( bbp_is_user_home() ) {
1419
- $title = __( 'Edit Your Profile', 'bbpress' );
1420
- } else {
1421
- $userdata = get_userdata( get_query_var( 'bbp_user_id' ) );
1422
- $title = sprintf( __( 'Edit %s\'s Profile', 'bbpress' ), $userdata->display_name );
1423
- }
1424
 
1425
  // Forum page
1426
  } elseif ( bbp_is_forum() ) {
1427
-
1428
  $title = sprintf( __( 'Forum: %s', 'bbpress' ), bbp_get_forum_title() );
1429
 
1430
  // Topic page
1431
  } elseif ( bbp_is_topic() ) {
1432
-
1433
  $title = sprintf( __( 'Topic: %s', 'bbpress' ), bbp_get_topic_title() );
1434
 
1435
  // Replies
1436
  } elseif ( bbp_is_reply() ) {
1437
-
1438
- // Normal reply titles already have "Reply To: ", so we shouldn't add our own
1439
  $title = bbp_get_reply_title();
1440
 
1441
  // Topic tag page
1442
  } elseif ( is_tax( $bbp->topic_tag_id ) ) {
 
 
 
 
1443
 
1444
- if ( function_exists( 'get_queried_object' ) ) {
1445
- $term = get_queried_object();
1446
- $title = sprintf( __( 'Topic Tag: %s', 'bbpress' ), $term->name );
 
 
 
 
 
 
 
 
1447
  }
1448
 
1449
- // Views
1450
- } elseif ( bbp_is_view() ) {
1451
 
1452
- $title = sprintf( __( 'View: %s', 'bbpress' ), bbp_get_view_title() );
 
 
 
 
 
 
 
 
1453
 
 
 
 
 
 
1454
  }
1455
 
1456
- $title = apply_filters( 'bbp_raw_title', $title, $sep, $seplocation );
 
1457
 
 
1458
  if ( $title == $_title )
1459
  return $title;
1460
 
@@ -1465,11 +1679,13 @@ function bbp_title( $title = '', $sep = '&raquo;', $seplocation = '' ) {
1465
  if ( !empty( $title ) )
1466
  $prefix = " $sep ";
1467
 
1468
- // Determines position of the separator and direction of the breadcrumb
1469
- if ( 'right' == $seplocation ) { // sep on right, so reverse the order
1470
  $title_array = explode( $t_sep, $title );
1471
  $title_array = array_reverse( $title_array );
1472
  $title = implode( " $sep ", $title_array ) . $prefix;
 
 
1473
  } else {
1474
  $title_array = explode( $t_sep, $title );
1475
  $title = $prefix . implode( " $sep ", $title_array );
1
  <?php
2
 
3
  /**
4
+ * bbPress Common Template Tags
5
  *
6
  * @package bbPress
7
  * @subpackage TemplateTags
70
  return false;
71
  }
72
 
73
+ /**
74
+ * Check if we are viewing a forum archive.
75
+ *
76
+ * @since bbPress (r3251)
77
+ *
78
+ * @uses is_post_type_archive() To check if we are looking at the forum archive
79
+ * @uses bbp_get_forum_post_type() To get the forum post type ID
80
+ *
81
+ * @return bool
82
+ */
83
+ function bbp_is_forum_archive() {
84
+ global $bbp;
85
+
86
+ // Default to false
87
+ $retval = false;
88
+
89
+ // In forum archive
90
+ if ( is_post_type_archive( bbp_get_forum_post_type() ) )
91
+ $retval = true;
92
+
93
+ return apply_filters( 'bbp_is_forum_archive', (bool) $retval );
94
+ }
95
+
96
  /**
97
  * Check if current page is a bbPress topic
98
  *
129
  return false;
130
  }
131
 
132
+ /**
133
+ * Check if we are viewing a topic archive.
134
+ *
135
+ * @since bbPress (r3251)
136
+ *
137
+ * @uses is_post_type_archive() To check if we are looking at the topic archive
138
+ * @uses bbp_get_topic_post_type() To get the topic post type ID
139
+ *
140
+ * @return bool
141
+ */
142
+ function bbp_is_topic_archive() {
143
+ global $bbp;
144
+
145
+ // Default to false
146
+ $retval = false;
147
+
148
+ // In topic archive
149
+ if ( is_post_type_archive( bbp_get_topic_post_type() ) )
150
+ $retval = true;
151
+
152
+ return apply_filters( 'bbp_is_topic_archive', (bool) $retval );
153
+ }
154
+
155
  /**
156
  * Check if current page is a topic edit page
157
  *
201
  return false;
202
  }
203
 
204
+ /**
205
+ * Check if the current page is a topic tag
206
+ *
207
+ * @since bbPress (r3311)
208
+ *
209
+ * @global bbPress $bbp
210
+ * @return bool True if it's a topic tag, false if not
211
+ */
212
+ function bbp_is_topic_tag() {
213
+ global $bbp;
214
+
215
+ if ( is_tax( $bbp->topic_tag_id ) )
216
+ return true;
217
+
218
+ return false;
219
+ }
220
+
221
+ /**
222
+ * Check if the current post type is one of bbPress's
223
+ *
224
+ * @since bbPress (r3311)
225
+ *
226
+ * @uses get_post_type()
227
+ * @uses bbp_get_forum_post_type()
228
+ * @uses bbp_get_topic_post_type()
229
+ * @uses bbp_get_reply_post_type()
230
+ *
231
+ * @return bool
232
+ */
233
+ function bbp_is_custom_post_type() {
234
+
235
+ // Current post type
236
+ $post_type = get_post_type();
237
+
238
+ // bbPress post types
239
+ $bbp_post_types = array(
240
+ bbp_get_forum_post_type(),
241
+ bbp_get_topic_post_type(),
242
+ bbp_get_reply_post_type()
243
+ );
244
+
245
+ // Viewing one of the bbPress post types
246
+ if ( in_array( $post_type, $bbp_post_types ) )
247
+ return true;
248
+
249
+ return false;
250
+ }
251
+
252
  /**
253
  * Check if current page is a bbPress reply
254
  *
307
  *
308
  * @since bbPress (r2652)
309
  *
 
 
 
 
 
310
  * @uses bbp_get_query_name() To get the query name
311
  * @return bool True if it's the favorites page, false if not
312
  */
313
+ function bbp_is_favorites() {
 
 
314
 
315
+ $retval = bbp_is_query_name( 'bbp_user_profile_favorites' );
 
316
 
317
+ return apply_filters( 'bbp_is_favorites', (bool) $retval );
318
  }
319
 
320
  /**
322
  *
323
  * @since bbPress (r2652)
324
  *
 
 
 
 
 
325
  * @uses bbp_get_query_name() To get the query name
326
  * @return bool True if it's the subscriptions page, false if not
327
  */
328
+ function bbp_is_subscriptions() {
 
 
329
 
330
+ $retval = bbp_is_query_name( 'bbp_user_profile_subscriptions' );
 
331
 
332
+ return apply_filters( 'bbp_is_subscriptions', (bool) $retval );
333
  }
334
 
335
  /**
338
  *
339
  * @since bbPress (r2688)
340
  *
 
 
 
 
 
341
  * @uses bbp_get_query_name() To get the query name
342
  * @return bool True if it's the topics created page, false if not
343
  */
344
+ function bbp_is_topics_created() {
 
 
345
 
346
+ $retval = bbp_is_query_name( 'bbp_user_profile_topics_created' );
 
347
 
348
+ return apply_filters( 'bbp_is_topics_created', (bool) $retval );
349
  }
350
 
351
  /**
361
  function bbp_is_user_home() {
362
  global $bbp;
363
 
364
+ if ( empty( $bbp->displayed_user ) )
365
  return false;
366
 
367
+ return (bool) $bbp->current_user->ID == $bbp->displayed_user->ID;
368
  }
369
 
370
  /**
372
  *
373
  * @since bbPress (r2688)
374
  *
375
+ * @uses WP_Query Checks if WP_Query::bbp_is_single_user is set to true
376
  * @return bool True if it's a user's profile page, false if not
377
  */
378
+ function bbp_is_single_user() {
379
  global $wp_query;
380
 
381
+ if ( !empty( $wp_query->bbp_is_single_user ) && ( true == $wp_query->bbp_is_single_user ) )
382
  return true;
383
 
384
  return false;
389
  *
390
  * @since bbPress (r2688)
391
  *
392
+ * @uses WP_Query Checks if WP_Query::bbp_is_single_user_edit is set to true
393
  * @return bool True if it's a user's profile edit page, false if not
394
  */
395
+ function bbp_is_single_user_edit() {
396
  global $wp_query;
397
 
398
+ if ( !empty( $wp_query->bbp_is_single_user_edit ) && ( true == $wp_query->bbp_is_single_user_edit ) )
399
  return true;
400
 
401
  return false;
409
  * @uses WP_Query Checks if WP_Query::bbp_is_view is true
410
  * @return bool Is it a view page?
411
  */
412
+ function bbp_is_single_view() {
413
  global $wp_query;
414
 
415
  if ( !empty( $wp_query->bbp_is_view ) && ( true == $wp_query->bbp_is_view ) )
433
  * @uses bbp_is_reply()
434
  * @uses bbp_is_reply_edit()
435
  * @uses bbp_is_reply_edit()
436
+ * @uses bbp_is_single_view()
437
+ * @uses bbp_is_single_user_edit()
438
+ * @uses bbp_is_single_user()
439
  * @uses bbp_is_user_home()
440
  * @uses bbp_is_subscriptions()
441
  * @uses bbp_is_favorites()
446
 
447
  $bbp_classes = array();
448
 
449
+ /** Archives **************************************************************/
450
+
451
+ if ( bbp_is_forum_archive() )
452
+ $bbp_classes[] = bbp_get_forum_post_type() . '-archive';
453
+
454
+ if ( bbp_is_topic_archive() )
455
+ $bbp_classes[] = bbp_get_topic_post_type() . '-archive';
456
+
457
+ /** Components ************************************************************/
458
 
459
  if ( bbp_is_forum() )
460
  $bbp_classes[] = bbp_get_forum_post_type();
477
  if ( bbp_is_reply_edit() )
478
  $bbp_classes[] = bbp_get_reply_post_type() . '-edit';
479
 
480
+ if ( bbp_is_single_view() )
481
  $bbp_classes[] = 'bbp-view';
482
 
483
+ /** User ******************************************************************/
484
 
485
+ if ( bbp_is_single_user_edit() ) {
486
  $bbp_classes[] = 'bbp-user-edit';
487
  $bbp_classes[] = 'single';
488
  $bbp_classes[] = 'singular';
489
  }
490
 
491
+ if ( bbp_is_single_user() ) {
492
  $bbp_classes[] = 'bbp-user-page';
493
  $bbp_classes[] = 'single';
494
  $bbp_classes[] = 'singular';
518
  $bbp_classes[] = 'singular';
519
  }
520
 
521
+ /** Clean up **************************************************************/
522
 
523
  // Add bbPress class if we are within a bbPress page
524
  if ( !empty( $bbp_classes ) )
577
  * @uses apply_filters() Calls 'bbp_redirect_to_field' with the referer field
578
  * and url
579
  */
580
+ function bbp_redirect_to_field( $redirect_to = '' ) {
 
 
 
581
 
582
+ // Rejig the $redirect_to
583
+ if ( !isset( $_SERVER['REDIRECT_URL'] ) || ( !$redirect_to = home_url( $_SERVER['REDIRECT_URL'] ) ) )
584
+ $redirect_to = wp_get_referer();
585
 
586
+ // Make sure we are directing somewhere
587
+ if ( empty( $redirect_to ) )
588
+ $redirect_to = home_url( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
589
+
590
+ // Remove loggedout query arg if it's there
591
+ $redirect_to = (string) esc_attr( remove_query_arg( 'loggedout', $redirect_to ) );
592
+ $redirect_field = '<input type="hidden" name="redirect_to" value="' . $redirect_to . '" />';
593
 
594
+ echo apply_filters( 'bbp_redirect_to_field', $redirect_field, $redirect_to );
595
  }
596
 
597
  /**
804
  // Hidden forums
805
  if ( current_user_can( 'read_hidden_forums' ) )
806
  $post_stati[] = $bbp->hidden_status_id;
 
 
 
 
807
  }
808
 
809
  // Setup the post statuses
922
 
923
  if ( bbp_is_reply_edit() ) { ?>
924
 
925
+ <input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" maxlength="<?php bbp_get_title_max_length(); ?>" />
926
  <input type="hidden" name="bbp_reply_id" id="bbp_reply_id" value="<?php bbp_reply_id(); ?>" />
927
  <input type="hidden" name="action" id="bbp_post_action" value="bbp-edit-reply" />
928
 
939
 
940
  ?>
941
 
942
+ <input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" maxlength="<?php bbp_get_title_max_length(); ?>" />
943
  <input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="<?php bbp_forum_id(); ?>" />
944
  <input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="<?php bbp_topic_id(); ?>" />
945
  <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply" />
951
 
952
  ?>
953
 
954
+ <?php
955
+
956
+ wp_nonce_field( 'bbp-new-reply' );
957
+
958
+ // Show redirect field if not viewing a specific topic
959
+ if ( !bbp_is_topic() ) : ?>
960
+
961
+ <input type="hidden" name="redirect_to" id="bbp_redirect_to" value="<?php the_permalink(); ?>" />
962
+
963
+ <?php endif;
964
+
965
  }
966
  }
967
 
1250
  global $bbp;
1251
 
1252
  // Turn off breadcrumbs
1253
+ if ( apply_filters( 'bbp_no_breadcrumb', is_front_page() ) )
1254
  return;
1255
 
1256
+ // Define variables
1257
+ $front_id = $root_id = 0;
1258
+ $ancestors = $breadcrumbs = array();
1259
+ $pre_root_text = $pre_front_text = $pre_current_text = '';
1260
+ $pre_include_root = $pre_include_home = $pre_include_current = true;
1261
+
1262
+ /** Home Text *********************************************************/
1263
+
1264
+ // No custom home text
1265
+ if ( empty( $args['home_text'] ) ) {
1266
+
1267
+ // Set home text to page title
1268
+ if ( $front_id = get_option( 'page_on_front' ) ) {
1269
+ $pre_front_text = get_the_title( $front_id );
1270
+
1271
+ // Default to 'Home'
1272
+ } else {
1273
+ $pre_front_text = __( 'Home', 'bbpress' );
1274
+ }
1275
+ }
1276
+
1277
+ /** Root Text *********************************************************/
1278
+
1279
+ // No custom root text
1280
+ if ( empty( $args['root_text'] ) ) {
1281
+ if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) {
1282
+ $root_id = $page->ID;
1283
+ }
1284
+ $pre_root_text = bbp_get_forum_archive_title();
1285
+ }
1286
+
1287
+ /** Includes **********************************************************/
1288
+
1289
+ // Root slug is also the front page
1290
+ if ( !empty( $front_id ) && ( $front_id == $root_id ) )
1291
+ $pre_include_root = false;
1292
+
1293
+ // Don't show root if viewing forum archive
1294
+ if ( bbp_is_forum_archive() )
1295
+ $pre_include_root = false;
1296
+
1297
+ // Don't show root if viewing page in place of forum archive
1298
+ if ( !empty( $root_id ) && ( ( is_single() || is_page() ) && ( $root_id == get_the_ID() ) ) )
1299
+ $pre_include_root = false;
1300
+
1301
+ /** Current Text ******************************************************/
1302
+
1303
+ // Forum archive
1304
+ if ( bbp_is_forum_archive() )
1305
+ $pre_current_text = bbp_get_forum_archive_title();
1306
+
1307
+ // Topic archive
1308
+ elseif ( bbp_is_topic_archive() )
1309
+ $pre_current_text = bbp_get_topic_archive_title();
1310
+
1311
+ // View
1312
+ elseif ( bbp_is_single_view() )
1313
+ $pre_current_text = bbp_get_view_title();
1314
+
1315
+ // Single Forum
1316
+ elseif ( bbp_is_forum() )
1317
+ $pre_current_text = bbp_get_forum_title();
1318
+
1319
+ // Single Topic
1320
+ elseif ( bbp_is_topic() )
1321
+ $pre_current_text = bbp_get_topic_title();
1322
+
1323
+ // Single Topic
1324
+ elseif ( bbp_is_reply() )
1325
+ $pre_current_text = bbp_get_reply_title();
1326
+
1327
+ // Topic Tag
1328
+ elseif ( is_tax( $bbp->topic_tag_id ) )
1329
+ $pre_current_text = sprintf( __( 'Topic Tag: %s', 'bbpress' ), bbp_get_topic_tag_name() );
1330
+
1331
+ // Single
1332
+ else
1333
+ $pre_current_text = get_the_title();
1334
+
1335
+ /** Parse Args ********************************************************/
1336
+
1337
  // Parse args
1338
  $defaults = array(
1339
 
1340
  // HTML
1341
  'before' => '<div class="bbp-breadcrumb"><p>',
1342
  'after' => '</p></div>',
1343
+ 'sep' => is_rtl() ? __( '&lsaquo;', 'bbpress' ) : __( '&rsaquo;', 'bbpress' ),
1344
+ 'pad_sep' => 1,
1345
 
1346
  // Home
1347
+ 'include_home' => $pre_include_home,
1348
+ 'home_text' => $pre_front_text,
1349
 
1350
  // Forum root
1351
+ 'include_root' => $pre_include_root,
1352
+ 'root_text' => $pre_root_text,
1353
 
1354
  // Current
1355
+ 'include_current' => $pre_include_current,
1356
+ 'current_text' => $pre_current_text
1357
  );
1358
+ $r = apply_filters( 'bbp_get_breadcrumb_pre', wp_parse_args( $args, $defaults ) );
1359
  extract( $r );
1360
 
1361
+ /** Ancestors *********************************************************/
1362
+
1363
  // Get post ancestors
1364
+ if ( is_page() || is_single() || bbp_is_topic_edit() || bbp_is_reply_edit() )
1365
+ $ancestors = array_reverse( get_post_ancestors( get_the_ID() ) );
1366
 
1367
  // Do we want to include a link to home?
1368
+ if ( !empty( $include_home ) || empty( $home_text ) )
1369
  $breadcrumbs[] = '<a href="' . trailingslashit( home_url() ) . '" class="bbp-breadcrumb-home">' . $home_text . '</a>';
1370
 
1371
  // Do we want to include a link to the forum root?
1372
+ if ( !empty( $include_root ) || empty( $root_text ) ) {
1373
+
1374
+ // Page exists at root slug path, so use its permalink
1375
+ if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) {
1376
+ $root_url = get_permalink( $page->ID );
1377
+
1378
+ // Use the root slug
1379
+ } else {
1380
+ $root_url = get_post_type_archive_link( bbp_get_forum_post_type() );
1381
+ }
 
 
 
 
 
 
 
 
 
 
1382
 
1383
+ // Add the breadcrumb
1384
+ $breadcrumbs[] = '<a href="' . $root_url . '" class="bbp-breadcrumb-root">' . $root_text . '</a>';
1385
+ }
 
1386
 
1387
+ // Ancestors exist
1388
+ if ( !empty( $ancestors ) ) {
1389
+
1390
+ // Loop through parents
1391
+ foreach( (array) $ancestors as $parent_id ) {
1392
+
1393
+ // Parents
1394
+ $parent = get_post( $parent_id );
1395
+
1396
+ // Switch through post_type to ensure correct filters are applied
1397
+ switch ( $parent->post_type ) {
1398
+ // Forum
1399
+ case bbp_get_forum_post_type() :
1400
+ $breadcrumbs[] = '<a href="' . bbp_get_forum_permalink( $parent->ID ) . '">' . bbp_get_forum_title( $parent->ID ) . '</a>';
1401
+ break;
1402
+
1403
+ // Topic
1404
+ case bbp_get_topic_post_type() :
1405
+ $breadcrumbs[] = '<a href="' . bbp_get_topic_permalink( $parent->ID ) . '">' . bbp_get_topic_title( $parent->ID ) . '</a>';
1406
+ break;
1407
+
1408
+ // Reply (Note: not in most themes)
1409
+ case bbp_get_reply_post_type() :
1410
+ $breadcrumbs[] = '<a href="' . bbp_get_reply_permalink( $parent->ID ) . '">' . bbp_get_reply_title( $parent->ID ) . '</a>';
1411
+ break;
1412
+
1413
+ // WordPress Post/Page/Other
1414
+ default :
1415
+ $breadcrumbs[] = '<a href="' . get_permalink( $parent->ID ) . '">' . get_the_title( $parent->ID ) . '</a>';
1416
+ break;
1417
+ }
1418
  }
1419
  }
1420
 
1421
+ /** Current ***********************************************************/
1422
+
1423
  // Add current page to breadcrumb
1424
+ if ( !empty( $include_current ) || empty( $pre_current_text ) )
1425
+ $breadcrumbs[] = '<span class="bbp-breadcrumb-current">' . $current_text . '</span>';
1426
+
1427
+ /** Finish Up *********************************************************/
1428
+
1429
+ // Pad the separator
1430
+ if ( !empty( $pad_sep ) )
1431
+ $sep = str_pad( $sep, strlen( $sep ) + ( (int) $pad_sep * 2 ), ' ', STR_PAD_BOTH );
1432
 
1433
  // Allow the separator of the breadcrumb to be easily changed
1434
  $sep = apply_filters( 'bbp_breadcrumb_separator', $sep );
1440
  // Build the trail
1441
  $trail = !empty( $breadcrumbs ) ? $before . implode( $sep, $breadcrumbs ) . $after: '';
1442
 
1443
+ return apply_filters( 'bbp_get_breadcrumb', $trail, $breadcrumbs, $r );
1444
  }
1445
 
1446
  /** Topic Tags ***************************************************************/
1494
  if ( !isset( $bbp->errors ) || !is_wp_error( $bbp->errors ) || !$bbp->errors->get_error_codes() )
1495
  return;
1496
 
1497
+ // Define local variable(s)
1498
  $errors = $messages = array();
1499
 
1500
  // Loop through notices
1575
  * @param string $sep Optional, default is '&raquo;'. How to separate the
1576
  * various items within the page title.
1577
  * @param string $seplocation Optional. Direction to display title, 'right'.
1578
+ * @uses bbp_is_single_user() To check if it's a user profile page
1579
+ * @uses bbp_is_single_user_edit() To check if it's a user profile edit page
1580
  * @uses bbp_is_user_home() To check if the profile page is of the current user
1581
  * @uses get_query_var() To get the user id
1582
  * @uses get_userdata() To get the user data
1588
  * @uses bbp_get_reply_title() To get the reply title
1589
  * @uses is_tax() To check if it's the tag page
1590
  * @uses get_queried_object() To get the queried object
1591
+ * @uses bbp_is_single_view() To check if it's a view
1592
  * @uses bbp_get_view_title() To get the view title
1593
  * @uses apply_filters() Calls 'bbp_raw_title' with the title
1594
  * @uses apply_filters() Calls 'bbp_profile_page_wp_title' with the title,
1598
  function bbp_title( $title = '', $sep = '&raquo;', $seplocation = '' ) {
1599
  global $bbp;
1600
 
1601
+ // Store original title to compare
1602
  $_title = $title;
1603
 
1604
+ /** Archives **************************************************************/
 
1605
 
1606
+ // Forum Archive
1607
+ if ( bbp_is_forum_archive() ) {
1608
+ $title = bbp_get_forum_archive_title();
 
 
 
1609
 
1610
+ // Topic Archive
1611
+ } elseif ( bbp_is_topic_archive() ) {
1612
+ $title = bbp_get_topic_archive_title();
1613
 
1614
+ /** Singles ***************************************************************/
 
 
 
 
 
1615
 
1616
  // Forum page
1617
  } elseif ( bbp_is_forum() ) {
 
1618
  $title = sprintf( __( 'Forum: %s', 'bbpress' ), bbp_get_forum_title() );
1619
 
1620
  // Topic page
1621
  } elseif ( bbp_is_topic() ) {
 
1622
  $title = sprintf( __( 'Topic: %s', 'bbpress' ), bbp_get_topic_title() );
1623
 
1624
  // Replies
1625
  } elseif ( bbp_is_reply() ) {
 
 
1626
  $title = bbp_get_reply_title();
1627
 
1628
  // Topic tag page
1629
  } elseif ( is_tax( $bbp->topic_tag_id ) ) {
1630
+ $term = get_queried_object();
1631
+ $title = sprintf( __( 'Topic Tag: %s', 'bbpress' ), $term->name );
1632
+
1633
+ /** Users *****************************************************************/
1634
 
1635
+ // Profile page
1636
+ } elseif ( bbp_is_single_user() ) {
1637
+
1638
+ // Current users profile
1639
+ if ( bbp_is_user_home() ) {
1640
+ $title = __( 'Your Profile', 'bbpress' );
1641
+
1642
+ // Other users profile
1643
+ } else {
1644
+ $userdata = get_userdata( get_query_var( 'bbp_user_id' ) );
1645
+ $title = sprintf( __( '%s\'s Profile', 'bbpress' ), $userdata->display_name );
1646
  }
1647
 
1648
+ // Profile edit page
1649
+ } elseif ( bbp_is_single_user_edit() ) {
1650
 
1651
+ // Current users profile
1652
+ if ( bbp_is_user_home() ) {
1653
+ $title = __( 'Edit Your Profile', 'bbpress' );
1654
+
1655
+ // Other users profile
1656
+ } else {
1657
+ $userdata = get_userdata( get_query_var( 'bbp_user_id' ) );
1658
+ $title = sprintf( __( 'Edit %s\'s Profile', 'bbpress' ), $userdata->display_name );
1659
+ }
1660
 
1661
+ /** Views *****************************************************************/
1662
+
1663
+ // Views
1664
+ } elseif ( bbp_is_single_view() ) {
1665
+ $title = sprintf( __( 'View: %s', 'bbpress' ), bbp_get_view_title() );
1666
  }
1667
 
1668
+ // Filter the raw title
1669
+ $title = apply_filters( 'bbp_raw_title', $title, $sep, $seplocation );
1670
 
1671
+ // Compare new title with original title
1672
  if ( $title == $_title )
1673
  return $title;
1674
 
1679
  if ( !empty( $title ) )
1680
  $prefix = " $sep ";
1681
 
1682
+ // sep on right, so reverse the order
1683
+ if ( 'right' == $seplocation ) {
1684
  $title_array = explode( $t_sep, $title );
1685
  $title_array = array_reverse( $title_array );
1686
  $title = implode( " $sep ", $title_array ) . $prefix;
1687
+
1688
+ // sep on left, do not reverse
1689
  } else {
1690
  $title_array = explode( $t_sep, $title );
1691
  $title = $prefix . implode( " $sep ", $title_array );
bbp-includes/bbp-core-akismet.php ADDED
@@ -0,0 +1,569 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Main bbPress Akismet Class
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Akismet
8
+ */
9
+
10
+ // Exit if accessed directly
11
+ if ( !defined( 'ABSPATH' ) ) exit;
12
+
13
+ if ( !class_exists( 'BBP_Akismet' ) ) :
14
+ /**
15
+ * Loads Akismet extension
16
+ *
17
+ * @since bbPress (r3277)
18
+ *
19
+ * @package bbPress
20
+ * @subpackage Akismet
21
+ */
22
+ class BBP_Akismet {
23
+
24
+ /**
25
+ * The main bbPress Akismet loader (PHP4 compat)
26
+ *
27
+ * @since bbPress (r3277)
28
+ */
29
+ function BBP_Akismet() {
30
+ $this->__construct();
31
+ }
32
+
33
+ /**
34
+ * The main bbPress Akismet loader
35
+ *
36
+ * @since bbPress (r3277)
37
+ *
38
+ * @uses add_filter()
39
+ */
40
+ function __construct() {
41
+ $this->_setup_actions();
42
+ }
43
+
44
+ /**
45
+ * Setup the admin hooks
46
+ *
47
+ * @since bbPress (r3277)
48
+ * @access private
49
+ *
50
+ * @uses add_filter() To add various filters
51
+ * @uses add_action() To add various actions
52
+ */
53
+ function _setup_actions() {
54
+
55
+ // Bail if no akismet
56
+ if ( !defined( 'AKISMET_VERSION' ) ) return;
57
+
58
+ // bbPress functions to check for spam
59
+ $checks['check'] = array(
60
+ 'bbp_new_topic_pre_insert' => 1, // Topic check
61
+ 'bbp_new_reply_pre_insert' => 1 // Reply check
62
+ );
63
+
64
+ // bbPress functions for spam and ham submissions
65
+ $checks['submit'] = array(
66
+ 'bbp_spammed_topic' => 10, // Spammed topic
67
+ 'bbp_unspammed_topic' => 10, // Unspammed reply
68
+ 'bbp_spammed_reply' => 10, // Spammed reply
69
+ 'bbp_unspammed_reply' => 10, // Unspammed reply
70
+ );
71
+
72
+ // Add the checks
73
+ foreach ( $checks as $type => $functions )
74
+ foreach( $functions as $function => $priority )
75
+ add_filter( $function, array( $this, $type . '_post' ), $priority );
76
+
77
+ // Update post meta
78
+ add_action( 'wp_insert_post', array( $this, 'update_post_meta' ), 10, 2 );
79
+ }
80
+
81
+ /**
82
+ * Converts topic/reply data into Akismet comment checking format
83
+ *
84
+ * @since bbPress (r3277)
85
+ *
86
+ * @param string $post_data
87
+ *
88
+ * @global bbPress $bbp
89
+ *
90
+ * @uses get_userdata() To get the user data
91
+ * @uses bbp_filter_anonymous_user_data() To get anonymous user data
92
+ * @uses get_permalink() To get the permalink of the post parent
93
+ * @uses bbp_current_author_ip() To get the IP address of the current user
94
+ * @uses BBP_Akismet::maybe_spam() To check if post is spam
95
+ * @uses akismet_get_user_roles() To get the role(s) of the current user
96
+ * @uses do_action() To call the 'bbp_akismet_spam_caught' hook
97
+ * @uses add_filter() To call the 'bbp_new_reply_pre_set_terms' hook
98
+ *
99
+ * @return array Array of post data
100
+ */
101
+ function check_post( $post_data ) {
102
+ global $bbp;
103
+
104
+ // Post is not published
105
+ if ( 'publish' != $post_data['post_status'] )
106
+ return $post_data;
107
+
108
+ // Extract post_data into variables
109
+ extract( $post_data );
110
+
111
+ // Get user data
112
+ $userdata = get_userdata( $post_author );
113
+ $anonymous_data = bbp_filter_anonymous_post_data();
114
+
115
+ // Put post_data back into usable array
116
+ $post = array(
117
+ 'comment_author' => $anonymous_data ? $anonymous_data['bbp_anonymous_name'] : $userdata->display_name,
118
+ 'comment_author_email' => $anonymous_data ? $anonymous_data['bbp_anonymous_email'] : $userdata->user_email,
119
+ 'comment_author_url' => $anonymous_data ? $anonymous_data['bbp_anonymous_website'] : $userdata->user_url,
120
+ 'comment_content' => $post_content,
121
+ 'comment_post_ID' => $post_parent,
122
+ 'comment_type' => $post_type,
123
+ 'permalink' => get_permalink( $post_parent ),
124
+ 'referrer' => $_SERVER['HTTP_REFERER'],
125
+ 'user_agent' => $_SERVER['HTTP_USER_AGENT'],
126
+ 'user_ID' => $post_author,
127
+ 'user_ip' => bbp_current_author_ip(),
128
+ 'user_role' => akismet_get_user_roles( $post_author ),
129
+ );
130
+
131
+ // Check the post_data
132
+ $post = $this->maybe_spam( $post );
133
+
134
+ // Get the result
135
+ $post_data['bbp_akismet_result'] = $post['bbp_akismet_result'];
136
+ unset( $post['bbp_akismet_result'] );
137
+
138
+ // Store the data as submitted
139
+ $post_data['bbp_post_as_submitted'] = $post;
140
+
141
+ // Spam
142
+ if ( 'true' == $post_data['bbp_akismet_result'] ) {
143
+
144
+ // Let plugins do their thing
145
+ do_action( 'bbp_akismet_spam_caught' );
146
+
147
+ // This is spam
148
+ $post_data['post_status'] = $bbp->spam_status_id;
149
+
150
+ // We don't want your spam tags here
151
+ add_filter( 'bbp_new_reply_pre_set_terms', array( $this, 'filter_post_terms' ), 1, 3 );
152
+
153
+ // @todo Spam counter?
154
+ }
155
+
156
+ // @todo Topic/reply moderation? No true/false response - 'pending' or 'draft'
157
+ // @todo Auto-delete old spam?
158
+
159
+ // Log the last post
160
+ $this->last_post = $post_data;
161
+
162
+ // Pass the data back to the filter
163
+ return $post_data;
164
+ }
165
+
166
+ /**
167
+ * Submit a post for spamming or hamming
168
+ *
169
+ * @since bbPress ({unknown})
170
+ *
171
+ * @param int $post_id
172
+ *
173
+ * @global bbPress $bbp
174
+ * @global WP_Query $wpdb
175
+ * @global string $akismet_api_host
176
+ * @global string $akismet_api_port
177
+ * @global object $current_user
178
+ * @global object $current_site
179
+ *
180
+ * @uses current_filter() To get the reply_id
181
+ * @uses get_post() To get the post object
182
+ * @uses get_the_author_meta() To get the author meta
183
+ * @uses get_post_meta() To get the post meta
184
+ * @uses bbp_get_user_profile_url() To get a user's profile url
185
+ * @uses get_permalink() To get the permalink of the post_parent
186
+ * @uses akismet_get_user_roles() To get the role(s) of the post_author
187
+ * @uses bbp_current_author_ip() To get the IP address of the current user
188
+ * @uses BBP_Akismet::maybe_spam() To submit the post as ham or spam
189
+ * @uses update_post_meta() To update the post meta with some Akismet data
190
+ * @uses do_action() To call the 'bbp_akismet_submit_spam_post' and 'bbp_akismet_submit_ham_post' hooks
191
+ *
192
+ * @return array Array of existing topic terms
193
+ */
194
+ function submit_post( $post_id = 0 ) {
195
+ global $bbp, $wpdb, $akismet_api_host, $akismet_api_port, $current_user, $current_site;
196
+
197
+ switch ( current_filter() ) {
198
+
199
+ // Mysterious, and straight from the can
200
+ case 'bbp_spammed_topic' :
201
+ case 'bbp_spammed_reply' :
202
+ $request_type = 'spam';
203
+ break;
204
+
205
+ // Honey-glazed, a straight off the bone
206
+ case 'bbp_unspammed_topic' :
207
+ case 'bbp_unspammed_reply' :
208
+ $request_type = 'ham';
209
+ break;
210
+
211
+ // Possibly poison...
212
+ default :
213
+ return;
214
+ }
215
+
216
+ // Setup some variables
217
+ $post_id = (int) $post_id;
218
+
219
+ // Make sure we have a post
220
+ if ( !$post = get_post( $post_id ) )
221
+ return;
222
+
223
+ // Bail if we're spamming, but the post_status isn't spam
224
+ if ( ( 'spam' == $request_type ) && ( $bbp->spam_status_id != $post->post_status ) )
225
+ return;
226
+
227
+ // Set some default post_data
228
+ $post_data = array(
229
+ 'comment_approved' => $post->post_status,
230
+ 'comment_author' => $post->post_author ? get_the_author_meta( 'display_name', $post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_name', true ),
231
+ 'comment_author_email' => $post->post_author ? get_the_author_meta( 'email', $post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_email', true ),
232
+ 'comment_author_url' => $post->post_author ? bbp_get_user_profile_url( $post->post_author ) : get_post_meta( $post_id, '_bbp_anonymous_website', true ),
233
+ 'comment_content' => $post->post_content,
234
+ 'comment_date' => $post->post_date,
235
+ 'comment_ID' => $post_id,
236
+ 'comment_post_ID' => $post->post_parent,
237
+ 'comment_type' => $post->post_type,
238
+ 'permalink' => get_permalink( $post_id ),
239
+ 'user_ID' => $post->post_author,
240
+ 'user_ip' => get_post_meta( $post_id, '_bbp_author_ip', true ),
241
+ 'user_role' => akismet_get_user_roles( $post->post_author ),
242
+ );
243
+
244
+ // Use the original version stored in post_meta if available
245
+ $as_submitted = get_post_meta( $post_id, '_bbp_akismet_as_submitted', true );
246
+ if ( $as_submitted && is_array( $as_submitted ) && isset( $as_submitted['comment_content'] ) )
247
+ $post_data = array_merge( $post_data, $as_submitted );
248
+
249
+ // Add the reporter IP address
250
+ $post_data['reporter_ip'] = bbp_current_author_ip();
251
+
252
+ // Add some reporter info
253
+ if ( is_object( $current_user ) )
254
+ $post_data['reporter'] = $current_user->user_login;
255
+
256
+ // Add the current site domain
257
+ if ( is_object( $current_site ) )
258
+ $post_data['site_domain'] = $current_site->domain;
259
+
260
+ // Place your slide beneath the microscope
261
+ $post_data = $this->maybe_spam( $post_data, 'submit', $request_type );
262
+
263
+ // Manual user action
264
+ if ( isset( $post_data['reporter'] ) ) {
265
+
266
+ // What kind of action
267
+ switch ( $request_type ) {
268
+
269
+ // Spammy
270
+ case 'spam' :
271
+ $this->update_post_history( $post_id, sprintf( __( '%1$s reported this %2$s as spam', 'bbpress' ), $post_data['reporter'], $post_data['comment_type'] ), 'report-spam' );
272
+ update_post_meta( $post_id, '_bbp_akismet_user_result', 'true' );
273
+ update_post_meta( $post_id, '_bbp_akismet_user', $post_data['reporter'] );
274
+ break;
275
+
276
+ // Hammy
277
+ case 'ham' :
278
+ $this->update_post_history( $post_id, sprintf( __( '%1$s reported this %2$s as not spam', 'bbpress' ), $post_data['reporter'], $post_data['comment_type'] ), 'report-ham' );
279
+ update_post_meta( $post_id, '_bbp_akismet_user_result', 'false' );
280
+ update_post_meta( $post_id, '_bbp_akismet_user', $post_data['reporter'] );
281
+
282
+ // @todo Topic term revision history
283
+ break;
284
+
285
+ // Possible other actions
286
+ default :
287
+ break;
288
+ }
289
+ }
290
+
291
+ do_action( 'bbp_akismet_submit_' . $request_type . '_post', $post_id, $post_data['bbp_akismet_result'] );
292
+ }
293
+
294
+ /**
295
+ * Ping Akismet service and check for spam/ham response
296
+ *
297
+ * @since bbPress (r3277)
298
+ *
299
+ * @param array $post_data
300
+ * @param string $check Accepts check|submit
301
+ * @param string $spam Accepts spam|ham
302
+ *
303
+ * @global string $akismet_api_host
304
+ * @global string $akismet_api_port
305
+ *
306
+ * @uses akismet_test_mode() To determine if Akismet is in test mode
307
+ * @uses akismet_http_post() To send data to the mothership for processing
308
+ *
309
+ * @return array Array of post data
310
+ */
311
+ function maybe_spam( $post_data, $check = 'check', $spam = 'spam' ) {
312
+ global $akismet_api_host, $akismet_api_port;
313
+
314
+ // Define variables
315
+ $query_string = $path = $response = '';
316
+
317
+ // Populate post data
318
+ $post_data['blog'] = get_option( 'home' );
319
+ $post_data['blog_charset'] = get_option( 'blog_charset' );
320
+ $post_data['blog_lang'] = get_locale();
321
+ $post_data['referrer'] = $_SERVER['HTTP_REFERER'];
322
+ $post_data['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
323
+
324
+ // Akismet Test Mode
325
+ if ( akismet_test_mode() )
326
+ $post_data['is_test'] = 'true';
327
+
328
+ // Loop through _POST args and rekey strings
329
+ foreach ( $_POST as $key => $value )
330
+ if ( is_string( $value ) )
331
+ $post_data['POST_' . $key] = $value;
332
+
333
+ // Keys to ignore
334
+ $ignore = array( 'HTTP_COOKIE', 'HTTP_COOKIE2', 'PHP_AUTH_PW' );
335
+
336
+ // Loop through _SERVER args and remove whitelisted keys
337
+ foreach ( $_SERVER as $key => $value ) {
338
+
339
+ // Key should not be ignored
340
+ if ( !in_array( $key, $ignore ) && is_string( $value ) ) {
341
+ $post_data[$key] = $value;
342
+
343
+ // Key should be ignored
344
+ } else {
345
+ $post_data[$key] = '';
346
+ }
347
+ }
348
+
349
+ // Ready...
350
+ foreach ( $post_data as $key => $data )
351
+ $query_string .= $key . '=' . urlencode( stripslashes( $data ) ) . '&';
352
+
353
+ // Aim...
354
+ if ( 'check' == $check )
355
+ $path = '/1.1/comment-check';
356
+ elseif ( 'submit' == $check )
357
+ $path = '/1.1/submit-' . $spam;
358
+
359
+ // Fire!
360
+ $response = akismet_http_post( $query_string, $akismet_api_host, $path, $akismet_api_port );
361
+
362
+ // Check the high-speed cam
363
+ $post_data['bbp_akismet_result'] = $response[1];
364
+
365
+ // This is ham
366
+ return $post_data;
367
+ }
368
+
369
+ /**
370
+ * Update post meta after a spam check
371
+ *
372
+ * @since bbPress (r3308)
373
+ *
374
+ * @param int $post_id
375
+ * @param object $post
376
+ *
377
+ * @global bbPress $bbp
378
+ * @global object $this->last_post
379
+ *
380
+ * @uses get_post() To get the post object
381
+ * @uses get_userdata() To get the user data
382
+ * @uses bbp_filter_anonymous_user_data() To get anonymous user data
383
+ * @uses update_post_meta() To update post meta with Akismet data
384
+ * @uses BBP_Akismet::update_post_history() To update post Akismet history
385
+ */
386
+ function update_post_meta( $post_id = 0, $post ) {
387
+ global $bbp;
388
+
389
+ // Define local variable(s)
390
+ $as_submitted = false;
391
+
392
+ // Setup some variables
393
+ $post_id = (int) $post_id;
394
+
395
+ // Make sure we have a post object
396
+ if ( !$post = get_post( $post_id ) )
397
+ return;
398
+
399
+ // Get user data
400
+ $userdata = get_userdata( $post->post_author );
401
+ $anonymous_data = bbp_filter_anonymous_post_data();
402
+
403
+ // Set up Akismet last post data
404
+ if ( !empty( $this->last_post ) )
405
+ $as_submitted = $this->last_post['bbp_post_as_submitted'];
406
+
407
+ // wp_insert_post() might be called in other contexts. Make sure this is
408
+ // the same topic/reply as was checked by BBP_Akismet::check_post()
409
+ if ( is_object( $post ) && !empty( $this->last_post ) && is_array( $as_submitted ) ) {
410
+
411
+ // More checks
412
+ if ( intval( $as_submitted['comment_post_ID'] ) == intval( $post->post_parent )
413
+ && $as_submitted['comment_author'] == ( $anonymous_data ? $anonymous_data['bbp_anonymous_name'] : $userdata->display_name )
414
+ && $as_submitted['comment_author_email'] == ( $anonymous_data ? $anonymous_data['bbp_anonymous_email'] : $userdata->user_email )
415
+ ) {
416
+
417
+ // Normal result: true
418
+ if ( $this->last_post['bbp_akismet_result'] == 'true' ) {
419
+
420
+ // Leave a trail so other's know what we did
421
+ update_post_meta( $post_id, '_bbp_akismet_result', 'true' );
422
+ $this->update_post_history( $post_id, __( 'Akismet caught this post as spam', 'bbpress' ), 'check-spam' );
423
+
424
+ // If post_status isn't the spam status, as expected, leave a note
425
+ if ( $post->post_status != $bbp->spam_status_id )
426
+ $this->update_post_history( $post_id, sprintf( __( 'Post status was changed to %s', 'bbpress' ), $post->post_status ), 'status-changed-' . $post->post_status );
427
+
428
+ // Normal result: false
429
+ } elseif ( $this->last_post['bbp_akismet_result'] == 'false' ) {
430
+
431
+ // Leave a trail so other's know what we did
432
+ update_post_meta( $post_id, '_bbp_akismet_result', 'false' );
433
+ $this->update_post_history( $post_id, __( 'Akismet cleared this post', 'bbpress' ), 'check-ham' );
434
+
435
+ // If post_status is the spam status, which isn't expected, leave a note
436
+ if ( $post->post_status == $bbp->spam_status_id ) {
437
+
438
+ // @todo Use wp_blacklist_check()
439
+
440
+ $this->update_post_history( $post_id, sprintf( __( 'Post status was changed to %s', 'bbpress' ), $post->post_status ), 'status-changed-' . $post->post_status );
441
+ }
442
+
443
+ // Abnormal result: error
444
+ } else {
445
+ // Leave a trail so other's know what we did
446
+ update_post_meta( $post_id, '_bbp_akismet_error', time() );
447
+ $this->update_post_history( $post_id, sprintf( __( 'Akismet was unable to check this post (response: %s), will automatically retry again later.', 'bbpress' ), $this->last_post['bbp_akismet_result'] ), 'check-error' );
448
+ }
449
+
450
+ // Record the complete original data as submitted for checking
451
+ if ( isset( $this->last_post['bbp_post_as_submitted'] ) )
452
+ update_post_meta( $post_id, '_bbp_akismet_as_submitted', $this->last_post['bbp_post_as_submitted'] );
453
+ }
454
+ }
455
+ }
456
+
457
+ /**
458
+ * Update a post's Akismet history
459
+ *
460
+ * @since bbPress (r3308)
461
+ *
462
+ * @param int $post_id
463
+ * @param string $message
464
+ * @param string $event
465
+ *
466
+ * @uses wp_get_current_user() To get the current_user object
467
+ * @uses add_post_meta() Add Akismet post history
468
+ */
469
+ function update_post_history( $post_id = 0, $message = null, $event = null ) {
470
+
471
+ // Define local variable(s)
472
+ $user = '';
473
+
474
+ // Get the current user
475
+ $current_user = wp_get_current_user();
476
+
477
+ // Get the user's login name if possible
478
+ if ( is_object( $current_user ) && isset( $current_user->user_login ) )
479
+ $user = $current_user->user_login;
480
+
481
+ // Setup the event to be saved
482
+ $event = array(
483
+ 'time' => akismet_microtime(),
484
+ 'message' => $message,
485
+ 'event' => $event,
486
+ 'user' => $user,
487
+ );
488
+
489
+ // Save the event data
490
+ add_post_meta( $post_id, '_bbp_akismet_history', $event );
491
+ }
492
+
493
+ /**
494
+ * Get a post's Akismet history
495
+ *
496
+ * @since bbPress (r3308)
497
+ *
498
+ * @param int $post_id
499
+ *
500
+ * @uses wp_get_current_user() To get the current_user object
501
+ * @uses get_post_meta() Get a post's Akismet history
502
+ *
503
+ * @return array Array of a post's Akismet history
504
+ */
505
+ function get_post_history( $post_id = 0 ) {
506
+
507
+ // Retrieve any previous history
508
+ $history = get_post_meta( $post_id, '_bbp_akismet_history' );
509
+
510
+ // Sort it by the time recorded
511
+ usort( $history, 'akismet_cmp_time' );
512
+
513
+ return $history;
514
+ }
515
+
516
+ /**
517
+ * Handle any terms submitted with a post flagged as spam
518
+ *
519
+ * @since bbPress (r3308)
520
+ *
521
+ * @param string $terms Comma-separated list of terms
522
+ * @param int $topic_id
523
+ * @param int $reply_id
524
+ *
525
+ * @global bbPress $bbp
526
+ *
527
+ * @uses bbp_get_reply_id() To get the reply_id
528
+ * @uses bbp_get_topic_id() To get the topic_id
529
+ * @uses wp_get_object_terms() To a post's current terms
530
+ * @uses update_post_meta() To add spam terms to post meta
531
+ *
532
+ * @return array Array of existing topic terms
533
+ */
534
+ function filter_post_terms( $terms = '', $topic_id = 0, $reply_id = 0 ) {
535
+ global $bbp;
536
+
537
+ // Validate the reply_id and topic_id
538
+ $reply_id = bbp_get_reply_id( $reply_id );
539
+ $topic_id = bbp_get_topic_id( $topic_id );
540
+
541
+ // Get any pre-existing terms
542
+ $existing_terms = wp_get_object_terms( $topic_id, $bbp->topic_tag_id, array( 'fields' => 'names' ) );
543
+
544
+ // Save the terms for later in case the reply gets hammed
545
+ if ( !empty( $terms ) )
546
+ update_post_meta( $reply_id, '_bbp_akismet_spam_terms', $terms );
547
+
548
+ // Keep the topic tags the same for now
549
+ return $existing_terms;
550
+ }
551
+
552
+ }
553
+ endif;
554
+
555
+ /**
556
+ * Loads Akismet in bbPress global namespace
557
+ *
558
+ * @since bbPress (r3277)
559
+ *
560
+ * @global bbPress $bbp
561
+ * @return If bbPress is not active
562
+ */
563
+ function bbp_setup_akismet() {
564
+ global $bbp;
565
+
566
+ $bbp->plugins->akismet = new BBP_Akismet();
567
+ }
568
+
569
+ ?>
bbp-includes/bbp-core-compatibility.php CHANGED
@@ -22,6 +22,68 @@ if ( !defined( 'ABSPATH' ) ) exit;
22
  * Don't try anything you're about to witness here, at home. Ever.
23
  */
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  /**
26
  * Adds bbPress theme support to any active WordPress theme
27
  *
@@ -45,7 +107,7 @@ function bbp_get_template_part( $slug, $name = null ) {
45
  // Current theme does not support bbPress, so we need to do some heavy
46
  // lifting to see if a bbPress template is needed in the current context
47
  if ( !current_theme_supports( 'bbpress' ) )
48
- load_template( bbp_get_theme_compat() . '/' . $slug . '-' . $name . '.php', false );
49
 
50
  // Current theme supports bbPress to proceed as usual
51
  else
@@ -65,14 +127,14 @@ function bbp_get_template_part( $slug, $name = null ) {
65
  * @uses apply_filters()
66
  * @return string
67
  */
68
- function bbp_get_theme_compat() {
69
  global $bbp;
70
 
71
- return apply_filters( 'bbp_get_theme_compat', $bbp->theme_compat );
72
  }
73
 
74
  /**
75
- * Sets the bbPress compatable theme used in the event the currently active
76
  * WordPress theme does not explicitly support bbPress. This can be filtered,
77
  * or set manually. Tricky theme authors can override the default and include
78
  * their own bbPress compatability layers for their themes.
@@ -80,22 +142,86 @@ function bbp_get_theme_compat() {
80
  * @since bbPress (r3032)
81
  *
82
  * @global bbPress $bbp
83
- * @param string $theme Optional. Must be full absolute path to theme
84
  * @uses apply_filters()
85
  * @return string
86
  */
87
- function bbp_set_theme_compat( $theme = '' ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  global $bbp;
89
 
90
- // Set theme to bundled bbp-twentyten if nothing is passed
91
- if ( empty( $theme ) && !empty( $bbp->themes_dir ) )
92
- $bbp->theme_compat = $bbp->themes_dir . '/bbp-twentyten';
93
 
94
- // Set to what is passed
95
- else
96
- $bbp->theme_compat = $theme;
97
 
98
- return apply_filters( 'bbp_get_theme_compat', $bbp->theme_compat );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
100
 
101
  /**
@@ -163,156 +289,350 @@ function bbp_theme_compat_reset_post( $args = array() ) {
163
  $wp_query->is_single = false;
164
  $wp_query->is_archive = false;
165
  $wp_query->is_tax = false;
 
 
 
166
  }
167
 
 
 
168
  /**
169
- * Add checks for view page, user page, user edit, topic edit and reply edit
170
- * pages.
171
  *
172
- * If it's a user page, WP_Query::bbp_is_user_profile_page is set to true.
173
- * If it's a user edit page, WP_Query::bbp_is_user_profile_edit is set to true
174
- * and the the 'wp-admin/includes/user.php' file is included.
175
- * In addition, on user/user edit pages, WP_Query::home is set to false & query
176
- * vars 'bbp_user_id' with the displayed user id and 'author_name' with the
177
- * displayed user's nicename are added.
178
  *
179
- * If it's a topic edit, WP_Query::bbp_is_topic_edit is set to true and
180
- * similarly, if it's a reply edit, WP_Query::bbp_is_reply_edit is set to true.
181
  *
182
- * If it's a view page, WP_Query::bbp_is_view is set to true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  *
184
- * @since bbPress (r2688)
185
  *
186
- * @uses get_query_var() To get {@link WP_Query} query var
187
- * @uses is_email() To check if the string is an email
188
- * @uses get_user_by() To try to get the user by email and nicename
189
- * @uses WP_User to get the user data
190
- * @uses WP_Query::set_404() To set a 404 status
191
- * @uses current_user_can() To check if the current user can edit the user
192
- * @uses apply_filters() Calls 'enable_edit_any_user_configuration' with true
193
- * @uses wp_die() To die
194
- * @uses bbp_is_query_name() Check if query name is 'bbp_widget'
195
- * @uses bbp_get_view_query_args() To get the view query args
196
- * @uses bbp_get_topic_post_type() To get the topic post type
197
- * @uses bbp_get_reply_post_type() To get the reply post type
198
- * @uses is_multisite() To check if it's a multisite
199
- * @uses remove_action() To remove the auto save post revision action
200
  */
201
- function bbp_pre_get_posts( $posts_query ) {
202
- global $bbp;
203
 
204
- // Bail if $posts_query is not an object or of incorrect class
205
- if ( !is_object( $posts_query ) || ( 'WP_Query' != get_class( $posts_query ) ) )
206
- return $posts_query;
207
 
208
- // Bail if filters are suppressed on this query
209
- if ( true == $posts_query->get( 'suppress_filters' ) )
210
- return $posts_query;
 
211
 
212
- // Get query variables
213
- $bbp_user = $posts_query->get( 'bbp_user' );
214
- $bbp_view = $posts_query->get( 'bbp_view' );
215
- $is_edit = $posts_query->get( 'edit' );
216
 
217
- // It is a user page - We'll also check if it is user edit
218
- if ( !empty( $bbp_user ) ) {
 
 
219
 
220
- // Not a user_id so try email and slug
221
- if ( !is_numeric( $bbp_user ) ) {
 
 
 
222
 
223
- // Email was passed
224
- if ( is_email( $bbp_user ) )
225
- $bbp_user = get_user_by( 'email', $bbp_user );
226
- // Try nicename
227
- else
228
- $bbp_user = get_user_by( 'slug', $bbp_user );
229
 
230
- // If we were successful, set to ID
231
- if ( is_object( $bbp_user ) )
232
- $bbp_user = $bbp_user->ID;
233
- }
234
 
235
- // Create new user
236
- $user = new WP_User( $bbp_user );
237
 
238
- // Stop if no user
239
- if ( !isset( $user ) || empty( $user ) || empty( $user->ID ) ) {
240
- $posts_query->set_404();
241
- return;
242
- }
 
 
 
 
 
 
243
 
244
- /** User Exists *******************************************************/
 
245
 
246
- // View or edit?
247
- if ( !empty( $is_edit ) ) {
 
 
248
 
249
- // Only allow super admins on multisite to edit every user.
250
- if ( ( is_multisite() && !current_user_can( 'manage_network_users' ) && $user_id != $current_user->ID && !apply_filters( 'enable_edit_any_user_configuration', true ) ) || !current_user_can( 'edit_user', $user->ID ) )
251
- wp_die( __( 'You do not have the permission to edit this user.', 'bbpress' ) );
 
252
 
253
- // We are editing a profile
254
- $posts_query->bbp_is_user_profile_edit = true;
 
 
255
 
256
- // Load the core WordPress contact methods
257
- if ( !function_exists( '_wp_get_user_contactmethods' ) )
258
- include_once( ABSPATH . 'wp-includes/registration.php' );
 
 
259
 
260
- // Load the edit_user functions
261
- if ( !function_exists( 'edit_user' ) )
262
- require_once( ABSPATH . 'wp-admin/includes/user.php' );
263
 
264
- // We are viewing a profile
265
- } else {
266
- $posts_query->bbp_is_user_profile_page = true;
267
- }
268
 
269
- // Make sure 404 is not set
270
- $posts_query->is_404 = false;
271
 
272
- // Correct is_home variable
273
- $posts_query->is_home = false;
 
 
 
 
 
 
 
 
 
274
 
275
- // Set bbp_user_id for future reference
276
- $posts_query->query_vars['bbp_user_id'] = $user->ID;
277
 
278
- // Set author_name as current user's nicename to get correct posts
279
- if ( !bbp_is_query_name( 'bbp_widget' ) )
280
- $posts_query->query_vars['author_name'] = $user->user_nicename;
 
281
 
282
- // Set the displayed user global to this user
283
- $bbp->displayed_user = $user;
 
 
284
 
285
- // View Page
286
- } elseif ( !empty( $bbp_view ) ) {
 
 
287
 
288
- // Check if the view exists by checking if there are query args are set
289
- $view_args = bbp_get_view_query_args( $bbp_view );
 
 
290
 
291
- // Stop if view args is false - means the view isn't registered
292
- if ( false === $view_args ) {
293
- $posts_query->set_404();
294
- return;
295
- }
296
 
297
- // We are in a custom topic view
298
- $posts_query->bbp_is_view = true;
299
 
300
- // Topic/Reply Edit Page
301
- } elseif ( !empty( $is_edit ) ) {
302
 
303
- // We are editing a topic
304
- if ( $posts_query->get( 'post_type' ) == bbp_get_topic_post_type() )
305
- $posts_query->bbp_is_topic_edit = true;
306
 
307
- // We are editing a reply
308
- elseif ( $posts_query->get( 'post_type' ) == bbp_get_reply_post_type() )
309
- $posts_query->bbp_is_reply_edit = true;
 
 
 
 
 
 
 
 
310
 
311
- // We save post revisions on our own
312
- remove_action( 'pre_post_update', 'wp_save_post_revision' );
313
- }
314
 
315
- return $posts_query;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  }
317
 
318
  /**
@@ -321,121 +641,85 @@ function bbp_pre_get_posts( $posts_query ) {
321
  * Listens to the 'template_include' filter and waits for a bbPress post_type
322
  * to appear. If the current theme does not explicitly support bbPress, it
323
  * intercepts the page template and uses one served from the bbPress compatable
324
- * theme, set as the $bbp->theme_compat global. If the current theme does
325
  * support bbPress, we'll explore the template hierarchy and try to locate one.
326
  *
327
  * @since bbPress (r3032)
328
  *
329
  * @global bbPress $bbp
330
  * @global WP_Query $post
 
331
  * @param string $template
332
- * @return string
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  */
334
- function bbp_template_include( $template = false ) {
335
  global $bbp;
336
 
337
- // Prevent debug notices
338
- $templates = array();
339
- $new_template = '';
340
-
341
  // Current theme supports bbPress
342
  if ( current_theme_supports( 'bbpress' ) ) {
343
 
344
- // Viewing a profile
345
- if ( bbp_is_user_profile_page() ) {
346
- $templates = apply_filters( 'bbp_profile_templates', array(
347
- 'forums/user.php',
348
- 'bbpress/user.php',
349
- 'user.php',
350
- 'author.php',
351
- 'index.php'
352
- ) );
353
 
354
- // Editing a profile
355
- } elseif ( bbp_is_user_profile_edit() ) {
356
- $templates = apply_filters( 'bbp_profile_edit_templates', array(
357
- 'forums/user-edit.php',
358
- 'bbpress/user-edit.php',
359
- 'user-edit.php',
360
- 'forums/user.php',
361
- 'bbpress/user.php',
362
- 'user.php',
363
- 'author.php',
364
- 'index.php'
365
- ) );
366
 
367
- // View page
368
- } elseif ( bbp_is_view() ) {
369
- $templates = apply_filters( 'bbp_view_templates', array(
370
- 'forums/view-' . bbp_get_view_id(),
371
- 'bbpress/view-' . bbp_get_view_id(),
372
- 'forums/view.php',
373
- 'bbpress/view.php',
374
- 'view-' . bbp_get_view_id(),
375
- 'view.php',
376
- 'index.php'
377
- ) );
378
 
379
- // Editing a topic
380
- } elseif ( bbp_is_topic_edit() ) {
381
- $templates = array(
382
- 'forums/action-edit.php',
383
- 'bbpress/action-edit.php',
384
- 'forums/single-' . bbp_get_topic_post_type(),
385
- 'bbpress/single-' . bbp_get_topic_post_type(),
386
- 'action-bbp-edit.php',
387
- 'single-' . bbp_get_topic_post_type(),
388
- 'single.php',
389
- 'index.php'
390
- );
391
 
392
- // Add split/merge to front of array if present in _GET
393
- if ( !empty( $_GET['action'] ) && in_array( $_GET['action'], array( 'merge', 'split' ) ) ) {
394
- array_unshift( $templates,
395
- 'forums/action-split-merge.php',
396
- 'bbpress/action-split-merge.php',
397
- 'action-split-merge.php'
398
- );
399
- }
400
 
401
- $templates = apply_filters( 'bbp_topic_edit_templates', $templates );
 
402
 
403
  // Editing a reply
404
- } elseif ( bbp_is_reply_edit() ) {
405
- $templates = apply_filters( 'bbp_reply_edit_templates', array(
406
- 'forums/action-edit.php',
407
- 'bbpress/action-edit.php',
408
- 'forums/single-' . bbp_get_reply_post_type(),
409
- 'bbpress/single-' . bbp_get_reply_post_type(),
410
- 'action-bbp-edit.php',
411
- 'single-' . bbp_get_reply_post_type(),
412
- 'single.php',
413
- 'index.php'
414
- ) );
415
- }
416
 
417
  // Custom template file exists
418
- if ( !empty( $templates ) && ( $new_template = locate_template( $templates, false, false ) ) ) {
419
- $template = $new_template;
420
- }
421
  }
422
 
423
- /**
424
- * In this next bit, either the current theme does not support bbPress, or
425
- * the theme author has incorrectly used add_theme_support( 'bbpress' )
426
- * and we are going to help them out by silently filling in the blanks.
427
- */
428
- if ( !current_theme_supports( 'bbpress' ) || ( !empty( $templates ) && empty( $new_template ) ) ) {
 
 
 
 
429
 
430
- // Assume we are not in theme compat
431
- $in_theme_compat = false; $forum_id = 0;
432
 
433
  /** Users *************************************************************/
434
 
435
- if ( bbp_is_user_profile_page() || bbp_is_user_profile_edit() ) {
436
 
437
- // In Theme Compat
438
- $in_theme_compat = true;
439
  bbp_theme_compat_reset_post( array(
440
  'post_title' => esc_attr( bbp_get_displayed_user_field( 'display_name' ) )
441
  ) );
@@ -443,13 +727,12 @@ function bbp_template_include( $template = false ) {
443
  /** Forums ************************************************************/
444
 
445
  // Forum archive
446
- } elseif ( is_post_type_archive( bbp_get_forum_post_type() ) ) {
447
 
448
- // In Theme Compat
449
- $in_theme_compat = true;
450
  bbp_theme_compat_reset_post( array(
451
  'ID' => 0,
452
- 'post_title' => __( 'Forums', 'bbpress' ),
453
  'post_author' => 0,
454
  'post_date' => 0,
455
  'post_content' => '',
@@ -460,13 +743,12 @@ function bbp_template_include( $template = false ) {
460
  /** Topics ************************************************************/
461
 
462
  // Topic archive
463
- } elseif ( is_post_type_archive( bbp_get_topic_post_type() ) ) {
464
 
465
- // In Theme Compat
466
- $in_theme_compat = true;
467
  bbp_theme_compat_reset_post( array(
468
  'ID' => 0,
469
- 'post_title' => __( 'Topics', 'bbpress' ),
470
  'post_author' => 0,
471
  'post_date' => 0,
472
  'post_content' => '',
@@ -477,8 +759,7 @@ function bbp_template_include( $template = false ) {
477
  // Single topic
478
  } elseif ( bbp_is_topic_edit() || bbp_is_topic_split() || bbp_is_topic_merge() ) {
479
 
480
- // In Theme Compat
481
- $in_theme_compat = true;
482
  bbp_theme_compat_reset_post( array(
483
  'ID' => bbp_get_topic_id(),
484
  'post_title' => bbp_get_topic_title(),
@@ -494,8 +775,7 @@ function bbp_template_include( $template = false ) {
494
  // Reply archive
495
  } elseif ( is_post_type_archive( bbp_get_reply_post_type() ) ) {
496
 
497
- // In Theme Compat
498
- $in_theme_compat = true;
499
  bbp_theme_compat_reset_post( array(
500
  'ID' => 0,
501
  'post_title' => __( 'Replies', 'bbpress' ),
@@ -509,8 +789,7 @@ function bbp_template_include( $template = false ) {
509
  // Single reply
510
  } elseif ( bbp_is_reply_edit() ) {
511
 
512
- // In Theme Compat
513
- $in_theme_compat = true;
514
  bbp_theme_compat_reset_post( array(
515
  'ID' => bbp_get_reply_id(),
516
  'post_title' => bbp_get_reply_title(),
@@ -523,18 +802,23 @@ function bbp_template_include( $template = false ) {
523
 
524
  /** Views *************************************************************/
525
 
526
- } elseif ( bbp_is_view() ) {
 
 
 
 
 
 
 
 
 
 
 
527
 
528
- // In Theme Compat
529
- $in_theme_compat = true;
530
- bbp_theme_compat_reset_post();
531
 
532
  /** Topic Tags ********************************************************/
533
 
534
- } elseif ( is_tax( $bbp->topic_tag_id ) ) {
535
-
536
- // In Theme Compat
537
- $in_theme_compat = true;
538
 
539
  // Stash the current term in a new var
540
  set_query_var( 'bbp_topic_tag', get_query_var( 'term' ) );
@@ -546,29 +830,8 @@ function bbp_template_include( $template = false ) {
546
 
547
  /** Single Forums/Topics/Replies **************************************/
548
 
549
- } else {
550
-
551
- // Are we looking at a forum/topic/reply?
552
- switch ( get_post_type() ) {
553
-
554
- // Single Forum
555
- case bbp_get_forum_post_type() :
556
- $forum_id = bbp_get_forum_id( get_the_ID() );
557
- $in_theme_compat = true;
558
- break;
559
-
560
- // Single Topic
561
- case bbp_get_topic_post_type() :
562
- $forum_id = bbp_get_topic_forum_id( get_the_ID() );
563
- $in_theme_compat = true;
564
- break;
565
-
566
- // Single Reply
567
- case bbp_get_reply_post_type() :
568
- $forum_id = bbp_get_reply_forum_id( get_the_ID() );
569
- $in_theme_compat = true;
570
- break;
571
- }
572
  }
573
 
574
  /**
@@ -586,30 +849,20 @@ function bbp_template_include( $template = false ) {
586
  * prev/next navigation, comments, date/time, etc... You can hook into
587
  * the 'bbp_template_include' filter to override page.php.
588
  */
589
- if ( true === $in_theme_compat ) {
590
 
591
  // Remove all filters from the_content
592
- remove_all_filters( 'the_content' );
593
 
594
  // Add a filter on the_content late, which we will later remove
595
  add_filter( 'the_content', 'bbp_replace_the_content' );
596
 
597
- // Allow just-in-time filtering of theme compat template
598
- $templates = apply_filters( 'bbp_template_include', array(
599
- 'bbpress.php',
600
- 'forum.php',
601
- 'page.php',
602
- 'single.php',
603
- 'index.php'
604
- ) );
605
-
606
  // Find the appropriate template file
607
- $template = locate_template( $templates, false, false );
608
  }
609
  }
610
 
611
- // Return $template
612
- return $template;
613
  }
614
 
615
  /**
@@ -633,7 +886,7 @@ function bbp_replace_the_content( $content = '' ) {
633
  // Use the $post global to check it's post_type
634
  global $bbp;
635
 
636
- // Prevent debug notice
637
  $new_content = '';
638
 
639
  // Remove the filter that was added in bbp_template_include()
@@ -649,37 +902,75 @@ function bbp_replace_the_content( $content = '' ) {
649
  /** Users *************************************************************/
650
 
651
  // Profile View
652
- if ( bbp_is_user_profile_page() ) {
653
  ob_start();
654
 
655
- bbp_get_template_part( 'bbpress/single', 'user' );
656
 
657
  $new_content = ob_get_contents();
658
 
659
  ob_end_clean();
660
 
661
  // Profile Edit
662
- } elseif ( bbp_is_user_profile_edit() ) {
663
  ob_start();
664
 
665
- bbp_get_template_part( 'bbpress/single', 'user' );
666
 
667
  $new_content = ob_get_contents();
668
 
669
  ob_end_clean();
670
 
671
-
672
  /** Forums ************************************************************/
673
 
674
  // Forum archive
675
- } elseif ( is_post_type_archive( bbp_get_forum_post_type() ) ) {
676
- $new_content = $bbp->shortcodes->display_forum_index();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
 
678
  /** Topics ************************************************************/
679
 
680
  // Topic archive
681
- } elseif ( is_post_type_archive( bbp_get_topic_post_type() ) ) {
682
- $new_content = $bbp->shortcodes->display_topic_index();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
683
 
684
  // Single topic
685
  } elseif ( bbp_is_topic_edit() ) {
@@ -688,7 +979,7 @@ function bbp_replace_the_content( $content = '' ) {
688
  if ( bbp_is_topic_split() ) {
689
  ob_start();
690
 
691
- bbp_get_template_part( 'bbpress/form', 'split' );
692
 
693
  $new_content = ob_get_contents();
694
 
@@ -698,7 +989,7 @@ function bbp_replace_the_content( $content = '' ) {
698
  } elseif ( bbp_is_topic_merge() ) {
699
  ob_start();
700
 
701
- bbp_get_template_part( 'bbpress/form', 'merge' );
702
 
703
  $new_content = ob_get_contents();
704
 
@@ -721,7 +1012,7 @@ function bbp_replace_the_content( $content = '' ) {
721
 
722
  /** Views *************************************************************/
723
 
724
- } elseif ( bbp_is_view() ) {
725
  $new_content = $bbp->shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) );
726
 
727
  /** Topic Tags ********************************************************/
@@ -849,5 +1140,302 @@ function bbp_set_404() {
849
  $wp_query->set_404();
850
  }
851
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
 
853
  ?>
22
  * Don't try anything you're about to witness here, at home. Ever.
23
  */
24
 
25
+ /**
26
+ * Set the theme compat theme URL and DIR
27
+ *
28
+ * @since bbPress (r3311)
29
+ *
30
+ * @global bbPress $bbp
31
+ * @param string $theme
32
+ * @uses current_theme_supports()
33
+ */
34
+ function bbp_theme_compat_set_theme( $theme = array() ) {
35
+
36
+ // Check if current theme supports bbPress
37
+ if ( empty( $bbp->theme_compat->theme ) && !current_theme_supports( 'bbpress' ) ) {
38
+
39
+ global $bbp;
40
+
41
+ if ( empty( $theme ) ) {
42
+ $theme = array(
43
+ 'dir' => $bbp->themes_dir . '/bbp-twentyten',
44
+ 'url' => $bbp->themes_url . '/bbp-twentyten'
45
+ );
46
+ }
47
+
48
+ // Set the theme compat globals for help with loading template parts
49
+ $bbp->theme_compat->theme = $theme;
50
+ }
51
+ }
52
+
53
+ /**
54
+ * If not using a bbPress compatable theme, enqueue some basic styling and js
55
+ *
56
+ * @since bbPress (r3029)
57
+ *
58
+ * @global bbPress $bbp
59
+ * @uses bbp_set_compat_theme_dir() Set the compatable theme to bbp-twentyten
60
+ * @uses current_theme_supports() Check bbPress theme support
61
+ * @uses wp_enqueue_style() Enqueue the bbp-twentyten default CSS
62
+ * @uses wp_enqueue_script() Enqueue the bbp-twentyten default topic JS
63
+ */
64
+ function bbp_theme_compat_enqueue_css() {
65
+ global $bbp;
66
+
67
+ // Check if current theme supports bbPress
68
+ if ( !current_theme_supports( 'bbpress' ) ) {
69
+
70
+ /** Default CSS ***************************************************/
71
+
72
+ // Do not enqueue CSS in admin
73
+ if ( !is_admin() ) {
74
+
75
+ // Right to left
76
+ if ( is_rtl() ) {
77
+ wp_enqueue_style( 'bbpress-style', bbp_get_theme_compat_url() . '/css/bbpress-rtl.css' );
78
+
79
+ // Left to right
80
+ } else {
81
+ wp_enqueue_style( 'bbpress-style', bbp_get_theme_compat_url() . '/css/bbpress.css' );
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
  /**
88
  * Adds bbPress theme support to any active WordPress theme
89
  *
107
  // Current theme does not support bbPress, so we need to do some heavy
108
  // lifting to see if a bbPress template is needed in the current context
109
  if ( !current_theme_supports( 'bbpress' ) )
110
+ load_template( bbp_get_theme_compat_dir() . '/' . $slug . '-' . $name . '.php', false );
111
 
112
  // Current theme supports bbPress to proceed as usual
113
  else
127
  * @uses apply_filters()
128
  * @return string
129
  */
130
+ function bbp_get_theme_compat_dir() {
131
  global $bbp;
132
 
133
+ return apply_filters( 'bbp_get_theme_compat_dir', $bbp->theme_compat->theme['dir'] );
134
  }
135
 
136
  /**
137
+ * Gets the bbPress compatable theme used in the event the currently active
138
  * WordPress theme does not explicitly support bbPress. This can be filtered,
139
  * or set manually. Tricky theme authors can override the default and include
140
  * their own bbPress compatability layers for their themes.
142
  * @since bbPress (r3032)
143
  *
144
  * @global bbPress $bbp
 
145
  * @uses apply_filters()
146
  * @return string
147
  */
148
+ function bbp_get_theme_compat_url() {
149
+ global $bbp;
150
+
151
+ return apply_filters( 'bbp_get_theme_compat_url', $bbp->theme_compat->theme['url'] );
152
+ }
153
+
154
+ /**
155
+ * Gets true/false if page is currently inside theme compatibility
156
+ *
157
+ * @since bbPress (r3265)
158
+ *
159
+ * @global bbPress $bbp
160
+ *
161
+ * @return bool
162
+ */
163
+ function bbp_is_theme_compat_active() {
164
  global $bbp;
165
 
166
+ if ( empty( $bbp->theme_compat->active ) )
167
+ return false;
 
168
 
169
+ return $bbp->theme_compat->active;
170
+ }
 
171
 
172
+ /**
173
+ * Sets true/false if page is currently inside theme compatibility
174
+ *
175
+ * @since bbPress (r3265)
176
+ *
177
+ * @global bbPress $bbp
178
+ *
179
+ * @param bool $set
180
+ *
181
+ * @return bool
182
+ */
183
+ function bbp_set_theme_compat_active( $set = true ) {
184
+ global $bbp;
185
+
186
+ $bbp->theme_compat->active = $set;
187
+
188
+ return (bool) $bbp->theme_compat->active;
189
+ }
190
+
191
+ /**
192
+ * Set the theme compat templates global
193
+ *
194
+ * Stash possible template files for the current query. Useful if plugins want
195
+ * to override them, or see what files are being scanned for inclusion.
196
+ *
197
+ * @since bbPress (r3311)
198
+ *
199
+ * @global $bbp;
200
+ */
201
+ function bbp_set_theme_compat_templates( $templates = array() ) {
202
+ global $bbp;
203
+
204
+ $bbp->theme_compat->templates = $templates;
205
+
206
+ return $bbp->theme_compat->templates;
207
+ }
208
+
209
+ /**
210
+ * Set the theme compat template global
211
+ *
212
+ * Stash the template file for the current query. Useful if plugins want
213
+ * to override it, or see what file is being included.
214
+ *
215
+ * @since bbPress (r3311)
216
+ *
217
+ * @global $bbp;
218
+ */
219
+ function bbp_set_theme_compat_template( $template = '' ) {
220
+ global $bbp;
221
+
222
+ $bbp->theme_compat->template = $template;
223
+
224
+ return $bbp->theme_compat->template;
225
  }
226
 
227
  /**
289
  $wp_query->is_single = false;
290
  $wp_query->is_archive = false;
291
  $wp_query->is_tax = false;
292
+
293
+ // If we are resetting a post, we are in theme compat
294
+ bbp_set_theme_compat_active();
295
  }
296
 
297
+ /** Templates *****************************************************************/
298
+
299
  /**
300
+ * Get the user profile template
 
301
  *
302
+ * @since bbPress (r3311)
 
 
 
 
 
303
  *
304
+ * @uses bbp_get_displayed_user_id()
305
+ * @uses apply_filters()
306
  *
307
+ * @return array
308
+ */
309
+ function bbp_get_single_user_template() {
310
+
311
+ $displayed = bbp_get_displayed_user_id();
312
+ $templates = array(
313
+
314
+ // Single User ID
315
+ 'single-user-' . $displayed . '.php',
316
+ 'bbpress/single-user-' . $displayed . '.php',
317
+ 'forums/single-user-' . $displayed . '.php',
318
+
319
+ // Single User
320
+ 'single-user.php',
321
+ 'bbpress/single-user.php',
322
+ 'forums/single-user.php',
323
+
324
+ // User
325
+ 'user.php',
326
+ 'bbpress/user.php',
327
+ 'forums/user.php',
328
+ );
329
+
330
+ $templates = apply_filters( 'bbp_get_profile_template', $templates );
331
+ $templates = bbp_set_theme_compat_templates( $templates );
332
+
333
+ $template = locate_template( $templates, false, false );
334
+ $template = bbp_set_theme_compat_template( $template );
335
+
336
+ return $template;
337
+ }
338
+
339
+ /**
340
+ * Get the user profile edit template
341
  *
342
+ * @since bbPress (r3311)
343
  *
344
+ * @uses $displayed
345
+ * @uses apply_filters()
346
+ *
347
+ * @return array
 
 
 
 
 
 
 
 
 
 
348
  */
349
+ function bbp_get_single_user_edit_template() {
 
350
 
351
+ $displayed = bbp_get_displayed_user_id();
352
+ $templates = array(
 
353
 
354
+ // Single User Edit ID
355
+ 'single-user-edit-' . $displayed . '.php',
356
+ 'bbpress/single-user-edit-' . $displayed . '.php',
357
+ 'forums/single-user-edit-' . $displayed . '.php',
358
 
359
+ // Single User Edit
360
+ 'single-user-edit.php',
361
+ 'bbpress/single-user-edit.php',
362
+ 'forums/single-user-edit.php',
363
 
364
+ // User Edit
365
+ 'user-edit.php',
366
+ 'bbpress/user-edit.php',
367
+ 'forums/user-edit.php',
368
 
369
+ // User
370
+ 'forums/user.php',
371
+ 'bbpress/user.php',
372
+ 'user.php',
373
+ );
374
 
375
+ $templates = apply_filters( 'bbp_get_profile_edit_template', $templates );
376
+ $templates = bbp_set_theme_compat_templates( $templates );
 
 
 
 
377
 
378
+ $template = locate_template( $templates, false, false );
379
+ $template = bbp_set_theme_compat_template( $template );
 
 
380
 
381
+ return $template;
382
+ }
383
 
384
+ /**
385
+ * Get the view template
386
+ *
387
+ * @since bbPress (r3311)
388
+ *
389
+ * @uses bbp_get_view_id()
390
+ * @uses apply_filters()
391
+ *
392
+ * @return array
393
+ */
394
+ function bbp_get_single_view_template() {
395
 
396
+ $view_id = bbp_get_view_id();
397
+ $templates = array(
398
 
399
+ // Single View ID
400
+ 'single-view-' . $view_id . '.php',
401
+ 'bbpress/single-view-' . $view_id . '.php',
402
+ 'forums/single-view-' . $view_id . '.php',
403
 
404
+ // View ID
405
+ 'view-' . $view_id . '.php',
406
+ 'bbpress/view-' . $view_id . '.php',
407
+ 'forums/view-' . $view_id . '.php',
408
 
409
+ // Single View
410
+ 'single-view.php',
411
+ 'bbpress/single-view.php',
412
+ 'forums/single-view.php',
413
 
414
+ // View
415
+ 'view.php',
416
+ 'bbpress/view.php',
417
+ 'forums/view.php',
418
+ );
419
 
420
+ $templates = apply_filters( 'bbp_get_single_view_template', $templates );
421
+ $templates = bbp_set_theme_compat_templates( $templates );
 
422
 
423
+ $template = locate_template( $templates, false, false );
424
+ $template = bbp_set_theme_compat_template( $template );
 
 
425
 
426
+ return $template;
427
+ }
428
 
429
+ /**
430
+ * Get the topic edit template
431
+ *
432
+ * @since bbPress (r3311)
433
+ *
434
+ * @uses bbp_get_topic_post_type()
435
+ * @uses apply_filters()
436
+ *
437
+ * @return array
438
+ */
439
+ function bbp_get_topic_edit_template() {
440
 
441
+ $post_type = bbp_get_topic_post_type();
442
+ $templates = array(
443
 
444
+ // Single Topic Edit
445
+ 'single-' . $post_type . '-edit.php',
446
+ 'bbpress/single-' . $post_type . '-edit.php',
447
+ 'forums/single-' . $post_type . '-edit.php',
448
 
449
+ // Single Action Edit Topic
450
+ 'single-action-edit-' . $post_type . '.php',
451
+ 'bbpress/single-action-edit-' . $post_type . '.php',
452
+ 'forums/single-action-edit-' . $post_type . '.php',
453
 
454
+ // Single Action Edit
455
+ 'single-action-edit.php',
456
+ 'bbpress/single-action-edit.php',
457
+ 'forums/single-action-edit.php',
458
 
459
+ // Action Edit
460
+ 'action-edit.php',
461
+ 'bbpress/action-edit.php',
462
+ 'forums/action-edit.php',
463
 
464
+ // Single Topic
465
+ 'single-' . $post_type . '.php',
466
+ 'forums/single-' . $post_type . '.php',
467
+ 'bbpress/single-' . $post_type . '.php',
468
+ );
469
 
470
+ $templates = apply_filters( 'bbp_get_topic_edit_template', $templates );
471
+ $templates = bbp_set_theme_compat_templates( $templates );
472
 
473
+ $template = locate_template( $templates, false, false );
474
+ $template = bbp_set_theme_compat_template( $template );
475
 
476
+ return $template;
477
+ }
 
478
 
479
+ /**
480
+ * Get the topic split template
481
+ *
482
+ * @since bbPress (r3311)
483
+ *
484
+ * @uses bbp_get_topic_post_type()
485
+ * @uses apply_filters()
486
+ *
487
+ * @return array
488
+ */
489
+ function bbp_get_topic_split_template() {
490
 
491
+ $post_type = bbp_get_topic_post_type();
492
+ $templates = array(
 
493
 
494
+ // Topic Split Split
495
+ 'single-' . $post_type . '-split.php',
496
+ 'bbpress/single-' . $post_type . '-split.php',
497
+ 'forums/single-' . $post_type . '-split.php',
498
+
499
+ // Action Split Split
500
+ 'single-action-split-merge.php',
501
+ 'bbpress/single-action-split-merge.php',
502
+ 'forums/single-action-split-merge.php',
503
+
504
+ // Action Split Split
505
+ 'action-split-merge.php',
506
+ 'bbpress/action-split-merge.php',
507
+ 'forums/action-split-merge.php'
508
+ );
509
+
510
+ $templates = apply_filters( 'bbp_get_topic_edit_template', $templates );
511
+ $templates = bbp_set_theme_compat_templates( $templates );
512
+
513
+ $template = locate_template( $templates, false, false );
514
+ $template = bbp_set_theme_compat_template( $template );
515
+
516
+ return $template;
517
+ }
518
+
519
+ /**
520
+ * Get the topic merge template
521
+ *
522
+ * @since bbPress (r3311)
523
+ *
524
+ * @uses bbp_get_topic_post_type()
525
+ * @uses apply_filters()
526
+ *
527
+ * @return array
528
+ */
529
+ function bbp_get_topic_merge_template() {
530
+
531
+ $post_type = bbp_get_topic_post_type();
532
+ $templates = array(
533
+
534
+ // Topic Split Merge
535
+ 'single-' . $post_type . '-merge.php',
536
+ 'bbpress/single-' . $post_type . '-merge.php',
537
+ 'forums/single-' . $post_type . '-merge.php',
538
+
539
+ // Action Split Merge
540
+ 'single-action-split-merge.php',
541
+ 'bbpress/single-action-split-merge.php',
542
+ 'forums/single-action-split-merge.php',
543
+
544
+ // Action Split Merge
545
+ 'action-split-merge.php',
546
+ 'bbpress/action-split-merge.php',
547
+ 'forums/action-split-merge.php'
548
+ );
549
+
550
+ $templates = apply_filters( 'bbp_get_topic_edit_template', $templates );
551
+ $templates = bbp_set_theme_compat_templates( $templates );
552
+
553
+ $template = locate_template( $templates, false, false );
554
+ $template = bbp_set_theme_compat_template( $template );
555
+
556
+ return $template;
557
+ }
558
+
559
+ /**
560
+ * Get the reply edit template
561
+ *
562
+ * @since bbPress (r3311)
563
+ *
564
+ * @uses bbp_get_reply_post_type()
565
+ * @uses apply_filters()
566
+ *
567
+ * @return array
568
+ */
569
+ function bbp_get_reply_edit_template() {
570
+
571
+ $post_type = bbp_get_reply_post_type();
572
+ $templates = array(
573
+
574
+ // Single Reply Edit
575
+ 'single-' . $post_type . '-edit.php',
576
+ 'bbpress/single-' . $post_type . '-edit.php',
577
+ 'forums/single-' . $post_type . '-edit.php',
578
+
579
+ // Single Action Edit Reply
580
+ 'single-action-edit-' . $post_type . '.php',
581
+ 'bbpress/single-action-edit-' . $post_type . '.php',
582
+ 'forums/single-action-edit-' . $post_type . '.php',
583
+
584
+ // Single Action Edit
585
+ 'single-action-edit.php',
586
+ 'bbpress/single-action-edit.php',
587
+ 'forums/single-action-edit.php',
588
+
589
+ // Action Edit
590
+ 'action-edit.php',
591
+ 'bbpress/action-edit.php',
592
+ 'forums/action-edit.php',
593
+
594
+ // Single Reply
595
+ 'single-' . $post_type . '.php',
596
+ 'forums/single-' . $post_type . '.php',
597
+ 'bbpress/single-' . $post_type . '.php',
598
+ );
599
+
600
+ $templates = apply_filters( 'bbp_get_reply_edit_template', $templates );
601
+ $templates = bbp_set_theme_compat_templates( $templates );
602
+
603
+ $template = locate_template( $templates, false, false );
604
+ $template = bbp_set_theme_compat_template( $template );
605
+
606
+ return $template;
607
+ }
608
+
609
+ /**
610
+ * Get the files to fallback on to use for theme compatibility
611
+ *
612
+ * @since bbPress (r3311)
613
+ *
614
+ * @uses apply_filters()
615
+ * @uses bbp_set_theme_compat_templates();
616
+ *
617
+ * @return type
618
+ */
619
+ function bbp_get_theme_compat_templates() {
620
+
621
+ $templates = array(
622
+ 'bbpress.php',
623
+ 'forum.php',
624
+ 'page.php',
625
+ 'single.php',
626
+ 'index.php'
627
+ );
628
+
629
+ $templates = apply_filters( 'bbp_get_theme_compat_templates', $templates );
630
+ $templates = bbp_set_theme_compat_templates( $templates );
631
+
632
+ $template = locate_template( $templates, false, false );
633
+ $template = bbp_set_theme_compat_template( $template );
634
+
635
+ return $template;
636
  }
637
 
638
  /**
641
  * Listens to the 'template_include' filter and waits for a bbPress post_type
642
  * to appear. If the current theme does not explicitly support bbPress, it
643
  * intercepts the page template and uses one served from the bbPress compatable
644
+ * theme, set in the $bbp->theme_compat global. If the current theme does
645
  * support bbPress, we'll explore the template hierarchy and try to locate one.
646
  *
647
  * @since bbPress (r3032)
648
  *
649
  * @global bbPress $bbp
650
  * @global WP_Query $post
651
+ *
652
  * @param string $template
653
+ *
654
+ * @uses current_theme_supports() To check if theme supports bbPress
655
+ * @uses bbp_is_single_user() To check if page is single user
656
+ * @uses bbp_get_single_user_template() To get user template
657
+ * @uses bbp_is_single_user_edit() To check if page is single user edit
658
+ * @uses bbp_get_single_user_edit_template() To get user edit template
659
+ * @uses bbp_is_single_view() To check if page is single view
660
+ * @uses bbp_get_single_view_template() To get view template
661
+ * @uses bbp_is_topic_merge() To check if page is topic merge
662
+ * @uses bbp_get_topic_merge_template() To get topic merge template
663
+ * @uses bbp_is_topic_split() To check if page is topic split
664
+ * @uses bbp_get_topic_split_template() To get topic split template
665
+ * @uses bbp_is_topic_edit() To check if page is topic edit
666
+ * @uses bbp_get_topic_edit_template() To get topic edit template
667
+ * @uses bbp_is_reply_edit() To check if page is reply edit
668
+ * @uses bbp_get_reply_edit_template() To get reply edit template
669
+ * @uses bbp_set_theme_compat_template() To set the global theme compat template
670
+ *
671
+ * @return string The path to the template file that is being used
672
  */
673
+ function bbp_template_include_theme_supports( $template = '' ) {
674
  global $bbp;
675
 
 
 
 
 
676
  // Current theme supports bbPress
677
  if ( current_theme_supports( 'bbpress' ) ) {
678
 
679
+ // Viewing a user
680
+ if ( bbp_is_single_user() && ( $new_template = bbp_get_single_user_template() ) ) :
 
 
 
 
 
 
 
681
 
682
+ // Editing a user
683
+ elseif ( bbp_is_single_user_edit() && ( $new_template = bbp_get_single_user_edit_template() ) ) :
 
 
 
 
 
 
 
 
 
 
684
 
685
+ // Single View
686
+ elseif ( bbp_is_single_view() && ( $new_template = bbp_get_single_view_template() ) ) :
 
 
 
 
 
 
 
 
 
687
 
688
+ // Topic merge
689
+ elseif ( bbp_is_topic_merge() && ( $new_template = bbp_get_topic_merge_template() ) ) :
 
 
 
 
 
 
 
 
 
 
690
 
691
+ // Topic split
692
+ elseif ( bbp_is_topic_split() && ( $new_template = bbp_get_topic_split_template() ) ) :
 
 
 
 
 
 
693
 
694
+ // Topic edit
695
+ elseif ( bbp_is_topic_edit() && ( $new_template = bbp_get_topic_edit_template() ) ) :
696
 
697
  // Editing a reply
698
+ elseif ( bbp_is_reply_edit() && ( $new_template = bbp_get_reply_edit_template() ) ) :
699
+ endif;
 
 
 
 
 
 
 
 
 
 
700
 
701
  // Custom template file exists
702
+ $template = !empty( $new_template ) ? $new_template : $template;
 
 
703
  }
704
 
705
+ return apply_filters( 'bbp_template_include_theme_supports', $template );
706
+ }
707
+
708
+ /**
709
+ * In this next bit, either the current theme does not support bbPress, or
710
+ * the theme author has incorrectly used add_theme_support( 'bbpress' )
711
+ * and we are going to help them out by silently filling in the blanks.
712
+ */
713
+ function bbp_template_include_theme_compat( $template = '' ) {
714
+ global $bbp;
715
 
716
+ if ( !current_theme_supports( 'bbpress' ) || ( !empty( $bbp->theme_compat->templates ) && empty( $bbp->theme_compat->template ) ) ) {
 
717
 
718
  /** Users *************************************************************/
719
 
720
+ if ( bbp_is_single_user() || bbp_is_single_user_edit() ) {
721
 
722
+ // Reset post
 
723
  bbp_theme_compat_reset_post( array(
724
  'post_title' => esc_attr( bbp_get_displayed_user_field( 'display_name' ) )
725
  ) );
727
  /** Forums ************************************************************/
728
 
729
  // Forum archive
730
+ } elseif ( bbp_is_forum_archive() ) {
731
 
732
+ // Reset post
 
733
  bbp_theme_compat_reset_post( array(
734
  'ID' => 0,
735
+ 'post_title' => bbp_get_forum_archive_title(),
736
  'post_author' => 0,
737
  'post_date' => 0,
738
  'post_content' => '',
743
  /** Topics ************************************************************/
744
 
745
  // Topic archive
746
+ } elseif ( bbp_is_topic_archive() ) {
747
 
748
+ // Reset post
 
749
  bbp_theme_compat_reset_post( array(
750
  'ID' => 0,
751
+ 'post_title' => bbp_get_topic_archive_title(),
752
  'post_author' => 0,
753
  'post_date' => 0,
754
  'post_content' => '',
759
  // Single topic
760
  } elseif ( bbp_is_topic_edit() || bbp_is_topic_split() || bbp_is_topic_merge() ) {
761
 
762
+ // Reset post
 
763
  bbp_theme_compat_reset_post( array(
764
  'ID' => bbp_get_topic_id(),
765
  'post_title' => bbp_get_topic_title(),
775
  // Reply archive
776
  } elseif ( is_post_type_archive( bbp_get_reply_post_type() ) ) {
777
 
778
+ // Reset post
 
779
  bbp_theme_compat_reset_post( array(
780
  'ID' => 0,
781
  'post_title' => __( 'Replies', 'bbpress' ),
789
  // Single reply
790
  } elseif ( bbp_is_reply_edit() ) {
791
 
792
+ // Reset post
 
793
  bbp_theme_compat_reset_post( array(
794
  'ID' => bbp_get_reply_id(),
795
  'post_title' => bbp_get_reply_title(),
802
 
803
  /** Views *************************************************************/
804
 
805
+ } elseif ( bbp_is_single_view() ) {
806
+
807
+ // Reset post
808
+ bbp_theme_compat_reset_post( array(
809
+ 'ID' => 0,
810
+ 'post_title' => bbp_get_view_title(),
811
+ 'post_author' => 0,
812
+ 'post_date' => 0,
813
+ 'post_content' => '',
814
+ 'post_type' => '',
815
+ 'post_status' => 'publish'
816
+ ) );
817
 
 
 
 
818
 
819
  /** Topic Tags ********************************************************/
820
 
821
+ } elseif ( bbp_is_topic_tag() ) {
 
 
 
822
 
823
  // Stash the current term in a new var
824
  set_query_var( 'bbp_topic_tag', get_query_var( 'term' ) );
830
 
831
  /** Single Forums/Topics/Replies **************************************/
832
 
833
+ } elseif ( bbp_is_custom_post_type() ) {
834
+ bbp_set_theme_compat_active();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
835
  }
836
 
837
  /**
849
  * prev/next navigation, comments, date/time, etc... You can hook into
850
  * the 'bbp_template_include' filter to override page.php.
851
  */
852
+ if ( bbp_is_theme_compat_active() ) {
853
 
854
  // Remove all filters from the_content
855
+ bbp_remove_all_filters( 'the_content' );
856
 
857
  // Add a filter on the_content late, which we will later remove
858
  add_filter( 'the_content', 'bbp_replace_the_content' );
859
 
 
 
 
 
 
 
 
 
 
860
  // Find the appropriate template file
861
+ $template = bbp_get_theme_compat_templates();
862
  }
863
  }
864
 
865
+ return apply_filters( 'bbp_template_include_theme_compat', $template );
 
866
  }
867
 
868
  /**
886
  // Use the $post global to check it's post_type
887
  global $bbp;
888
 
889
+ // Define local variable(s)
890
  $new_content = '';
891
 
892
  // Remove the filter that was added in bbp_template_include()
902
  /** Users *************************************************************/
903
 
904
  // Profile View
905
+ if ( bbp_is_single_user() ) {
906
  ob_start();
907
 
908
+ bbp_get_template_part( 'bbpress/content', 'single-user' );
909
 
910
  $new_content = ob_get_contents();
911
 
912
  ob_end_clean();
913
 
914
  // Profile Edit
915
+ } elseif ( bbp_is_single_user_edit() ) {
916
  ob_start();
917
 
918
+ bbp_get_template_part( 'bbpress/content', 'single-user-edit' );
919
 
920
  $new_content = ob_get_contents();
921
 
922
  ob_end_clean();
923
 
 
924
  /** Forums ************************************************************/
925
 
926
  // Forum archive
927
+ } elseif ( bbp_is_forum_archive() ) {
928
+
929
+ // Page exists where this archive should be
930
+ if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) {
931
+
932
+ // Start output buffer
933
+ ob_start();
934
+
935
+ // Restore previously unset filters
936
+ bbp_restore_all_filters( 'the_content' );
937
+
938
+ // Grab the content of this page
939
+ $new_content = do_shortcode( apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) );
940
+
941
+ // Clean up the buffer
942
+ ob_end_clean();
943
+
944
+ // No page so show the archive
945
+ } else {
946
+ $new_content = $bbp->shortcodes->display_forum_index();
947
+ }
948
 
949
  /** Topics ************************************************************/
950
 
951
  // Topic archive
952
+ } elseif ( bbp_is_topic_archive() ) {
953
+
954
+ // Page exists where this archive should be
955
+ if ( $page = bbp_get_page_by_path( $bbp->topic_archive_slug ) ) {
956
+
957
+ // Start output buffer
958
+ ob_start();
959
+
960
+ // Restore previously unset filters
961
+ bbp_restore_all_filters( 'the_content' );
962
+
963
+ // Grab the content of this page
964
+ $new_content = do_shortcode( apply_filters( 'the_content', get_post_field( 'post_content', $page->ID ) ) );
965
+
966
+ // Clean up the buffer
967
+ ob_end_clean();
968
+
969
+
970
+ // No page so show the archive
971
+ } else {
972
+ $new_content = $bbp->shortcodes->display_topic_index();
973
+ }
974
 
975
  // Single topic
976
  } elseif ( bbp_is_topic_edit() ) {
979
  if ( bbp_is_topic_split() ) {
980
  ob_start();
981
 
982
+ bbp_get_template_part( 'bbpress/form', 'topic-split' );
983
 
984
  $new_content = ob_get_contents();
985
 
989
  } elseif ( bbp_is_topic_merge() ) {
990
  ob_start();
991
 
992
+ bbp_get_template_part( 'bbpress/form', 'topic-merge' );
993
 
994
  $new_content = ob_get_contents();
995
 
1012
 
1013
  /** Views *************************************************************/
1014
 
1015
+ } elseif ( bbp_is_single_view() ) {
1016
  $new_content = $bbp->shortcodes->display_view( array( 'id' => get_query_var( 'bbp_view' ) ) );
1017
 
1018
  /** Topic Tags ********************************************************/
1140
  $wp_query->set_404();
1141
  }
1142
 
1143
+ /**
1144
+ * Used to guess if page exists at requested path
1145
+ *
1146
+ * @since bbPress (r3304)
1147
+ *
1148
+ * @uses get_option() To see if pretty permalinks are enabled
1149
+ * @uses get_page_by_path() To see if page exists at path
1150
+ *
1151
+ * @param string $path
1152
+ * @return mixed False if no page, Page object if true
1153
+ */
1154
+ function bbp_get_page_by_path( $path = '' ) {
1155
+
1156
+ // Default to false
1157
+ $retval = false;
1158
+
1159
+ // Path is not empty
1160
+ if ( !empty( $path ) ) {
1161
+
1162
+ // Pretty permalinks are on so path might exist
1163
+ if ( get_option( 'permalink_structure' ) ) {
1164
+ $retval = get_page_by_path( $path );
1165
+ }
1166
+ }
1167
+
1168
+ return apply_filters( 'bbp_get_page_by_path', $retval, $path );
1169
+ }
1170
+
1171
+ /** Filters *******************************************************************/
1172
+
1173
+ /**
1174
+ * Removes all filters from a WordPress filter, and stashes them in the $bbp
1175
+ * global in the event they need to be restored later.
1176
+ *
1177
+ * @since bbPress (r3251)
1178
+ *
1179
+ * @global bbPress $bbp
1180
+ * @global WP_filter $wp_filter
1181
+ * @global array $merged_filters
1182
+ *
1183
+ * @param string $tag
1184
+ * @param int $priority
1185
+ *
1186
+ * @return bool
1187
+ */
1188
+ function bbp_remove_all_filters( $tag, $priority = false ) {
1189
+ global $bbp, $wp_filter, $merged_filters;
1190
+
1191
+ // Filters exist
1192
+ if ( isset( $wp_filter[$tag] ) ) {
1193
+
1194
+ // Filters exist in this priority
1195
+ if ( !empty( $priority ) && isset( $wp_filter[$tag][$priority] ) ) {
1196
+
1197
+ // Store filters in a backup
1198
+ $bbp->filters->wp_filter[$tag][$priority] = $wp_filter[$tag][$priority];
1199
+
1200
+ // Unset the filters
1201
+ unset( $wp_filter[$tag][$priority] );
1202
+
1203
+ // Priority is empty
1204
+ } else {
1205
+
1206
+ // Store filters in a backup
1207
+ $bbp->filters->wp_filter[$tag] = $wp_filter[$tag];
1208
+
1209
+ // Unset the filters
1210
+ unset( $wp_filter[$tag] );
1211
+ }
1212
+ }
1213
+
1214
+ // Check merged filters
1215
+ if ( isset( $merged_filters[$tag] ) ) {
1216
+
1217
+ // Store filters in a backup
1218
+ $bbp->filters->merged_filters[$tag] = $merged_filters[$tag];
1219
+
1220
+ // Unset the filters
1221
+ unset( $merged_filters[$tag] );
1222
+ }
1223
+
1224
+ return true;
1225
+ }
1226
+
1227
+ /**
1228
+ * Restores filters from the $bbp global that were removed using
1229
+ * bbp_remove_all_filters()
1230
+ *
1231
+ * @since bbPress (r3251)
1232
+ *
1233
+ * @global bbPress $bbp
1234
+ * @global WP_filter $wp_filter
1235
+ * @global array $merged_filters
1236
+ *
1237
+ * @param string $tag
1238
+ * @param int $priority
1239
+ *
1240
+ * @return bool
1241
+ */
1242
+ function bbp_restore_all_filters( $tag, $priority = false ) {
1243
+ global $bbp, $wp_filter, $merged_filters;
1244
+
1245
+ // Filters exist
1246
+ if ( isset( $bbp->filters->wp_filter[$tag] ) ) {
1247
+
1248
+ // Filters exist in this priority
1249
+ if ( !empty( $priority ) && isset( $bbp->filters->wp_filter[$tag][$priority] ) ) {
1250
+
1251
+ // Store filters in a backup
1252
+ $wp_filter[$tag][$priority] = $bbp->filters->wp_filter[$tag][$priority];
1253
+
1254
+ // Unset the filters
1255
+ unset( $bbp->filters->wp_filter[$tag][$priority] );
1256
+
1257
+ // Priority is empty
1258
+ } else {
1259
+
1260
+ // Store filters in a backup
1261
+ $wp_filter[$tag] = $bbp->filters->wp_filter[$tag];
1262
+
1263
+ // Unset the filters
1264
+ unset( $bbp->filters->wp_filter[$tag] );
1265
+ }
1266
+ }
1267
+
1268
+ // Check merged filters
1269
+ if ( isset( $bbp->filters->merged_filters[$tag] ) ) {
1270
+
1271
+ // Store filters in a backup
1272
+ $merged_filters[$tag] = $bbp->filters->merged_filters[$tag];
1273
+
1274
+ // Unset the filters
1275
+ unset( $bbp->filters->merged_filters[$tag] );
1276
+ }
1277
+
1278
+ return true;
1279
+ }
1280
+
1281
+ /**
1282
+ * Add checks for view page, user page, user edit, topic edit and reply edit
1283
+ * pages.
1284
+ *
1285
+ * If it's a user page, WP_Query::bbp_is_single_user is set to true.
1286
+ * If it's a user edit page, WP_Query::bbp_is_single_user_edit is set to true
1287
+ * and the the 'wp-admin/includes/user.php' file is included.
1288
+ * In addition, on user/user edit pages, WP_Query::home is set to false & query
1289
+ * vars 'bbp_user_id' with the displayed user id and 'author_name' with the
1290
+ * displayed user's nicename are added.
1291
+ *
1292
+ * If it's a topic edit, WP_Query::bbp_is_topic_edit is set to true and
1293
+ * similarly, if it's a reply edit, WP_Query::bbp_is_reply_edit is set to true.
1294
+ *
1295
+ * If it's a view page, WP_Query::bbp_is_view is set to true
1296
+ *
1297
+ * @since bbPress (r2688)
1298
+ *
1299
+ * @global bbPress $bbp
1300
+ * #global WP_Query $wp_query
1301
+ *
1302
+ * @uses get_query_var() To get {@link WP_Query} query var
1303
+ * @uses is_email() To check if the string is an email
1304
+ * @uses get_user_by() To try to get the user by email and nicename
1305
+ * @uses WP_User to get the user data
1306
+ * @uses WP_Query::set_404() To set a 404 status
1307
+ * @uses current_user_can() To check if the current user can edit the user
1308
+ * @uses apply_filters() Calls 'enable_edit_any_user_configuration' with true
1309
+ * @uses wp_die() To die
1310
+ * @uses bbp_is_query_name() Check if query name is 'bbp_widget'
1311
+ * @uses bbp_get_view_query_args() To get the view query args
1312
+ * @uses bbp_get_topic_post_type() To get the topic post type
1313
+ * @uses bbp_get_reply_post_type() To get the reply post type
1314
+ * @uses is_multisite() To check if it's a multisite
1315
+ * @uses remove_action() To remove the auto save post revision action
1316
+ */
1317
+ function bbp_pre_get_posts( $posts_query ) {
1318
+ global $bbp, $wp_the_query;
1319
+
1320
+ // Bail if $posts_query is not the main loop
1321
+ if ( $posts_query != $wp_the_query )
1322
+ return $posts_query;
1323
+
1324
+ // Bail if filters are suppressed on this query, or in admin
1325
+ if ( true == $posts_query->get( 'suppress_filters' ) )
1326
+ return $posts_query;
1327
+
1328
+ // Bail if in admin
1329
+ if ( is_admin() )
1330
+ return $posts_query;
1331
+
1332
+ // Get query variables
1333
+ $bbp_user = $posts_query->get( $bbp->user_id );
1334
+ $bbp_view = $posts_query->get( $bbp->view_id );
1335
+ $is_edit = $posts_query->get( $bbp->edit_id );
1336
+
1337
+ // It is a user page - We'll also check if it is user edit
1338
+ if ( !empty( $bbp_user ) ) {
1339
+
1340
+ // Not a user_id so try email and slug
1341
+ if ( !is_numeric( $bbp_user ) ) {
1342
+
1343
+ // Email was passed
1344
+ if ( is_email( $bbp_user ) )
1345
+ $bbp_user = get_user_by( 'email', $bbp_user );
1346
+ // Try nicename
1347
+ else
1348
+ $bbp_user = get_user_by( 'slug', $bbp_user );
1349
+
1350
+ // If we were successful, set to ID
1351
+ if ( is_object( $bbp_user ) )
1352
+ $bbp_user = $bbp_user->ID;
1353
+ }
1354
+
1355
+ // Create new user
1356
+ $user = new WP_User( $bbp_user );
1357
+
1358
+ // Stop if no user
1359
+ if ( !isset( $user ) || empty( $user ) || empty( $user->ID ) ) {
1360
+ $posts_query->set_404();
1361
+ return;
1362
+ }
1363
+
1364
+ /** User Exists *******************************************************/
1365
+
1366
+ // View or edit?
1367
+ if ( !empty( $is_edit ) ) {
1368
+
1369
+ // Only allow super admins on multisite to edit every user.
1370
+ if ( ( is_multisite() && !current_user_can( 'manage_network_users' ) && $user_id != $current_user->ID && !apply_filters( 'enable_edit_any_user_configuration', true ) ) || !current_user_can( 'edit_user', $user->ID ) )
1371
+ wp_die( __( 'You do not have the permission to edit this user.', 'bbpress' ) );
1372
+
1373
+ // We are editing a profile
1374
+ $posts_query->bbp_is_single_user_edit = true;
1375
+
1376
+ // Load the core WordPress contact methods
1377
+ if ( !function_exists( '_wp_get_user_contactmethods' ) )
1378
+ include_once( ABSPATH . 'wp-includes/registration.php' );
1379
+
1380
+ // Load the edit_user functions
1381
+ if ( !function_exists( 'edit_user' ) )
1382
+ require_once( ABSPATH . 'wp-admin/includes/user.php' );
1383
+
1384
+ // We are viewing a profile
1385
+ } else {
1386
+ $posts_query->bbp_is_single_user = true;
1387
+ }
1388
+
1389
+ // Make sure 404 is not set
1390
+ $posts_query->is_404 = false;
1391
+
1392
+ // Correct is_home variable
1393
+ $posts_query->is_home = false;
1394
+
1395
+ // Set bbp_user_id for future reference
1396
+ $posts_query->query_vars['bbp_user_id'] = $user->ID;
1397
+
1398
+ // Set author_name as current user's nicename to get correct posts
1399
+ if ( !bbp_is_query_name( 'bbp_widget' ) )
1400
+ $posts_query->query_vars['author_name'] = $user->user_nicename;
1401
+
1402
+ // Set the displayed user global to this user
1403
+ $bbp->displayed_user = $user;
1404
+
1405
+ // View Page
1406
+ } elseif ( !empty( $bbp_view ) ) {
1407
+
1408
+ // Check if the view exists by checking if there are query args are set
1409
+ $view_args = bbp_get_view_query_args( $bbp_view );
1410
+
1411
+ // Stop if view args is false - means the view isn't registered
1412
+ if ( false === $view_args ) {
1413
+ $posts_query->set_404();
1414
+ return;
1415
+ }
1416
+
1417
+ // Correct is_home variable
1418
+ $posts_query->is_home = false;
1419
+
1420
+ // We are in a custom topic view
1421
+ $posts_query->bbp_is_view = true;
1422
+
1423
+ // Topic/Reply Edit Page
1424
+ } elseif ( !empty( $is_edit ) ) {
1425
+
1426
+ // We are editing a topic
1427
+ if ( $posts_query->get( 'post_type' ) == bbp_get_topic_post_type() )
1428
+ $posts_query->bbp_is_topic_edit = true;
1429
+
1430
+ // We are editing a reply
1431
+ elseif ( $posts_query->get( 'post_type' ) == bbp_get_reply_post_type() )
1432
+ $posts_query->bbp_is_reply_edit = true;
1433
+
1434
+ // We save post revisions on our own
1435
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
1436
+ }
1437
+
1438
+ return $posts_query;
1439
+ }
1440
 
1441
  ?>
bbp-includes/bbp-core-hooks.php CHANGED
@@ -33,8 +33,8 @@ if ( !defined( 'ABSPATH' ) ) exit;
33
  */
34
  add_action( 'plugins_loaded', 'bbp_loaded', 10 );
35
  add_action( 'init', 'bbp_init', 10 );
36
- add_action( 'generate_rewrite_rules', 'bbp_generate_rewrite_rules', 12 );
37
- add_action( 'after_setup_theme', 'bbp_setup_theme_compat', 12 );
38
 
39
  /**
40
  * bbp_loaded - Attached to 'plugins_loaded' above
@@ -58,20 +58,26 @@ add_action( 'bbp_loaded', 'bbp_register_theme_directory', 10 );
58
  */
59
  add_action( 'bbp_init', 'bbp_register_textdomain', 2 );
60
  add_action( 'bbp_init', 'bbp_setup_current_user', 4 );
61
- add_action( 'bbp_init', 'bbp_register_post_types', 6 );
62
- add_action( 'bbp_init', 'bbp_register_post_statuses', 8 );
63
- add_action( 'bbp_init', 'bbp_register_taxonomies', 10 );
64
- add_action( 'bbp_init', 'bbp_register_views', 12 );
65
- add_action( 'bbp_init', 'bbp_register_shortcodes', 14 );
66
- add_action( 'bbp_init', 'bbp_add_rewrite_tags', 16 );
 
 
67
  add_action( 'bbp_init', 'bbp_ready', 999 );
68
 
 
 
 
 
69
  // Admin
70
  if ( is_admin() ) {
71
  add_action( 'bbp_init', 'bbp_admin' );
72
- add_action( 'bbp_admin_init', 'bbp_forums_admin' );
73
- add_action( 'bbp_admin_init', 'bbp_topics_admin' );
74
- add_action( 'bbp_admin_init', 'bbp_replies_admin' );
75
  add_action( 'bbp_admin_init', 'bbp_admin_settings_help' );
76
  add_action( 'admin_menu', 'bbp_admin_separator' );
77
  add_action( 'custom_menu_order', 'bbp_admin_custom_menu_order' );
@@ -106,12 +112,18 @@ add_action( 'bbp_deactivation', 'bbp_remove_roles', 2 );
106
  // Options & Settings
107
  add_action( 'bbp_activation', 'bbp_add_options', 1 );
108
 
 
 
 
 
 
109
  // Topic Tag Page
110
  add_action( 'template_redirect', 'bbp_manage_topic_tag_handler', 1 );
111
 
112
  // Before and After the Query
113
- add_action( 'pre_get_posts', 'bbp_pre_get_posts', 1 );
114
- add_action( 'template_redirect', 'bbp_forum_visibility_check', -1 );
 
115
 
116
  // Profile Edit
117
  add_action( 'template_redirect', 'bbp_edit_user_handler', 1 );
@@ -120,10 +132,6 @@ add_action( 'template_redirect', 'bbp_edit_user_handler', 1 );
120
  add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success' );
121
  add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 );
122
 
123
- // New/Edit Forum
124
- if ( is_admin() )
125
- add_action( 'wp_insert_post', 'bbp_new_forum_admin_handler', 10, 2 );
126
-
127
  // Update forum branch
128
  add_action( 'bbp_trashed_forum', 'bbp_update_forum_walker' );
129
  add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
@@ -136,8 +144,6 @@ add_action( 'template_redirect', 'bbp_new_reply_handler' );
136
  add_action( 'template_redirect', 'bbp_edit_reply_handler', 1 );
137
  add_action( 'bbp_new_reply', 'bbp_update_reply', 10, 6 );
138
  add_action( 'bbp_edit_reply', 'bbp_update_reply', 10, 6 );
139
- if ( is_admin() )
140
- add_action( 'wp_insert_post', 'bbp_new_reply_admin_handler', 10, 2 );
141
 
142
  // Before Delete/Trash/Untrash Reply
143
  add_action( 'trash_post', 'bbp_trash_reply' );
@@ -154,8 +160,6 @@ add_action( 'template_redirect', 'bbp_new_topic_handler' );
154
  add_action( 'template_redirect', 'bbp_edit_topic_handler', 1 );
155
  add_action( 'bbp_new_topic', 'bbp_update_topic', 10, 5 );
156
  add_action( 'bbp_edit_topic', 'bbp_update_topic', 10, 5 );
157
- if ( is_admin() )
158
- add_action( 'wp_insert_post', 'bbp_new_topic_admin_handler', 10, 2 );
159
 
160
  // Split/Merge Topic
161
  add_action( 'template_redirect', 'bbp_merge_topic_handler', 1 );
@@ -206,6 +210,32 @@ add_action( 'bbp_deleted_reply', 'bbp_update_reply_walker' );
206
  add_action( 'bbp_spammed_reply', 'bbp_update_reply_walker' );
207
  add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  /** FILTERS *******************************************************************/
210
 
211
  /**
@@ -215,7 +245,8 @@ add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
215
  * template hierarchy, start here by removing this filter, then look at how
216
  * bbp_template_include() works and do something similar. :)
217
  */
218
- add_filter( 'template_include', 'bbp_template_include' );
 
219
 
220
  /**
221
  * Feeds
@@ -354,19 +385,225 @@ bbp_pre_anonymous_filters();
354
  *
355
  * @since bbPress (r2944)
356
  *
357
- * @uses is_super_admin() To check if the user is site admin
358
  * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list
359
  */
360
  function bbp_allowed_themes( $themes ) {
361
-
362
- // Only force bbp-twentyten theme for super admins
363
- if ( !is_super_admin() )
364
- return $themes;
365
-
366
  $themes['bbp-twentyten'] = 1;
367
 
368
  return apply_filters( 'bbp_allowed_themes', $themes );
369
  }
370
  add_filter( 'allowed_themes', 'bbp_allowed_themes' );
371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
372
  ?>
33
  */
34
  add_action( 'plugins_loaded', 'bbp_loaded', 10 );
35
  add_action( 'init', 'bbp_init', 10 );
36
+ add_action( 'generate_rewrite_rules', 'bbp_generate_rewrite_rules', 10 );
37
+ add_filter( 'template_include', 'bbp_template_include', 10 );
38
 
39
  /**
40
  * bbp_loaded - Attached to 'plugins_loaded' above
58
  */
59
  add_action( 'bbp_init', 'bbp_register_textdomain', 2 );
60
  add_action( 'bbp_init', 'bbp_setup_current_user', 4 );
61
+ add_action( 'bbp_init', 'bbp_setup_theme_compat', 6 );
62
+ add_action( 'bbp_init', 'bbp_setup_akismet', 8 );
63
+ add_action( 'bbp_init', 'bbp_register_post_types', 10 );
64
+ add_action( 'bbp_init', 'bbp_register_post_statuses', 12 );
65
+ add_action( 'bbp_init', 'bbp_register_taxonomies', 14 );
66
+ add_action( 'bbp_init', 'bbp_register_views', 16 );
67
+ add_action( 'bbp_init', 'bbp_register_shortcodes', 18 );
68
+ add_action( 'bbp_init', 'bbp_add_rewrite_tags', 20 );
69
  add_action( 'bbp_init', 'bbp_ready', 999 );
70
 
71
+ // Theme Compat
72
+ add_action( 'bbp_setup_theme_compat', 'bbp_theme_compat_set_theme' );
73
+ add_action( 'bbp_setup_theme_compat', 'bbp_theme_compat_enqueue_css' );
74
+
75
  // Admin
76
  if ( is_admin() ) {
77
  add_action( 'bbp_init', 'bbp_admin' );
78
+ add_action( 'bbp_admin_init', 'bbp_forums_admin', 9 );
79
+ add_action( 'bbp_admin_init', 'bbp_topics_admin', 9 );
80
+ add_action( 'bbp_admin_init', 'bbp_replies_admin', 9 );
81
  add_action( 'bbp_admin_init', 'bbp_admin_settings_help' );
82
  add_action( 'admin_menu', 'bbp_admin_separator' );
83
  add_action( 'custom_menu_order', 'bbp_admin_custom_menu_order' );
112
  // Options & Settings
113
  add_action( 'bbp_activation', 'bbp_add_options', 1 );
114
 
115
+ // Multisite
116
+ add_action( 'bbp_new_site', 'bbp_add_roles', 2 );
117
+ add_action( 'bbp_new_site', 'bbp_add_caps', 4 );
118
+ add_action( 'bbp_new_site', 'bbp_add_options', 6 );
119
+
120
  // Topic Tag Page
121
  add_action( 'template_redirect', 'bbp_manage_topic_tag_handler', 1 );
122
 
123
  // Before and After the Query
124
+ add_action( 'pre_get_posts', 'bbp_pre_get_posts', 2 );
125
+ add_action( 'pre_get_posts', 'bbp_pre_get_posts_exclude_forums', 4 );
126
+ add_action( 'template_redirect', 'bbp_forum_visibility_check', -1 );
127
 
128
  // Profile Edit
129
  add_action( 'template_redirect', 'bbp_edit_user_handler', 1 );
132
  add_action( 'bbp_template_notices', 'bbp_notice_edit_user_success' );
133
  add_action( 'bbp_template_notices', 'bbp_notice_edit_user_is_super_admin', 2 );
134
 
 
 
 
 
135
  // Update forum branch
136
  add_action( 'bbp_trashed_forum', 'bbp_update_forum_walker' );
137
  add_action( 'bbp_untrashed_forum', 'bbp_update_forum_walker' );
144
  add_action( 'template_redirect', 'bbp_edit_reply_handler', 1 );
145
  add_action( 'bbp_new_reply', 'bbp_update_reply', 10, 6 );
146
  add_action( 'bbp_edit_reply', 'bbp_update_reply', 10, 6 );
 
 
147
 
148
  // Before Delete/Trash/Untrash Reply
149
  add_action( 'trash_post', 'bbp_trash_reply' );
160
  add_action( 'template_redirect', 'bbp_edit_topic_handler', 1 );
161
  add_action( 'bbp_new_topic', 'bbp_update_topic', 10, 5 );
162
  add_action( 'bbp_edit_topic', 'bbp_update_topic', 10, 5 );
 
 
163
 
164
  // Split/Merge Topic
165
  add_action( 'template_redirect', 'bbp_merge_topic_handler', 1 );
210
  add_action( 'bbp_spammed_reply', 'bbp_update_reply_walker' );
211
  add_action( 'bbp_unspammed_reply', 'bbp_update_reply_walker' );
212
 
213
+ /**
214
+ * When a new site is created in a multisite installation, run the activation
215
+ * routine on that site
216
+ *
217
+ * @since bbPress (r3283)
218
+ *
219
+ * @param int $blog_id
220
+ * @param int $user_id
221
+ * @param string $domain
222
+ * @param string $path
223
+ * @param int $site_id
224
+ * @param array() $meta
225
+ */
226
+ function bbp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
227
+
228
+ // Switch to the new blog
229
+ switch_to_blog( $blog_id );
230
+
231
+ // Do the bbPress activation routine
232
+ do_action( 'bbp_new_site' );
233
+
234
+ // restore original blog
235
+ restore_current_blog();
236
+ }
237
+ add_action( 'wpmu_new_blog', 'bbp_new_site', 10, 6 );
238
+
239
  /** FILTERS *******************************************************************/
240
 
241
  /**
245
  * template hierarchy, start here by removing this filter, then look at how
246
  * bbp_template_include() works and do something similar. :)
247
  */
248
+ add_filter( 'bbp_template_include', 'bbp_template_include_theme_supports', 2, 1 );
249
+ add_filter( 'bbp_template_include', 'bbp_template_include_theme_compat', 4, 2 );
250
 
251
  /**
252
  * Feeds
385
  *
386
  * @since bbPress (r2944)
387
  *
 
388
  * @uses apply_filters() Calls 'bbp_allowed_themes' with the allowed themes list
389
  */
390
  function bbp_allowed_themes( $themes ) {
 
 
 
 
 
391
  $themes['bbp-twentyten'] = 1;
392
 
393
  return apply_filters( 'bbp_allowed_themes', $themes );
394
  }
395
  add_filter( 'allowed_themes', 'bbp_allowed_themes' );
396
 
397
+ /** Main Actions **************************************************************/
398
+
399
+ /**
400
+ * Main action responsible for constants, globals, and includes
401
+ *
402
+ * @since bbPress (r2599)
403
+ *
404
+ * @uses do_action() Calls 'bbp_loaded'
405
+ */
406
+ function bbp_loaded() {
407
+ do_action( 'bbp_loaded' );
408
+ }
409
+
410
+ /**
411
+ * Setup constants
412
+ *
413
+ * @since bbPress (r2599)
414
+ *
415
+ * @uses do_action() Calls 'bbp_constants'
416
+ */
417
+ function bbp_constants() {
418
+ do_action( 'bbp_constants' );
419
+ }
420
+
421
+ /**
422
+ * Setup globals BEFORE includes
423
+ *
424
+ * @since bbPress (r2599)
425
+ *
426
+ * @uses do_action() Calls 'bbp_boot_strap_globals'
427
+ */
428
+ function bbp_boot_strap_globals() {
429
+ do_action( 'bbp_boot_strap_globals' );
430
+ }
431
+
432
+ /**
433
+ * Include files
434
+ *
435
+ * @since bbPress (r2599)
436
+ *
437
+ * @uses do_action() Calls 'bbp_includes'
438
+ */
439
+ function bbp_includes() {
440
+ do_action( 'bbp_includes' );
441
+ }
442
+
443
+ /**
444
+ * Setup globals AFTER includes
445
+ *
446
+ * @since bbPress (r2599)
447
+ *
448
+ * @uses do_action() Calls 'bbp_setup_globals'
449
+ */
450
+ function bbp_setup_globals() {
451
+ do_action( 'bbp_setup_globals' );
452
+ }
453
+
454
+ /**
455
+ * Initialize any code after everything has been loaded
456
+ *
457
+ * @since bbPress (r2599)
458
+ *
459
+ * @uses do_action() Calls 'bbp_init'
460
+ */
461
+ function bbp_init() {
462
+ do_action ( 'bbp_init' );
463
+ }
464
+
465
+ /** Supplemental Actions ******************************************************/
466
+
467
+ /**
468
+ * Setup the currently logged-in user
469
+ *
470
+ * @since bbPress (r2695)
471
+ *
472
+ * @uses do_action() Calls 'bbp_setup_current_user'
473
+ */
474
+ function bbp_setup_current_user() {
475
+ do_action ( 'bbp_setup_current_user' );
476
+ }
477
+
478
+ /**
479
+ * Load translations for current language
480
+ *
481
+ * @since bbPress (r2599)
482
+ *
483
+ * @uses do_action() Calls 'bbp_load_textdomain'
484
+ */
485
+ function bbp_register_textdomain() {
486
+ do_action( 'bbp_load_textdomain' );
487
+ }
488
+
489
+ /**
490
+ * Sets up the theme directory
491
+ *
492
+ * @since bbPress (r2507)
493
+ *
494
+ * @uses do_action() Calls 'bbp_register_theme_directory'
495
+ */
496
+ function bbp_register_theme_directory() {
497
+ do_action( 'bbp_register_theme_directory' );
498
+ }
499
+
500
+ /**
501
+ * Setup the post types
502
+ *
503
+ * @since bbPress (r2464)
504
+ *
505
+ * @uses do_action() Calls 'bbp_register_post_type'
506
+ */
507
+ function bbp_register_post_types() {
508
+ do_action ( 'bbp_register_post_types' );
509
+ }
510
+
511
+ /**
512
+ * Setup the post statuses
513
+ *
514
+ * @since bbPress (r2727)
515
+ *
516
+ * @uses do_action() Calls 'bbp_register_post_statuses'
517
+ */
518
+ function bbp_register_post_statuses() {
519
+ do_action ( 'bbp_register_post_statuses' );
520
+ }
521
+
522
+ /**
523
+ * Register the built in bbPress taxonomies
524
+ *
525
+ * @since bbPress (r2464)
526
+ *
527
+ * @uses do_action() Calls 'bbp_register_taxonomies'
528
+ */
529
+ function bbp_register_taxonomies() {
530
+ do_action ( 'bbp_register_taxonomies' );
531
+ }
532
+
533
+ /**
534
+ * Register the default bbPress views
535
+ *
536
+ * @since bbPress (r2789)
537
+ *
538
+ * @uses do_action() Calls 'bbp_register_views'
539
+ */
540
+ function bbp_register_views() {
541
+ do_action ( 'bbp_register_views' );
542
+ }
543
+
544
+ /**
545
+ * Add the bbPress-specific rewrite tags
546
+ *
547
+ * @since bbPress (r2753)
548
+ *
549
+ * @uses do_action() Calls 'bbp_add_rewrite_tags'
550
+ */
551
+ function bbp_add_rewrite_tags() {
552
+ do_action ( 'bbp_add_rewrite_tags' );
553
+ }
554
+
555
+ /**
556
+ * Generate bbPress-specific rewrite rules
557
+ *
558
+ * @since bbPress (r2688)
559
+ *
560
+ * @param WP_Rewrite $wp_rewrite
561
+ *
562
+ * @uses do_action() Calls 'bbp_generate_rewrite_rules' with {@link WP_Rewrite}
563
+ */
564
+ function bbp_generate_rewrite_rules( $wp_rewrite ) {
565
+ do_action_ref_array( 'bbp_generate_rewrite_rules', array( &$wp_rewrite ) );
566
+ }
567
+
568
+ /**
569
+ * Setup bbPress theme compatability actions
570
+ *
571
+ * @since bbPress (r3028)
572
+ *
573
+ * @uses do_action() Calls 'bbp_setup_theme_compat'
574
+ */
575
+ function bbp_setup_theme_compat() {
576
+ do_action( 'bbp_setup_theme_compat' );
577
+ }
578
+
579
+ /** Final Action **************************************************************/
580
+
581
+ /**
582
+ * bbPress has loaded and initialized everything, and is okay to go
583
+ *
584
+ * @since bbPress (r2618)
585
+ *
586
+ * @uses do_action() Calls 'bbp_ready'
587
+ */
588
+ function bbp_ready() {
589
+ do_action( 'bbp_ready' );
590
+ }
591
+
592
+ /** Theme Compatibility Filter ************************************************/
593
+
594
+ /**
595
+ * The main filter used for theme compatibility and displaying custom bbPress
596
+ * theme files.
597
+ *
598
+ * @since bbPress (r3311)
599
+ *
600
+ * @uses apply_filters()
601
+ *
602
+ * @param string $template
603
+ * @return string Template file to use
604
+ */
605
+ function bbp_template_include( $template = '' ) {
606
+ return apply_filters( 'bbp_template_include', $template );
607
+ }
608
+
609
  ?>
bbp-includes/bbp-core-loader.php DELETED
@@ -1,208 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * bbPress Loader Actions
5
- *
6
- * @package bbPress
7
- * @subpackage Loader
8
- */
9
-
10
- // Exit if accessed directly
11
- if ( !defined( 'ABSPATH' ) ) exit;
12
-
13
- /** Main Actions **************************************************************/
14
-
15
- /**
16
- * Main action responsible for constants, globals, and includes
17
- *
18
- * @since bbPress (r2599)
19
- *
20
- * @uses do_action() Calls 'bbp_loaded'
21
- */
22
- function bbp_loaded() {
23
- do_action( 'bbp_loaded' );
24
- }
25
-
26
- /**
27
- * Setup constants
28
- *
29
- * @since bbPress (r2599)
30
- *
31
- * @uses do_action() Calls 'bbp_constants'
32
- */
33
- function bbp_constants() {
34
- do_action( 'bbp_constants' );
35
- }
36
-
37
- /**
38
- * Setup globals BEFORE includes
39
- *
40
- * @since bbPress (r2599)
41
- *
42
- * @uses do_action() Calls 'bbp_boot_strap_globals'
43
- */
44
- function bbp_boot_strap_globals() {
45
- do_action( 'bbp_boot_strap_globals' );
46
- }
47
-
48
- /**
49
- * Include files
50
- *
51
- * @since bbPress (r2599)
52
- *
53
- * @uses do_action() Calls 'bbp_includes'
54
- */
55
- function bbp_includes() {
56
- do_action( 'bbp_includes' );
57
- }
58
-
59
- /**
60
- * Setup globals AFTER includes
61
- *
62
- * @since bbPress (r2599)
63
- *
64
- * @uses do_action() Calls 'bbp_setup_globals'
65
- */
66
- function bbp_setup_globals() {
67
- do_action( 'bbp_setup_globals' );
68
- }
69
-
70
- /**
71
- * Initialize any code after everything has been loaded
72
- *
73
- * @since bbPress (r2599)
74
- *
75
- * @uses do_action() Calls 'bbp_init'
76
- */
77
- function bbp_init() {
78
- do_action ( 'bbp_init' );
79
- }
80
-
81
- /** Supplemental Actions ******************************************************/
82
-
83
- /**
84
- * Setup the currently logged-in user
85
- *
86
- * @since bbPress (r2695)
87
- *
88
- * @uses do_action() Calls 'bbp_setup_current_user'
89
- */
90
- function bbp_setup_current_user() {
91
- do_action ( 'bbp_setup_current_user' );
92
- }
93
-
94
- /**
95
- * Load translations for current language
96
- *
97
- * @since bbPress (r2599)
98
- *
99
- * @uses do_action() Calls 'bbp_load_textdomain'
100
- */
101
- function bbp_register_textdomain() {
102
- do_action( 'bbp_load_textdomain' );
103
- }
104
-
105
- /**
106
- * Sets up the theme directory
107
- *
108
- * @since bbPress (r2507)
109
- *
110
- * @uses do_action() Calls 'bbp_register_theme_directory'
111
- */
112
- function bbp_register_theme_directory() {
113
- do_action( 'bbp_register_theme_directory' );
114
- }
115
-
116
- /**
117
- * Setup the post types
118
- *
119
- * @since bbPress (r2464)
120
- *
121
- * @uses do_action() Calls 'bbp_register_post_type'
122
- */
123
- function bbp_register_post_types() {
124
- do_action ( 'bbp_register_post_types' );
125
- }
126
-
127
- /**
128
- * Setup the post statuses
129
- *
130
- * @since bbPress (r2727)
131
- *
132
- * @uses do_action() Calls 'bbp_register_post_statuses'
133
- */
134
- function bbp_register_post_statuses() {
135
- do_action ( 'bbp_register_post_statuses' );
136
- }
137
-
138
- /**
139
- * Register the built in bbPress taxonomies
140
- *
141
- * @since bbPress (r2464)
142
- *
143
- * @uses do_action() Calls 'bbp_register_taxonomies'
144
- */
145
- function bbp_register_taxonomies() {
146
- do_action ( 'bbp_register_taxonomies' );
147
- }
148
-
149
- /**
150
- * Register the default bbPress views
151
- *
152
- * @since bbPress (r2789)
153
- *
154
- * @uses do_action() Calls 'bbp_register_views'
155
- */
156
- function bbp_register_views() {
157
- do_action ( 'bbp_register_views' );
158
- }
159
-
160
- /**
161
- * Add the bbPress-specific rewrite tags
162
- *
163
- * @since bbPress (r2753)
164
- *
165
- * @uses do_action() Calls 'bbp_add_rewrite_tags'
166
- */
167
- function bbp_add_rewrite_tags() {
168
- do_action ( 'bbp_add_rewrite_tags' );
169
- }
170
-
171
- /**
172
- * Generate bbPress-specific rewrite rules
173
- *
174
- * @since bbPress (r2688)
175
- *
176
- * @param WP_Rewrite $wp_rewrite
177
- *
178
- * @uses do_action() Calls 'bbp_generate_rewrite_rules' with {@link WP_Rewrite}
179
- */
180
- function bbp_generate_rewrite_rules( $wp_rewrite ) {
181
- do_action_ref_array( 'bbp_generate_rewrite_rules', array( &$wp_rewrite ) );
182
- }
183
-
184
- /**
185
- * Setup bbPress theme compatability actions
186
- *
187
- * @since bbPress (r3028)
188
- *
189
- * @uses do_action() Calls 'bbp_setup_theme_compat'
190
- */
191
- function bbp_setup_theme_compat() {
192
- do_action( 'bbp_setup_theme_compat' );
193
- }
194
-
195
- /** Final Action **************************************************************/
196
-
197
- /**
198
- * bbPress has loaded and initialized everything, and is okay to go
199
- *
200
- * @since bbPress (r2618)
201
- *
202
- * @uses do_action() Calls 'bbp_ready'
203
- */
204
- function bbp_ready() {
205
- do_action( 'bbp_ready' );
206
- }
207
-
208
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-includes/bbp-core-options.php CHANGED
@@ -62,6 +62,23 @@ function bbp_add_options() {
62
 
63
  // Replies per RSS page
64
  '_bbp_replies_per_rss_page' => '25',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  /** Archive Slugs *****************************************************/
67
 
@@ -86,7 +103,7 @@ function bbp_add_options() {
86
  '_bbp_reply_slug' => 'reply',
87
 
88
  // Topic tag slug
89
- '_bbp_topic_tag_slug' => 'tag',
90
 
91
  /** Other Slugs *******************************************************/
92
 
@@ -98,6 +115,9 @@ function bbp_add_options() {
98
 
99
  /** Topics ************************************************************/
100
 
 
 
 
101
  // Super stickies
102
  '_bbp_super_sticky_topics' => '',
103
 
@@ -160,7 +180,31 @@ function bbp_is_subscriptions_active( $default = true ) {
160
  * @return bool Is anonymous posting allowed?
161
  */
162
  function bbp_allow_anonymous( $default = false ) {
163
- return apply_filters( 'bbp_allow_anonymous', get_option( '_bbp_allow_anonymous', $default ) );
 
 
 
 
 
 
 
 
 
 
 
164
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
  ?>
62
 
63
  // Replies per RSS page
64
  '_bbp_replies_per_rss_page' => '25',
65
+
66
+ /** Page For **********************************************************/
67
+
68
+ // Page for forums
69
+ '_bbp_page_for_forums' => '0',
70
+
71
+ // Page for forums
72
+ '_bbp_page_for_topics' => '0',
73
+
74
+ // Page for login
75
+ '_bbp_page_for_login' => '0',
76
+
77
+ // Page for register
78
+ '_bbp_page_for_register' => '0',
79
+
80
+ // Page for lost-pass
81
+ '_bbp_page_for_lost_pass' => '0',
82
 
83
  /** Archive Slugs *****************************************************/
84
 
103
  '_bbp_reply_slug' => 'reply',
104
 
105
  // Topic tag slug
106
+ '_bbp_topic_tag_slug' => 'topic-tag',
107
 
108
  /** Other Slugs *******************************************************/
109
 
115
 
116
  /** Topics ************************************************************/
117
 
118
+ // Title Max Length
119
+ '_bbp_title_max_length' => '80',
120
+
121
  // Super stickies
122
  '_bbp_super_sticky_topics' => '',
123
 
180
  * @return bool Is anonymous posting allowed?
181
  */
182
  function bbp_allow_anonymous( $default = false ) {
183
+ return apply_filters( 'bbp_allow_anonymous', (bool) get_option( '_bbp_allow_anonymous', $default ) );
184
+ }
185
+
186
+ /**
187
+ * Output the maximum length of a title
188
+ *
189
+ * @since bbPress (r3246)
190
+ *
191
+ * @param $default bool Optional. Default value
192
+ */
193
+ function bbp_title_max_length( $default = '80' ) {
194
+ echo bbp_get_title_max_length( $default );
195
  }
196
+ /**
197
+ * Return the maximum length of a title
198
+ *
199
+ * @since bbPress (r3246)
200
+ *
201
+ * @param $default bool Optional. Default value
202
+ *
203
+ * @uses get_option() To get the maximum title length
204
+ * @return int Is anonymous posting allowed?
205
+ */
206
+ function bbp_get_title_max_length( $default = '80' ) {
207
+ return apply_filters( 'bbp_get_title_max_length', (int) get_option( '_bbp_title_max_length', $default ) );
208
+ }
209
 
210
  ?>
bbp-includes/bbp-core-shortcodes.php CHANGED
@@ -85,20 +85,31 @@ class BBP_Shortcodes {
85
  /** Topic Tags ****************************************************/
86
 
87
  // All topic tags in a cloud
88
- 'bbp-topic-tags' => array( $this, 'display_topic_tags' ),
89
 
90
  // Topics of tag Tag
91
- 'bbp-topic-tag' => array( $this, 'display_topics_of_tag' ),
92
 
93
  /** Replies *******************************************************/
94
 
95
  // Reply form
96
- 'bbp-reply-form' => array( $this, 'display_reply_form' ),
97
 
98
  /** Views *********************************************************/
99
 
100
  // Single view
101
- 'bbp-single-view' => array( $this, 'display_view' )
 
 
 
 
 
 
 
 
 
 
 
102
 
103
  ) );
104
  }
@@ -202,16 +213,28 @@ class BBP_Shortcodes {
202
  */
203
  function display_forum_index() {
204
 
 
 
 
205
  // Start output buffer
206
  $this->_ob_start();
207
 
 
 
 
 
 
 
208
  // Load the forums index
209
  if ( bbp_has_forums() )
210
- bbp_get_template_part( 'bbpress/loop', 'forums' );
211
 
212
  // No forums
213
  else
214
- bbp_get_template_part( 'bbpress/no', 'forums' );
 
 
 
215
 
216
  // Return contents of output buffer
217
  return $this->_ob_end();
@@ -248,20 +271,23 @@ class BBP_Shortcodes {
248
  // Start output buffer
249
  $this->_ob_start();
250
 
251
- // Breadcrumb
252
- bbp_breadcrumb();
253
 
254
- // Password protected
255
- if ( post_password_required() ) {
256
 
257
- // Output the password form
258
- bbp_get_template_part( 'bbpress/form', 'protected' );
259
 
260
- // Not password protected, or password is already approved
261
- } else {
262
 
263
- // Check forum caps
264
- if ( bbp_user_can_view_forum( array( 'forum_id' => $forum_id ) ) ) {
 
 
 
265
 
266
  // Forum description
267
  bbp_single_forum_description( array( 'forum_id' => $forum_id ) );
@@ -301,22 +327,25 @@ class BBP_Shortcodes {
301
 
302
  // Load the topic index
303
  if ( bbp_has_topics( $topics_query ) ) {
304
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
305
- bbp_get_template_part( 'bbpress/loop', 'topics' );
306
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
307
- bbp_get_template_part( 'bbpress/form', 'topic' );
308
 
309
  // No topics
310
  } else {
311
- bbp_get_template_part( 'bbpress/no', 'topics' );
312
- bbp_get_template_part( 'bbpress/form', 'topic' );
313
  }
314
  }
315
 
316
- // Forum is private and user does not have caps
317
- } elseif ( bbp_is_forum_private( $forum_id, false ) ) {
318
- bbp_get_template_part( 'bbpress/no', 'access' );
319
  }
 
 
 
 
320
  }
321
 
322
  // Return contents of output buffer
@@ -348,26 +377,32 @@ class BBP_Shortcodes {
348
  'order' => 'DESC',
349
  );
350
 
351
- // Remove any topics from hidden forums
352
- $topics_query = bbp_exclude_forum_ids( $topics_query );
353
-
354
  // Unset globals
355
  $this->_unset_globals();
356
 
357
  // Start output buffer
358
- ob_start();
 
 
 
 
 
 
359
 
360
  // Load the topic index
361
  if ( bbp_has_topics( $topics_query ) ) {
362
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
363
- bbp_get_template_part( 'bbpress/loop', 'topics' );
364
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
365
 
366
  // No topics
367
  } else {
368
- bbp_get_template_part( 'bbpress/no', 'topics' );
369
  }
370
 
 
 
 
371
  // Return contents of output buffer
372
  return $this->_ob_end();
373
  }
@@ -411,33 +446,40 @@ class BBP_Shortcodes {
411
  // Unset globals
412
  $this->_unset_globals();
413
 
414
- // Reset necessary forum_query attributes for topics loop to function
415
- $bbp->forum_query->query_vars['post_type'] = bbp_get_forum_post_type();
416
- $bbp->forum_query->in_the_loop = true;
417
- $bbp->forum_query->post = get_post( $forum_id );
 
 
 
418
 
419
- // Reset necessary topic_query attributes for topics loop to function
420
- $bbp->topic_query->query_vars['post_type'] = bbp_get_topic_post_type();
421
- $bbp->topic_query->in_the_loop = true;
422
- $bbp->topic_query->post = get_post( $topic_id );
 
423
 
424
  // Start output buffer
425
  $this->_ob_start();
426
 
427
- // Breadcrumb
428
- bbp_breadcrumb();
429
 
430
- // Password protected
431
- if ( post_password_required() ) {
432
 
433
- // Output the password form
434
- bbp_get_template_part( 'bbpress/form', 'protected' );
435
 
436
- // Not password protected, or password is already approved
437
- } else {
438
 
439
- // Check forum caps
440
- if ( bbp_user_can_view_forum( array( 'forum_id' => $forum_id ) ) ) {
 
 
 
441
 
442
  // Tags
443
  bbp_topic_tag_list( $topic_id );
@@ -445,26 +487,32 @@ class BBP_Shortcodes {
445
  // Topic description
446
  bbp_single_topic_description( array( 'topic_id' => $topic_id ) );
447
 
 
 
 
 
448
  // Load the topic
449
  if ( bbp_has_replies( $replies_query ) ) {
450
 
451
- // Template files
452
- bbp_get_template_part( 'bbpress/single', 'topic' );
453
  bbp_get_template_part( 'bbpress/pagination', 'replies' );
454
  bbp_get_template_part( 'bbpress/loop', 'replies' );
455
  bbp_get_template_part( 'bbpress/pagination', 'replies' );
456
- bbp_get_template_part( 'bbpress/form', 'reply' );
457
 
458
  // No replies
459
  } else {
460
- bbp_get_template_part( 'bbpress/single', 'topic' );
461
- bbp_get_template_part( 'bbpress/form', 'reply' );
462
  }
463
 
464
- // Forum is private and user does not have caps
465
- } elseif ( bbp_is_forum_private( $forum_id, false ) ) {
466
- bbp_get_template_part( 'bbpress/no', 'access' );
467
  }
 
 
 
 
 
 
 
468
  }
469
 
470
  // Return contents of output buffer
@@ -485,23 +533,8 @@ class BBP_Shortcodes {
485
  // Start output buffer
486
  $this->_ob_start();
487
 
488
- // Breadcrumb
489
- if ( bbp_is_forum() || bbp_is_topic_edit() )
490
- bbp_breadcrumb();
491
-
492
- // Editing a topic
493
- if ( bbp_is_topic_edit() ) {
494
-
495
- // Tags
496
- bbp_topic_tag_list( get_the_ID() );
497
-
498
- // Topic description
499
- bbp_single_topic_description( array( 'topic_id' => get_the_ID() ) );
500
-
501
- }
502
-
503
  // Output templates
504
- bbp_get_template_part( 'bbpress/form', 'topic' );
505
 
506
  // Return contents of output buffer
507
  return $this->_ob_end();
@@ -523,12 +556,8 @@ class BBP_Shortcodes {
523
  // Start output buffer
524
  $this->_ob_start();
525
 
526
- // Breadcrumb
527
- if ( bbp_is_reply_edit() )
528
- bbp_breadcrumb();
529
-
530
  // Output templates
531
- bbp_get_template_part( 'bbpress/form', 'reply' );
532
 
533
  // Return contents of output buffer
534
  return $this->_ob_end();
@@ -610,6 +639,9 @@ class BBP_Shortcodes {
610
  // Tag description
611
  bbp_topic_tag_description();
612
 
 
 
 
613
  // Load the topics
614
  if ( bbp_has_topics( $args ) ) {
615
 
@@ -621,9 +653,12 @@ class BBP_Shortcodes {
621
 
622
  // No topics
623
  } else {
624
- bbp_get_template_part( 'bbpress/no', 'topics' );
625
  }
626
 
 
 
 
627
  // Return contents of output buffer
628
  return $this->_ob_end();
629
  }
@@ -676,21 +711,131 @@ class BBP_Shortcodes {
676
 
677
  // Load the topic index
678
  if ( bbp_view_query( $view_id ) ) {
679
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
680
- bbp_get_template_part( 'bbpress/loop', 'topics' );
681
- bbp_get_template_part( 'bbpress/pagination', 'topics' );
682
- bbp_get_template_part( 'bbpress/form', 'topic' );
683
 
684
  // No topics
685
  } else {
686
- bbp_get_template_part( 'bbpress/no', 'topics' );
687
- bbp_get_template_part( 'bbpress/form', 'topic' );
688
  }
689
  }
690
 
691
  // Return contents of output buffer
692
  return $this->_ob_end();
693
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
694
  }
695
  endif;
696
 
85
  /** Topic Tags ****************************************************/
86
 
87
  // All topic tags in a cloud
88
+ 'bbp-topic-tags' => array( $this, 'display_topic_tags' ),
89
 
90
  // Topics of tag Tag
91
+ 'bbp-single-topic-tag' => array( $this, 'display_topics_of_tag' ),
92
 
93
  /** Replies *******************************************************/
94
 
95
  // Reply form
96
+ 'bbp-reply-form' => array( $this, 'display_reply_form' ),
97
 
98
  /** Views *********************************************************/
99
 
100
  // Single view
101
+ 'bbp-single-view' => array( $this, 'display_view' ),
102
+
103
+ /** Account *******************************************************/
104
+
105
+ // Login
106
+ 'bbp-login' => array( $this, 'display_login' ),
107
+
108
+ // Register
109
+ 'bbp-register' => array( $this, 'display_register' ),
110
+
111
+ // LOst Password
112
+ 'bbp-lost-pass' => array( $this, 'display_lost_pass' ),
113
 
114
  ) );
115
  }
213
  */
214
  function display_forum_index() {
215
 
216
+ // Unset globals
217
+ $this->_unset_globals();
218
+
219
  // Start output buffer
220
  $this->_ob_start();
221
 
222
+ // Breadcrumb
223
+ bbp_breadcrumb();
224
+
225
+ // Before forums index
226
+ do_action( 'bbp_template_before_forums_index' );
227
+
228
  // Load the forums index
229
  if ( bbp_has_forums() )
230
+ bbp_get_template_part( 'bbpress/loop', 'forums' );
231
 
232
  // No forums
233
  else
234
+ bbp_get_template_part( 'bbpress/feedback', 'no-forums' );
235
+
236
+ // After forums index
237
+ do_action( 'bbp_template_after_forums_index' );
238
 
239
  // Return contents of output buffer
240
  return $this->_ob_end();
271
  // Start output buffer
272
  $this->_ob_start();
273
 
274
+ // Check forum caps
275
+ if ( bbp_user_can_view_forum( array( 'forum_id' => $forum_id ) ) ) {
276
 
277
+ // Breadcrumb
278
+ bbp_breadcrumb();
279
 
280
+ // Before single forum
281
+ do_action( 'bbp_template_before_single_forum' );
282
 
283
+ // Password protected
284
+ if ( post_password_required() ) {
285
 
286
+ // Output the password form
287
+ bbp_get_template_part( 'bbpress/form', 'protected' );
288
+
289
+ // Not password protected, or password is already approved
290
+ } else {
291
 
292
  // Forum description
293
  bbp_single_forum_description( array( 'forum_id' => $forum_id ) );
327
 
328
  // Load the topic index
329
  if ( bbp_has_topics( $topics_query ) ) {
330
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
331
+ bbp_get_template_part( 'bbpress/loop', 'topics' );
332
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
333
+ bbp_get_template_part( 'bbpress/form', 'topic' );
334
 
335
  // No topics
336
  } else {
337
+ bbp_get_template_part( 'bbpress/feedback', 'no-topics' );
338
+ bbp_get_template_part( 'bbpress/form', 'topic' );
339
  }
340
  }
341
 
342
+ // After single forum
343
+ do_action( 'bbp_template_after_single_forum' );
 
344
  }
345
+
346
+ // Forum is private and user does not have caps
347
+ } elseif ( bbp_is_forum_private( $forum_id, false ) ) {
348
+ bbp_get_template_part( 'bbpress/feedback', 'no-access' );
349
  }
350
 
351
  // Return contents of output buffer
377
  'order' => 'DESC',
378
  );
379
 
 
 
 
380
  // Unset globals
381
  $this->_unset_globals();
382
 
383
  // Start output buffer
384
+ $this->_ob_start();
385
+
386
+ // Breadcrumb
387
+ bbp_breadcrumb();
388
+
389
+ // Before topics index
390
+ do_action( 'bbp_template_before_topics_index' );
391
 
392
  // Load the topic index
393
  if ( bbp_has_topics( $topics_query ) ) {
394
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
395
+ bbp_get_template_part( 'bbpress/loop', 'topics' );
396
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
397
 
398
  // No topics
399
  } else {
400
+ bbp_get_template_part( 'bbpress/feedback', 'no-topics' );
401
  }
402
 
403
+ // After topics index
404
+ do_action( 'bbp_template_after_topics_index' );
405
+
406
  // Return contents of output buffer
407
  return $this->_ob_end();
408
  }
446
  // Unset globals
447
  $this->_unset_globals();
448
 
449
+ // Reset the queries if not in theme compat
450
+ if ( !bbp_is_theme_compat_active() ) {
451
+
452
+ // Reset necessary forum_query attributes for topics loop to function
453
+ $bbp->forum_query->query_vars['post_type'] = bbp_get_forum_post_type();
454
+ $bbp->forum_query->in_the_loop = true;
455
+ $bbp->forum_query->post = get_post( $forum_id );
456
 
457
+ // Reset necessary topic_query attributes for topics loop to function
458
+ $bbp->topic_query->query_vars['post_type'] = bbp_get_topic_post_type();
459
+ $bbp->topic_query->in_the_loop = true;
460
+ $bbp->topic_query->post = get_post( $topic_id );
461
+ }
462
 
463
  // Start output buffer
464
  $this->_ob_start();
465
 
466
+ // Check forum caps
467
+ if ( bbp_user_can_view_forum( array( 'forum_id' => $forum_id ) ) ) {
468
 
469
+ // Breadcrumb
470
+ bbp_breadcrumb();
471
 
472
+ // Before single topic
473
+ do_action( 'bbp_template_before_single_topic' );
474
 
475
+ // Password protected
476
+ if ( post_password_required() ) {
477
 
478
+ // Output the password form
479
+ bbp_get_template_part( 'bbpress/form', 'protected' );
480
+
481
+ // Not password protected, or password is already approved
482
+ } else {
483
 
484
  // Tags
485
  bbp_topic_tag_list( $topic_id );
487
  // Topic description
488
  bbp_single_topic_description( array( 'topic_id' => $topic_id ) );
489
 
490
+ // Template files
491
+ if ( bbp_show_lead_topic() )
492
+ bbp_get_template_part( 'bbpress/content', 'single-topic-lead' );
493
+
494
  // Load the topic
495
  if ( bbp_has_replies( $replies_query ) ) {
496
 
 
 
497
  bbp_get_template_part( 'bbpress/pagination', 'replies' );
498
  bbp_get_template_part( 'bbpress/loop', 'replies' );
499
  bbp_get_template_part( 'bbpress/pagination', 'replies' );
 
500
 
501
  // No replies
502
  } else {
503
+ bbp_get_template_part( 'bbpress/content', 'single-topic-lead' );
 
504
  }
505
 
506
+ // Reply form
507
+ bbp_get_template_part( 'bbpress/form', 'reply' );
 
508
  }
509
+
510
+ // After single topic
511
+ do_action( 'bbp_template_after_single_topic' );
512
+
513
+ // Forum is private and user does not have caps
514
+ } elseif ( bbp_is_forum_private( $forum_id, false ) ) {
515
+ bbp_get_template_part( 'bbpress/feedback', 'no-access' );
516
  }
517
 
518
  // Return contents of output buffer
533
  // Start output buffer
534
  $this->_ob_start();
535
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  // Output templates
537
+ bbp_get_template_part( 'bbpress/form', 'topic' );
538
 
539
  // Return contents of output buffer
540
  return $this->_ob_end();
556
  // Start output buffer
557
  $this->_ob_start();
558
 
 
 
 
 
559
  // Output templates
560
+ bbp_get_template_part( 'bbpress/form', 'reply' );
561
 
562
  // Return contents of output buffer
563
  return $this->_ob_end();
639
  // Tag description
640
  bbp_topic_tag_description();
641
 
642
+ // Before tag topics
643
+ do_action( 'bbp_template_before_tag_topics' );
644
+
645
  // Load the topics
646
  if ( bbp_has_topics( $args ) ) {
647
 
653
 
654
  // No topics
655
  } else {
656
+ bbp_get_template_part( 'bbpress/feedback', 'no-topics' );
657
  }
658
 
659
+ // After tag topics
660
+ do_action( 'bbp_template_after_tag_topics' );
661
+
662
  // Return contents of output buffer
663
  return $this->_ob_end();
664
  }
711
 
712
  // Load the topic index
713
  if ( bbp_view_query( $view_id ) ) {
714
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
715
+ bbp_get_template_part( 'bbpress/loop', 'topics' );
716
+ bbp_get_template_part( 'bbpress/pagination', 'topics' );
 
717
 
718
  // No topics
719
  } else {
720
+ bbp_get_template_part( 'bbpress/feedback', 'no-topics' );
 
721
  }
722
  }
723
 
724
  // Return contents of output buffer
725
  return $this->_ob_end();
726
  }
727
+
728
+ /** Account ***************************************************************/
729
+
730
+ /**
731
+ * Display a login form
732
+ *
733
+ * @since bbPress (r3302)
734
+ *
735
+ * @global bbPress $bbp
736
+ *
737
+ * @return string
738
+ */
739
+ function display_login() {
740
+ global $bbp;
741
+
742
+ // Unset globals
743
+ $this->_unset_globals();
744
+
745
+ // Start output buffer
746
+ $this->_ob_start();
747
+
748
+ // Output templates
749
+ if ( !is_user_logged_in() )
750
+ bbp_get_template_part( 'bbpress/form', 'user-login' );
751
+ else
752
+ bbp_get_template_part( 'bbpress/feedback', 'logged-in' );
753
+
754
+ // Return contents of output buffer
755
+ return $this->_ob_end();
756
+ }
757
+
758
+ /**
759
+ * Display a register form
760
+ *
761
+ * @since bbPress (r3302)
762
+ *
763
+ * @global bbPress $bbp
764
+ *
765
+ * @return string
766
+ */
767
+ function display_register() {
768
+ global $bbp;
769
+
770
+ // Unset globals
771
+ $this->_unset_globals();
772
+
773
+ // Start output buffer
774
+ $this->_ob_start();
775
+
776
+ // Output templates
777
+ if ( !is_user_logged_in() )
778
+ bbp_get_template_part( 'bbpress/form', 'user-register' );
779
+ else
780
+ bbp_get_template_part( 'bbpress/feedback', 'logged-in' );
781
+
782
+ // Return contents of output buffer
783
+ return $this->_ob_end();
784
+ }
785
+
786
+ /**
787
+ * Display a lost password form
788
+ *
789
+ * @since bbPress (r3302)
790
+ *
791
+ * @global bbPress $bbp
792
+ *
793
+ * @return string
794
+ */
795
+ function display_lost_pass() {
796
+ global $bbp;
797
+
798
+ // Unset globals
799
+ $this->_unset_globals();
800
+
801
+ // Start output buffer
802
+ $this->_ob_start();
803
+
804
+ // Output templates
805
+ if ( !is_user_logged_in() )
806
+ bbp_get_template_part( 'bbpress/form', 'user-lost-pass' );
807
+ else
808
+ bbp_get_template_part( 'bbpress/feedback', 'logged-in' );
809
+
810
+ // Return contents of output buffer
811
+ return $this->_ob_end();
812
+ }
813
+
814
+ /** Other *****************************************************************/
815
+
816
+ /**
817
+ * Display a breadcrumb
818
+ *
819
+ * @since bbPress (r3302)
820
+ *
821
+ * @global bbPress $bbp
822
+ *
823
+ * @return string
824
+ */
825
+ function display_breadcrumb() {
826
+
827
+ // Unset globals
828
+ $this->_unset_globals();
829
+
830
+ // Start output buffer
831
+ $this->_ob_start();
832
+
833
+ // Output breadcrumb
834
+ bbp_breadcrumb();
835
+
836
+ // Return contents of output buffer
837
+ return $this->_ob_end();
838
+ }
839
  }
840
  endif;
841
 
bbp-includes/bbp-core-widgets.php CHANGED
@@ -461,9 +461,6 @@ class BBP_Topics_Widget extends WP_Widget {
461
 
462
  bbp_set_query_name( 'bbp_widget' );
463
 
464
- // Remove any topics from hidden forums
465
- $topics_query = bbp_exclude_forum_ids( $topics_query );
466
-
467
  if ( $pop_check < $max_shown && bbp_has_topics( $topics_query ) ) :
468
 
469
  echo $before_widget;
@@ -560,7 +557,7 @@ class BBP_Topics_Widget extends WP_Widget {
560
 
561
  <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
562
  <p><label for="<?php echo $this->get_field_id( 'max_shown' ); ?>"><?php _e( 'Maximum topics to show:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_shown' ); ?>" name="<?php echo $this->get_field_name( 'max_shown' ); ?>" type="text" value="<?php echo $max_shown; ?>" /></label></p>
563
- <p><label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Show post date:', 'bbpress' ); ?> <input type="checkbox" id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" <?php echo ($show_date == 'on') ? 'checked="checked"' : ''; ?>/></label></p>
564
  <p>
565
  <label for="<?php echo $this->get_field_id( 'pop_check' ); ?>"><?php _e( 'Popularity check:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'pop_check' ); ?>" name="<?php echo $this->get_field_name( 'pop_check' ); ?>" type="text" value="<?php echo $pop_check; ?>" /></label>
566
  <br /><small><?php _e( 'Number of topics back to check reply count to determine popularity. A number less than the maximum number of topics to show disables the check.', 'bbpress' ); ?></small>
@@ -642,9 +639,6 @@ class BBP_Replies_Widget extends WP_Widget {
642
  // Set the query name
643
  bbp_set_query_name( 'bbp_widget' );
644
 
645
- // Exclude hidden forums
646
- $replies_query = bbp_exclude_forum_ids( $replies_query );
647
-
648
  // Get replies and display them
649
  if ( bbp_has_replies( $replies_query ) ) :
650
 
@@ -708,7 +702,7 @@ class BBP_Replies_Widget extends WP_Widget {
708
 
709
  <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
710
  <p><label for="<?php echo $this->get_field_id( 'max_shown' ); ?>"><?php _e( 'Maximum replies to show:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_shown' ); ?>" name="<?php echo $this->get_field_name( 'max_shown' ); ?>" type="text" value="<?php echo $max_shown; ?>" /></label></p>
711
- <p><label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Show post date:', 'bbpress' ); ?> <input type="checkbox" id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" <?php checked( $show_date, 'on' ); ?>/></label></p>
712
 
713
  <?php
714
  }
461
 
462
  bbp_set_query_name( 'bbp_widget' );
463
 
 
 
 
464
  if ( $pop_check < $max_shown && bbp_has_topics( $topics_query ) ) :
465
 
466
  echo $before_widget;
557
 
558
  <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
559
  <p><label for="<?php echo $this->get_field_id( 'max_shown' ); ?>"><?php _e( 'Maximum topics to show:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_shown' ); ?>" name="<?php echo $this->get_field_name( 'max_shown' ); ?>" type="text" value="<?php echo $max_shown; ?>" /></label></p>
560
+ <p><label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Show post date:', 'bbpress' ); ?> <input type="checkbox" id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" <?php checked( 'on', $show_date ); ?> /></label></p>
561
  <p>
562
  <label for="<?php echo $this->get_field_id( 'pop_check' ); ?>"><?php _e( 'Popularity check:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'pop_check' ); ?>" name="<?php echo $this->get_field_name( 'pop_check' ); ?>" type="text" value="<?php echo $pop_check; ?>" /></label>
563
  <br /><small><?php _e( 'Number of topics back to check reply count to determine popularity. A number less than the maximum number of topics to show disables the check.', 'bbpress' ); ?></small>
639
  // Set the query name
640
  bbp_set_query_name( 'bbp_widget' );
641
 
 
 
 
642
  // Get replies and display them
643
  if ( bbp_has_replies( $replies_query ) ) :
644
 
702
 
703
  <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
704
  <p><label for="<?php echo $this->get_field_id( 'max_shown' ); ?>"><?php _e( 'Maximum replies to show:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_shown' ); ?>" name="<?php echo $this->get_field_name( 'max_shown' ); ?>" type="text" value="<?php echo $max_shown; ?>" /></label></p>
705
+ <p><label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Show post date:', 'bbpress' ); ?> <input type="checkbox" id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" <?php checked( 'on', $show_date ); ?> /></label></p>
706
 
707
  <?php
708
  }
bbp-includes/bbp-forum-functions.php CHANGED
@@ -29,38 +29,6 @@ function bbp_walk_forum( $forums, $depth, $current, $r ) {
29
  return call_user_func_array( array( &$walker, 'walk' ), $args );
30
  }
31
 
32
- /** Forum Handlers ************************************************************/
33
-
34
- /**
35
- * Handles new forum craetion from within wp-admin
36
- *
37
- * @since bbPress (r2613)
38
- *
39
- * @param int $forum_id
40
- * @param obj $forum
41
- * @uses bbp_get_forum_post_type() To get the forum post type
42
- * @uses bbp_update_forum() To update the forum
43
- */
44
- function bbp_new_forum_admin_handler( $forum_id, $forum ) {
45
-
46
- if ( // Check if POST action
47
- 'POST' === $_SERVER['REQUEST_METHOD'] &&
48
-
49
- // Check Actions exist in POST
50
- !empty( $_POST['action'] ) &&
51
- !empty( $_POST['post_type'] ) &&
52
-
53
- // Check that actions match what we need
54
- 'editpost' === $_POST['action'] &&
55
- bbp_get_forum_post_type() === $_POST['post_type']
56
- ) {
57
-
58
- // Update the forum meta bidness
59
- bbp_update_forum( array( 'forum_id' => $forum_id, 'post_parent' => (int) $_POST['parent_id'] ) );
60
- }
61
- }
62
-
63
-
64
  /** Forum Actions *************************************************************/
65
 
66
  /**
@@ -71,8 +39,7 @@ function bbp_new_forum_admin_handler( $forum_id, $forum ) {
71
  * @param int $forum_id forum id
72
  * @uses wp_get_single_post() To get the forum
73
  * @uses do_action() Calls 'bbp_close_forum' with the forum id
74
- * @uses add_post_meta() To add the previous status to a meta
75
- * @uses wp_insert_post() To update the forum with the new status
76
  * @uses do_action() Calls 'bbp_opened_forum' with the forum id
77
  * @return mixed False or {@link WP_Error} on failure, forum id on success
78
  */
@@ -98,8 +65,7 @@ function bbp_close_forum( $forum_id = 0 ) {
98
  * @uses wp_get_single_post() To get the forum
99
  * @uses do_action() Calls 'bbp_open_forum' with the forum id
100
  * @uses get_post_meta() To get the previous status
101
- * @uses delete_post_meta() To delete the previous status meta
102
- * @uses wp_insert_post() To update the forum with the new status
103
  * @uses do_action() Calls 'bbp_opened_forum' with the forum id
104
  * @return mixed False or {@link WP_Error} on failure, forum id on success
105
  */
@@ -773,52 +739,64 @@ function bbp_get_private_forum_ids() {
773
  * Returns a meta_query that either includes or excludes hidden forum IDs
774
  * from a query.
775
  *
 
 
 
 
776
  * @uses is_super_admin()
777
  * @uses bbp_is_user_home()
778
  * @uses bbp_get_hidden_forum_ids()
779
  * @uses bbp_get_private_forum_ids()
 
780
  */
781
- function bbp_exclude_forum_ids( $query = array() ) {
782
-
783
- // Do not exclude for super admins
784
- if ( is_super_admin() )
785
- return $query;
786
 
787
  // Setup arrays
788
- $private = $hidden = $meta_query = array();
789
-
790
- // Private forums
791
- if ( !current_user_can( 'read_private_forums' ) )
792
- $private = bbp_get_private_forum_ids();
793
 
794
- // Hidden forums
795
- if ( !current_user_can( 'read_hidden_forums' ) )
796
- $hidden = bbp_get_hidden_forum_ids();
797
 
798
- // Merge private and hidden forums together
799
- $forum_ids = (array) array_filter( array_merge( $private, $hidden ) );
800
-
801
- // There are forums that need to be excluded
802
- if ( !empty( $forum_ids ) ) {
803
-
804
- // Setup a meta_query to remove hidden forums
805
- $value = implode( ',', $forum_ids );
806
- $compare = ( 1 < count( $forum_ids ) ) ? 'NOT IN' : '!=';
807
-
808
- // Add meta_query to $replies_query
809
- $meta_query['meta_query'] = array( array(
810
- 'key' => '_bbp_forum_id',
811
- 'value' => $value,
812
- 'compare' => $compare
813
- ) );
814
 
815
- // Merge the queries together
816
- if ( !empty( $meta_query ) ) {
817
- $query = array_merge( $query, $meta_query );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818
  }
819
  }
820
 
821
- return apply_filters( 'bbp_exclude_forum_ids', $query, $meta_query );
 
822
  }
823
 
824
  /**
29
  return call_user_func_array( array( &$walker, 'walk' ), $args );
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  /** Forum Actions *************************************************************/
33
 
34
  /**
39
  * @param int $forum_id forum id
40
  * @uses wp_get_single_post() To get the forum
41
  * @uses do_action() Calls 'bbp_close_forum' with the forum id
42
+ * @uses update_post_meta() To add the previous status to a meta
 
43
  * @uses do_action() Calls 'bbp_opened_forum' with the forum id
44
  * @return mixed False or {@link WP_Error} on failure, forum id on success
45
  */
65
  * @uses wp_get_single_post() To get the forum
66
  * @uses do_action() Calls 'bbp_open_forum' with the forum id
67
  * @uses get_post_meta() To get the previous status
68
+ * @uses update_post_meta() To delete the previous status meta
 
69
  * @uses do_action() Calls 'bbp_opened_forum' with the forum id
70
  * @return mixed False or {@link WP_Error} on failure, forum id on success
71
  */
739
  * Returns a meta_query that either includes or excludes hidden forum IDs
740
  * from a query.
741
  *
742
+ * @since bbPress (r3291)
743
+ *
744
+ * @param string Optional. The type of value to return. (string|array|meta_query)
745
+ *
746
  * @uses is_super_admin()
747
  * @uses bbp_is_user_home()
748
  * @uses bbp_get_hidden_forum_ids()
749
  * @uses bbp_get_private_forum_ids()
750
+ * @uses apply_filters()
751
  */
752
+ function bbp_exclude_forum_ids( $type = 'string' ) {
 
 
 
 
753
 
754
  // Setup arrays
755
+ $retval = $private = $hidden = $meta_query = $forum_ids = array();
 
 
 
 
756
 
757
+ // Exclude for everyone but super admins
758
+ if ( !is_super_admin() ) {
 
759
 
760
+ // Private forums
761
+ if ( !current_user_can( 'read_private_forums' ) )
762
+ $private = bbp_get_private_forum_ids();
 
 
 
 
 
 
 
 
 
 
 
 
 
763
 
764
+ // Hidden forums
765
+ if ( !current_user_can( 'read_hidden_forums' ) )
766
+ $hidden = bbp_get_hidden_forum_ids();
767
+
768
+ // Merge private and hidden forums together
769
+ $forum_ids = (array) array_filter( array_merge( $private, $hidden ) );
770
+
771
+ // There are forums that need to be excluded
772
+ if ( !empty( $forum_ids ) ) {
773
+
774
+ switch ( $type ) {
775
+
776
+ // Separate forum ID's into a comma separated string
777
+ case 'string' :
778
+ $retval = implode( ',', $forum_ids );
779
+ break;
780
+
781
+ // Use forum_ids array
782
+ case 'array' :
783
+ $retval = $forum_ids;
784
+ break;
785
+
786
+ // Build a meta_query
787
+ case 'meta_query' :
788
+ $retval = array(
789
+ 'key' => '_bbp_forum_id',
790
+ 'value' => implode( ',', $forum_ids ),
791
+ 'compare' => ( 1 < count( $forum_ids ) ) ? 'NOT IN' : '!='
792
+ );
793
+ break;
794
+ }
795
  }
796
  }
797
 
798
+ // Filter and return the results
799
+ return apply_filters( 'bbp_exclude_forum_ids', $retval, $forum_ids, $type );
800
  }
801
 
802
  /**
bbp-includes/bbp-forum-template.php CHANGED
@@ -85,7 +85,7 @@ function bbp_has_forums( $args = '' ) {
85
  // The default forum query for most circumstances
86
  $default = array (
87
  'post_type' => bbp_get_forum_post_type(),
88
- 'post_parent' => is_post_type_archive( bbp_get_forum_post_type() ) ? 0 : bbp_get_forum_id() ,
89
  'post_status' => implode( ',', $post_stati ),
90
  'posts_per_page' => get_option( '_bbp_forums_per_page', 15 ),
91
  'orderby' => 'menu_order',
@@ -282,6 +282,53 @@ function bbp_forum_title( $forum_id = 0 ) {
282
  return apply_filters( 'bbp_get_forum_title', get_the_title( $forum_id ) );
283
  }
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  /**
286
  * Output the content of the forum
287
  *
@@ -1619,12 +1666,28 @@ function bbp_single_forum_description( $args = '' ) {
1619
 
1620
  // Forum has posts
1621
  if ( $last_reply = bbp_get_forum_last_active_id( $forum_id ) ) {
 
 
1622
  $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_reply, 'size' => $size ) );
1623
- $retstr = sprintf( __( 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s ago.', 'bbpress' ), $topic_count, $reply_count, $last_updated_by, $time_since );
 
 
 
 
 
 
 
1624
 
1625
  // Forum has no last active data
1626
  } else {
1627
- $retstr = sprintf( __( 'This forum contains %1$s and %2$s replies.', 'bbpress' ), $topic_count, $reply_count );
 
 
 
 
 
 
 
1628
  }
1629
 
1630
  // Add feeds
@@ -1680,7 +1743,7 @@ function bbp_forum_topics_feed_link( $forum_id = 0 ) {
1680
  // Forum is valid
1681
  if ( !empty( $forum_id ) ) {
1682
 
1683
- // Prevent debug notices
1684
  $link = '';
1685
 
1686
  // Pretty permalinks
@@ -1742,7 +1805,7 @@ function bbp_forum_replies_feed_link( $forum_id = 0 ) {
1742
  // Forum is valid
1743
  if ( !empty( $forum_id ) ) {
1744
 
1745
- // Prevent debug notices
1746
  $link = '';
1747
 
1748
  // Pretty permalinks
85
  // The default forum query for most circumstances
86
  $default = array (
87
  'post_type' => bbp_get_forum_post_type(),
88
+ 'post_parent' => bbp_is_forum_archive() ? 0 : bbp_get_forum_id() ,
89
  'post_status' => implode( ',', $post_stati ),
90
  'posts_per_page' => get_option( '_bbp_forums_per_page', 15 ),
91
  'orderby' => 'menu_order',
282
  return apply_filters( 'bbp_get_forum_title', get_the_title( $forum_id ) );
283
  }
284
 
285
+ /**
286
+ * Output the forum archive title
287
+ *
288
+ * @since bbPress (r3249)
289
+ *
290
+ * @param string $title Default text to use as title
291
+ */
292
+ function bbp_forum_archive_title( $title = '' ) {
293
+ echo bbp_get_forum_archive_title( $title );
294
+ }
295
+ /**
296
+ * Return the forum archive title
297
+ *
298
+ * @since bbPress (r3249)
299
+ *
300
+ * @global bbPress $bbp The main bbPress class
301
+ * @param string $title Default text to use as title
302
+ *
303
+ * @uses bbp_get_page_by_path() Check if page exists at root path
304
+ * @uses get_the_title() Use the page title at the root path
305
+ * @uses get_post_type_object() Load the post type object
306
+ * @uses bbp_get_forum_post_type() Get the forum post type ID
307
+ * @uses get_post_type_labels() Get labels for forum post type
308
+ * @uses apply_filters() Allow output to be manipulated
309
+ *
310
+ * @return string The forum archive title
311
+ */
312
+ function bbp_get_forum_archive_title( $title = '' ) {
313
+ global $bbp;
314
+
315
+ // If no title was passed
316
+ if ( empty( $title ) ) {
317
+
318
+ // Set root text to page title
319
+ if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) {
320
+ $title = get_the_title( $page->ID );
321
+
322
+ // Default to forum post type name label
323
+ } else {
324
+ $fto = get_post_type_object( bbp_get_forum_post_type() );
325
+ $title = $fto->labels->name;
326
+ }
327
+ }
328
+
329
+ return apply_filters( 'bbp_get_forum_archive_title', $title );
330
+ }
331
+
332
  /**
333
  * Output the content of the forum
334
  *
1666
 
1667
  // Forum has posts
1668
  if ( $last_reply = bbp_get_forum_last_active_id( $forum_id ) ) {
1669
+
1670
+ // Freshness author
1671
  $last_updated_by = bbp_get_author_link( array( 'post_id' => $last_reply, 'size' => $size ) );
1672
+
1673
+ // Category
1674
+ if ( bbp_is_forum_category( $forum_id ) )
1675
+ $retstr = sprintf( __( 'This category contains %1$s and %2$s, and was last updated by %3$s %4$s ago.', 'bbpress' ), $topic_count, $reply_count, $last_updated_by, $time_since );
1676
+
1677
+ // Forum
1678
+ else
1679
+ $retstr = sprintf( __( 'This forum contains %1$s and %2$s, and was last updated by %3$s %4$s ago.', 'bbpress' ), $topic_count, $reply_count, $last_updated_by, $time_since );
1680
 
1681
  // Forum has no last active data
1682
  } else {
1683
+
1684
+ // Category
1685
+ if ( bbp_is_forum_category( $forum_id ) )
1686
+ $retstr = sprintf( __( 'This category contains %1$s and %2$s.', 'bbpress' ), $topic_count, $reply_count );
1687
+
1688
+ // Forum
1689
+ else
1690
+ $retstr = sprintf( __( 'This forum contains %1$s and %2$s.', 'bbpress' ), $topic_count, $reply_count );
1691
  }
1692
 
1693
  // Add feeds
1743
  // Forum is valid
1744
  if ( !empty( $forum_id ) ) {
1745
 
1746
+ // Define local variable(s)
1747
  $link = '';
1748
 
1749
  // Pretty permalinks
1805
  // Forum is valid
1806
  if ( !empty( $forum_id ) ) {
1807
 
1808
+ // Define local variable(s)
1809
  $link = '';
1810
 
1811
  // Pretty permalinks
bbp-includes/bbp-reply-functions.php CHANGED
@@ -133,7 +133,7 @@ function bbp_update_reply_topic_id( $reply_id = 0, $topic_id = 0 ) {
133
  * @uses do_action() Calls 'bbp_new_reply' with the reply id, topic id, forum
134
  * id, anonymous data and reply author
135
  * @uses bbp_get_reply_url() To get the paginated url to the reply
136
- * @uses wp_redirect() To redirect to the reply url
137
  * @uses bbPress::errors::get_error_message() To get the {@link WP_Error} error
138
  * message
139
  */
@@ -146,8 +146,8 @@ function bbp_new_reply_handler() {
146
  // Nonce check
147
  check_admin_referer( 'bbp-new-reply' );
148
 
149
- // Set defaults to prevent debug notices
150
- $topic_id = $forum_id = $topic_author = $anonymous_data = 0;
151
  $reply_title = $reply_content = $terms = '';
152
 
153
  /** Reply Author ******************************************************/
@@ -269,6 +269,9 @@ function bbp_new_reply_handler() {
269
 
270
  /** Topic Tags ************************************************/
271
 
 
 
 
272
  // Insert terms
273
  $terms = wp_set_post_terms( $topic_id, $terms, $bbp->topic_tag_id, false );
274
 
@@ -295,22 +298,38 @@ function bbp_new_reply_handler() {
295
  update_post_meta( $topic_id, '_bbp_pre_trashed_replies', $pre_trashed_replies );
296
  }
297
 
298
- // Update counts, etc...
 
 
 
 
 
 
 
299
  do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );
300
 
301
  /** Redirect **************************************************/
302
 
303
- $reply_url = bbp_get_reply_url( $reply_id );
 
304
 
305
- if ( ( !empty( $_GET['view'] ) && ( 'all' === $_GET['view'] ) ) || ( $reply_data['post_status'] == $bbp->trash_status_id ) )
 
 
 
 
 
 
 
306
  $reply_url = add_query_arg( array( 'view' => 'all' ), $reply_url );
307
 
308
- $reply_url = apply_filters( 'bbp_new_reply_redirect_to', $reply_url );
 
309
 
310
  /** Successful Save *******************************************/
311
 
312
  // Redirect back to new reply
313
- wp_redirect( $reply_url );
314
 
315
  // For good measure
316
  exit();
@@ -351,7 +370,7 @@ function bbp_new_reply_handler() {
351
  * @uses do_action() Calls 'bbp_edit_reply' with the reply id, topic id, forum
352
  * id, anonymous data, reply author and bool true (for edit)
353
  * @uses bbp_get_reply_url() To get the paginated url to the reply
354
- * @uses wp_redirect() To redirect to the reply url
355
  * @uses bbPress::errors::get_error_message() To get the {@link WP_Error} error
356
  * message
357
  */
@@ -361,7 +380,7 @@ function bbp_edit_reply_handler() {
361
  if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) && !empty( $_POST['action'] ) && ( 'bbp-edit-reply' === $_POST['action'] ) ) {
362
  global $bbp;
363
 
364
- // Set defaults to prevent debug notices
365
  $reply = $reply_id = $topic_id = $forum_id = $anonymous_data = 0;
366
  $reply_title = $reply_content = $reply_edit_reason = $terms = '';
367
 
@@ -484,6 +503,9 @@ function bbp_edit_reply_handler() {
484
 
485
  /** Topic Tags ************************************************/
486
 
 
 
 
487
  // Insert terms
488
  $terms = wp_set_post_terms( $topic_id, $terms, $bbp->topic_tag_id, false );
489
 
@@ -518,10 +540,28 @@ function bbp_edit_reply_handler() {
518
 
519
  do_action( 'bbp_edit_reply_post_extras', $reply_id );
520
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
521
  /** Successful Edit *******************************************/
522
 
523
  // Redirect back to new reply
524
- wp_redirect( bbp_get_reply_url( $reply_id ) );
525
 
526
  // For good measure
527
  exit();
@@ -536,37 +576,6 @@ function bbp_edit_reply_handler() {
536
  }
537
  }
538
 
539
- /**
540
- * Handles new reply submission from within wp-admin
541
- *
542
- * @param int $reply_id Reply id
543
- * @param obj $reply Reply
544
- * @uses bbp_get_reply_post_type() To get the reply post type
545
- * @uses bbp_update_reply() To update the reply
546
- */
547
- function bbp_new_reply_admin_handler( $reply_id, $reply ) {
548
- global $bbp;
549
-
550
- if ( // Check if POST action
551
- 'POST' === $_SERVER['REQUEST_METHOD'] &&
552
-
553
- // Check Actions exist in POST
554
- !empty( $_POST['action'] ) &&
555
- !empty( $_POST['post_type'] ) &&
556
-
557
- // Check that actions match what we need
558
- 'editpost' === $_POST['action'] &&
559
- 'publish' === $_POST['post_status'] &&
560
- bbp_get_reply_post_type() === $_POST['post_type']
561
-
562
- ) {
563
-
564
- // Update the reply meta bidness
565
- $parent_id = !empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0;
566
- bbp_update_topic( $reply_id, $parent_id );
567
- }
568
- }
569
-
570
  /**
571
  * Handle all the extra meta stuff from posting a new reply or editing a reply
572
  *
@@ -956,22 +965,33 @@ function bbp_toggle_reply_handler() {
956
  function bbp_spam_reply( $reply_id = 0 ) {
957
  global $bbp;
958
 
 
959
  if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
960
  return $reply;
961
 
 
962
  if ( $reply['post_status'] == $bbp->spam_status_id )
963
  return false;
964
 
 
965
  do_action( 'bbp_spam_reply', $reply_id );
966
 
 
967
  add_post_meta( $reply_id, '_bbp_spam_meta_status', $reply['post_status'] );
968
 
 
969
  $reply['post_status'] = $bbp->spam_status_id;
970
 
 
 
 
 
971
  $reply_id = wp_insert_post( $reply );
972
 
 
973
  do_action( 'bbp_spammed_reply', $reply_id );
974
 
 
975
  return $reply_id;
976
  }
977
 
@@ -992,23 +1012,36 @@ function bbp_spam_reply( $reply_id = 0 ) {
992
  function bbp_unspam_reply( $reply_id = 0 ) {
993
  global $bbp;
994
 
 
995
  if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
996
  return $reply;
997
 
 
998
  if ( $reply['post_status'] != $bbp->spam_status_id )
999
  return false;
1000
 
 
1001
  do_action( 'bbp_unspam_reply', $reply_id );
1002
 
 
1003
  $reply_status = get_post_meta( $reply_id, '_bbp_spam_meta_status', true );
 
 
1004
  $reply['post_status'] = $reply_status;
1005
 
 
1006
  delete_post_meta( $reply_id, '_bbp_spam_meta_status' );
1007
 
 
 
 
 
1008
  $reply_id = wp_insert_post( $reply );
1009
 
 
1010
  do_action( 'bbp_unspammed_reply', $reply_id );
1011
 
 
1012
  return $reply_id;
1013
  }
1014
 
@@ -1121,7 +1154,6 @@ function bbp_untrashed_reply( $reply_id = 0 ) {
1121
  *
1122
  * @global bbPress $bbp
1123
  *
1124
- * @uses bbp_exclude_forum_ids()
1125
  * @uses bbp_is_topic()
1126
  * @uses bbp_user_can_view_forum()
1127
  * @uses bbp_get_topic_forum_id()
@@ -1155,9 +1187,6 @@ function bbp_display_replies_feed_rss2( $replies_query = array() ) {
1155
  if ( bbp_is_topic() && !bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
1156
  return;
1157
 
1158
- // Remove any replies from hidden forums
1159
- $replies_query = bbp_exclude_forum_ids( $replies_query );
1160
-
1161
  // Adjust the title based on context
1162
  if ( bbp_is_topic() && bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
1163
  $title = apply_filters( 'wp_title_rss', get_wp_title_rss( ' &#187; ' ) );
133
  * @uses do_action() Calls 'bbp_new_reply' with the reply id, topic id, forum
134
  * id, anonymous data and reply author
135
  * @uses bbp_get_reply_url() To get the paginated url to the reply
136
+ * @uses wp_safe_redirect() To redirect to the reply url
137
  * @uses bbPress::errors::get_error_message() To get the {@link WP_Error} error
138
  * message
139
  */
146
  // Nonce check
147
  check_admin_referer( 'bbp-new-reply' );
148
 
149
+ // Define local variable(s)
150
+ $topic_id = $forum_id = $reply_author = $anonymous_data = 0;
151
  $reply_title = $reply_content = $terms = '';
152
 
153
  /** Reply Author ******************************************************/
269
 
270
  /** Topic Tags ************************************************/
271
 
272
+ // Just in time manipulation of reply terms before being edited
273
+ $terms = apply_filters( 'bbp_new_reply_pre_set_terms', $terms, $topic_id, $reply_id );
274
+
275
  // Insert terms
276
  $terms = wp_set_post_terms( $topic_id, $terms, $bbp->topic_tag_id, false );
277
 
298
  update_post_meta( $topic_id, '_bbp_pre_trashed_replies', $pre_trashed_replies );
299
  }
300
 
301
+ /** Spam Check ************************************************/
302
+
303
+ // If reply or topic are spam, officially spam this reply
304
+ if ( bbp_is_topic_spam( $topic_id ) || ( $reply_data['post_status'] == $bbp->spam_status_id ) )
305
+ add_post_meta( $reply_id, '_bbp_spam_meta_status', 'publish' );
306
+
307
+ /** Update counts, etc... *************************************/
308
+
309
  do_action( 'bbp_new_reply', $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author );
310
 
311
  /** Redirect **************************************************/
312
 
313
+ // Redirect to
314
+ $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
315
 
316
+ // View all?
317
+ $count_hidden = (bool) ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) || ( $reply_data['post_status'] == $bbp->trash_status_id ) );
318
+
319
+ // Get the reply URL
320
+ $reply_url = bbp_get_reply_url( $reply_id, $count_hidden, $redirect_to );
321
+
322
+ // Add view all?
323
+ if ( !empty( $count_hidden ) )
324
  $reply_url = add_query_arg( array( 'view' => 'all' ), $reply_url );
325
 
326
+ // Allow to be filtered
327
+ $reply_url = apply_filters( 'bbp_new_reply_redirect_to', $reply_url, $count_hidden, $redirect_to );
328
 
329
  /** Successful Save *******************************************/
330
 
331
  // Redirect back to new reply
332
+ wp_safe_redirect( $reply_url );
333
 
334
  // For good measure
335
  exit();
370
  * @uses do_action() Calls 'bbp_edit_reply' with the reply id, topic id, forum
371
  * id, anonymous data, reply author and bool true (for edit)
372
  * @uses bbp_get_reply_url() To get the paginated url to the reply
373
+ * @uses wp_safe_redirect() To redirect to the reply url
374
  * @uses bbPress::errors::get_error_message() To get the {@link WP_Error} error
375
  * message
376
  */
380
  if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) && !empty( $_POST['action'] ) && ( 'bbp-edit-reply' === $_POST['action'] ) ) {
381
  global $bbp;
382
 
383
+ // Define local variable(s)
384
  $reply = $reply_id = $topic_id = $forum_id = $anonymous_data = 0;
385
  $reply_title = $reply_content = $reply_edit_reason = $terms = '';
386
 
503
 
504
  /** Topic Tags ************************************************/
505
 
506
+ // Just in time manipulation of reply terms before being edited
507
+ $terms = apply_filters( 'bbp_edit_reply_pre_set_terms', $terms, $topic_id, $reply_id );
508
+
509
  // Insert terms
510
  $terms = wp_set_post_terms( $topic_id, $terms, $bbp->topic_tag_id, false );
511
 
540
 
541
  do_action( 'bbp_edit_reply_post_extras', $reply_id );
542
 
543
+ /** Redirect **************************************************/
544
+
545
+ // Redirect to
546
+ $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
547
+
548
+ // View all?
549
+ $count_hidden = (bool) ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) );
550
+
551
+ // Get the reply URL
552
+ $reply_url = bbp_get_reply_url( $reply_id, $count_hidden, $redirect_to );
553
+
554
+ // Add view all?
555
+ if ( !empty( $count_hidden ) )
556
+ $reply_url = add_query_arg( array( 'view' => 'all' ), $reply_url );
557
+
558
+ // Allow to be filtered
559
+ $reply_url = apply_filters( 'bbp_edit_reply_redirect_to', $reply_url, $count_hidden, $redirect_to );
560
+
561
  /** Successful Edit *******************************************/
562
 
563
  // Redirect back to new reply
564
+ wp_safe_redirect( $reply_url );
565
 
566
  // For good measure
567
  exit();
576
  }
577
  }
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  /**
580
  * Handle all the extra meta stuff from posting a new reply or editing a reply
581
  *
965
  function bbp_spam_reply( $reply_id = 0 ) {
966
  global $bbp;
967
 
968
+ // Get reply
969
  if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
970
  return $reply;
971
 
972
+ // Bail if already spam
973
  if ( $reply['post_status'] == $bbp->spam_status_id )
974
  return false;
975
 
976
+ // Execute pre spam code
977
  do_action( 'bbp_spam_reply', $reply_id );
978
 
979
+ // Add the original post status as post meta for future restoration
980
  add_post_meta( $reply_id, '_bbp_spam_meta_status', $reply['post_status'] );
981
 
982
+ // Set post status to spam
983
  $reply['post_status'] = $bbp->spam_status_id;
984
 
985
+ // No revisions
986
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
987
+
988
+ // Update the reply
989
  $reply_id = wp_insert_post( $reply );
990
 
991
+ // Execute post spam code
992
  do_action( 'bbp_spammed_reply', $reply_id );
993
 
994
+ // Return reply_id
995
  return $reply_id;
996
  }
997
 
1012
  function bbp_unspam_reply( $reply_id = 0 ) {
1013
  global $bbp;
1014
 
1015
+ // Get reply
1016
  if ( !$reply = wp_get_single_post( $reply_id, ARRAY_A ) )
1017
  return $reply;
1018
 
1019
+ // Bail if already not spam
1020
  if ( $reply['post_status'] != $bbp->spam_status_id )
1021
  return false;
1022
 
1023
+ // Execute pre unspam code
1024
  do_action( 'bbp_unspam_reply', $reply_id );
1025
 
1026
+ // Get pre spam status
1027
  $reply_status = get_post_meta( $reply_id, '_bbp_spam_meta_status', true );
1028
+
1029
+ // Set post status to pre spam
1030
  $reply['post_status'] = $reply_status;
1031
 
1032
+ // Delete pre spam meta
1033
  delete_post_meta( $reply_id, '_bbp_spam_meta_status' );
1034
 
1035
+ // No revisions
1036
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
1037
+
1038
+ // Update the reply
1039
  $reply_id = wp_insert_post( $reply );
1040
 
1041
+ // Execute post unspam code
1042
  do_action( 'bbp_unspammed_reply', $reply_id );
1043
 
1044
+ // Return reply_id
1045
  return $reply_id;
1046
  }
1047
 
1154
  *
1155
  * @global bbPress $bbp
1156
  *
 
1157
  * @uses bbp_is_topic()
1158
  * @uses bbp_user_can_view_forum()
1159
  * @uses bbp_get_topic_forum_id()
1187
  if ( bbp_is_topic() && !bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
1188
  return;
1189
 
 
 
 
1190
  // Adjust the title based on context
1191
  if ( bbp_is_topic() && bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
1192
  $title = apply_filters( 'wp_title_rss', get_wp_title_rss( ' &#187; ' ) );
bbp-includes/bbp-reply-template.php CHANGED
@@ -140,7 +140,15 @@ function bbp_has_replies( $args = '' ) {
140
 
141
  // If pretty permalinks are enabled, make our pagination pretty
142
  if ( $wp_rewrite->using_permalinks() )
143
- $base = user_trailingslashit( trailingslashit( get_permalink( bbp_get_topic_id() ) ) . 'page/%#%/' );
 
 
 
 
 
 
 
 
144
  else
145
  $base = add_query_arg( 'paged', '%#%' );
146
 
@@ -339,6 +347,8 @@ function bbp_reply_url( $reply_id = 0 ) {
339
  * replies? If $_GET['view'] == all, it is
340
  * automatically set to true. To override
341
  * this, set $count_hidden = (int) -1
 
 
342
  * @uses bbp_get_reply_id() To get the reply id
343
  * @uses bbp_get_reply_topic_id() To get the reply topic id
344
  * @uses bbp_get_topic_permalink() To get the topic permalink
@@ -351,14 +361,14 @@ function bbp_reply_url( $reply_id = 0 ) {
351
  * reply id and bool count hidden
352
  * @return string Link to reply relative to paginated topic
353
  */
354
- function bbp_get_reply_url( $reply_id = 0, $count_hidden = false ) {
355
  global $bbp, $wp_rewrite;
356
 
357
  // Set needed variables
358
- $reply_id = bbp_get_reply_id ( $reply_id );
359
- $topic_id = bbp_get_reply_topic_id ( $reply_id );
360
- $topic_url = bbp_get_topic_permalink( $topic_id );
361
- $reply_position = bbp_get_reply_position ( $reply_id );
362
 
363
  // Check if in query with pagination
364
  $reply_page = ceil( $reply_position / get_option( '_bbp_replies_per_page', 15 ) );
@@ -1780,7 +1790,7 @@ function bbp_form_reply_log_edit() {
1780
  else
1781
  $reply_revision = 1;
1782
 
1783
- return apply_filters( 'bbp_get_form_reply_log_edit', checked( true, $reply_revision, false ) );
1784
  }
1785
 
1786
  /**
140
 
141
  // If pretty permalinks are enabled, make our pagination pretty
142
  if ( $wp_rewrite->using_permalinks() )
143
+
144
+ // Page or single
145
+ if ( is_page() || is_single() )
146
+ $base = user_trailingslashit( trailingslashit( get_permalink() ) . 'page/%#%/' );
147
+
148
+ // Topic
149
+ else
150
+ $base = user_trailingslashit( trailingslashit( get_permalink( bbp_get_topic_id() ) ) . 'page/%#%/' );
151
+
152
  else
153
  $base = add_query_arg( 'paged', '%#%' );
154
 
347
  * replies? If $_GET['view'] == all, it is
348
  * automatically set to true. To override
349
  * this, set $count_hidden = (int) -1
350
+ * @param $string $redirect_to Optional. Pass a redirect value for use with
351
+ * shortcodes and other fun things.
352
  * @uses bbp_get_reply_id() To get the reply id
353
  * @uses bbp_get_reply_topic_id() To get the reply topic id
354
  * @uses bbp_get_topic_permalink() To get the topic permalink
361
  * reply id and bool count hidden
362
  * @return string Link to reply relative to paginated topic
363
  */
364
+ function bbp_get_reply_url( $reply_id = 0, $count_hidden = false, $redirect_to = '' ) {
365
  global $bbp, $wp_rewrite;
366
 
367
  // Set needed variables
368
+ $reply_id = bbp_get_reply_id ( $reply_id );
369
+ $topic_id = bbp_get_reply_topic_id ( $reply_id );
370
+ $topic_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
371
+ $reply_position = bbp_get_reply_position ( $reply_id );
372
 
373
  // Check if in query with pagination
374
  $reply_page = ceil( $reply_position / get_option( '_bbp_replies_per_page', 15 ) );
1790
  else
1791
  $reply_revision = 1;
1792
 
1793
+ return apply_filters( 'bbp_get_form_reply_log_edit', checked( $reply_revision, true, false ) );
1794
  }
1795
 
1796
  /**
bbp-includes/bbp-topic-functions.php CHANGED
@@ -40,7 +40,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
40
  * @uses bbp_stick_topic() To stick or super stick the topic
41
  * @uses bbp_unstick_topic() To unstick the topic
42
  * @uses bbp_get_topic_permalink() To get the topic permalink
43
- * @uses wp_redirect() To redirect to the topic link
44
  * @uses bbPress::errors::get_error_messages() To get the {@link WP_Error} error
45
  * messages
46
  */
@@ -53,7 +53,7 @@ function bbp_new_topic_handler() {
53
  // Nonce check
54
  check_admin_referer( 'bbp-new-topic' );
55
 
56
- // Set defaults to prevent debug notices
57
  $forum_id = $topic_author = $anonymous_data = 0;
58
  $topic_title = $topic_content = '';
59
  $terms = array( $bbp->topic_tag_id => array() );
@@ -234,22 +234,38 @@ function bbp_new_topic_handler() {
234
  wp_trash_post( $topic_id );
235
  }
236
 
237
- // Update counts, etc...
 
 
 
 
 
 
 
238
  do_action( 'bbp_new_topic', $topic_id, $forum_id, $anonymous_data, $topic_author );
239
 
240
  /** Redirect **************************************************/
241
 
242
- $topic_url = bbp_get_topic_permalink( $topic_id );
 
 
 
 
243
 
244
- if ( $bbp->trash_status_id == $topic_data['post_status'] )
 
 
 
 
245
  $topic_url = add_query_arg( array( 'view' => 'all' ), $topic_url );
246
 
247
- $topic_url = apply_filters( 'bbp_new_topic_redirect_to', $topic_url );
 
248
 
249
  /** Successful Save *******************************************/
250
 
251
  // Redirect back to new topic
252
- wp_redirect( $topic_url );
253
 
254
  // For good measure
255
  exit();
@@ -293,7 +309,7 @@ function bbp_new_topic_handler() {
293
  * @uses bbp_move_topic_handler() To handle movement of a topic from one forum
294
  * to another
295
  * @uses bbp_get_topic_permalink() To get the topic permalink
296
- * @uses wp_redirect() To redirect to the topic link
297
  * @uses bbPress::errors::get_error_messages() To get the {@link WP_Error} error
298
  * messages
299
  */
@@ -303,7 +319,7 @@ function bbp_edit_topic_handler() {
303
  if ( ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) && ( !empty( $_POST['action'] ) && ( 'bbp-edit-topic' === $_POST['action'] ) ) ) {
304
  global $bbp;
305
 
306
- // Set defaults to prevent debug notices
307
  $topic_id = $forum_id = $anonymous_data = 0;
308
  $topic_title = $topic_content = $topic_edit_reason = '';
309
  $terms = array( $bbp->topic_tag_id => array() );
@@ -503,10 +519,28 @@ function bbp_edit_topic_handler() {
503
 
504
  do_action( 'bbp_edit_topic_post_extras', $topic_id );
505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  /** Successful Edit *******************************************/
507
 
508
  // Redirect back to new topic
509
- wp_redirect( bbp_get_topic_permalink( $topic_id ) );
510
 
511
  // For good measure
512
  exit();
@@ -521,36 +555,6 @@ function bbp_edit_topic_handler() {
521
  }
522
  }
523
 
524
- /**
525
- * Handles new topic submission from within wp-admin
526
- *
527
- * @param int $topic_id Topic id
528
- * @param object $topic Topic
529
- * @uses bbp_get_topic_post_type() To get the topic post type
530
- * @uses bbp_update_topic() To update the topic
531
- */
532
- function bbp_new_topic_admin_handler( $topic_id, $topic ) {
533
- global $bbp;
534
-
535
- if ( // Check if POST action
536
- 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) &&
537
-
538
- // Check Actions exist in POST
539
- !empty( $_POST['action'] ) &&
540
- !empty( $_POST['post_type'] ) &&
541
-
542
- // Check that actions match what we need
543
- 'editpost' === $_POST['action'] &&
544
- 'publish' === $_POST['post_status'] &&
545
- bbp_get_topic_post_type() === $_POST['post_type']
546
- ) {
547
-
548
- // Update the topic meta bidness
549
- $parent_id = !empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0;
550
- bbp_update_topic( $topic_id, $parent_id );
551
- }
552
- }
553
-
554
  /**
555
  * Handle all the extra meta stuff from posting a new topic
556
  *
@@ -828,7 +832,7 @@ function bbp_merge_topic_handler() {
828
  if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) && !empty( $_POST['action'] ) && ( 'bbp-merge-topic' === $_POST['action'] ) ) {
829
  global $bbp;
830
 
831
- // Prevent debug notices
832
  $source_topic_id = $destination_topic_id = 0;
833
  $source_topic = $destination_topic = 0;
834
  $subscribers = $favoriters = $replies = array();
@@ -2155,22 +2159,33 @@ function bbp_update_topic_revision_log( $args = '' ) {
2155
  function bbp_close_topic( $topic_id = 0 ) {
2156
  global $bbp;
2157
 
 
2158
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2159
  return $topic;
2160
 
 
2161
  if ( $topic['post_status'] == $bbp->closed_status_id )
2162
  return false;
2163
 
 
2164
  do_action( 'bbp_close_topic', $topic_id );
2165
 
 
2166
  add_post_meta( $topic_id, '_bbp_status', $topic['post_status'] );
2167
 
 
2168
  $topic['post_status'] = $bbp->closed_status_id;
2169
 
 
 
 
 
2170
  $topic_id = wp_insert_post( $topic );
2171
 
 
2172
  do_action( 'bbp_closed_topic', $topic_id );
2173
 
 
2174
  return $topic_id;
2175
  }
2176
 
@@ -2191,23 +2206,36 @@ function bbp_close_topic( $topic_id = 0 ) {
2191
  function bbp_open_topic( $topic_id = 0 ) {
2192
  global $bbp;
2193
 
 
2194
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2195
  return $topic;
2196
 
 
2197
  if ( $topic['post_status'] != $bbp->closed_status_id )
2198
  return false;
2199
 
 
2200
  do_action( 'bbp_open_topic', $topic_id );
2201
 
 
2202
  $topic_status = get_post_meta( $topic_id, '_bbp_status', true );
 
 
2203
  $topic['post_status'] = $topic_status;
2204
 
 
2205
  delete_post_meta( $topic_id, '_bbp_status' );
2206
 
 
 
 
 
2207
  $topic_id = wp_insert_post( $topic );
2208
 
 
2209
  do_action( 'bbp_opened_topic', $topic_id );
2210
 
 
2211
  return $topic_id;
2212
  }
2213
 
@@ -2227,22 +2255,33 @@ function bbp_open_topic( $topic_id = 0 ) {
2227
  function bbp_spam_topic( $topic_id = 0 ) {
2228
  global $bbp;
2229
 
 
2230
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2231
  return $topic;
2232
 
 
2233
  if ( $topic['post_status'] == $bbp->spam_status_id )
2234
  return false;
2235
 
 
2236
  do_action( 'bbp_spam_topic', $topic_id );
2237
 
 
2238
  add_post_meta( $topic_id, '_bbp_spam_meta_status', $topic['post_status'] );
2239
 
 
2240
  $topic['post_status'] = $bbp->spam_status_id;
2241
 
 
 
 
 
2242
  $topic_id = wp_insert_post( $topic );
2243
 
 
2244
  do_action( 'bbp_spammed_topic', $topic_id );
2245
 
 
2246
  return $topic_id;
2247
  }
2248
 
@@ -2263,23 +2302,36 @@ function bbp_spam_topic( $topic_id = 0 ) {
2263
  function bbp_unspam_topic( $topic_id = 0 ) {
2264
  global $bbp;
2265
 
 
2266
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2267
  return $topic;
2268
 
 
2269
  if ( $topic['post_status'] != $bbp->spam_status_id )
2270
  return false;
2271
 
 
2272
  do_action( 'bbp_unspam_topic', $topic_id );
2273
 
 
2274
  $topic_status = get_post_meta( $topic_id, '_bbp_spam_meta_status', true );
 
 
2275
  $topic['post_status'] = $topic_status;
2276
 
 
2277
  delete_post_meta( $topic_id, '_bbp_spam_meta_status' );
2278
 
 
 
 
 
2279
  $topic_id = wp_insert_post( $topic );
2280
 
 
2281
  do_action( 'bbp_unspammed_topic', $topic_id );
2282
 
 
2283
  return $topic_id;
2284
  }
2285
 
@@ -2530,7 +2582,6 @@ function bbp_untrashed_topic( $topic_id = 0 ) {
2530
  *
2531
  * @global bbPress $bbp
2532
  *
2533
- * @uses bbp_exclude_forum_ids()
2534
  * @uses bbp_is_topic()
2535
  * @uses bbp_user_can_view_forum()
2536
  * @uses bbp_get_topic_forum_id()
@@ -2561,9 +2612,6 @@ function bbp_display_topics_feed_rss2( $topics_query = array() ) {
2561
  if ( bbp_is_topic() && !bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
2562
  return;
2563
 
2564
- // Remove any topics from hidden forums
2565
- $topics_query = bbp_exclude_forum_ids( $topics_query );
2566
-
2567
  // Display the feed
2568
  header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
2569
  header( 'Status: 200 OK' );
40
  * @uses bbp_stick_topic() To stick or super stick the topic
41
  * @uses bbp_unstick_topic() To unstick the topic
42
  * @uses bbp_get_topic_permalink() To get the topic permalink
43
+ * @uses wp_safe_redirect() To redirect to the topic link
44
  * @uses bbPress::errors::get_error_messages() To get the {@link WP_Error} error
45
  * messages
46
  */
53
  // Nonce check
54
  check_admin_referer( 'bbp-new-topic' );
55
 
56
+ // Define local variable(s)
57
  $forum_id = $topic_author = $anonymous_data = 0;
58
  $topic_title = $topic_content = '';
59
  $terms = array( $bbp->topic_tag_id => array() );
234
  wp_trash_post( $topic_id );
235
  }
236
 
237
+ /** Spam Check ************************************************/
238
+
239
+ // If reply or topic are spam, officially spam this reply
240
+ if ( $topic_data['post_status'] == $bbp->spam_status_id )
241
+ add_post_meta( $topic_id, '_bbp_spam_meta_status', 'publish' );
242
+
243
+ /** Update counts, etc... *************************************/
244
+
245
  do_action( 'bbp_new_topic', $topic_id, $forum_id, $anonymous_data, $topic_author );
246
 
247
  /** Redirect **************************************************/
248
 
249
+ // Redirect to
250
+ $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
251
+
252
+ // View all?
253
+ $count_hidden = (bool) ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) || ( $topic_data['post_status'] == $bbp->trash_status_id ) );
254
 
255
+ // Get the topic URL
256
+ $topic_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
257
+
258
+ // Add view all?
259
+ if ( !empty( $count_hidden ) )
260
  $topic_url = add_query_arg( array( 'view' => 'all' ), $topic_url );
261
 
262
+ // Allow to be filtered
263
+ $topic_url = apply_filters( 'bbp_new_topic_redirect_to', $topic_url, $count_hidden, $redirect_to );
264
 
265
  /** Successful Save *******************************************/
266
 
267
  // Redirect back to new topic
268
+ wp_safe_redirect( $topic_url );
269
 
270
  // For good measure
271
  exit();
309
  * @uses bbp_move_topic_handler() To handle movement of a topic from one forum
310
  * to another
311
  * @uses bbp_get_topic_permalink() To get the topic permalink
312
+ * @uses wp_safe_redirect() To redirect to the topic link
313
  * @uses bbPress::errors::get_error_messages() To get the {@link WP_Error} error
314
  * messages
315
  */
319
  if ( ( 'POST' === strtoupper( $_SERVER['REQUEST_METHOD'] ) ) && ( !empty( $_POST['action'] ) && ( 'bbp-edit-topic' === $_POST['action'] ) ) ) {
320
  global $bbp;
321
 
322
+ // Define local variable(s)
323
  $topic_id = $forum_id = $anonymous_data = 0;
324
  $topic_title = $topic_content = $topic_edit_reason = '';
325
  $terms = array( $bbp->topic_tag_id => array() );
519
 
520
  do_action( 'bbp_edit_topic_post_extras', $topic_id );
521
 
522
+ /** Redirect **************************************************/
523
+
524
+ // Redirect to
525
+ $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
526
+
527
+ // View all?
528
+ $count_hidden = (bool) ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) );
529
+
530
+ // Get the topic URL
531
+ $topic_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
532
+
533
+ // Add view all?
534
+ if ( !empty( $count_hidden ) )
535
+ $topic_url = add_query_arg( array( 'view' => 'all' ), $topic_url );
536
+
537
+ // Allow to be filtered
538
+ $topic_url = apply_filters( 'bbp_edit_topic_redirect_to', $topic_url, $count_hidden, $redirect_to );
539
+
540
  /** Successful Edit *******************************************/
541
 
542
  // Redirect back to new topic
543
+ wp_safe_redirect( $topic_url );
544
 
545
  // For good measure
546
  exit();
555
  }
556
  }
557
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  /**
559
  * Handle all the extra meta stuff from posting a new topic
560
  *
832
  if ( 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) && !empty( $_POST['action'] ) && ( 'bbp-merge-topic' === $_POST['action'] ) ) {
833
  global $bbp;
834
 
835
+ // Define local variable(s)
836
  $source_topic_id = $destination_topic_id = 0;
837
  $source_topic = $destination_topic = 0;
838
  $subscribers = $favoriters = $replies = array();
2159
  function bbp_close_topic( $topic_id = 0 ) {
2160
  global $bbp;
2161
 
2162
+ // Get topic
2163
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2164
  return $topic;
2165
 
2166
+ // Bail if already closed
2167
  if ( $topic['post_status'] == $bbp->closed_status_id )
2168
  return false;
2169
 
2170
+ // Execute pre close code
2171
  do_action( 'bbp_close_topic', $topic_id );
2172
 
2173
+ // Add pre close status
2174
  add_post_meta( $topic_id, '_bbp_status', $topic['post_status'] );
2175
 
2176
+ // Set closed status
2177
  $topic['post_status'] = $bbp->closed_status_id;
2178
 
2179
+ // No revisions
2180
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
2181
+
2182
+ // Update topic
2183
  $topic_id = wp_insert_post( $topic );
2184
 
2185
+ // Execute post close code
2186
  do_action( 'bbp_closed_topic', $topic_id );
2187
 
2188
+ // Return topic_id
2189
  return $topic_id;
2190
  }
2191
 
2206
  function bbp_open_topic( $topic_id = 0 ) {
2207
  global $bbp;
2208
 
2209
+ // Get topic
2210
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2211
  return $topic;
2212
 
2213
+ // Bail if already open
2214
  if ( $topic['post_status'] != $bbp->closed_status_id )
2215
  return false;
2216
 
2217
+ // Execute pre open code
2218
  do_action( 'bbp_open_topic', $topic_id );
2219
 
2220
+ // Get previous status
2221
  $topic_status = get_post_meta( $topic_id, '_bbp_status', true );
2222
+
2223
+ // Set previous status
2224
  $topic['post_status'] = $topic_status;
2225
 
2226
+ // Remove old status meta
2227
  delete_post_meta( $topic_id, '_bbp_status' );
2228
 
2229
+ // No revisions
2230
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
2231
+
2232
+ // Update topic
2233
  $topic_id = wp_insert_post( $topic );
2234
 
2235
+ // Execute post open code
2236
  do_action( 'bbp_opened_topic', $topic_id );
2237
 
2238
+ // Return topic_id
2239
  return $topic_id;
2240
  }
2241
 
2255
  function bbp_spam_topic( $topic_id = 0 ) {
2256
  global $bbp;
2257
 
2258
+ // Get the topic
2259
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2260
  return $topic;
2261
 
2262
+ // Bail if topic is spam
2263
  if ( $topic['post_status'] == $bbp->spam_status_id )
2264
  return false;
2265
 
2266
+ // Execute pre spam code
2267
  do_action( 'bbp_spam_topic', $topic_id );
2268
 
2269
+ // Add the original post status as post meta for future restoration
2270
  add_post_meta( $topic_id, '_bbp_spam_meta_status', $topic['post_status'] );
2271
 
2272
+ // Set post status to spam
2273
  $topic['post_status'] = $bbp->spam_status_id;
2274
 
2275
+ // No revisions
2276
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
2277
+
2278
+ // Update the topic
2279
  $topic_id = wp_insert_post( $topic );
2280
 
2281
+ // Execute post spam code
2282
  do_action( 'bbp_spammed_topic', $topic_id );
2283
 
2284
+ // Return topic_id
2285
  return $topic_id;
2286
  }
2287
 
2302
  function bbp_unspam_topic( $topic_id = 0 ) {
2303
  global $bbp;
2304
 
2305
+ // Get the topic
2306
  if ( !$topic = wp_get_single_post( $topic_id, ARRAY_A ) )
2307
  return $topic;
2308
 
2309
+ // Bail if already not spam
2310
  if ( $topic['post_status'] != $bbp->spam_status_id )
2311
  return false;
2312
 
2313
+ // Execute pre unspam code
2314
  do_action( 'bbp_unspam_topic', $topic_id );
2315
 
2316
+ // Get pre spam status
2317
  $topic_status = get_post_meta( $topic_id, '_bbp_spam_meta_status', true );
2318
+
2319
+ // Set post status to pre spam
2320
  $topic['post_status'] = $topic_status;
2321
 
2322
+ // Delete pre spam meta
2323
  delete_post_meta( $topic_id, '_bbp_spam_meta_status' );
2324
 
2325
+ // No revisions
2326
+ remove_action( 'pre_post_update', 'wp_save_post_revision' );
2327
+
2328
+ // Update the topic
2329
  $topic_id = wp_insert_post( $topic );
2330
 
2331
+ // Execute post unspam code
2332
  do_action( 'bbp_unspammed_topic', $topic_id );
2333
 
2334
+ // Return topic_id
2335
  return $topic_id;
2336
  }
2337
 
2582
  *
2583
  * @global bbPress $bbp
2584
  *
 
2585
  * @uses bbp_is_topic()
2586
  * @uses bbp_user_can_view_forum()
2587
  * @uses bbp_get_topic_forum_id()
2612
  if ( bbp_is_topic() && !bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) )
2613
  return;
2614
 
 
 
 
2615
  // Display the feed
2616
  header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true );
2617
  header( 'Status: 200 OK' );
bbp-includes/bbp-topic-template.php CHANGED
@@ -73,7 +73,7 @@ function bbp_has_topics( $args = '' ) {
73
  wp_reset_postdata();
74
 
75
  // Are we in a forum and looking to do a forum only query?
76
- $in_forum = (bool) ( bbp_is_forum() && !bbp_is_query_name( 'bbp_widget' ) );
77
 
78
  // What are the default allowed statuses (based on user caps)
79
  if ( current_user_can( 'moderate' ) && !bbp_is_query_name( 'bbp_widget' ) && ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) ) )
@@ -185,10 +185,16 @@ function bbp_has_topics( $args = '' ) {
185
 
186
  // Fetch sticky posts that weren't in the query results
187
  if ( !empty( $stickies ) ) {
188
- global $wpdb;
 
 
 
 
 
 
189
 
190
  // Get all stickies
191
- if ( $sticky_posts = get_posts( array( 'post_type' => 'any', 'post_parent' => 'any', 'include' => $stickies ) ) ) {
192
 
193
  // Get a count of the visible stickies
194
  $sticky_count = count( $sticky_posts );
@@ -207,8 +213,9 @@ function bbp_has_topics( $args = '' ) {
207
  $bbp->topic_query->post_count = (int) $bbp->topic_query->post_count + (int) $sticky_count;
208
 
209
  // Cleanup
210
- unset( $topics );
211
- unset( $stickies );
 
212
  }
213
  }
214
  }
@@ -233,15 +240,15 @@ function bbp_has_topics( $args = '' ) {
233
  if ( $wp_rewrite->using_permalinks() ) {
234
 
235
  // Profile page
236
- if ( bbp_is_user_profile_page() )
237
  $base = user_trailingslashit( trailingslashit( bbp_get_user_profile_url( bbp_get_displayed_user_id() ) ) . 'page/%#%/' );
238
 
239
  // View
240
- elseif ( bbp_is_view() )
241
  $base = user_trailingslashit( trailingslashit( bbp_get_view_url() ) . 'page/%#%/' );
242
 
243
  // Topic archive
244
- elseif ( is_post_type_archive( bbp_get_topic_post_type() ) )
245
  $base = user_trailingslashit( trailingslashit( home_url( $bbp->topic_archive_slug ) ) . 'page/%#%/' );
246
 
247
  // Page or single post
@@ -421,16 +428,27 @@ function bbp_topic_permalink( $topic_id = 0 ) {
421
  * @since bbPress (r2485)
422
  *
423
  * @param int $topic_id Optional. Topic id
 
 
424
  * @uses bbp_get_topic_id() To get the topic id
425
  * @uses get_permalink() To get the topic permalink
 
426
  * @uses apply_filters() Calls 'bbp_get_topic_permalink' with the link
427
  * and topic id
428
  * @return string Permanent link to topic
429
  */
430
- function bbp_get_topic_permalink( $topic_id = 0 ) {
431
  $topic_id = bbp_get_topic_id( $topic_id );
432
 
433
- return apply_filters( 'bbp_get_topic_permalink', get_permalink( $topic_id ), $topic_id );
 
 
 
 
 
 
 
 
434
  }
435
 
436
  /**
@@ -462,6 +480,53 @@ function bbp_topic_title( $topic_id = 0 ) {
462
  return apply_filters( 'bbp_get_topic_title', get_the_title( $topic_id ), $topic_id );
463
  }
464
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  /**
466
  * Output the content of the topic
467
  *
@@ -2853,7 +2918,7 @@ function bbp_form_topic_tags() {
2853
  $new_terms[] = $term->name;
2854
  }
2855
 
2856
- // Prevent debug notices
2857
  } else {
2858
  $new_terms = '';
2859
  }
@@ -2947,12 +3012,19 @@ function bbp_form_topic_subscribed() {
2947
  $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id() );
2948
  }
2949
 
 
 
 
 
2950
  // No data
2951
  } else {
2952
  $topic_subscribed = 0;
2953
  }
2954
 
2955
- return apply_filters( 'bbp_get_form_topic_subscribed', checked( 'bbp_subscribe', $topic_subscribed, false ) );
 
 
 
2956
  }
2957
 
2958
  /**
@@ -2985,7 +3057,7 @@ function bbp_form_topic_log_edit() {
2985
  else
2986
  $topic_revision = 1;
2987
 
2988
- return apply_filters( 'bbp_get_form_topic_log_edit', checked( true, $topic_revision, false ) );
2989
  }
2990
 
2991
  /**
73
  wp_reset_postdata();
74
 
75
  // Are we in a forum and looking to do a forum only query?
76
+ $in_forum = (bool) ( bbp_is_forum() && !bbp_is_forum_archive() && !bbp_is_query_name( 'bbp_widget' ) );
77
 
78
  // What are the default allowed statuses (based on user caps)
79
  if ( current_user_can( 'moderate' ) && !bbp_is_query_name( 'bbp_widget' ) && ( !empty( $_GET['view'] ) && ( 'all' == $_GET['view'] ) ) )
185
 
186
  // Fetch sticky posts that weren't in the query results
187
  if ( !empty( $stickies ) ) {
188
+
189
+ // Query to use in get_posts to get sticky posts
190
+ $sticky_query = array(
191
+ 'post_type' => bbp_get_topic_post_type(),
192
+ 'post_parent' => 'any',
193
+ 'include' => $stickies
194
+ );
195
 
196
  // Get all stickies
197
+ if ( $sticky_posts = get_posts( $sticky_query ) ) {
198
 
199
  // Get a count of the visible stickies
200
  $sticky_count = count( $sticky_posts );
213
  $bbp->topic_query->post_count = (int) $bbp->topic_query->post_count + (int) $sticky_count;
214
 
215
  // Cleanup
216
+ unset( $topics );
217
+ unset( $stickies );
218
+ unset( $sticky_posts );
219
  }
220
  }
221
  }
240
  if ( $wp_rewrite->using_permalinks() ) {
241
 
242
  // Profile page
243
+ if ( bbp_is_single_user() )
244
  $base = user_trailingslashit( trailingslashit( bbp_get_user_profile_url( bbp_get_displayed_user_id() ) ) . 'page/%#%/' );
245
 
246
  // View
247
+ elseif ( bbp_is_single_view() )
248
  $base = user_trailingslashit( trailingslashit( bbp_get_view_url() ) . 'page/%#%/' );
249
 
250
  // Topic archive
251
+ elseif ( bbp_is_topic_archive() )
252
  $base = user_trailingslashit( trailingslashit( home_url( $bbp->topic_archive_slug ) ) . 'page/%#%/' );
253
 
254
  // Page or single post
428
  * @since bbPress (r2485)
429
  *
430
  * @param int $topic_id Optional. Topic id
431
+ * @param $string $redirect_to Optional. Pass a redirect value for use with
432
+ * shortcodes and other fun things.
433
  * @uses bbp_get_topic_id() To get the topic id
434
  * @uses get_permalink() To get the topic permalink
435
+ * @uses sanitize_url() To clean the redirect_to url
436
  * @uses apply_filters() Calls 'bbp_get_topic_permalink' with the link
437
  * and topic id
438
  * @return string Permanent link to topic
439
  */
440
+ function bbp_get_topic_permalink( $topic_id = 0, $redirect_to = '' ) {
441
  $topic_id = bbp_get_topic_id( $topic_id );
442
 
443
+ // Use the redirect address
444
+ if ( !empty( $redirect_to ) )
445
+ $topic_permalink = sanitize_url( $redirect_to );
446
+
447
+ // Use the topic permalink
448
+ else
449
+ $topic_permalink = get_permalink( $topic_id );
450
+
451
+ return apply_filters( 'bbp_get_topic_permalink', $topic_permalink, $topic_id );
452
  }
453
 
454
  /**
480
  return apply_filters( 'bbp_get_topic_title', get_the_title( $topic_id ), $topic_id );
481
  }
482
 
483
+ /**
484
+ * Output the topic archive title
485
+ *
486
+ * @since bbPress (r3249)
487
+ *
488
+ * @param string $title Default text to use as title
489
+ */
490
+ function bbp_topic_archive_title( $title = '' ) {
491
+ echo bbp_get_topic_archive_title( $title );
492
+ }
493
+ /**
494
+ * Return the topic archive title
495
+ *
496
+ * @since bbPress (r3249)
497
+ *
498
+ * @global bbPress $bbp The main bbPress class
499
+ * @param string $title Default text to use as title
500
+ *
501
+ * @uses bbp_get_page_by_path() Check if page exists at root path
502
+ * @uses get_the_title() Use the page title at the root path
503
+ * @uses get_post_type_object() Load the post type object
504
+ * @uses bbp_get_topic_post_type() Get the topic post type ID
505
+ * @uses get_post_type_labels() Get labels for topic post type
506
+ * @uses apply_filters() Allow output to be manipulated
507
+ *
508
+ * @return string The topic archive title
509
+ */
510
+ function bbp_get_topic_archive_title( $title = '' ) {
511
+ global $bbp;
512
+
513
+ // If no title was passed
514
+ if ( empty( $title ) ) {
515
+
516
+ // Set root text to page title
517
+ if ( $page = bbp_get_page_by_path( $bbp->topic_archive_slug ) ) {
518
+ $title = get_the_title( $page->ID );
519
+
520
+ // Default to topic post type name label
521
+ } else {
522
+ $tto = get_post_type_object( bbp_get_topic_post_type() );
523
+ $title = $tto->labels->name;
524
+ }
525
+ }
526
+
527
+ return apply_filters( 'bbp_get_topic_archive_title', $title );
528
+ }
529
+
530
  /**
531
  * Output the content of the topic
532
  *
2918
  $new_terms[] = $term->name;
2919
  }
2920
 
2921
+ // Define local variable(s)
2922
  } else {
2923
  $new_terms = '';
2924
  }
3012
  $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id() );
3013
  }
3014
 
3015
+ // Get current status
3016
+ } elseif ( bbp_is_topic() ) {
3017
+ $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id() );
3018
+
3019
  // No data
3020
  } else {
3021
  $topic_subscribed = 0;
3022
  }
3023
 
3024
+ // Get checked output
3025
+ $checked = checked( $topic_subscribed, true, false );
3026
+
3027
+ return apply_filters( 'bbp_get_form_topic_subscribed', $checked, $topic_subscribed );
3028
  }
3029
 
3030
  /**
3057
  else
3058
  $topic_revision = 1;
3059
 
3060
+ return apply_filters( 'bbp_get_form_topic_log_edit', checked( $topic_revision, true, false ) );
3061
  }
3062
 
3063
  /**
bbp-includes/bbp-user-functions.php CHANGED
@@ -192,11 +192,8 @@ function bbp_get_user_favorites( $user_id = 0 ) {
192
  // If user has favorites, load them
193
  if ( $favorites = bbp_get_user_favorites_topic_ids( $user_id ) ) {
194
 
195
- // Possibly remove topics from hidden forums
196
- $hidden_query = bbp_exclude_forum_ids();
197
- $favs_query = array( 'post__in' => $favorites );
198
- $topics_query = array_merge( $hidden_query, $favs_query );
199
- $topics_query = bbp_has_topics( $topics_query );
200
 
201
  return apply_filters( 'bbp_get_user_favorites', $topics_query, $user_id );
202
  }
@@ -813,11 +810,8 @@ function bbp_get_user_topics_started( $user_id = 0 ) {
813
  'order' => 'DESC',
814
  );
815
 
816
- // Assume user cannot read hidden forums
817
- $topics_query = bbp_exclude_forum_ids( $default_query );
818
-
819
  // Get the topics
820
- if ( $query = bbp_has_topics( $topics_query ) )
821
  return $query;
822
 
823
  return false;
192
  // If user has favorites, load them
193
  if ( $favorites = bbp_get_user_favorites_topic_ids( $user_id ) ) {
194
 
195
+ // Setup the topics query
196
+ $topics_query = bbp_has_topics( array( 'post__in' => $favorites ) );
 
 
 
197
 
198
  return apply_filters( 'bbp_get_user_favorites', $topics_query, $user_id );
199
  }
810
  'order' => 'DESC',
811
  );
812
 
 
 
 
813
  // Get the topics
814
+ if ( $query = bbp_has_topics( $default_query ) )
815
  return $query;
816
 
817
  return false;
bbp-includes/bbp-user-template.php CHANGED
@@ -259,7 +259,7 @@ function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) {
259
 
260
  // Pretty permalinks
261
  if ( $wp_rewrite->using_permalinks() ) {
262
- $url = $wp_rewrite->root . $bbp->user_slug . '/%bbp_user%';
263
 
264
  // Get username if not passed
265
  if ( empty( $user_nicename ) ) {
@@ -269,12 +269,12 @@ function bbp_user_profile_url( $user_id = 0, $user_nicename = '' ) {
269
  }
270
  }
271
 
272
- $url = str_replace( '%bbp_user%', $user_nicename, $url );
273
  $url = home_url( user_trailingslashit( $url ) );
274
 
275
  // Unpretty permalinks
276
  } else {
277
- $url = add_query_arg( array( 'bbp_user' => $user_id ), home_url( '/' ) );
278
  }
279
 
280
  return apply_filters( 'bbp_get_user_profile_url', $url, $user_id, $user_nicename );
@@ -351,7 +351,7 @@ function bbp_user_profile_edit_url( $user_id = 0, $user_nicename = '' ) {
351
 
352
  // Pretty permalinks
353
  if ( $wp_rewrite->using_permalinks() ) {
354
- $url = $wp_rewrite->root . $bbp->user_slug . '/%bbp_user%/edit';
355
 
356
  // Get username if not passed
357
  if ( empty( $user_nicename ) ) {
@@ -361,12 +361,12 @@ function bbp_user_profile_edit_url( $user_id = 0, $user_nicename = '' ) {
361
  }
362
  }
363
 
364
- $url = str_replace( '%bbp_user%', $user_nicename, $url );
365
  $url = home_url( user_trailingslashit( $url ) );
366
 
367
  // Unpretty permalinks
368
  } else {
369
- $url = add_query_arg( array( 'bbp_user' => $user_id, 'edit' => '1' ), home_url( '/' ) );
370
  }
371
 
372
  return apply_filters( 'bbp_get_user_edit_profile_url', $url, $user_id, $user_nicename );
@@ -695,11 +695,11 @@ function bbp_user_subscribe_link( $args = '' ) {
695
  *
696
  * @since bbPress (r2688)
697
  *
698
- * @uses bbp_is_user_profile_page() To check if it's the profile page
699
- * @uses bbp_is_user_profile_edit() To check if it's the profile edit page
700
  */
701
  function bbp_notice_edit_user_success() {
702
- if ( isset( $_GET['updated'] ) && ( bbp_is_user_profile_page() || bbp_is_user_profile_edit() ) ) : ?>
703
 
704
  <div class="bbp-template-notice updated">
705
  <p><?php _e( 'User updated.', 'bbpress' ); ?></p>
@@ -714,8 +714,8 @@ function bbp_notice_edit_user_success() {
714
  * @since bbPress (r2688)
715
  *
716
  * @uses is_multisite() To check if the blog is multisite
717
- * @uses bbp_is_user_profile_page() To check if it's the profile page
718
- * @uses bbp_is_user_profile_edit() To check if it's the profile edit page
719
  * @uses current_user_can() To check if the current user can manage network
720
  * options
721
  * @uses bbp_get_displayed_user_id() To get the displayed user id
@@ -723,7 +723,7 @@ function bbp_notice_edit_user_success() {
723
  * @uses bbp_is_user_home() To check if it's the user home
724
  */
725
  function bbp_notice_edit_user_is_super_admin() {
726
- if ( is_multisite() && ( bbp_is_user_profile_page() || bbp_is_user_profile_edit() ) && current_user_can( 'manage_network_options' ) && is_super_admin( bbp_get_displayed_user_id() ) ) : ?>
727
 
728
  <div class="bbp-template-notice important">
729
  <p><?php bbp_is_user_home() ? _e( 'You have super admin privileges.', 'bbpress' ) : _e( 'This user has super admin privileges.', 'bbpress' ); ?></p>
@@ -1093,7 +1093,6 @@ function bbp_user_can_view_forum( $args = '' ) {
1093
  * @since bbPress (r3127)
1094
  *
1095
  * @uses bbp_get_forum_post_type()
1096
- * @uses bbp_exclude_forum_ids()
1097
  * @uses get_posts()
1098
  *
1099
  * @param type $args
259
 
260
  // Pretty permalinks
261
  if ( $wp_rewrite->using_permalinks() ) {
262
+ $url = $wp_rewrite->root . $bbp->user_slug . '/%' . $bbp->user_id . '%';
263
 
264
  // Get username if not passed
265
  if ( empty( $user_nicename ) ) {
269
  }
270
  }
271
 
272
+ $url = str_replace( '%' . $bbp->user_id . '%', $user_nicename, $url );
273
  $url = home_url( user_trailingslashit( $url ) );
274
 
275
  // Unpretty permalinks
276
  } else {
277
+ $url = add_query_arg( array( $bbp->user_id => $user_id ), home_url( '/' ) );
278
  }
279
 
280
  return apply_filters( 'bbp_get_user_profile_url', $url, $user_id, $user_nicename );
351
 
352
  // Pretty permalinks
353
  if ( $wp_rewrite->using_permalinks() ) {
354
+ $url = $wp_rewrite->root . $bbp->user_slug . '/%' . $bbp->user_id . '%/' . $bbp->edit_id;
355
 
356
  // Get username if not passed
357
  if ( empty( $user_nicename ) ) {
361
  }
362
  }
363
 
364
+ $url = str_replace( '%' . $bbp->user_id . '%', $user_nicename, $url );
365
  $url = home_url( user_trailingslashit( $url ) );
366
 
367
  // Unpretty permalinks
368
  } else {
369
+ $url = add_query_arg( array( $bbp->user_id => $user_id, $bbp->edit_id => '1' ), home_url( '/' ) );
370
  }
371
 
372
  return apply_filters( 'bbp_get_user_edit_profile_url', $url, $user_id, $user_nicename );
695
  *
696
  * @since bbPress (r2688)
697
  *
698
+ * @uses bbp_is_single_user() To check if it's the profile page
699
+ * @uses bbp_is_single_user_edit() To check if it's the profile edit page
700
  */
701
  function bbp_notice_edit_user_success() {
702
+ if ( isset( $_GET['updated'] ) && ( bbp_is_single_user() || bbp_is_single_user_edit() ) ) : ?>
703
 
704
  <div class="bbp-template-notice updated">
705
  <p><?php _e( 'User updated.', 'bbpress' ); ?></p>
714
  * @since bbPress (r2688)
715
  *
716
  * @uses is_multisite() To check if the blog is multisite
717
+ * @uses bbp_is_single_user() To check if it's the profile page
718
+ * @uses bbp_is_single_user_edit() To check if it's the profile edit page
719
  * @uses current_user_can() To check if the current user can manage network
720
  * options
721
  * @uses bbp_get_displayed_user_id() To get the displayed user id
723
  * @uses bbp_is_user_home() To check if it's the user home
724
  */
725
  function bbp_notice_edit_user_is_super_admin() {
726
+ if ( is_multisite() && ( bbp_is_single_user() || bbp_is_single_user_edit() ) && current_user_can( 'manage_network_options' ) && is_super_admin( bbp_get_displayed_user_id() ) ) : ?>
727
 
728
  <div class="bbp-template-notice important">
729
  <p><?php bbp_is_user_home() ? _e( 'You have super admin privileges.', 'bbpress' ) : _e( 'This user has super admin privileges.', 'bbpress' ); ?></p>
1093
  * @since bbPress (r3127)
1094
  *
1095
  * @uses bbp_get_forum_post_type()
 
1096
  * @uses get_posts()
1097
  *
1098
  * @param type $args
bbp-includes/index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
bbp-languages/bbpress.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: bbPress 2.0-beta-1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/bbpress\n"
7
- "POT-Creation-Date: 2011-05-21 13:21:12+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,2071 +12,2113 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: bbpress.php:486 bbp-themes/bbp-twentyten/page-forum-statistics.php:40
16
- #: bbp-includes/bbp-core-compatibility.php:452
17
- #: bbp-includes/bbp-general-template.php:1153 bbp-admin/bbp-admin.php:171
18
- msgid "Forums"
19
  msgstr ""
20
 
21
- #: bbpress.php:487 bbp-themes/bbp-twentyten/bbpress/loop-forums.php:16
22
- #: bbp-admin/bbp-metaboxes.php:52 bbp-admin/bbp-metaboxes.php:256
23
- #: bbp-admin/bbp-metaboxes.php:364 bbp-admin/bbp-metaboxes.php:367
24
- #: bbp-admin/bbp-forums.php:390 bbp-admin/bbp-replies.php:521
25
- #: bbp-admin/bbp-topics.php:594
26
- msgid "Forum"
27
  msgstr ""
28
 
29
- #: bbpress.php:488 bbpress.php:492
30
- msgid "New Forum"
 
 
31
  msgstr ""
32
 
33
- #: bbpress.php:489
34
- msgid "Create New Forum"
35
  msgstr ""
36
 
37
- #: bbpress.php:490 bbpress.php:544 bbpress.php:598
38
- #: bbp-includes/bbp-reply-template.php:1325
39
- #: bbp-includes/bbp-topic-template.php:1897 bbp-admin/bbp-replies.php:575
40
- #: bbp-admin/bbp-replies.php:605 bbp-admin/bbp-topics.php:647
41
- msgid "Edit"
42
  msgstr ""
43
 
44
- #: bbpress.php:491
45
- msgid "Edit Forum"
 
46
  msgstr ""
47
 
48
- #: bbpress.php:493 bbpress.php:494
49
- msgid "View Forum"
 
 
50
  msgstr ""
51
 
52
- #: bbpress.php:495
53
- msgid "Search Forums"
 
 
54
  msgstr ""
55
 
56
- #: bbpress.php:496
57
- msgid "No forums found"
58
  msgstr ""
59
 
60
- #: bbpress.php:497
61
- msgid "No forums found in Trash"
62
  msgstr ""
63
 
64
- #: bbpress.php:498
65
- msgid "Parent Forum:"
66
  msgstr ""
67
 
68
- #: bbpress.php:519
69
- msgid "bbPress Forums"
 
 
70
  msgstr ""
71
 
72
- #: bbpress.php:540 bbp-themes/bbp-twentyten/page-forum-statistics.php:45
73
- #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:17
74
- #: bbp-includes/bbp-core-compatibility.php:469
75
- #: bbp-includes/bbp-forum-template.php:1696 bbp-admin/bbp-forums.php:391
76
- #: bbp-admin/bbp-topics.php:593
77
- msgid "Topics"
78
  msgstr ""
79
 
80
- #: bbpress.php:541 bbp-themes/bbp-twentyten/bbpress/loop-topics.php:15
81
- #: bbp-themes/bbp-twentyten/bbpress/single-topic.php:20
82
- #: bbp-admin/bbp-metaboxes.php:69 bbp-admin/bbp-metaboxes.php:403
83
- #: bbp-admin/bbp-replies.php:522
84
- msgid "Topic"
85
  msgstr ""
86
 
87
- #: bbpress.php:542 bbpress.php:546
88
- msgid "New Topic"
 
 
89
  msgstr ""
90
 
91
- #: bbpress.php:543
92
- msgid "Create New Topic"
93
  msgstr ""
94
 
95
- #: bbpress.php:545
96
- msgid "Edit Topic"
 
97
  msgstr ""
98
 
99
- #: bbpress.php:547 bbpress.php:548
100
- msgid "View Topic"
101
  msgstr ""
102
 
103
- #: bbpress.php:549
104
- msgid "Search Topics"
105
  msgstr ""
106
 
107
- #: bbpress.php:550
108
- msgid "No topics found"
109
  msgstr ""
110
 
111
- #: bbpress.php:551
112
- msgid "No topics found in Trash"
113
  msgstr ""
114
 
115
- #: bbpress.php:552 bbp-themes/bbp-twentyten/bbpress/form-topic.php:76
116
- msgid "Forum:"
117
  msgstr ""
118
 
119
- #: bbpress.php:573
120
- msgid "bbPress Topics"
121
  msgstr ""
122
 
123
- #: bbpress.php:594 bbp-themes/bbp-twentyten/page-forum-statistics.php:50
124
- #: bbp-themes/bbp-twentyten/single-reply.php:32
125
- #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:18
126
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:28
127
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:47
128
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:17
129
- #: bbp-includes/bbp-core-compatibility.php:501
130
- #: bbp-includes/bbp-forum-template.php:1760 bbp-admin/bbp-forums.php:392
131
- #: bbp-admin/bbp-topics.php:595
132
- msgid "Replies"
133
  msgstr ""
134
 
135
- #: bbpress.php:595 bbp-admin/bbp-metaboxes.php:86
136
- msgid "Reply"
137
  msgstr ""
138
 
139
- #: bbpress.php:596 bbpress.php:600
140
- msgid "New Reply"
141
  msgstr ""
142
 
143
- #: bbpress.php:597
144
- msgid "Create New Reply"
 
 
145
  msgstr ""
146
 
147
- #: bbpress.php:599
148
- msgid "Edit Reply"
 
 
 
149
  msgstr ""
150
 
151
- #: bbpress.php:601 bbpress.php:602
152
- msgid "View Reply"
 
153
  msgstr ""
154
 
155
- #: bbpress.php:603
156
- msgid "Search Replies"
 
157
  msgstr ""
158
 
159
- #: bbpress.php:604
160
- msgid "No replies found"
161
  msgstr ""
162
 
163
- #: bbpress.php:605
164
- msgid "No replies found in Trash"
 
 
165
  msgstr ""
166
 
167
- #: bbpress.php:606
168
- msgid "Topic:"
169
  msgstr ""
170
 
171
- #: bbpress.php:627
172
- msgid "bbPress Replies"
173
  msgstr ""
174
 
175
- #: bbpress.php:660
176
- msgctxt "post"
177
- msgid "Closed"
178
  msgstr ""
179
 
180
- #: bbpress.php:661
181
- msgctxt "bbpress"
182
- msgid "Closed <span class=\"count\">(%s)</span>"
183
- msgid_plural "Closed <span class=\"count\">(%s)</span>"
184
- msgstr[0] ""
185
- msgstr[1] ""
186
-
187
- #: bbpress.php:669
188
- msgctxt "post"
189
- msgid "Spam"
190
  msgstr ""
191
 
192
- #: bbpress.php:670
193
- msgctxt "bbpress"
194
- msgid "Spam <span class=\"count\">(%s)</span>"
195
- msgid_plural "Spam <span class=\"count\">(%s)</span>"
196
- msgstr[0] ""
197
- msgstr[1] ""
198
 
199
- #: bbpress.php:680
200
- msgctxt "post"
201
- msgid "Orphan"
 
202
  msgstr ""
203
 
204
- #: bbpress.php:681
205
- msgctxt "bbpress"
206
- msgid "Orphan <span class=\"count\">(%s)</span>"
207
- msgid_plural "Orphans <span class=\"count\">(%s)</span>"
208
- msgstr[0] ""
209
- msgstr[1] ""
210
 
211
- #: bbpress.php:691
212
- msgctxt "post"
213
- msgid "Hidden"
214
  msgstr ""
215
 
216
- #: bbpress.php:692
217
- msgctxt "bbpress"
218
- msgid "Hidden <span class=\"count\">(%s)</span>"
219
- msgid_plural "Hidden <span class=\"count\">(%s)</span>"
220
- msgstr[0] ""
221
- msgstr[1] ""
222
 
223
- #: bbpress.php:725 bbp-themes/bbp-twentyten/page-forum-statistics.php:55
224
- msgid "Topic Tags"
225
  msgstr ""
226
 
227
- #: bbpress.php:726 bbp-admin/bbp-metaboxes.php:103
228
- msgid "Topic Tag"
229
  msgstr ""
230
 
231
- #: bbpress.php:727
232
- msgid "Search Tags"
 
 
233
  msgstr ""
234
 
235
- #: bbpress.php:728
236
- msgid "Popular Tags"
237
  msgstr ""
238
 
239
- #: bbpress.php:729
240
- msgid "All Tags"
241
  msgstr ""
242
 
243
- #: bbpress.php:730
244
- msgid "Edit Tag"
245
  msgstr ""
246
 
247
- #: bbpress.php:731
248
- msgid "Update Tag"
 
 
 
 
 
 
 
 
249
  msgstr ""
250
 
251
- #: bbpress.php:732
252
- msgid "Add New Tag"
 
 
 
253
  msgstr ""
254
 
255
- #: bbpress.php:733
256
- msgid "New Tag Name"
 
 
257
  msgstr ""
258
 
259
- #: bbpress.php:780
260
- msgid "Topics with no replies"
261
  msgstr ""
262
 
263
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:29
264
- msgid "<p>Here are the statistics and popular topics of our forums.</p>"
 
 
265
  msgstr ""
266
 
267
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:35
268
- msgid "Registered Users"
 
 
269
  msgstr ""
270
 
271
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:62
272
- msgid "Empty Topic Tags"
 
 
273
  msgstr ""
274
 
275
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:71
276
- msgid "Hidden Topics"
 
 
277
  msgstr ""
278
 
279
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:82
280
- msgid "Hidden Replies"
 
 
281
  msgstr ""
282
 
283
- #: bbp-themes/bbp-twentyten/page-forum-statistics.php:101
284
- msgid "Popular Topics"
 
 
 
285
  msgstr ""
286
 
287
- #: bbp-themes/bbp-twentyten/single-reply.php:31
288
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:15
289
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:38
290
- #: bbp-admin/bbp-replies.php:523 bbp-admin/bbp-topics.php:597
291
- msgid "Author"
292
  msgstr ""
293
 
294
- #: bbp-themes/bbp-twentyten/single-reply.php:52
295
- #: bbp-themes/bbp-twentyten/bbpress/single-topic.php:54
296
- msgid "Posted on %1$s at %2$s"
297
  msgstr ""
298
 
299
- #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:18
300
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:20
301
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:43
302
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:17
303
- msgid "Posts"
304
  msgstr ""
305
 
306
- #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:19
307
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:18
308
- #: bbp-admin/bbp-forums.php:395 bbp-admin/bbp-topics.php:599
309
- msgid "Freshness"
310
  msgstr ""
311
 
312
- #: bbp-themes/bbp-twentyten/bbpress/no-forums.php:13
313
- msgid "Oh bother! No forums were found here!"
 
 
314
  msgstr ""
315
 
316
- #: bbp-themes/bbp-twentyten/bbpress/view.php:31
317
- #: bbp-themes/bbp-twentyten/bbpress/no-topics.php:13
318
- msgid "Oh bother! No topics were found here!"
319
  msgstr ""
320
 
321
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:27
322
- msgid "Edit topic \"%s\""
 
 
323
  msgstr ""
324
 
325
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:29
326
- msgid "Create new topic in: &ldquo;%s&rdquo;"
 
327
  msgstr ""
328
 
329
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:29
330
- msgid "Create new topic"
331
  msgstr ""
332
 
333
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:37
334
- msgid ""
335
- "This forum is marked as closed to new topics, however your posting "
336
- "capabilities still allow you to do so."
337
  msgstr ""
338
 
339
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:54
340
- msgid "Topic Title:"
341
  msgstr ""
342
 
343
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:59
344
- msgid "Topic Description:"
345
  msgstr ""
346
 
347
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:64
348
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:51
349
- msgid ""
350
- "You may use these <abbr title=\"HyperText Markup Language\">HTML</abbr> tags "
351
- "and attributes:"
352
  msgstr ""
353
 
354
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:69
355
- msgid "Topic Tags:"
356
  msgstr ""
357
 
358
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:86
359
- msgid "Topic Type:"
360
  msgstr ""
361
 
362
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:101
363
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:68
364
- msgid "Notify the author of follow-up replies via email"
365
  msgstr ""
366
 
367
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:105
368
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:72
369
- msgid "Notify me of follow-up replies via email"
370
  msgstr ""
371
 
372
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:115
373
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:83
374
- msgid "Revision"
375
  msgstr ""
376
 
377
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:118
378
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:86
379
- msgid "Keep a log of this edit:"
380
  msgstr ""
381
 
382
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:122
383
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:90
384
- msgid "Optional reason for editing:"
385
  msgstr ""
386
 
387
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:130
388
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:102
389
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:90
390
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:86
391
- msgid "Submit"
392
  msgstr ""
393
 
394
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:143
395
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:154
396
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:115
397
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:103
398
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:99
399
- msgid "Sorry!"
400
  msgstr ""
401
 
402
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:145
403
- msgid "This forum is closed to new topics."
404
  msgstr ""
405
 
406
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:156
407
- msgid "You cannot create new topics at this time."
408
  msgstr ""
409
 
410
- #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:156
411
- msgid "You must be logged in to create new topics."
412
  msgstr ""
413
 
414
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:23
415
- msgid "Reply to: &ldquo;%s&rdquo;"
416
  msgstr ""
417
 
418
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:28
419
- msgid ""
420
- "This topic is marked as closed to new replies, however your posting "
421
- "capabilities still allow you to do so."
422
  msgstr ""
423
 
424
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:46
425
- msgid "Reply:"
426
  msgstr ""
427
 
428
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:56
429
- msgid "Tags:"
430
  msgstr ""
431
 
432
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:117
433
- msgid "You cannot reply to this topic."
434
  msgstr ""
435
 
436
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:117
437
- msgid "You must be logged in to reply to this topic."
438
  msgstr ""
439
 
440
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:126
441
- msgid "Topic Closed"
442
  msgstr ""
443
 
444
- #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:128
445
- msgid "This topic has been closed to new replies."
446
  msgstr ""
447
 
448
- #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:68
449
- msgid "%1$s at %2$s"
450
  msgstr ""
451
 
452
- #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:14
453
- msgid "Lost Password"
454
- msgstr ""
 
 
455
 
456
- #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:18
457
- msgid "Username or Email"
 
458
  msgstr ""
459
 
460
- #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:27
461
- msgid "Reset my password"
 
 
 
 
 
 
 
 
462
  msgstr ""
463
 
464
- #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:15
465
- msgid "Author information"
 
466
  msgstr ""
467
 
468
- #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:15
469
- msgid "Your information:"
470
  msgstr ""
471
 
472
- #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:17
473
- msgid "Name (required):"
474
  msgstr ""
475
 
476
- #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:22
477
- msgid "Mail (will not be published) (required):"
 
 
 
 
478
  msgstr ""
479
 
480
- #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:27
481
- msgid "Website:"
482
  msgstr ""
483
 
484
- #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:16
485
- msgid "Forum Topics Created"
 
486
  msgstr ""
487
 
488
- #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:27
489
- msgid "You have not created any topics."
 
490
  msgstr ""
491
 
492
- #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:27
493
- msgid "This user has not created any topics."
 
494
  msgstr ""
495
 
496
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:16
497
- #: bbp-admin/bbp-topics.php:596
498
- msgid "Voices"
499
  msgstr ""
500
 
501
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:19
502
- msgid "Remove"
503
  msgstr ""
504
 
505
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:40
506
- msgid "Started by: %1$s"
 
 
 
 
 
 
 
 
507
  msgstr ""
508
 
509
- #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:44
510
- msgid "in: <a href=\"%1$s\">%2$s</a>"
511
  msgstr ""
512
 
513
- #: bbp-themes/bbp-twentyten/bbpress/form-protected.php:16
514
- msgid "Protected"
515
  msgstr ""
516
 
517
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:18
518
- msgid "Manage Tag: \"%s\""
519
  msgstr ""
520
 
521
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:22
522
- msgid "Rename"
523
  msgstr ""
524
 
525
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:25
526
- msgid "Leave the slug empty to have one automatically generated."
527
  msgstr ""
528
 
529
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:29
530
  msgid ""
531
- "Changing the slug affects its permalink. Any links to the old slug will stop "
532
- "working."
533
  msgstr ""
534
 
535
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:35
536
- msgid "Name:"
537
  msgstr ""
538
 
539
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:40
540
- msgid "Slug:"
541
  msgstr ""
542
 
543
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:45
544
- msgid "Update"
 
545
  msgstr ""
546
 
547
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:59
548
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:73
549
- #: bbp-includes/bbp-topic-template.php:2208
550
- msgid "Merge"
551
  msgstr ""
552
 
553
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:62
554
- msgid "Merging tags together cannot be undone."
555
  msgstr ""
556
 
557
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:68
558
- msgid "Existing tag:"
 
559
  msgstr ""
560
 
561
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:74
562
- msgid ""
563
- "Are you sure you want to merge the \"%s\" tag into the tag you specified?"
564
  msgstr ""
565
 
566
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:89
567
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:102
568
- #: bbp-includes/bbp-reply-template.php:1440
569
- #: bbp-includes/bbp-topic-template.php:2012
570
- msgid "Delete"
571
  msgstr ""
572
 
573
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:92
574
- msgid "This does not delete your topics. Only the tag itself is deleted."
 
575
  msgstr ""
576
 
577
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:95
578
- msgid "Deleting a tag cannot be undone."
579
  msgstr ""
580
 
581
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:96
582
- msgid "Any links to this tag will no longer function."
583
  msgstr ""
584
 
585
- #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:103
586
- msgid ""
587
- "Are you sure you want to delete the \"%s\" tag? This is permanent and cannot "
588
- "be undone."
589
  msgstr ""
590
 
591
- #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:16
592
- msgid "Favorite Forum Topics"
593
  msgstr ""
594
 
595
- #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:27
596
- msgid "You currently have no favorite topics."
597
  msgstr ""
598
 
599
- #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:27
600
- msgid "This user has no favorite topics."
601
  msgstr ""
602
 
603
- #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:14
604
- #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:35
605
- #: bbp-includes/bbp-core-widgets.php:69
606
- msgid "Login"
607
  msgstr ""
608
 
609
- #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:17
610
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:99
611
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:23
612
- #: bbp-includes/bbp-core-widgets.php:72
613
- msgid "Username"
614
  msgstr ""
615
 
616
- #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:22
617
- #: bbp-includes/bbp-core-widgets.php:77
618
- msgid "Password"
619
  msgstr ""
620
 
621
- #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:28
622
- #: bbp-includes/bbp-core-widgets.php:83
623
- msgid "Keep me signed in"
624
  msgstr ""
625
 
626
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:14
627
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:19
628
- #: bbp-admin/bbp-metaboxes.php:427 bbp-admin/bbp-metaboxes.php:430
629
- msgid "Name"
630
  msgstr ""
631
 
632
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:24
633
- msgid "First Name"
634
  msgstr ""
635
 
636
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:29
637
- msgid "Last Name"
 
638
  msgstr ""
639
 
640
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:34
641
- msgid "Nickname"
642
  msgstr ""
643
 
644
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:39
645
- msgid "Display name publicly as"
646
  msgstr ""
647
 
648
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:49
649
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:52
650
- msgid "Contact Info"
651
  msgstr ""
652
 
653
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:57
654
- #: bbp-admin/bbp-metaboxes.php:441 bbp-admin/bbp-metaboxes.php:444
655
- msgid "Website"
 
656
  msgstr ""
657
 
658
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:74
659
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:77
660
- msgid "About Yourself"
661
  msgstr ""
662
 
663
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:74
664
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:77
665
- msgid "About the user"
666
  msgstr ""
667
 
668
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:82
669
- msgid "Biographical Info"
670
  msgstr ""
671
 
672
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:84
673
- msgid ""
674
- "Share a little biographical information to fill out your profile. This may "
675
- "be shown publicly."
676
  msgstr ""
677
 
678
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:91
679
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:94
680
- msgid "Account"
681
  msgstr ""
682
 
683
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:101
684
- msgid "Usernames cannot be changed."
685
  msgstr ""
686
 
687
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:105
688
- msgid "E-mail"
689
  msgstr ""
690
 
691
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:117
692
- msgid ""
693
- "There is a pending email address change to <code>%1$s</code>. <a href=\"%2$s"
694
- "\">Cancel</a>"
695
  msgstr ""
696
 
697
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:126
698
- msgid "New Password"
699
  msgstr ""
700
 
701
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:129
 
 
 
 
 
 
702
  msgid ""
703
- "If you would like to change the password type a new one. Otherwise leave "
704
- "this blank."
705
  msgstr ""
706
 
707
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:132
708
- msgid "Type your new password again."
709
  msgstr ""
710
 
711
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:135
712
  msgid ""
713
- "Hint: The password should be at least seven characters long. To make it "
714
- "stronger, use upper and lower case letters, numbers and symbols like ! \" ? "
715
- "$ % ^ &amp; )."
716
  msgstr ""
717
 
718
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:142
719
- msgid "Role:"
 
720
  msgstr ""
721
 
722
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:153
723
- msgid "Super Admin"
 
724
  msgstr ""
725
 
726
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:156
727
- msgid "Grant this user super admin privileges for the Network."
 
 
728
  msgstr ""
729
 
730
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:169
731
- #: bbp-admin/bbp-settings.php:403
732
- msgid "Save Changes"
733
  msgstr ""
734
 
735
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:174
736
- msgid "Update Profile"
 
 
 
737
  msgstr ""
738
 
739
- #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:174
740
- msgid "Update User"
 
 
 
741
  msgstr ""
742
 
743
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:20
744
- msgid "Split topic \"%s\""
 
 
745
  msgstr ""
746
 
747
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:25
748
- msgid ""
749
- "When you split a topic, you are slicing it in half starting with the reply "
750
- "you just selected. Choose to use that reply as a new topic with a new title, "
751
- "or merge those replies into an existing topic."
752
  msgstr ""
753
 
754
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:29
755
- msgid ""
756
- "If you use the existing topic option, replies within both topics will be "
757
- "merged chronologically. The order of the merged replies is based on the time "
758
- "and date they were posted."
759
  msgstr ""
760
 
761
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:33
762
- msgid "Split Method"
763
  msgstr ""
764
 
765
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:37
766
- msgid "New topic in <strong>%s</strong> titled:"
 
 
767
  msgstr ""
768
 
769
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:38
770
- msgid "Split: %s"
771
  msgstr ""
772
 
773
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:45
774
- msgid "Use an existing topic in this forum:"
 
 
 
775
  msgstr ""
776
 
777
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:54
778
- msgid "No other topics found!"
779
  msgstr ""
780
 
781
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:65
782
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:61
783
- msgid "Topic Extras"
784
  msgstr ""
785
 
786
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:72
787
- msgid "Copy subscribers to the new topic"
 
 
788
  msgstr ""
789
 
790
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:77
791
- msgid "Copy favoriters to the new topic"
792
  msgstr ""
793
 
794
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:80
795
- msgid "Copy topic tags to the new topic"
796
  msgstr ""
797
 
798
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:86
799
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:82
800
- msgid "<strong>WARNING:</strong> This process cannot be undone."
801
  msgstr ""
802
 
803
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:104
804
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:100
805
- msgid "You do not have the permissions to edit this topic!"
806
  msgstr ""
807
 
808
- #: bbp-themes/bbp-twentyten/bbpress/form-split.php:104
809
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:100
810
- msgid "You cannot edit this topic."
811
  msgstr ""
812
 
813
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:20
814
- msgid "Merge topic \"%s\""
815
  msgstr ""
816
 
817
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:25
818
  msgid ""
819
- "Select the topic to merge this one into. The destination topic will remain "
820
- "the lead topic, and this one will change into a reply."
821
  msgstr ""
822
 
823
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:26
824
  msgid ""
825
- "To keep this topic as the lead, go to the other topic and use the merge tool "
826
- "from there instead."
827
  msgstr ""
828
 
829
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:30
830
  msgid ""
831
- "All replies within both topics will be merged chronologically. The order of "
832
- "the merged replies is based on the time and date they were posted. If the "
833
- "destination topic was created after this one, it's post date will be updated "
834
- "to second earlier than this one."
835
  msgstr ""
836
 
837
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:34
838
- msgid "Destination"
 
 
839
  msgstr ""
840
 
841
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:38
842
- msgid "Merge with this topic:"
 
 
 
843
  msgstr ""
844
 
845
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:47
846
- msgid "No topics were found to which the topic could be merged to!"
 
847
  msgstr ""
848
 
849
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:53
850
- msgid "There are no other topics in this forum to merge with."
 
 
851
  msgstr ""
852
 
853
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:68
854
- msgid "Merge topic subscribers"
 
 
 
855
  msgstr ""
856
 
857
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:73
858
- msgid "Merge topic favoriters"
 
859
  msgstr ""
860
 
861
- #: bbp-themes/bbp-twentyten/bbpress/form-merge.php:76
862
- msgid "Merge topic tags"
 
 
863
  msgstr ""
864
 
865
- #: bbp-themes/bbp-twentyten/bbpress/single-topic.php:17
866
- #: bbp-admin/bbp-forums.php:393
867
- msgid "Creator"
 
868
  msgstr ""
869
 
870
- #: bbp-themes/bbp-twentyten/bbpress/user-posts.php:14
871
- msgid "Blog Posts"
872
  msgstr ""
873
 
874
- #: bbp-themes/bbp-twentyten/bbpress/no-access.php:13
875
- #: bbp-admin/bbp-metaboxes.php:283
876
- msgid "Private"
877
  msgstr ""
878
 
879
- #: bbp-themes/bbp-twentyten/bbpress/no-access.php:16
880
- msgid "You do not have permission to view this forum."
881
  msgstr ""
882
 
883
- #: bbp-themes/bbp-twentyten/bbpress/user-details.php:14
884
- msgid "Profile: %s"
885
  msgstr ""
886
 
887
- #: bbp-themes/bbp-twentyten/bbpress/user-details.php:18
888
- msgid "Edit Profile of User %s"
889
  msgstr ""
890
 
891
- #: bbp-themes/bbp-twentyten/bbpress/user-details.php:18
892
- msgid "(Edit)"
 
893
  msgstr ""
894
 
895
- #: bbp-themes/bbp-twentyten/bbpress/user-details.php:31
896
- msgid "About %s"
897
  msgstr ""
898
 
899
- #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:20
900
- msgid "Subscribed Forum Topics"
901
  msgstr ""
902
 
903
- #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:31
904
- msgid "You are not currently subscribed to any topics."
905
  msgstr ""
906
 
907
- #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:31
908
- msgid "This user is not currently subscribed to any topics."
909
  msgstr ""
910
 
911
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:14
912
- msgid "Create an Account"
913
  msgstr ""
914
 
915
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:17
916
- msgid "Your username must be unique, and cannot be changed later."
 
 
 
917
  msgstr ""
918
 
919
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:18
920
  msgid ""
921
- "We use your email address to email you a secure password and verify your "
922
- "account."
923
  msgstr ""
924
 
925
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:28
926
- msgid "Email Address"
 
 
927
  msgstr ""
928
 
929
- #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:36
930
- msgid "Register"
931
  msgstr ""
932
 
933
- #: bbp-themes/bbp-twentyten/page-topic-tags.php:25
934
  msgid ""
935
- "<p>This is a collection of tags that are currently popular on our forums.</p>"
 
936
  msgstr ""
937
 
938
- #: bbp-themes/bbp-twentyten/taxonomy-topic-tag.php:20
939
- #: bbp-includes/bbp-core-compatibility.php:544
940
- #: bbp-includes/bbp-general-template.php:1400
941
- msgid "Topic Tag: %s"
942
  msgstr ""
943
 
944
- #: bbp-themes/bbp-twentyten/functions.php:216
945
- msgid "favorites"
946
  msgstr ""
947
 
948
- #: bbp-themes/bbp-twentyten/functions.php:217
949
- msgid "?"
 
950
  msgstr ""
951
 
952
- #: bbp-themes/bbp-twentyten/functions.php:218
953
- msgid "This topic is one of your %favLinkYes% [%favDel%]"
954
  msgstr ""
955
 
956
- #: bbp-themes/bbp-twentyten/functions.php:219
957
- msgid "%favAdd% (%favLinkNo%)"
958
  msgstr ""
959
 
960
- #: bbp-themes/bbp-twentyten/functions.php:220
961
- #: bbp-includes/bbp-user-template.php:549
962
- msgid "&times;"
963
  msgstr ""
964
 
965
- #: bbp-themes/bbp-twentyten/functions.php:221
966
- #: bbp-includes/bbp-user-template.php:541
967
- msgid "Add this topic to your favorites"
968
  msgstr ""
969
 
970
- #: bbp-themes/bbp-twentyten/functions.php:227
971
- #: bbp-includes/bbp-user-template.php:648
972
- msgid "Subscribe"
973
  msgstr ""
974
 
975
- #: bbp-themes/bbp-twentyten/functions.php:228
976
- #: bbp-includes/bbp-user-template.php:649
977
- msgid "Unsubscribe"
978
  msgstr ""
979
 
980
- #: bbp-includes/bbp-core-compatibility.php:116
981
- msgid "Hands off, partner!"
982
  msgstr ""
983
 
984
- #: bbp-includes/bbp-core-compatibility.php:251
985
- msgid "You do not have the permission to edit this user."
986
  msgstr ""
987
 
988
- #: bbp-includes/bbp-core-compatibility.php:844
989
- msgid ""
990
- "Conditional query tags do not work before the query is run. Before then, "
991
- "they always return false."
992
  msgstr ""
993
 
994
- #: bbp-includes/bbp-general-functions.php:402
995
- #: bbp-includes/bbp-general-functions.php:433
996
- msgid "Private: %s | "
997
  msgstr ""
998
 
999
- #: bbp-includes/bbp-general-functions.php:403
1000
- #: bbp-includes/bbp-general-functions.php:434
1001
- msgid "Spammed: %s | "
1002
  msgstr ""
1003
 
1004
- #: bbp-includes/bbp-general-functions.php:404
1005
- #: bbp-includes/bbp-general-functions.php:435
1006
- msgid "Trashed: %s"
1007
  msgstr ""
1008
 
1009
- #: bbp-includes/bbp-general-functions.php:629
1010
- msgid "<strong>ERROR</strong>: Invalid author name submitted!"
1011
  msgstr ""
1012
 
1013
- #: bbp-includes/bbp-general-functions.php:632
1014
- msgid "<strong>ERROR</strong>: Invalid email address submitted!"
1015
  msgstr ""
1016
 
1017
- #: bbp-includes/bbp-general-functions.php:815
1018
- msgid ""
1019
- "%1$s wrote:\n"
1020
- "\n"
1021
- "%2$s\n"
1022
- "\n"
1023
- "Post Link: %3$s\n"
1024
- "\n"
1025
- "You're getting this mail because you subscribed to the topic, visit the "
1026
- "topic and login to unsubscribe."
1027
  msgstr ""
1028
 
1029
- #: bbp-includes/bbp-reply-template.php:934
1030
- #: bbp-includes/bbp-topic-template.php:1135
1031
- #: bbp-includes/bbp-user-template.php:1019
1032
- msgid "View %s's profile"
1033
  msgstr ""
1034
 
1035
- #: bbp-includes/bbp-reply-template.php:934
1036
- #: bbp-includes/bbp-topic-template.php:1135
1037
- #: bbp-includes/bbp-user-template.php:1019
1038
- msgid "Visit %s's website"
1039
  msgstr ""
1040
 
1041
- #: bbp-includes/bbp-reply-template.php:1438
1042
- #: bbp-includes/bbp-topic-template.php:2010 bbp-admin/bbp-replies.php:700
1043
- #: bbp-admin/bbp-topics.php:778
1044
- msgid "Trash"
 
1045
  msgstr ""
1046
 
1047
- #: bbp-includes/bbp-reply-template.php:1439
1048
- #: bbp-includes/bbp-topic-template.php:2011 bbp-admin/bbp-replies.php:698
1049
- #: bbp-admin/bbp-topics.php:776
1050
- msgid "Restore"
 
1051
  msgstr ""
1052
 
1053
- #: bbp-includes/bbp-reply-template.php:1453
1054
- #: bbp-includes/bbp-topic-template.php:2024 bbp-admin/bbp-replies.php:698
1055
- #: bbp-admin/bbp-topics.php:776
1056
- msgid "Restore this item from the Trash"
1057
  msgstr ""
1058
 
1059
- #: bbp-includes/bbp-reply-template.php:1453
1060
- #: bbp-includes/bbp-topic-template.php:2024
1061
- msgid "Are you sure you want to restore that?"
1062
  msgstr ""
1063
 
1064
- #: bbp-includes/bbp-reply-template.php:1455
1065
- #: bbp-includes/bbp-topic-template.php:2026 bbp-admin/bbp-replies.php:700
1066
- #: bbp-admin/bbp-topics.php:778
1067
- msgid "Move this item to the Trash"
1068
  msgstr ""
1069
 
1070
- #: bbp-includes/bbp-reply-template.php:1455
1071
- #: bbp-includes/bbp-topic-template.php:2026
1072
- msgid "Are you sure you want to trash that?"
1073
  msgstr ""
1074
 
1075
- #: bbp-includes/bbp-reply-template.php:1458
1076
- #: bbp-includes/bbp-topic-template.php:2029 bbp-admin/bbp-replies.php:704
1077
- #: bbp-admin/bbp-topics.php:782
1078
- msgid "Delete this item permanently"
1079
  msgstr ""
1080
 
1081
- #: bbp-includes/bbp-reply-template.php:1458
1082
- #: bbp-includes/bbp-topic-template.php:2029
1083
- msgid "Are you sure you want to delete that permanently?"
1084
  msgstr ""
1085
 
1086
- #: bbp-includes/bbp-reply-template.php:1507
1087
- #: bbp-includes/bbp-topic-template.php:2265 bbp-admin/bbp-replies.php:690
1088
- #: bbp-admin/bbp-topics.php:768
1089
- msgid "Spam"
1090
  msgstr ""
1091
 
1092
- #: bbp-includes/bbp-reply-template.php:1508
1093
- #: bbp-includes/bbp-topic-template.php:2266
1094
- msgid "Unspam"
1095
  msgstr ""
1096
 
1097
- #: bbp-includes/bbp-reply-template.php:1572
1098
- msgid "Split"
1099
  msgstr ""
1100
 
1101
- #: bbp-includes/bbp-reply-template.php:1573
1102
- msgid "Split the topic from this reply"
 
1103
  msgstr ""
1104
 
1105
- #: bbp-includes/bbp-reply-template.php:1659
1106
- msgid "Viewing reply %1$s (of %2$s total)"
 
 
 
1107
  msgstr ""
1108
 
1109
- #: bbp-includes/bbp-reply-template.php:1661
1110
- msgid "Viewing %1$s replies"
 
1111
  msgstr ""
1112
 
1113
- #: bbp-includes/bbp-reply-template.php:1663
1114
- msgid "Viewing %1$s replies - %2$s through %3$s (of %4$s total)"
 
1115
  msgstr ""
1116
 
1117
- #: bbp-includes/bbp-reply-template.php:1665
1118
- msgid "Viewing %1$s reply"
1119
  msgstr ""
1120
 
1121
- #: bbp-includes/bbp-reply-template.php:1672
1122
- msgid "Viewing post %1$s (of %2$s total)"
 
 
1123
  msgstr ""
1124
 
1125
- #: bbp-includes/bbp-reply-template.php:1674
1126
- msgid "Viewing %1$s posts"
 
1127
  msgstr ""
1128
 
1129
- #: bbp-includes/bbp-reply-template.php:1676
1130
- msgid "Viewing %1$s posts - %2$s through %3$s (of %4$s total)"
1131
  msgstr ""
1132
 
1133
- #: bbp-includes/bbp-reply-template.php:1678
1134
- msgid "Viewing %1$s post"
 
 
 
1135
  msgstr ""
1136
 
1137
- #: bbp-includes/bbp-core-widgets.php:39
1138
- msgid "The login widget."
1139
  msgstr ""
1140
 
1141
- #: bbp-includes/bbp-core-widgets.php:42
1142
- msgid "bbPress Login Widget"
 
1143
  msgstr ""
1144
 
1145
- #: bbp-includes/bbp-core-widgets.php:90
1146
- msgid "Log In"
 
1147
  msgstr ""
1148
 
1149
- #: bbp-includes/bbp-core-widgets.php:140 bbp-includes/bbp-core-widgets.php:245
1150
- #: bbp-includes/bbp-core-widgets.php:371 bbp-includes/bbp-core-widgets.php:561
1151
- #: bbp-includes/bbp-core-widgets.php:709
1152
- msgid "Title:"
1153
  msgstr ""
1154
 
1155
- #: bbp-includes/bbp-core-widgets.php:172
1156
- msgid "A list of views."
 
1157
  msgstr ""
1158
 
1159
- #: bbp-includes/bbp-core-widgets.php:175
1160
- msgid "bbPress View List"
 
1161
  msgstr ""
1162
 
1163
- #: bbp-includes/bbp-core-widgets.php:278
1164
- msgid "A list of forums."
1165
  msgstr ""
1166
 
1167
- #: bbp-includes/bbp-core-widgets.php:281
1168
- msgid "bbPress Forum List"
1169
  msgstr ""
1170
 
1171
- #: bbp-includes/bbp-core-widgets.php:377
1172
- msgid "Parent forum:"
1173
  msgstr ""
1174
 
1175
- #: bbp-includes/bbp-core-widgets.php:383
1176
- msgid ""
1177
- "Forum ID number. \"0\" to show only root forums, \"-1\" to display all "
1178
- "forums."
1179
  msgstr ""
1180
 
1181
- #: bbp-includes/bbp-core-widgets.php:414
1182
- msgid "A list of recent topics, sorted by popularity or freshness."
1183
  msgstr ""
1184
 
1185
- #: bbp-includes/bbp-core-widgets.php:417
1186
- msgid "bbPress Topics List"
1187
  msgstr ""
1188
 
1189
- #: bbp-includes/bbp-core-widgets.php:562
1190
- msgid "Maximum topics to show:"
1191
  msgstr ""
1192
 
1193
- #: bbp-includes/bbp-core-widgets.php:563 bbp-includes/bbp-core-widgets.php:711
1194
- msgid "Show post date:"
1195
  msgstr ""
1196
 
1197
- #: bbp-includes/bbp-core-widgets.php:565
1198
- msgid "Popularity check:"
1199
  msgstr ""
1200
 
1201
- #: bbp-includes/bbp-core-widgets.php:566
1202
- msgid ""
1203
- "Number of topics back to check reply count to determine popularity. A number "
1204
- "less than the maximum number of topics to show disables the check."
1205
  msgstr ""
1206
 
1207
- #: bbp-includes/bbp-core-widgets.php:597
1208
- msgid "A list of bbPress recent replies."
1209
  msgstr ""
1210
 
1211
- #: bbp-includes/bbp-core-widgets.php:710
1212
- msgid "Maximum replies to show:"
1213
  msgstr ""
1214
 
1215
- #: bbp-includes/bbp-core-caps.php:31
1216
- msgid "Forum Moderator"
1217
  msgstr ""
1218
 
1219
- #: bbp-includes/bbp-topic-template.php:1509 bbp-admin/bbp-topics.php:691
1220
- msgid "No Replies"
1221
  msgstr ""
1222
 
1223
- #: bbp-includes/bbp-topic-template.php:1551
1224
- #: bbp-includes/bbp-forum-template.php:1613
1225
- msgid "%s reply"
1226
- msgid_plural "%s replies"
1227
- msgstr[0] ""
1228
- msgstr[1] ""
1229
 
1230
- #: bbp-includes/bbp-topic-template.php:1560
1231
- #: bbp-includes/bbp-forum-template.php:1036
1232
- msgid " + %d more"
 
 
 
 
1233
  msgstr ""
1234
 
1235
- #: bbp-includes/bbp-topic-template.php:1718
1236
- msgid "Tagged:"
 
 
 
 
1237
  msgstr ""
1238
 
1239
- #: bbp-includes/bbp-topic-template.php:2078 bbp-admin/bbp-topics.php:749
1240
- msgid "Close"
 
 
1241
  msgstr ""
1242
 
1243
- #: bbp-includes/bbp-topic-template.php:2079 bbp-admin/bbp-metaboxes.php:269
1244
- #: bbp-admin/bbp-topics.php:751
1245
- msgid "Open"
1246
  msgstr ""
1247
 
1248
- #: bbp-includes/bbp-topic-template.php:2139 bbp-admin/bbp-topics.php:760
1249
- msgid "Stick"
1250
  msgstr ""
1251
 
1252
- #: bbp-includes/bbp-topic-template.php:2140 bbp-admin/bbp-topics.php:757
1253
- msgid "Unstick"
1254
  msgstr ""
1255
 
1256
- #: bbp-includes/bbp-topic-template.php:2141 bbp-admin/bbp-topics.php:760
1257
- msgid "to front"
1258
  msgstr ""
1259
 
1260
- #: bbp-includes/bbp-topic-template.php:2321
1261
- msgid "Viewing topic %1$s (of %2$s total)"
1262
  msgstr ""
1263
 
1264
- #: bbp-includes/bbp-topic-template.php:2323
1265
- msgid "Viewing %1$s topics"
 
 
1266
  msgstr ""
1267
 
1268
- #: bbp-includes/bbp-topic-template.php:2325
1269
- msgid "Viewing %1$s topics - %2$s through %3$s (of %4$s total)"
1270
  msgstr ""
1271
 
1272
- #: bbp-includes/bbp-topic-template.php:2327
1273
- msgid "Viewing %1$s topic"
1274
  msgstr ""
1275
 
1276
- #: bbp-includes/bbp-topic-template.php:2387
1277
- msgid "This topic is marked as spam."
1278
  msgstr ""
1279
 
1280
- #: bbp-includes/bbp-topic-template.php:2392
1281
- msgid "This topic is in the trash."
 
 
 
 
1282
  msgstr ""
1283
 
1284
- #: bbp-includes/bbp-topic-template.php:2428
1285
- msgid "Normal"
 
1286
  msgstr ""
1287
 
1288
- #: bbp-includes/bbp-topic-template.php:2429
1289
- msgid "Sticky"
1290
  msgstr ""
1291
 
1292
- #: bbp-includes/bbp-topic-template.php:2430
1293
- msgid "Super Sticky"
1294
  msgstr ""
1295
 
1296
- #: bbp-includes/bbp-topic-template.php:2552
1297
- msgid "%s voice"
1298
- msgid_plural "%s voices"
1299
- msgstr[0] ""
1300
- msgstr[1] ""
1301
 
1302
- #: bbp-includes/bbp-topic-template.php:2557
 
 
 
 
1303
  msgid ""
1304
- "This topic has %1$s, contains %2$s, and was last updated by %3$s %4$s ago."
 
1305
  msgstr ""
1306
 
1307
- #: bbp-includes/bbp-topic-template.php:2561
1308
- msgid "This topic has %1$s, contains %2$s."
 
 
1309
  msgstr ""
1310
 
1311
- #: bbp-includes/bbp-general-template.php:738
1312
- msgid "No topics available"
 
 
 
 
1313
  msgstr ""
1314
 
1315
- #: bbp-includes/bbp-general-template.php:743
1316
- msgid "No forums available"
1317
  msgstr ""
1318
 
1319
- #: bbp-includes/bbp-general-template.php:748
1320
- msgid "None available"
1321
  msgstr ""
1322
 
1323
- #: bbp-includes/bbp-general-template.php:820
1324
- #: bbp-includes/bbp-general-template.php:837
1325
- #: bbp-includes/bbp-topic-functions.php:949
1326
- #: bbp-includes/bbp-topic-functions.php:1250
1327
- #: bbp-admin/importers/bbpress.php:961
1328
- msgid "Reply To: %s"
1329
  msgstr ""
1330
 
1331
- #: bbp-includes/bbp-general-template.php:1320
1332
- msgid "Log Out"
1333
  msgstr ""
1334
 
1335
- #: bbp-includes/bbp-general-template.php:1363
1336
- msgid "Your Profile"
1337
  msgstr ""
1338
 
1339
- #: bbp-includes/bbp-general-template.php:1366
1340
- msgid "%s's Profile"
1341
  msgstr ""
1342
 
1343
- #: bbp-includes/bbp-general-template.php:1373
1344
- msgid "Edit Your Profile"
1345
  msgstr ""
1346
 
1347
- #: bbp-includes/bbp-general-template.php:1376
1348
- msgid "Edit %s's Profile"
 
1349
  msgstr ""
1350
 
1351
- #: bbp-includes/bbp-general-template.php:1382
1352
- msgid "Forum: %s"
 
1353
  msgstr ""
1354
 
1355
- #: bbp-includes/bbp-general-template.php:1387
1356
- msgid "Topic: %s"
1357
  msgstr ""
1358
 
1359
- #: bbp-includes/bbp-general-template.php:1406
1360
- msgid "View: %s"
1361
  msgstr ""
1362
 
1363
- #: bbp-includes/bbp-reply-functions.php:171
1364
- msgid "<strong>ERROR</strong>: You do not have permission to reply."
1365
  msgstr ""
1366
 
1367
- #: bbp-includes/bbp-reply-functions.php:183
1368
- msgid "<strong>ERROR</strong>: Topic ID is missing."
 
 
1369
  msgstr ""
1370
 
1371
- #: bbp-includes/bbp-reply-functions.php:189
1372
- #: bbp-includes/bbp-topic-functions.php:121
1373
- #: bbp-includes/bbp-topic-functions.php:336
1374
- msgid "<strong>ERROR</strong>: Forum ID is missing."
1375
  msgstr ""
1376
 
1377
- #: bbp-includes/bbp-reply-functions.php:209
1378
- msgid "<strong>ERROR</strong>: Your reply needs a title."
1379
  msgstr ""
1380
 
1381
- #: bbp-includes/bbp-reply-functions.php:221
1382
- #: bbp-includes/bbp-reply-functions.php:425
1383
- msgid "<strong>ERROR</strong>: Your reply cannot be empty."
1384
  msgstr ""
1385
 
1386
- #: bbp-includes/bbp-reply-functions.php:226
1387
- #: bbp-includes/bbp-topic-functions.php:150
1388
- msgid "<strong>ERROR</strong>: Slow down; you move too fast."
1389
  msgstr ""
1390
 
1391
- #: bbp-includes/bbp-reply-functions.php:231
1392
- msgid ""
1393
- "<strong>ERROR</strong>: Duplicate reply detected; it looks as though "
1394
- "you&#8217;ve already said that!"
1395
  msgstr ""
1396
 
1397
- #: bbp-includes/bbp-reply-functions.php:274
1398
- #: bbp-includes/bbp-reply-functions.php:458
1399
  msgid ""
1400
- "<strong>ERROR</strong>: There was some problem adding the tags to the topic."
1401
- msgstr ""
1402
-
1403
- #: bbp-includes/bbp-reply-functions.php:341
1404
- msgid "<strong>ERROR</strong>: Reply ID not found."
1405
  msgstr ""
1406
 
1407
- #: bbp-includes/bbp-reply-functions.php:349
1408
- msgid "<strong>ERROR</strong>: The reply you want to edit was not found."
1409
  msgstr ""
1410
 
1411
- #: bbp-includes/bbp-reply-functions.php:362
1412
- msgid "<strong>ERROR</strong>: You do not have permission to edit that reply."
1413
  msgstr ""
1414
 
1415
- #: bbp-includes/bbp-reply-functions.php:392
1416
- msgid ""
1417
- "<strong>ERROR</strong>: This forum is a category. No topics or replies can "
1418
- "be created in it."
1419
  msgstr ""
1420
 
1421
- #: bbp-includes/bbp-reply-functions.php:396
1422
  msgid ""
1423
- "<strong>ERROR</strong>: This forum has been closed to new topics and replies."
 
1424
  msgstr ""
1425
 
1426
- #: bbp-includes/bbp-reply-functions.php:400
1427
- msgid ""
1428
- "<strong>ERROR</strong>: This forum is private and you do not have the "
1429
- "capability to read or create new replies in it."
1430
  msgstr ""
1431
 
1432
- #: bbp-includes/bbp-reply-functions.php:404
1433
- msgid ""
1434
- "<strong>ERROR</strong>: This forum is hidden and you do not have the "
1435
- "capability to read or create new replies in it."
 
1436
  msgstr ""
1437
 
1438
- #: bbp-includes/bbp-reply-functions.php:832
1439
- msgid "<strong>ERROR:</strong> You do not have the permission to do that!"
1440
  msgstr ""
1441
 
1442
- #: bbp-includes/bbp-reply-functions.php:845
1443
- msgid ""
1444
- "<strong>ERROR</strong>: There was a problem unmarking the reply as spam!"
1445
  msgstr ""
1446
 
1447
- #: bbp-includes/bbp-reply-functions.php:845
1448
- msgid "<strong>ERROR</strong>: There was a problem marking the reply as spam!"
1449
  msgstr ""
1450
 
1451
- #: bbp-includes/bbp-reply-functions.php:862
1452
- msgid "<strong>ERROR</strong>: There was a problem trashing the reply!"
1453
  msgstr ""
1454
 
1455
- #: bbp-includes/bbp-reply-functions.php:870
1456
- msgid "<strong>ERROR</strong>: There was a problem untrashing the reply!"
 
 
1457
  msgstr ""
1458
 
1459
- #: bbp-includes/bbp-reply-functions.php:878
1460
- msgid "<strong>ERROR</strong>: There was a problem deleting the reply!"
1461
  msgstr ""
1462
 
1463
- #: bbp-includes/bbp-reply-functions.php:1130
1464
- msgid "All Posts"
1465
  msgstr ""
1466
 
1467
- #: bbp-includes/bbp-reply-functions.php:1132
1468
- msgid "All Replies"
1469
  msgstr ""
1470
 
1471
- #: bbp-includes/bbp-reply-functions.php:1172
1472
- #: bbp-includes/bbp-topic-functions.php:2580
1473
- msgid "Replies: %s"
1474
  msgstr ""
1475
 
1476
- #: bbp-includes/bbp-user-template.php:151
1477
- msgid "Anonymous"
1478
  msgstr ""
1479
 
1480
- #: bbp-includes/bbp-user-template.php:408
1481
- msgid "Admin"
1482
  msgstr ""
1483
 
1484
- #: bbp-includes/bbp-user-template.php:542
1485
- msgid " (%?%)"
1486
  msgstr ""
1487
 
1488
- #: bbp-includes/bbp-user-template.php:548
1489
- msgid "This topic is one of your %favorites% ["
1490
  msgstr ""
1491
 
1492
- #: bbp-includes/bbp-user-template.php:550
1493
- msgid "]"
 
 
1494
  msgstr ""
1495
 
1496
- #: bbp-includes/bbp-user-template.php:705
1497
- msgid "User updated."
1498
  msgstr ""
1499
 
1500
- #: bbp-includes/bbp-user-template.php:729
1501
- msgid "You have super admin privileges."
1502
  msgstr ""
1503
 
1504
- #: bbp-includes/bbp-user-template.php:729
1505
- msgid "This user has super admin privileges."
1506
  msgstr ""
1507
 
1508
- #: bbp-includes/bbp-user-template.php:794
1509
- msgid "&mdash; No role for this site &mdash;"
1510
  msgstr ""
1511
 
1512
- #: bbp-includes/bbp-user-template.php:843
1513
- msgid "You are now logged out."
 
1514
  msgstr ""
1515
 
1516
- #: bbp-includes/bbp-user-template.php:847
1517
- msgid "New user registration is currently not allowed."
 
1518
  msgstr ""
1519
 
1520
- #: bbp-includes/bbp-user-template.php:856
1521
- msgid "Check your e-mail for the confirmation link."
 
1522
  msgstr ""
1523
 
1524
- #: bbp-includes/bbp-user-template.php:861
1525
- msgid "Check your e-mail for your new password."
 
1526
  msgstr ""
1527
 
1528
- #: bbp-includes/bbp-user-template.php:866
1529
- msgid "Registration complete. Please check your e-mail."
1530
  msgstr ""
1531
 
1532
- #: bbp-includes/bbp-user-functions.php:368
1533
- #: bbp-includes/bbp-user-functions.php:637
1534
  msgid ""
1535
- "<strong>ERROR</strong>: You don't have the permission to edit favorites of "
1536
- "that user!"
1537
  msgstr ""
1538
 
1539
- #: bbp-includes/bbp-user-functions.php:372
1540
- msgid ""
1541
- "<strong>ERROR</strong>: No topic was found! Which topic are you marking/"
1542
- "unmarking as favorite?"
1543
  msgstr ""
1544
 
1545
- #: bbp-includes/bbp-user-functions.php:401
1546
- msgid ""
1547
- "<strong>ERROR</strong>: There was a problem removing that topic from "
1548
- "favorites!"
1549
  msgstr ""
1550
 
1551
- #: bbp-includes/bbp-user-functions.php:403
1552
- msgid "<strong>ERROR</strong>: There was a problem favoriting that topic!"
1553
  msgstr ""
1554
 
1555
- #: bbp-includes/bbp-user-functions.php:641
1556
  msgid ""
1557
- "<strong>ERROR</strong>: No topic was found! Which topic are you subscribing/"
1558
- "unsubscribing to?"
1559
  msgstr ""
1560
 
1561
- #: bbp-includes/bbp-user-functions.php:669
 
 
 
 
1562
  msgid ""
1563
- "<strong>ERROR</strong>: There was a problem unsubscribing from that topic!"
 
1564
  msgstr ""
1565
 
1566
- #: bbp-includes/bbp-user-functions.php:671
1567
- msgid "<strong>ERROR</strong>: There was a problem subscribing to that topic!"
1568
  msgstr ""
1569
 
1570
- #: bbp-includes/bbp-user-functions.php:744
1571
  msgid ""
1572
- "What are you doing here? You do not have the permission to edit this user."
 
 
1573
  msgstr ""
1574
 
1575
- #: bbp-includes/bbp-topic-functions.php:79
1576
- msgid ""
1577
- "<strong>ERROR</strong>: You do not have permission to create new topics."
1578
  msgstr ""
1579
 
1580
- #: bbp-includes/bbp-topic-functions.php:103
1581
- #: bbp-includes/bbp-topic-functions.php:372
1582
- msgid "<strong>ERROR</strong>: Your topic needs a title."
1583
  msgstr ""
1584
 
1585
- #: bbp-includes/bbp-topic-functions.php:115
1586
- #: bbp-includes/bbp-topic-functions.php:384
1587
- msgid "<strong>ERROR</strong>: Your topic cannot be empty."
1588
  msgstr ""
1589
 
1590
- #: bbp-includes/bbp-topic-functions.php:132
1591
- msgid ""
1592
- "<strong>ERROR</strong>: This forum is a category. No topics can be created "
1593
- "in this forum."
1594
  msgstr ""
1595
 
1596
- #: bbp-includes/bbp-topic-functions.php:136
1597
- #: bbp-includes/bbp-topic-functions.php:351
1598
- msgid "<strong>ERROR</strong>: This forum has been closed to new topics."
1599
  msgstr ""
1600
 
1601
- #: bbp-includes/bbp-topic-functions.php:140
1602
- #: bbp-includes/bbp-topic-functions.php:355
1603
- msgid ""
1604
- "<strong>ERROR</strong>: This forum is private and you do not have the "
1605
- "capability to read or create new topics in it."
1606
  msgstr ""
1607
 
1608
- #: bbp-includes/bbp-topic-functions.php:144
1609
- #: bbp-includes/bbp-topic-functions.php:359
1610
- msgid ""
1611
- "<strong>ERROR</strong>: This forum is hidden and you do not have the "
1612
- "capability to read or create new topics in it."
1613
  msgstr ""
1614
 
1615
- #: bbp-includes/bbp-topic-functions.php:155
1616
- msgid ""
1617
- "<strong>ERROR</strong>: Duplicate topic detected; it looks as though "
1618
- "you&#8217;ve already said that!"
1619
  msgstr ""
1620
 
1621
- #: bbp-includes/bbp-topic-functions.php:294
1622
- #: bbp-includes/bbp-topic-functions.php:816
1623
- msgid "<strong>ERROR</strong>: Topic ID not found."
1624
  msgstr ""
1625
 
1626
- #: bbp-includes/bbp-topic-functions.php:302
1627
- msgid "<strong>ERROR</strong>: The topic you want to edit was not found."
1628
  msgstr ""
1629
 
1630
- #: bbp-includes/bbp-topic-functions.php:315
1631
- msgid "<strong>ERROR</strong>: You do not have permission to edit that topic."
 
1632
  msgstr ""
1633
 
1634
- #: bbp-includes/bbp-topic-functions.php:347
1635
- msgid ""
1636
- "<strong>ERROR</strong>: This forum is a category. No topics can be created "
1637
- "in it."
1638
  msgstr ""
1639
 
1640
- #: bbp-includes/bbp-topic-functions.php:825
1641
- msgid "<strong>ERROR</strong>: The topic you want to merge was not found."
1642
  msgstr ""
1643
 
1644
- #: bbp-includes/bbp-topic-functions.php:829
1645
- #: bbp-includes/bbp-topic-functions.php:1104
1646
  msgid ""
1647
- "<strong>ERROR</strong>: You do not have the permissions to edit the source "
1648
- "topic."
1649
  msgstr ""
1650
 
1651
- #: bbp-includes/bbp-topic-functions.php:835
1652
- msgid "<strong>ERROR</strong>: Destination topic ID not found."
1653
  msgstr ""
1654
 
1655
- #: bbp-includes/bbp-topic-functions.php:841
1656
- msgid "<strong>ERROR</strong>: The topic you want to merge to was not found."
1657
  msgstr ""
1658
 
1659
- #: bbp-includes/bbp-topic-functions.php:845
1660
- msgid ""
1661
- "<strong>ERROR</strong>: You do not have the permissions to edit the "
1662
- "destination topic."
1663
  msgstr ""
1664
 
1665
- #: bbp-includes/bbp-topic-functions.php:1080
1666
- msgid "<strong>ERROR</strong>: Reply ID to split the topic from not found!"
1667
  msgstr ""
1668
 
1669
- #: bbp-includes/bbp-topic-functions.php:1088
1670
- msgid "<strong>ERROR</strong>: The reply you want to split from was not found."
1671
  msgstr ""
1672
 
1673
- #: bbp-includes/bbp-topic-functions.php:1097
1674
- msgid "<strong>ERROR</strong>: The topic you want to split was not found."
1675
  msgstr ""
1676
 
1677
- #: bbp-includes/bbp-topic-functions.php:1113
1678
- msgid "<strong>ERROR</strong>: You need to choose a valid split option."
1679
  msgstr ""
1680
 
1681
- #: bbp-includes/bbp-topic-functions.php:1126
1682
- msgid "<strong>ERROR</strong>: Destination topic ID not found!"
1683
  msgstr ""
1684
 
1685
- #: bbp-includes/bbp-topic-functions.php:1135
1686
- msgid "<strong>ERROR</strong>: The topic you want to split to was not found!"
1687
  msgstr ""
1688
 
1689
- #: bbp-includes/bbp-topic-functions.php:1139
1690
- msgid ""
1691
- "<strong>ERROR</strong>: You do not have the permissions to edit the "
1692
- "destination topic!"
1693
  msgstr ""
1694
 
1695
- #: bbp-includes/bbp-topic-functions.php:1176
1696
- msgid ""
1697
- "<strong>ERROR</strong>: There was a problem converting the reply into the "
1698
- "topic. Please try again."
 
 
 
1699
  msgstr ""
1700
 
1701
- #: bbp-includes/bbp-topic-functions.php:1180
1702
- msgid ""
1703
- "<strong>ERROR</strong>: You do not have the permissions to create new "
1704
- "topics. The reply could not be converted into a topic."
 
 
1705
  msgstr ""
1706
 
1707
- #: bbp-includes/bbp-topic-functions.php:1367
1708
- msgid ""
1709
- "<strong>ERROR</strong>: The following problem(s) have been found while "
1710
- "getting the tag: %s"
1711
  msgstr ""
1712
 
1713
- #: bbp-includes/bbp-topic-functions.php:1382
1714
- #: bbp-includes/bbp-topic-functions.php:1418
1715
  msgid ""
1716
- "<strong>ERROR</strong>: You do not have the permissions to edit the topic "
1717
- "tags."
1718
  msgstr ""
1719
 
1720
- #: bbp-includes/bbp-topic-functions.php:1388
1721
- #: bbp-includes/bbp-topic-functions.php:1424
1722
- msgid "<strong>ERROR</strong>: You need to enter a tag name."
1723
  msgstr ""
1724
 
1725
- #: bbp-includes/bbp-topic-functions.php:1398
1726
- msgid ""
1727
- "<strong>ERROR</strong>: The following problem(s) have been found while "
1728
- "updating the tag: %s"
1729
  msgstr ""
1730
 
1731
- #: bbp-includes/bbp-topic-functions.php:1434
1732
- #: bbp-includes/bbp-topic-functions.php:1452
1733
- msgid ""
1734
- "<strong>ERROR</strong>: The following problem(s) have been found while "
1735
- "merging the tags: %s"
1736
  msgstr ""
1737
 
1738
- #: bbp-includes/bbp-topic-functions.php:1443
1739
- msgid ""
1740
- "<strong>ERROR</strong>: The tags which are being merged can not be the same."
1741
  msgstr ""
1742
 
1743
- #: bbp-includes/bbp-topic-functions.php:1472
1744
- msgid ""
1745
- "<strong>ERROR</strong>: You do not have the permissions to delete the topic "
1746
- "tags."
1747
  msgstr ""
1748
 
1749
- #: bbp-includes/bbp-topic-functions.php:1481
1750
- msgid ""
1751
- "<strong>ERROR</strong>: The following problem(s) have been found while "
1752
- "deleting the tag: %s"
1753
  msgstr ""
1754
 
1755
- #: bbp-includes/bbp-topic-functions.php:1591
1756
- msgid "<strong>ERROR:</strong> You do not have the permission to do that."
1757
  msgstr ""
1758
 
1759
- #: bbp-includes/bbp-topic-functions.php:1604
1760
- msgid "<strong>ERROR</strong>: There was a problem closing the topic."
1761
  msgstr ""
1762
 
1763
- #: bbp-includes/bbp-topic-functions.php:1604
1764
- msgid "<strong>ERROR</strong>: There was a problem opening the topic."
1765
  msgstr ""
1766
 
1767
- #: bbp-includes/bbp-topic-functions.php:1615
1768
- msgid "<strong>ERROR</strong>: There was a problem unsticking the topic."
1769
  msgstr ""
1770
 
1771
- #: bbp-includes/bbp-topic-functions.php:1615
1772
- msgid "<strong>ERROR</strong>: There was a problem sticking the topic."
 
 
 
 
 
1773
  msgstr ""
1774
 
1775
- #: bbp-includes/bbp-topic-functions.php:1625
1776
  msgid ""
1777
- "<strong>ERROR</strong>: There was a problem unmarking the topic as spam."
 
1778
  msgstr ""
1779
 
1780
- #: bbp-includes/bbp-topic-functions.php:1625
1781
- msgid "<strong>ERROR</strong>: There was a problem marking the topic as spam."
 
 
 
 
 
 
 
1782
  msgstr ""
1783
 
1784
- #: bbp-includes/bbp-topic-functions.php:1642
1785
- msgid "<strong>ERROR</strong>: There was a problem trashing the topic."
 
 
 
1786
  msgstr ""
1787
 
1788
- #: bbp-includes/bbp-topic-functions.php:1650
1789
- msgid "<strong>ERROR</strong>: There was a problem untrashing the topic."
 
 
 
 
 
 
 
1790
  msgstr ""
1791
 
1792
- #: bbp-includes/bbp-topic-functions.php:1658
1793
- msgid "<strong>ERROR</strong>: There was a problem deleting the topic."
 
 
 
1794
  msgstr ""
1795
 
1796
- #: bbp-includes/bbp-topic-functions.php:2555
1797
- msgid "All Topics"
 
 
 
1798
  msgstr ""
1799
 
1800
- #: bbp-includes/bbp-forum-template.php:460 bbp-admin/bbp-forums.php:440
1801
- msgid "No Topics"
 
 
 
1802
  msgstr ""
1803
 
1804
- #: bbp-includes/bbp-forum-template.php:1027
1805
- msgid "%s topic"
1806
- msgid_plural "%s topics"
1807
- msgstr[0] ""
1808
- msgstr[1] ""
1809
-
1810
- #: bbp-includes/bbp-forum-template.php:1618
1811
- msgid ""
1812
- "This forum contains %1$s and %2$s, and was last updated by %3$s %4$s ago."
1813
  msgstr ""
1814
 
1815
- #: bbp-includes/bbp-forum-template.php:1622
1816
- msgid "This forum contains %1$s and %2$s replies."
1817
  msgstr ""
1818
 
1819
- #: bbp-admin/bbp-metaboxes.php:44
1820
- msgid "Content"
 
1821
  msgstr ""
1822
 
1823
- #: bbp-admin/bbp-metaboxes.php:125
1824
- msgid "Discussion"
 
 
 
1825
  msgstr ""
1826
 
1827
- #: bbp-admin/bbp-metaboxes.php:133
1828
- msgid "User"
1829
- msgid_plural "Users"
1830
- msgstr[0] ""
1831
- msgstr[1] ""
1832
-
1833
- #: bbp-admin/bbp-metaboxes.php:152
1834
- msgid "Hidden Topic"
1835
- msgid_plural "Hidden Topics"
1836
- msgstr[0] ""
1837
- msgstr[1] ""
1838
 
1839
- #: bbp-admin/bbp-metaboxes.php:171
1840
- msgid "Hidden Reply"
1841
- msgid_plural "Hidden Replies"
1842
- msgstr[0] ""
1843
- msgstr[1] ""
1844
 
1845
- #: bbp-admin/bbp-metaboxes.php:190
1846
- msgid "Empty Topic Tag"
1847
- msgid_plural "Empty Topic Tags"
1848
- msgstr[0] ""
1849
- msgstr[1] ""
 
1850
 
1851
- #: bbp-admin/bbp-metaboxes.php:216
1852
- msgid "Theme <strong>natively supports</strong> bbPress"
 
 
 
1853
  msgstr ""
1854
 
1855
- #: bbp-admin/bbp-metaboxes.php:218
1856
- msgid "Theme <strong>does not</strong> natively support bbPress"
 
 
1857
  msgstr ""
1858
 
1859
- #: bbp-admin/bbp-metaboxes.php:223
1860
- msgid "You are using <span class=\"b\">bbPress %s</span>."
 
 
1861
  msgstr ""
1862
 
1863
- #: bbp-admin/bbp-metaboxes.php:257
1864
- msgid "Category"
 
 
1865
  msgstr ""
1866
 
1867
- #: bbp-admin/bbp-metaboxes.php:270
1868
- msgid "Closed"
1869
  msgstr ""
1870
 
1871
- #: bbp-admin/bbp-metaboxes.php:282
1872
- msgid "Public"
 
 
1873
  msgstr ""
1874
 
1875
- #: bbp-admin/bbp-metaboxes.php:284
1876
- msgid "Hidden"
 
 
 
 
 
1877
  msgstr ""
1878
 
1879
- #: bbp-admin/bbp-metaboxes.php:296 bbp-admin/bbp-metaboxes.php:297
1880
- msgid "Type:"
 
 
1881
  msgstr ""
1882
 
1883
- #: bbp-admin/bbp-metaboxes.php:302 bbp-admin/bbp-metaboxes.php:303
1884
- msgid "Status:"
1885
  msgstr ""
1886
 
1887
- #: bbp-admin/bbp-metaboxes.php:308 bbp-admin/bbp-metaboxes.php:309
1888
- msgid "Visibility:"
1889
  msgstr ""
1890
 
1891
- #: bbp-admin/bbp-metaboxes.php:316
1892
- msgid "Parent:"
1893
  msgstr ""
1894
 
1895
- #: bbp-admin/bbp-metaboxes.php:317
1896
- msgid "Forum Parent"
1897
  msgstr ""
1898
 
1899
- #: bbp-admin/bbp-metaboxes.php:323
1900
- msgid "(No Parent)"
1901
  msgstr ""
1902
 
1903
- #: bbp-admin/bbp-metaboxes.php:332
1904
- msgid "Order:"
1905
  msgstr ""
1906
 
1907
- #: bbp-admin/bbp-metaboxes.php:333
1908
- msgid "Forum Order"
1909
  msgstr ""
1910
 
1911
- #: bbp-admin/bbp-metaboxes.php:361 bbp-admin/bbp-replies.php:619
1912
- #: bbp-admin/bbp-topics.php:657
1913
- msgid "(No Forum)"
1914
  msgstr ""
1915
 
1916
- #: bbp-admin/bbp-metaboxes.php:400
1917
- msgid "Parent Topic"
1918
  msgstr ""
1919
 
1920
- #: bbp-admin/bbp-metaboxes.php:434 bbp-admin/bbp-metaboxes.php:437
1921
- msgid "Email"
 
1922
  msgstr ""
1923
 
1924
- #: bbp-admin/bbp-metaboxes.php:450 bbp-admin/bbp-metaboxes.php:453
1925
- msgid "IP Address"
1926
  msgstr ""
1927
 
1928
- #: bbp-admin/bbp-admin.php:168 bbp-admin/bbp-tools.php:65
1929
- msgid "Recount"
 
1930
  msgstr ""
1931
 
1932
- #: bbp-admin/bbp-admin.php:189
1933
- msgid "Main Settings"
1934
  msgstr ""
1935
 
1936
- #: bbp-admin/bbp-admin.php:192
1937
- msgid "Lock post editing after"
 
1938
  msgstr ""
1939
 
1940
- #: bbp-admin/bbp-admin.php:196
1941
- msgid "Throttle time"
1942
  msgstr ""
1943
 
1944
- #: bbp-admin/bbp-admin.php:200
1945
- msgid "Allow Favorites"
1946
  msgstr ""
1947
 
1948
- #: bbp-admin/bbp-admin.php:204
1949
- msgid "Allow Subscriptions"
1950
  msgstr ""
1951
 
1952
- #: bbp-admin/bbp-admin.php:208
1953
- msgid "Allow Anonymous Posting"
1954
  msgstr ""
1955
 
1956
- #: bbp-admin/bbp-admin.php:214
1957
- msgid "Per Page"
1958
  msgstr ""
1959
 
1960
- #: bbp-admin/bbp-admin.php:217 bbp-admin/bbp-admin.php:230
1961
- msgid "Topics Per Page"
1962
  msgstr ""
1963
 
1964
- #: bbp-admin/bbp-admin.php:221 bbp-admin/bbp-admin.php:234
1965
- msgid "Replies Per Page"
1966
  msgstr ""
1967
 
1968
- #: bbp-admin/bbp-admin.php:227
1969
- msgid "Per RSS Page"
1970
- msgstr ""
1971
-
1972
- #: bbp-admin/bbp-admin.php:240
1973
- msgid "Archive Slugs"
1974
- msgstr ""
1975
-
1976
- #: bbp-admin/bbp-admin.php:243
1977
- msgid "Forums Base"
1978
- msgstr ""
1979
-
1980
- #: bbp-admin/bbp-admin.php:247
1981
- msgid "Topics Base"
1982
  msgstr ""
1983
 
1984
- #: bbp-admin/bbp-admin.php:253
1985
- msgid "Single Slugs"
1986
  msgstr ""
1987
 
1988
- #: bbp-admin/bbp-admin.php:256
1989
- msgid "Forum Prefix"
 
1990
  msgstr ""
1991
 
1992
- #: bbp-admin/bbp-admin.php:260
1993
- msgid "Forum slug"
 
1994
  msgstr ""
1995
 
1996
- #: bbp-admin/bbp-admin.php:264
1997
- msgid "Topic slug"
1998
  msgstr ""
1999
 
2000
- #: bbp-admin/bbp-admin.php:268
2001
- msgid "Topic tag slug"
2002
  msgstr ""
2003
 
2004
- #: bbp-admin/bbp-admin.php:272
2005
- msgid "Reply slug"
2006
  msgstr ""
2007
 
2008
- #: bbp-admin/bbp-admin.php:278
2009
- msgid "User base"
2010
  msgstr ""
2011
 
2012
- #: bbp-admin/bbp-admin.php:282
2013
- msgid "View base"
2014
  msgstr ""
2015
 
2016
- #: bbp-admin/bbp-admin.php:353
2017
  msgid ""
2018
- "<strong>bbPress is in Theme Compatability Mode</strong>. Your forums are "
2019
- "using default styling."
2020
- msgstr ""
2021
-
2022
- #: bbp-admin/bbp-admin.php:372
2023
- msgid "Settings"
2024
  msgstr ""
2025
 
2026
- #: bbp-admin/bbp-admin.php:398
2027
- msgid "Right Now in Forums"
 
2028
  msgstr ""
2029
 
2030
- #: bbp-admin/bbp-admin.php:584
2031
- msgid "Green"
2032
  msgstr ""
2033
 
2034
- #: bbp-admin/importers/bbpress.php:333
2035
  msgid "bbPress Standalone Importer"
2036
  msgstr ""
2037
 
2038
- #: bbp-admin/importers/bbpress.php:346
2039
  msgid "Try Again"
2040
  msgstr ""
2041
 
2042
- #: bbp-admin/importers/bbpress.php:431
2043
  msgid ""
2044
  "It looks like you attempted to convert your bbPress standalone previously "
2045
  "and got interrupted."
2046
  msgstr ""
2047
 
2048
- #: bbp-admin/importers/bbpress.php:434
2049
  msgid "Cancel &amp; start a new import"
2050
  msgstr ""
2051
 
2052
- #: bbp-admin/importers/bbpress.php:435
2053
  msgid "Continue previous import"
2054
  msgstr ""
2055
 
2056
- #: bbp-admin/importers/bbpress.php:443
2057
  msgid ""
2058
  "Existing bbPress standalone installation found. See configuration section "
2059
  "for details."
2060
  msgstr ""
2061
 
2062
- #: bbp-admin/importers/bbpress.php:450
2063
  msgid ""
2064
  "This importer allows you to convert your bbPress Standalone into the bbPress "
2065
  "Plugin."
2066
  msgstr ""
2067
 
2068
- #: bbp-admin/importers/bbpress.php:452
2069
  msgid "Instructions"
2070
  msgstr ""
2071
 
2072
- #: bbp-admin/importers/bbpress.php:454
2073
  msgid ""
2074
  "Create a <a href=\"%s\">backup</a> of your database and files. If the import "
2075
  "process is interrupted for any reason, restore from that backup and re-run "
2076
  "the import."
2077
  msgstr ""
2078
 
2079
- #: bbp-admin/importers/bbpress.php:455
2080
  msgid ""
2081
  "Seriously... Go back everything up, and don't come back until that's done. "
2082
  "If things go awry, it's possible this importer will not be able to complete "
@@ -2084,199 +2126,199 @@ msgid ""
2084
  "we're not kidding."
2085
  msgstr ""
2086
 
2087
- #: bbp-admin/importers/bbpress.php:456
2088
  msgid "To reduce memory overhead and avoid possible conflicts please:"
2089
  msgstr ""
2090
 
2091
- #: bbp-admin/importers/bbpress.php:459
2092
  msgid ""
2093
  "Disable all plugins (except bbPress) on both your WordPress and bbPress "
2094
  "standalone installations."
2095
  msgstr ""
2096
 
2097
- #: bbp-admin/importers/bbpress.php:462
2098
  msgid "Switch to a default WordPress theme."
2099
  msgstr ""
2100
 
2101
- #: bbp-admin/importers/bbpress.php:466
2102
  msgid "Notes on compatibility:"
2103
  msgstr ""
2104
 
2105
- #: bbp-admin/importers/bbpress.php:469
2106
  msgid ""
2107
- "If you have the <a href=\"%s\">Subscribe to Topic</a> plugin active, please "
2108
- "deactivate it. This script will migrate user subscriptions from that plugin."
2109
  msgstr ""
2110
 
2111
- #: bbp-admin/importers/bbpress.php:472
2112
  msgid ""
2113
- "If you are using the alpha version of bbPress 1.1 subscriptions will be "
2114
- "ported automatically."
2115
  msgstr ""
2116
 
2117
- #: bbp-admin/importers/bbpress.php:475
2118
  msgid ""
2119
  "If you are importing an existing BuddyPress Forums installation, we should "
2120
  "have found your previous configuration file."
2121
  msgstr ""
2122
 
2123
- #: bbp-admin/importers/bbpress.php:479
2124
  msgid ""
2125
  "This converter can be a drag on large forums with lots of existing topics "
2126
  "and replies. If possible, do this import in a safe place (like a local "
2127
  "installation.)"
2128
  msgstr ""
2129
 
2130
- #: bbp-admin/importers/bbpress.php:482
2131
  msgid "Configuration"
2132
  msgstr ""
2133
 
2134
- #: bbp-admin/importers/bbpress.php:483
2135
  msgid ""
2136
- "Enter the path to your bbPress standalone install, where you'd find your "
2137
- "<code>bb-config.php</code>:"
2138
  msgstr ""
2139
 
2140
- #: bbp-admin/importers/bbpress.php:488
2141
  msgid "bbPress Standalone Path:"
2142
  msgstr ""
2143
 
2144
- #: bbp-admin/importers/bbpress.php:496
2145
  msgid "Proceed"
2146
  msgstr ""
2147
 
2148
- #: bbp-admin/importers/bbpress.php:536
2149
  msgid ""
2150
  "Please enter the path to your bbPress configuration file - <code>bb-config."
2151
  "php</code>."
2152
  msgstr ""
2153
 
2154
- #: bbp-admin/importers/bbpress.php:537 bbp-admin/importers/bbpress.php:555
2155
  msgid "Go Back"
2156
  msgstr ""
2157
 
2158
- #: bbp-admin/importers/bbpress.php:554
2159
  msgid ""
2160
  "bbPress configuration file <code>bb-config.php</code> doesn't exist in the "
2161
  "path specified! Please check the path and try again."
2162
  msgstr ""
2163
 
2164
- #: bbp-admin/importers/bbpress.php:586
2165
  msgid "Configuration Options"
2166
  msgstr ""
2167
 
2168
- #: bbp-admin/importers/bbpress.php:592
2169
  msgid ""
2170
  "<strong>Auto-detected</strong>: Your WordPress and bbPress user tables are "
2171
  "integrated. Proceed to <label for=\"step_board\">importing forums, topics "
2172
  "and posts</label>."
2173
  msgstr ""
2174
 
2175
- #: bbp-admin/importers/bbpress.php:599
2176
  msgid ""
2177
  "Your WordPress blog is <strong>new</strong> and you don't have the fear of "
2178
  "losing WordPress users:"
2179
  msgstr ""
2180
 
2181
- #: bbp-admin/importers/bbpress.php:600
2182
  msgid "Go to migrating users section."
2183
  msgstr ""
2184
 
2185
- #: bbp-admin/importers/bbpress.php:601
2186
  msgid ""
2187
- "<strong>Note</strong>: The WordPress %1$s and %2$s tables would be renamed, "
2188
- "but not deleted so that you could restore them if something goes wrong."
2189
  msgstr ""
2190
 
2191
- #: bbp-admin/importers/bbpress.php:602
2192
  msgid ""
2193
- "Please ensure there are no tables with names %1$s and %2$s so that there is "
2194
- "no problem in renaming."
2195
  msgstr ""
2196
 
2197
- #: bbp-admin/importers/bbpress.php:603
2198
  msgid "Also, your WordPress and bbPress installs must be in the same database."
2199
  msgstr ""
2200
 
2201
- #: bbp-admin/importers/bbpress.php:607
2202
  msgid ""
2203
  "You're done with user migration or have the user tables <strong>integrated</"
2204
  "strong>:"
2205
  msgstr ""
2206
 
2207
- #: bbp-admin/importers/bbpress.php:608
2208
  msgid "Proceed to importing forums, topics and posts section."
2209
  msgstr ""
2210
 
2211
- #: bbp-admin/importers/bbpress.php:612
2212
  msgid ""
2213
  "You have a well <strong>established</strong> WordPress user base, the user "
2214
  "tables are not integrated and you can't lose your users:"
2215
  msgstr ""
2216
 
2217
- #: bbp-admin/importers/bbpress.php:613
2218
  msgid ""
2219
  "This is currently not yet supported, and will likely not be in the future "
2220
  "also as it is highly complex to merge two user sets (which might even "
2221
  "conflict)."
2222
  msgstr ""
2223
 
2224
- #: bbp-admin/importers/bbpress.php:614
2225
  msgid ""
2226
- "But, patches are always <a href=\"%s\" title=\"The last revision containing "
2227
- "the custom user migration code\">welcome</a>. :)"
2228
  msgstr ""
2229
 
2230
- #: bbp-admin/importers/bbpress.php:622
2231
  msgid "Migrate Users"
2232
  msgstr ""
2233
 
2234
- #: bbp-admin/importers/bbpress.php:625
2235
  msgid "Import Forums, Topics & Posts"
2236
  msgstr ""
2237
 
2238
- #: bbp-admin/importers/bbpress.php:629
2239
  msgid "Start!"
2240
  msgstr ""
2241
 
2242
- #: bbp-admin/importers/bbpress.php:665
2243
  msgid "Importing Users"
2244
  msgstr ""
2245
 
2246
- #: bbp-admin/importers/bbpress.php:666
2247
  msgid "We&#8217;re in the process of migrating your users..."
2248
  msgstr ""
2249
 
2250
- #: bbp-admin/importers/bbpress.php:683
2251
  msgid ""
2252
  "Renamed the <code>%1$s</code> and <code>%2$s</code> tables to <code>%3$s</"
2253
  "code> and <code>%4$s</code> respectively."
2254
  msgstr ""
2255
 
2256
- #: bbp-admin/importers/bbpress.php:685
2257
  msgid ""
2258
  "There was a problem dropping the <code>%1$s</code> and <code>%2$s</code> "
2259
  "tables. Please check and re-run the script or rename or drop the tables "
2260
  "yourself."
2261
  msgstr ""
2262
 
2263
- #: bbp-admin/importers/bbpress.php:693
2264
  msgid "Created the <code>%s</code> table and copied the users from bbPress."
2265
  msgstr ""
2266
 
2267
- #: bbp-admin/importers/bbpress.php:695 bbp-admin/importers/bbpress.php:703
2268
  msgid ""
2269
  "There was a problem duplicating the table <code>%1$s</code> to <code>%2$s</"
2270
  "code>. Please check and re-run the script or duplicate the table yourself."
2271
  msgstr ""
2272
 
2273
- #: bbp-admin/importers/bbpress.php:701
2274
  msgid ""
2275
  "Created the <code>%s</code> table and copied the user information from "
2276
  "bbPress."
2277
  msgstr ""
2278
 
2279
- #: bbp-admin/importers/bbpress.php:767
2280
  msgid ""
2281
  "There was a problem in getting an administrator of the blog. Now, please go "
2282
  "to your blog, set a user as administrator, login as that user and directly "
@@ -2285,7 +2327,7 @@ msgid ""
2285
  "in as the bbPress keymaster)."
2286
  msgstr ""
2287
 
2288
- #: bbp-admin/importers/bbpress.php:790
2289
  msgid ""
2290
  "User roles have been successfully mapped based. The bbPress keymaster is "
2291
  "WordPress administrator, bbPress administrator and moderators are moderators "
@@ -2295,1142 +2337,1203 @@ msgid ""
2295
  "$s)."
2296
  msgstr ""
2297
 
2298
- #: bbp-admin/importers/bbpress.php:795
2299
  msgid ""
2300
  "Your users have all been imported, but wait &#8211; there&#8217;s more! Now "
2301
  "we need to import your forums, topics and posts!"
2302
  msgstr ""
2303
 
2304
- #: bbp-admin/importers/bbpress.php:798
2305
- msgid "Import by forums, topics and posts &raquo;"
2306
  msgstr ""
2307
 
2308
- #: bbp-admin/importers/bbpress.php:826
2309
  msgid "Importing Forums, Topics And Posts"
2310
  msgstr ""
2311
 
2312
- #: bbp-admin/importers/bbpress.php:827
2313
  msgid ""
2314
  "We&#8217;re importing your bbPress standalone forums, topics and replies..."
2315
  msgstr ""
2316
 
2317
- #: bbp-admin/importers/bbpress.php:834
2318
  msgid "No forums were found!"
2319
  msgstr ""
2320
 
2321
- #: bbp-admin/importers/bbpress.php:839
2322
  msgid "Total number of forums: %s"
2323
  msgstr ""
2324
 
2325
- #: bbp-admin/importers/bbpress.php:845
2326
  msgid "Processing forum #%1$s (<a href=\"%2$s\">%3$s</a>)"
2327
  msgstr ""
2328
 
2329
- #: bbp-admin/importers/bbpress.php:865
2330
  msgid "Added the forum as forum #<a href=\"%1$s\">%2$s</a>"
2331
  msgstr ""
2332
 
2333
- #: bbp-admin/importers/bbpress.php:867
2334
  msgid "There was a problem in adding the forum."
2335
  msgstr ""
2336
 
2337
- #: bbp-admin/importers/bbpress.php:886
2338
  msgid "The forum is a category and has no topics."
2339
  msgstr ""
2340
 
2341
- #: bbp-admin/importers/bbpress.php:891
2342
  msgid ""
2343
  "The forum is a category but has topics, so it has been set as closed on the "
2344
  "new board."
2345
  msgstr ""
2346
 
2347
- #: bbp-admin/importers/bbpress.php:899
2348
  msgid "Total number of topics in the forum: %s"
2349
  msgstr ""
2350
 
2351
- #: bbp-admin/importers/bbpress.php:1037
2352
  msgid ""
2353
  "Added topic #%1$s (<a href=\"%2$s\">%3$s</a>) as topic #<a href=\"%4$s\">%5"
2354
  "$s</a> with %6$s replies."
2355
  msgstr ""
2356
 
2357
- #: bbp-admin/importers/bbpress.php:1039
2358
  msgid "There was a problem in adding topic #1$s (<a href=\"%2$s\">%3$s</a>)."
2359
  msgstr ""
2360
 
2361
- #: bbp-admin/importers/bbpress.php:1058
2362
  msgid ""
2363
  "Your forums, topics and posts have all been imported, but wait &#8211; "
2364
  "there&#8217;s more! Now we need to do a <a href=\"%s\">recount</a> to get "
2365
  "the counts in sync! Yes, we&#8217;re bad at Math."
2366
  msgstr ""
2367
 
2368
- #: bbp-admin/importers/bbpress.php:1060
2369
  msgid "After that it's all done. <a href=\"%s\">Have fun!</a> :)"
2370
  msgstr ""
2371
 
2372
- #: bbp-admin/importers/bbpress.php:1071
2373
  msgid "bbPress Standalone"
2374
  msgstr ""
2375
 
2376
- #: bbp-admin/importers/bbpress.php:1071
2377
  msgid "Import your bbPress standalone board."
2378
  msgstr ""
2379
 
2380
- #: bbp-admin/bbp-settings.php:23
2381
- msgid "Main settings for the bbPress plugin"
2382
  msgstr ""
2383
 
2384
- #: bbp-admin/bbp-settings.php:39
2385
- msgid "minutes"
2386
  msgstr ""
2387
 
2388
- #: bbp-admin/bbp-settings.php:55
2389
- msgid "seconds"
2390
  msgstr ""
2391
 
2392
- #: bbp-admin/bbp-settings.php:71
2393
- msgid "Allow users to mark topics as favorites?"
2394
  msgstr ""
2395
 
2396
- #: bbp-admin/bbp-settings.php:87
2397
- msgid "Allow users to subscribe to topics"
2398
  msgstr ""
2399
 
2400
- #: bbp-admin/bbp-settings.php:103
2401
- msgid "Allow guest users without accounts to create topics and replies"
2402
  msgstr ""
2403
 
2404
- #: bbp-admin/bbp-settings.php:118
2405
- msgid "Per page settings for the bbPress plugin"
2406
  msgstr ""
2407
 
2408
- #: bbp-admin/bbp-settings.php:134 bbp-admin/bbp-settings.php:150
2409
- #: bbp-admin/bbp-settings.php:181 bbp-admin/bbp-settings.php:197
2410
- msgid "per page"
2411
  msgstr ""
2412
 
2413
- #: bbp-admin/bbp-settings.php:165
2414
- msgid "Per RSS page settings for the bbPress plugin"
2415
  msgstr ""
2416
 
2417
- #: bbp-admin/bbp-settings.php:215
2418
- msgid ""
2419
- "Include custom root slugs to prefix your forums and topics with. These can "
2420
- "be partnered with WordPress pages to allow more flexibility."
2421
  msgstr ""
2422
 
2423
- #: bbp-admin/bbp-settings.php:263
2424
- msgid ""
2425
- "You can enter custom slugs for your single forums, topics, replies, and tags "
2426
- "URLs here. If you change these, existing permalinks will also change."
2427
  msgstr ""
2428
 
2429
- #: bbp-admin/bbp-settings.php:279
2430
- msgid "Incude the Forum Base slug in your single forum item links"
2431
  msgstr ""
2432
 
2433
- #: bbp-admin/bbp-settings.php:394
2434
- msgid "bbPress Settings"
2435
  msgstr ""
2436
 
2437
- #: bbp-admin/bbp-settings.php:418
2438
- msgid "This screen provides access to basic bbPress settings."
2439
  msgstr ""
2440
 
2441
- #: bbp-admin/bbp-settings.php:419
2442
- msgid "In the Main Settings you have a number of options:"
2443
  msgstr ""
2444
 
2445
- #: bbp-admin/bbp-settings.php:422
2446
- msgid ""
2447
- "You can choose to lock a post after a certain number of minutes. \"Locking "
2448
- "post editing\" will prevent the author from editing some amount of time "
2449
- "after saving a post."
2450
  msgstr ""
2451
 
2452
- #: bbp-admin/bbp-settings.php:423
2453
- msgid ""
2454
- "\"Throttle time\" is the amount of time required between posts from a single "
2455
- "author. The higher the throttle time, the longer a user will need to wait "
2456
- "between posting to the forum."
2457
  msgstr ""
2458
 
2459
- #: bbp-admin/bbp-settings.php:424
2460
- msgid ""
2461
- "You may choose to allow favorites, which are a way for users to save and "
2462
- "later return to topics they favor. This is enabled by default."
2463
  msgstr ""
2464
 
2465
- #: bbp-admin/bbp-settings.php:425
2466
- msgid ""
2467
- "You may choose to allow subscriptions, which allows users to subscribe for "
2468
- "notifications to topics that interest them. This is enabled by default."
2469
  msgstr ""
2470
 
2471
- #: bbp-admin/bbp-settings.php:426
2472
- msgid ""
2473
- "You may choose to allow \"Anonymous Posting\", which will allow guest users "
2474
- "who do not have accounts on your site to both create topics as well as "
2475
- "replies."
2476
  msgstr ""
2477
 
2478
- #: bbp-admin/bbp-settings.php:429
2479
- msgid ""
2480
- "Per Page settings allow you to control the number of topics and replies will "
2481
- "appear on each of those pages. This is comparable to the WordPress \"Reading "
2482
- "Settings\" page, where you can set the number of posts that should show on "
2483
- "blog pages and in feeds."
2484
  msgstr ""
2485
 
2486
- #: bbp-admin/bbp-settings.php:430
2487
- msgid ""
2488
- "The Forums section allows you to control the permalink structure for your "
2489
- "forums. Each \"base\" is what will be displayed after your main URL and "
2490
- "right before your permalink slug."
2491
  msgstr ""
2492
 
2493
- #: bbp-admin/bbp-settings.php:431
2494
  msgid ""
2495
- "You must click the Save Changes button at the bottom of the screen for new "
2496
- "settings to take effect."
2497
  msgstr ""
2498
 
2499
- #: bbp-admin/bbp-settings.php:432 bbp-admin/bbp-forums.php:130
2500
- #: bbp-admin/bbp-forums.php:168 bbp-admin/bbp-replies.php:133
2501
- #: bbp-admin/bbp-replies.php:174 bbp-admin/bbp-topics.php:134
2502
- #: bbp-admin/bbp-topics.php:178
2503
- msgid "<strong>For more information:</strong>"
2504
  msgstr ""
2505
 
2506
- #: bbp-admin/bbp-settings.php:435 bbp-admin/bbp-forums.php:133
2507
- #: bbp-admin/bbp-forums.php:171 bbp-admin/bbp-replies.php:136
2508
- #: bbp-admin/bbp-replies.php:177 bbp-admin/bbp-topics.php:137
2509
- #: bbp-admin/bbp-topics.php:181
2510
- msgid "<a href=\"http://bbpress.org/documentation/\">bbPress Documentation</a>"
2511
  msgstr ""
2512
 
2513
- #: bbp-admin/bbp-settings.php:436 bbp-admin/bbp-forums.php:134
2514
- #: bbp-admin/bbp-forums.php:172 bbp-admin/bbp-replies.php:137
2515
- #: bbp-admin/bbp-replies.php:178 bbp-admin/bbp-topics.php:138
2516
- #: bbp-admin/bbp-topics.php:182
2517
- msgid "<a href=\"http://bbpress.org/forums/\">bbPress Support Forums</a>"
2518
  msgstr ""
2519
 
2520
- #: bbp-admin/bbp-forums.php:115
2521
- msgid ""
2522
- "The forum title field and the big forum editing area are fixed in place, but "
2523
- "you can reposition all the other boxes using drag and drop, and can minimize "
2524
- "or expand them by clicking the title bar of the box. Use the Screen Options "
2525
- "tab to unhide more boxes (like Slug) or to choose a 1- or 2-column layout "
2526
- "for this screen."
2527
  msgstr ""
2528
 
2529
- #: bbp-admin/bbp-forums.php:116
2530
- msgid ""
2531
- "<strong>Title</strong> - Enter a title for your forum. After you enter a "
2532
- "title, you will see the permalink appear below it, which is fully editable."
2533
- msgstr ""
2534
 
2535
- #: bbp-admin/bbp-forums.php:117
2536
- msgid ""
2537
- "<strong>Post editor</strong> - Enter the description for your forum. There "
2538
- "are two modes of editing: Visual and HTML. Choose the mode by clicking on "
2539
- "the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last "
2540
- "icon in the row to get a second row of controls. The screen icon just before "
2541
- "that allows you to expand the edit box to full screen. The HTML mode allows "
2542
- "you to enter raw HTML along with your forum text. You can insert media files "
2543
- "by clicking the icons above the post editor and following the directions."
2544
- msgstr ""
2545
 
2546
- #: bbp-admin/bbp-forums.php:118
2547
- msgid ""
2548
- "<strong>Forum Attributes</strong> - Select the various attributes that your "
2549
- "forum should have:"
2550
  msgstr ""
2551
 
2552
- #: bbp-admin/bbp-forums.php:121
2553
- msgid ""
2554
- "Forum Type determines whether it is a Forum (by default) or a Category, "
2555
- "which means no new topics (only other forums) can be created within it."
2556
- msgstr ""
2557
 
2558
- #: bbp-admin/bbp-forums.php:122
2559
- msgid ""
2560
- "Forum Status controls whether it is open (and thus can be posted to) or "
2561
- "closed (thus not able to be posted to)."
2562
- msgstr ""
2563
 
2564
- #: bbp-admin/bbp-forums.php:123
2565
- msgid ""
2566
- "Visibility can be set to either Public (by default, seen by everyone), "
2567
- "Private (seen only by chosen users), and Hidden (hidden from all users)."
2568
- msgstr ""
2569
 
2570
- #: bbp-admin/bbp-forums.php:124
2571
- msgid ""
2572
- "Parent turns the forum into a child forum of the selected forum/category in "
2573
- "the dropdown."
 
 
 
 
2574
  msgstr ""
2575
 
2576
- #: bbp-admin/bbp-forums.php:125
2577
- msgid ""
2578
- "Order determines the order that forums in the given hierarchy are displayed "
2579
- "(lower numbers first, higher numbers last)."
2580
  msgstr ""
2581
 
2582
- #: bbp-admin/bbp-forums.php:128
2583
- msgid ""
2584
- "<strong>Publish</strong> - The Publish box will allow you to Preview your "
2585
- "forum before it is published, Publish your forum to your site, or Move to "
2586
- "Trash will move your forum to the trash."
2587
  msgstr ""
2588
 
2589
- #: bbp-admin/bbp-forums.php:129
2590
- msgid ""
2591
- "<strong>Revisions</strong> - Revisions show past versions of the saved "
2592
- "forum. Each revision can be compared to the current version, or another "
2593
- "revision. Revisions can also be restored to the current version."
2594
  msgstr ""
2595
 
2596
- #: bbp-admin/bbp-forums.php:149
2597
- msgid "This screen displays the forums available on your site."
2598
  msgstr ""
2599
 
2600
- #: bbp-admin/bbp-forums.php:150 bbp-admin/bbp-replies.php:153
2601
- #: bbp-admin/bbp-topics.php:154
2602
- msgid "You can customize the display of this screen in a number of ways:"
2603
  msgstr ""
2604
 
2605
- #: bbp-admin/bbp-forums.php:153
2606
- msgid ""
2607
- "You can hide/display columns based on your needs and decide how many forums "
2608
- "to list per screen using the Screen Options tab."
2609
  msgstr ""
2610
 
2611
- #: bbp-admin/bbp-forums.php:154
2612
- msgid ""
2613
- "You can filter the list of forums by forum status using the text links in "
2614
- "the upper left to show All, Published, or Trashed forums. The default view "
2615
- "is to show all forums."
2616
  msgstr ""
2617
 
2618
- #: bbp-admin/bbp-forums.php:155
2619
- msgid ""
2620
- "You can refine the list to show only forums from a specific month by using "
2621
- "the dropdown menus above the forums list. Click the Filter button after "
2622
- "making your selection. You also can refine the list by clicking on the forum "
2623
- "creator in the forums list."
2624
  msgstr ""
2625
 
2626
- #: bbp-admin/bbp-forums.php:158
2627
- msgid ""
2628
- "Hovering over a row in the forums list will display action links that allow "
2629
- "you to manage your forum. You can perform the following actions:"
2630
  msgstr ""
2631
 
2632
- #: bbp-admin/bbp-forums.php:161
2633
- msgid ""
2634
- "Edit takes you to the editing screen for that forum. You can also reach that "
2635
- "screen by clicking on the forum title."
2636
  msgstr ""
2637
 
2638
- #: bbp-admin/bbp-forums.php:162
2639
- msgid ""
2640
- "Trash removes your forum from this list and places it in the trash, from "
2641
- "which you can permanently delete it."
2642
  msgstr ""
2643
 
2644
- #: bbp-admin/bbp-forums.php:163
2645
- msgid "View will take you to your live forum to view the forum."
2646
  msgstr ""
2647
 
2648
- #: bbp-admin/bbp-forums.php:166
2649
- msgid ""
2650
- "You can also edit multiple forums at once. Select the forums you want to "
2651
- "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
2652
- "Apply. You will be able to change the metadata for all selected forums at "
2653
- "once. To remove a forum from the grouping, just click the x next to its name "
2654
- "in the Bulk Edit area that appears."
2655
  msgstr ""
2656
 
2657
- #: bbp-admin/bbp-forums.php:167
2658
- msgid ""
2659
- "The Bulk Actions menu may also be used to delete multiple forums at once. "
2660
- "Select Delete from the dropdown after making your selection."
2661
  msgstr ""
2662
 
2663
- #: bbp-admin/bbp-forums.php:195
2664
- msgid "Forum Attributes"
2665
  msgstr ""
2666
 
2667
- #: bbp-admin/bbp-forums.php:394 bbp-admin/bbp-replies.php:524
2668
- #: bbp-admin/bbp-topics.php:598
2669
- msgid "Created"
2670
  msgstr ""
2671
 
2672
- #: bbp-admin/bbp-forums.php:429 bbp-admin/bbp-replies.php:633
2673
- #: bbp-admin/bbp-topics.php:679
2674
- msgid "%1$s <br /> %2$s"
2675
  msgstr ""
2676
 
2677
- #: bbp-admin/bbp-forums.php:438 bbp-admin/bbp-topics.php:689
2678
- msgid "%s ago"
2679
  msgstr ""
2680
 
2681
- #: bbp-admin/bbp-forums.php:505
2682
- msgid "Forum updated. <a href=\"%s\">View forum</a>"
2683
  msgstr ""
2684
 
2685
- #: bbp-admin/bbp-forums.php:508 bbp-admin/bbp-replies.php:822
2686
- #: bbp-admin/bbp-topics.php:900
2687
- msgid "Custom field updated."
 
 
 
 
2688
  msgstr ""
2689
 
2690
- #: bbp-admin/bbp-forums.php:511 bbp-admin/bbp-replies.php:825
2691
- #: bbp-admin/bbp-topics.php:903
2692
- msgid "Custom field deleted."
 
2693
  msgstr ""
2694
 
2695
- #: bbp-admin/bbp-forums.php:514
2696
- msgid "Forum updated."
 
 
 
 
 
 
 
2697
  msgstr ""
2698
 
2699
- #: bbp-admin/bbp-forums.php:519
2700
- msgid "Forum restored to revision from %s"
 
 
 
 
2701
  msgstr ""
2702
 
2703
- #: bbp-admin/bbp-forums.php:523
2704
- msgid "Forum created. <a href=\"%s\">View forum</a>"
 
 
 
 
 
 
 
2705
  msgstr ""
2706
 
2707
- #: bbp-admin/bbp-forums.php:526
2708
- msgid "Forum saved."
 
 
 
 
2709
  msgstr ""
2710
 
2711
- #: bbp-admin/bbp-forums.php:529
2712
- msgid "Forum submitted. <a target=\"_blank\" href=\"%s\">Preview forum</a>"
 
 
 
 
 
 
 
2713
  msgstr ""
2714
 
2715
- #: bbp-admin/bbp-forums.php:532
2716
  msgid ""
2717
- "Forum scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
2718
- "\">Preview forum</a>"
2719
  msgstr ""
2720
 
2721
- #: bbp-admin/bbp-forums.php:534 bbp-admin/bbp-replies.php:848
2722
- #: bbp-admin/bbp-topics.php:926
2723
- msgid "M j, Y @ G:i"
 
 
2724
  msgstr ""
2725
 
2726
- #: bbp-admin/bbp-forums.php:539
2727
- msgid "Forum draft updated. <a target=\"_blank\" href=\"%s\">Preview forum</a>"
 
 
2728
  msgstr ""
2729
 
2730
- #: bbp-admin/bbp-replies.php:127
2731
  msgid ""
2732
- "The reply title field and the big reply editing area are fixed in place, but "
2733
- "you can reposition all the other boxes using drag and drop, and can minimize "
2734
- "or expand them by clicking the title bar of the box. Use the Screen Options "
2735
- "tab to unhide more boxes (Reply Attributes, Slug) or to choose a 1- or 2-"
2736
- "column layout for this screen."
2737
  msgstr ""
2738
 
2739
- #: bbp-admin/bbp-replies.php:128
2740
  msgid ""
2741
- "<strong>Title</strong> - Enter a title for your reply. After you enter a "
2742
- "title, you will see the permalink below, which you can edit."
 
2743
  msgstr ""
2744
 
2745
- #: bbp-admin/bbp-replies.php:129
2746
  msgid ""
2747
- "<strong>Post editor</strong> - Enter the text for your reply. There are two "
2748
- "modes of editing: Visual and HTML. Choose the mode by clicking on the "
2749
- "appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon "
2750
- "in the row to get a second row of controls. The screen icon just before that "
2751
- "allows you to expand the edit box to full screen. The HTML mode allows you "
2752
- "to enter raw HTML along with your forum text. You can insert media files by "
2753
- "clicking the icons above the post editor and following the directions."
2754
  msgstr ""
2755
 
2756
- #: bbp-admin/bbp-replies.php:130
2757
  msgid ""
2758
- "<strong>Reply Attributes</strong> - Select the attributes that your reply "
2759
- "should have. The Parent Topic dropdown determines the parent topic that the "
2760
- "reply belongs to."
2761
  msgstr ""
2762
 
2763
- #: bbp-admin/bbp-replies.php:131
2764
  msgid ""
2765
- "<strong>Publish</strong> - The Publish box will allow you to save your reply "
2766
- "as Draft or Pending Review. You may Preview your reply before it is "
2767
- "published as well. The Visibility will determine whether the reply is "
2768
- "Public, Password protected (requiring a password on the site to view) or "
2769
- "Private (only the author will have access to it). Replies may be published "
2770
- "immediately by clicking the dropdown, or at a specific date and time by "
2771
- "clicking the Edit link."
2772
  msgstr ""
2773
 
2774
- #: bbp-admin/bbp-replies.php:132
2775
  msgid ""
2776
- "<strong>Revisions</strong> - Revisions show past versions of the saved "
2777
- "reply. Each revision can be compared to the current version, or another "
2778
- "revision. Revisions can also be restored to the current version."
2779
  msgstr ""
2780
 
2781
- #: bbp-admin/bbp-replies.php:152
2782
- msgid "This screen displays the replies created on your site."
2783
  msgstr ""
2784
 
2785
- #: bbp-admin/bbp-replies.php:156
2786
  msgid ""
2787
- "You can hide/display columns based on your needs (Forum, Topic, Author, and "
2788
- "Created) and decide how many replies to list per screen using the Screen "
2789
- "Options tab."
2790
  msgstr ""
2791
 
2792
- #: bbp-admin/bbp-replies.php:157
2793
  msgid ""
2794
- "You can filter the list of replies by reply status using the text links in "
2795
- "the upper left to show All, Published, Pending Review, Draft, or Trashed "
2796
- "topics. The default view is to show all replies."
2797
  msgstr ""
2798
 
2799
- #: bbp-admin/bbp-replies.php:158
2800
  msgid ""
2801
- "You can view replies in a simple title list or with an excerpt. Choose the "
2802
- "view you prefer by clicking on the icons at the top of the list on the right."
2803
  msgstr ""
2804
 
2805
- #: bbp-admin/bbp-replies.php:159
2806
  msgid ""
2807
- "You can refine the list to show only replies from a specific month by using "
2808
- "the dropdown menus above the replies list. Click the Filter button after "
2809
- "making your selection."
 
 
2810
  msgstr ""
2811
 
2812
- #: bbp-admin/bbp-replies.php:160
2813
  msgid ""
2814
- "You can also show only replies from a specific parent forum by using the "
2815
- "parent forum dropdown above the replies list and selecting the parent forum. "
2816
- "Click the Filter button after making your selection."
2817
  msgstr ""
2818
 
2819
- #: bbp-admin/bbp-replies.php:163
2820
  msgid ""
2821
- "Hovering over a row in the replies list will display action links that allow "
2822
- "you to manage your reply. You can perform the following actions:"
 
2823
  msgstr ""
2824
 
2825
- #: bbp-admin/bbp-replies.php:166
2826
  msgid ""
2827
- "Edit takes you to the editing screen for that reply. You can also reach that "
2828
- "screen by clicking on the reply title."
 
2829
  msgstr ""
2830
 
2831
- #: bbp-admin/bbp-replies.php:167
2832
  msgid ""
2833
- "Trash removes your reply from this list and places it in the trash, from "
2834
- "which you can permanently delete it."
 
 
2835
  msgstr ""
2836
 
2837
- #: bbp-admin/bbp-replies.php:168
2838
- msgid "View will take you to your live reply to view the reply."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2839
  msgstr ""
2840
 
2841
- #: bbp-admin/bbp-replies.php:169
2842
- msgid ""
2843
- "Spam will mark the topic as spam, preventing further replies to it and "
2844
- "removing it from the site&rsquo;s public view."
2845
  msgstr ""
2846
 
2847
- #: bbp-admin/bbp-replies.php:172
2848
- msgid ""
2849
- "You can also edit multiple replies at once. Select the replies you want to "
2850
- "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
2851
- "Apply. You will be able to change the metadata for all selected replies at "
2852
- "once. To remove a reply from the grouping, just click the x next to its name "
2853
- "in the Bulk Edit area that appears."
2854
  msgstr ""
2855
 
2856
- #: bbp-admin/bbp-replies.php:173
2857
- msgid ""
2858
- "The Bulk Actions menu may also be used to delete multiple replies at once. "
2859
- "Select Delete from the dropdown after making your selection."
2860
  msgstr ""
2861
 
2862
- #: bbp-admin/bbp-replies.php:201
2863
- msgid "Reply Attributes"
2864
  msgstr ""
2865
 
2866
- #: bbp-admin/bbp-replies.php:270 bbp-admin/bbp-topics.php:296
2867
- msgid "Author Information"
2868
  msgstr ""
2869
 
2870
- #: bbp-admin/bbp-replies.php:422
2871
- msgid "The reply was not found!"
2872
  msgstr ""
2873
 
2874
- #: bbp-admin/bbp-replies.php:425 bbp-admin/bbp-topics.php:459
2875
- msgid "You do not have the permission to do that!"
2876
  msgstr ""
2877
 
2878
- #: bbp-admin/bbp-replies.php:486
2879
- msgid "There was a problem marking the reply \"%1$s\" as spam."
2880
  msgstr ""
2881
 
2882
- #: bbp-admin/bbp-replies.php:486
2883
- msgid "Reply \"%1$s\" successfully marked as spam."
2884
  msgstr ""
2885
 
2886
- #: bbp-admin/bbp-replies.php:490
2887
- msgid "There was a problem unmarking the reply \"%1$s\" as spam."
2888
  msgstr ""
2889
 
2890
- #: bbp-admin/bbp-replies.php:490
2891
- msgid "Reply \"%1$s\" successfully unmarked as spam."
2892
  msgstr ""
2893
 
2894
- #: bbp-admin/bbp-replies.php:520
2895
- msgid "Title"
2896
  msgstr ""
2897
 
2898
- #: bbp-admin/bbp-replies.php:576 bbp-admin/bbp-replies.php:606
2899
- #: bbp-admin/bbp-replies.php:679 bbp-admin/bbp-topics.php:648
2900
- #: bbp-admin/bbp-topics.php:739
2901
- msgid "View"
2902
  msgstr ""
2903
 
2904
- #: bbp-admin/bbp-replies.php:588
2905
- msgid "(No Topic)"
 
 
2906
  msgstr ""
2907
 
2908
- #: bbp-admin/bbp-replies.php:679 bbp-admin/bbp-topics.php:739
2909
- msgid "View &#8220;%s&#8221;"
2910
  msgstr ""
2911
 
2912
- #: bbp-admin/bbp-replies.php:688
2913
- msgid "Mark the reply as not spam"
2914
  msgstr ""
2915
 
2916
- #: bbp-admin/bbp-replies.php:688 bbp-admin/bbp-topics.php:766
2917
- msgid "Not spam"
 
 
 
2918
  msgstr ""
2919
 
2920
- #: bbp-admin/bbp-replies.php:690
2921
- msgid "Mark this reply as spam"
2922
  msgstr ""
2923
 
2924
- #: bbp-admin/bbp-replies.php:704 bbp-admin/bbp-topics.php:782
2925
- msgid "Delete Permanently"
2926
  msgstr ""
2927
 
2928
- #: bbp-admin/bbp-replies.php:742 bbp-admin/bbp-topics.php:820
2929
- msgid "In all forums"
2930
  msgstr ""
2931
 
2932
- #: bbp-admin/bbp-replies.php:819
2933
- msgid "Reply updated. <a href=\"%s\">View topic</a>"
2934
  msgstr ""
2935
 
2936
- #: bbp-admin/bbp-replies.php:828
2937
- msgid "Reply updated."
2938
  msgstr ""
2939
 
2940
- #: bbp-admin/bbp-replies.php:833
2941
- msgid "Reply restored to revision from %s"
2942
  msgstr ""
2943
 
2944
- #: bbp-admin/bbp-replies.php:837
2945
- msgid "Reply created. <a href=\"%s\">View topic</a>"
2946
  msgstr ""
2947
 
2948
- #: bbp-admin/bbp-replies.php:840
2949
- msgid "Reply saved."
2950
  msgstr ""
2951
 
2952
- #: bbp-admin/bbp-replies.php:843
2953
- msgid "Reply submitted. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
2954
  msgstr ""
2955
 
2956
- #: bbp-admin/bbp-replies.php:846
2957
- msgid ""
2958
- "Reply scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
2959
- "\">Preview topic</a>"
2960
  msgstr ""
2961
 
2962
- #: bbp-admin/bbp-replies.php:853
2963
- msgid "Reply draft updated. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
2964
  msgstr ""
2965
 
2966
- #: bbp-admin/bbp-functions.php:152
2967
- msgid "Count topics in each forum"
 
2968
  msgstr ""
2969
 
2970
- #: bbp-admin/bbp-functions.php:153
2971
- msgid "Count replies in each forum"
2972
  msgstr ""
2973
 
2974
- #: bbp-admin/bbp-functions.php:154
2975
- msgid "Count replies in each topic"
 
 
2976
  msgstr ""
2977
 
2978
- #: bbp-admin/bbp-functions.php:155
2979
- msgid "Count voices in each topic"
 
 
2980
  msgstr ""
2981
 
2982
- #: bbp-admin/bbp-functions.php:156
2983
- msgid "Count spammed & trashed replies in each topic"
2984
  msgstr ""
2985
 
2986
- #: bbp-admin/bbp-functions.php:157
2987
- msgid "Count replies for each user"
2988
  msgstr ""
2989
 
2990
- #: bbp-admin/bbp-functions.php:158
2991
- msgid "Remove trashed topics from user favorites"
2992
  msgstr ""
2993
 
2994
- #: bbp-admin/bbp-functions.php:159
2995
- msgid "Remove trashed topics from user subscriptions"
2996
  msgstr ""
2997
 
2998
- #: bbp-admin/bbp-functions.php:163
2999
- msgid "Recalculate last activity in each topic and forum"
 
 
 
3000
  msgstr ""
3001
 
3002
- #: bbp-admin/bbp-functions.php:183
3003
- msgid "Counting the number of replies in each topic&hellip; %s"
 
 
 
3004
  msgstr ""
3005
 
3006
- #: bbp-admin/bbp-functions.php:184 bbp-admin/bbp-functions.php:212
3007
- #: bbp-admin/bbp-functions.php:239 bbp-admin/bbp-functions.php:269
3008
- #: bbp-admin/bbp-functions.php:303 bbp-admin/bbp-functions.php:335
3009
- #: bbp-admin/bbp-functions.php:381 bbp-admin/bbp-functions.php:460
3010
- #: bbp-admin/bbp-functions.php:542 bbp-admin/bbp-functions.php:674
3011
- #: bbp-admin/bbp-functions.php:733 bbp-admin/bbp-functions.php:790
3012
- msgid "Failed!"
3013
  msgstr ""
3014
 
3015
- #: bbp-admin/bbp-functions.php:194 bbp-admin/bbp-functions.php:222
3016
- #: bbp-admin/bbp-functions.php:249 bbp-admin/bbp-functions.php:283
3017
- #: bbp-admin/bbp-functions.php:317 bbp-admin/bbp-functions.php:363
3018
- #: bbp-admin/bbp-functions.php:715 bbp-admin/bbp-functions.php:773
3019
- #: bbp-admin/bbp-functions.php:870
3020
- msgid "Complete!"
3021
  msgstr ""
3022
 
3023
- #: bbp-admin/bbp-functions.php:211
3024
- msgid "Counting the number of voices in each topic&hellip; %s"
 
 
 
3025
  msgstr ""
3026
 
3027
- #: bbp-admin/bbp-functions.php:238
3028
  msgid ""
3029
- "Counting the number of spammed and trashed replies in each topic&hellip; %s"
 
 
 
3030
  msgstr ""
3031
 
3032
- #: bbp-admin/bbp-functions.php:268
3033
- msgid "Counting the number of topics in each forum&hellip; %s"
 
 
 
3034
  msgstr ""
3035
 
3036
- #: bbp-admin/bbp-functions.php:302
3037
- msgid "Counting the number of replies in each forum&hellip; %s"
 
 
3038
  msgstr ""
3039
 
3040
- #: bbp-admin/bbp-functions.php:334
3041
- msgid "Counting the number of topics to which each user has replied&hellip; %s"
3042
  msgstr ""
3043
 
3044
- #: bbp-admin/bbp-functions.php:380
3045
- msgid "Counting the number of topic tags in each topic&hellip; %s"
3046
  msgstr ""
3047
 
3048
- #: bbp-admin/bbp-functions.php:459
3049
- msgid "Counting the number of topics in each topic tag&hellip; %s"
3050
  msgstr ""
3051
 
3052
- #: bbp-admin/bbp-functions.php:541
3053
- msgid "Deleting topic tags with no topics&hellip; %s"
3054
  msgstr ""
3055
 
3056
- #: bbp-admin/bbp-functions.php:673
3057
- msgid "Removing trashed topics from user favorites&hellip; %s"
3058
  msgstr ""
3059
 
3060
- #: bbp-admin/bbp-functions.php:699 bbp-admin/bbp-functions.php:757
3061
- msgid "Nothing to remove!"
3062
  msgstr ""
3063
 
3064
- #: bbp-admin/bbp-functions.php:732
3065
- msgid "Removing trashed topics from user subscriptions&hellip; %s"
3066
  msgstr ""
3067
 
3068
- #: bbp-admin/bbp-functions.php:789
3069
- msgid "Recomputing latest post in every topic and forum&hellip; %s"
3070
  msgstr ""
3071
 
3072
- #: bbp-admin/bbp-tools.php:53
3073
- msgid "bbPress Recount"
3074
  msgstr ""
3075
 
3076
- #: bbp-admin/bbp-tools.php:55
3077
  msgid ""
3078
- "bbPress keeps a running count of things like replies to each topic and "
3079
- "topics in each forum. In rare occasions these counts can fall out of sync. "
3080
- "Using this form you can have bbPress manually recount these items."
3081
- msgstr ""
3082
-
3083
- #: bbp-admin/bbp-tools.php:56
3084
- msgid "You can also use this form to clean out stale items like empty tags."
3085
  msgstr ""
3086
 
3087
- #: bbp-admin/bbp-tools.php:62
3088
- msgid "Things to recount:"
 
 
3089
  msgstr ""
3090
 
3091
- #: bbp-admin/bbp-tools.php:76
3092
- msgid "There are no recount tools available."
 
 
 
 
 
 
 
3093
  msgstr ""
3094
 
3095
- #: bbp-admin/bbp-tools.php:87
3096
- msgid "Recount Items"
 
 
3097
  msgstr ""
3098
 
3099
- #: bbp-admin/bbp-topics.php:127
3100
  msgid ""
3101
- "The topic title field and the big topic editing area are fixed in place, but "
3102
- "you can reposition all the other boxes using drag and drop, and can minimize "
3103
- "or expand them by clicking the title bar of the box. Use the Screen Options "
3104
- "tab to unhide more boxes (Topic Tags, Topic Attributes, or Slug) or to "
3105
- "choose a 1- or 2-column layout for this screen."
3106
  msgstr ""
3107
 
3108
- #: bbp-admin/bbp-topics.php:128
3109
  msgid ""
3110
- "<strong>Title</strong> - Enter a title for your topic. After you enter a "
3111
- "title, you will see the permalink below, which you can edit."
3112
  msgstr ""
3113
 
3114
- #: bbp-admin/bbp-topics.php:129
3115
  msgid ""
3116
- "<strong>Post editor</strong> - Enter the text for your topic. There are two "
3117
- "modes of editing: Visual and HTML. Choose the mode by clicking on the "
3118
- "appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon "
3119
- "in the row to get a second row of controls. The screen icon just before that "
3120
- "allows you to expand the edit box to full screen. The HTML mode allows you "
3121
- "to enter raw HTML along with your forum text. You can insert media files by "
3122
- "clicking the icons above the post editor and following the directions."
3123
  msgstr ""
3124
 
3125
- #: bbp-admin/bbp-topics.php:130
3126
  msgid ""
3127
- "<strong>Topic Attributes</strong> - Select the attributes that your topic "
3128
- "should have. The Forum dropdown determines the parent forum that the topic "
3129
- "belongs to. Select the forum or category from the dropdown, or leave the "
3130
- "default (No Forum) to post the topic without an assigned forum."
3131
  msgstr ""
3132
 
3133
- #: bbp-admin/bbp-topics.php:131
3134
  msgid ""
3135
- "<strong>Publish</strong> - The Publish box will allow you to save your topic "
3136
- "as Draft or Pending Review. You may Preview your topic before it is "
3137
- "published as well. The Visibility will determine whether the topic is "
3138
- "Public, Password protected (requiring a password on the site to view) or "
3139
- "Private (only the author will have access to it). Topics may be published "
3140
- "immediately by clicking the dropdown, or at a specific date and time by "
3141
- "clicking the Edit link."
3142
  msgstr ""
3143
 
3144
- #: bbp-admin/bbp-topics.php:132
3145
  msgid ""
3146
- "<strong>Topic Tags</strong> - You can assign keywords to your topics using "
3147
- "Topic Tags. Unlike categories, tags have no hierarchy, meaning there is no "
3148
- "relationship from one tag to another. Topics can be added and modified "
3149
- "further from the Topic Tags screen."
3150
  msgstr ""
3151
 
3152
- #: bbp-admin/bbp-topics.php:133
3153
  msgid ""
3154
  "<strong>Revisions</strong> - Revisions show past versions of the saved "
3155
- "topic. Each revision can be compared to the current version, or another "
3156
  "revision. Revisions can also be restored to the current version."
3157
  msgstr ""
3158
 
3159
- #: bbp-admin/bbp-topics.php:153
3160
- msgid "This screen displays the topics created on your site."
3161
  msgstr ""
3162
 
3163
- #: bbp-admin/bbp-topics.php:157
3164
  msgid ""
3165
- "You can hide/display columns based on your needs and decide how many topics "
3166
  "to list per screen using the Screen Options tab."
3167
  msgstr ""
3168
 
3169
- #: bbp-admin/bbp-topics.php:158
3170
  msgid ""
3171
- "You can filter the list of topics by topics status using the text links in "
3172
- "the upper left to show All, Published, Pending Review, Draft, or Trashed "
3173
- "topics. The default view is to show all topics."
3174
  msgstr ""
3175
 
3176
- #: bbp-admin/bbp-topics.php:159
3177
  msgid ""
3178
- "You can view topics in a simple title list or with an excerpt. Choose the "
3179
- "view you prefer by clicking on the icons at the top of the list on the right."
 
 
3180
  msgstr ""
3181
 
3182
- #: bbp-admin/bbp-topics.php:160
3183
  msgid ""
3184
- "You can refine the list to show only topics from a specific month by using "
3185
- "the dropdown menus above the topics list. Click the Filter button after "
3186
- "making your selection."
3187
  msgstr ""
3188
 
3189
- #: bbp-admin/bbp-topics.php:161
3190
  msgid ""
3191
- "You can also show only topics from a specific parent forum by using the "
3192
- "parent forum dropdown above the topics list and selecting the parent forum. "
3193
- "Click the Filter button after making your selection."
3194
  msgstr ""
3195
 
3196
- #: bbp-admin/bbp-topics.php:162
3197
  msgid ""
3198
- "You can refine the list by clicking on the topic creator in the topics list."
 
3199
  msgstr ""
3200
 
3201
- #: bbp-admin/bbp-topics.php:165
3202
- msgid ""
3203
- "Hovering over a row in the topics list will display action links that allow "
3204
- "you to manage your topic. You can perform the following actions:"
3205
  msgstr ""
3206
 
3207
- #: bbp-admin/bbp-topics.php:168
3208
  msgid ""
3209
- "Edit takes you to the editing screen for that topic. You can also reach that "
3210
- "screen by clicking on the topic title."
 
 
 
3211
  msgstr ""
3212
 
3213
- #: bbp-admin/bbp-topics.php:169
3214
  msgid ""
3215
- "Trash removes your topic from this list and places it in the trash, from "
3216
- "which you can permanently delete it."
3217
  msgstr ""
3218
 
3219
- #: bbp-admin/bbp-topics.php:170
3220
- msgid "View will take you to your live topic to view the topic."
3221
  msgstr ""
3222
 
3223
- #: bbp-admin/bbp-topics.php:171
3224
- msgid ""
3225
- "Close will close your topic, disabling new replies within it. It will remain "
3226
- "viewable to users, but replies will not be allowed."
3227
  msgstr ""
3228
 
3229
- #: bbp-admin/bbp-topics.php:172
3230
- msgid ""
3231
- "Stick (to front) will pin the topic to the front page of the forum that "
3232
- "it&rsquo;s in. New topics will begin beneath the list of \"stuck\" topics, "
3233
- "which will always sit at the top of the list."
3234
  msgstr ""
3235
 
3236
- #: bbp-admin/bbp-topics.php:173
3237
- msgid ""
3238
- "Spam will mark the topic as spam, closing the post to new replies and "
3239
- "removing it from the public view."
3240
  msgstr ""
3241
 
3242
- #: bbp-admin/bbp-topics.php:176
3243
- msgid ""
3244
- "You can also edit multiple topics at once. Select the topics you want to "
3245
- "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
3246
- "Apply. You will be able to change the metadata for all selected topics at "
3247
- "once. To remove a topic from the grouping, just click the x next to its name "
3248
- "in the Bulk Edit area that appears."
3249
  msgstr ""
3250
 
3251
- #: bbp-admin/bbp-topics.php:177
3252
- msgid ""
3253
- "The Bulk Actions menu may also be used to delete multiple topics at once. "
3254
- "Select Delete from the dropdown after making your selection."
3255
  msgstr ""
3256
 
3257
- #: bbp-admin/bbp-topics.php:197
3258
- msgid ""
3259
- "You can change the display of this screen using the Screen Options tab to "
3260
- "set how many items are displayed per screen (20 by default) and to display/"
3261
- "hide columns in the table (Description, Slug, and Topics)."
3262
  msgstr ""
3263
 
3264
- #: bbp-admin/bbp-topics.php:198
3265
  msgid ""
3266
- "You can assign keywords to your topics using Topic Tags. Unlike categories, "
3267
- "tags have no hierarchy, meaning there is no relationship from one tag to "
3268
- "another."
3269
  msgstr ""
3270
 
3271
- #: bbp-admin/bbp-topics.php:199
3272
- msgid ""
3273
- "Normally, tags are ad-hoc keywords that identify important information in "
3274
- "your topic (names, subjects, etc) that may or may not recur in other topics. "
3275
- "If you think of your forum like a book, the tags are like the terms in the "
3276
- "index."
3277
  msgstr ""
3278
 
3279
- #: bbp-admin/bbp-topics.php:200
3280
- msgid ""
3281
- "When editing a topic tag on this screen, you will fill in the following "
3282
- "fields:"
3283
  msgstr ""
3284
 
3285
- #: bbp-admin/bbp-topics.php:203
3286
- msgid "<strong>Name</strong> - The name is how it appears on your site."
3287
  msgstr ""
3288
 
3289
- #: bbp-admin/bbp-topics.php:204
3290
- msgid ""
3291
- "<strong>Slug</strong> - The Slug is the URL-friendly version of the name. It "
3292
- "is usually all lowercase and contains only letters, numbers, and hyphens."
3293
  msgstr ""
3294
 
3295
- #: bbp-admin/bbp-topics.php:205
3296
- msgid ""
3297
- "<strong>Description</strong> - The description is not prominent by default; "
3298
- "however, some forum themes may display it."
3299
  msgstr ""
3300
 
3301
- #: bbp-admin/bbp-topics.php:229
3302
- msgid "Topic Attributes"
3303
  msgstr ""
3304
 
3305
- #: bbp-admin/bbp-topics.php:456
3306
- msgid "The topic was not found!"
3307
  msgstr ""
3308
 
3309
- #: bbp-admin/bbp-topics.php:539
3310
- msgid "There was a problem opening the topic \"%1$s\"."
3311
  msgstr ""
3312
 
3313
- #: bbp-admin/bbp-topics.php:539
3314
- msgid "Topic \"%1$s\" successfully opened."
3315
  msgstr ""
3316
 
3317
- #: bbp-admin/bbp-topics.php:543
3318
- msgid "There was a problem closing the topic \"%1$s\"."
3319
  msgstr ""
3320
 
3321
- #: bbp-admin/bbp-topics.php:543
3322
- msgid "Topic \"%1$s\" successfully closed."
3323
  msgstr ""
3324
 
3325
- #: bbp-admin/bbp-topics.php:547
3326
- msgid "There was a problem sticking the topic \"%1$s\" to front."
3327
  msgstr ""
3328
 
3329
- #: bbp-admin/bbp-topics.php:547
3330
- msgid "Topic \"%1$s\" successfully sticked to front."
3331
  msgstr ""
3332
 
3333
- #: bbp-admin/bbp-topics.php:551
3334
- msgid "There was a problem sticking the topic \"%1$s\"."
3335
  msgstr ""
3336
 
3337
- #: bbp-admin/bbp-topics.php:551
3338
- msgid "Topic \"%1$s\" successfully sticked."
3339
  msgstr ""
3340
 
3341
- #: bbp-admin/bbp-topics.php:555
3342
- msgid "There was a problem unsticking the topic \"%1$s\"."
3343
  msgstr ""
3344
 
3345
- #: bbp-admin/bbp-topics.php:555
3346
- msgid "Topic \"%1$s\" successfully unsticked."
3347
  msgstr ""
3348
 
3349
- #: bbp-admin/bbp-topics.php:559
3350
- msgid "There was a problem marking the topic \"%1$s\" as spam."
3351
  msgstr ""
3352
 
3353
- #: bbp-admin/bbp-topics.php:559
3354
- msgid "Topic \"%1$s\" successfully marked as spam."
3355
  msgstr ""
3356
 
3357
- #: bbp-admin/bbp-topics.php:563
3358
- msgid "There was a problem unmarking the topic \"%1$s\" as spam."
3359
  msgstr ""
3360
 
3361
- #: bbp-admin/bbp-topics.php:563
3362
- msgid "Topic \"%1$s\" successfully unmarked as spam."
3363
  msgstr ""
3364
 
3365
- #: bbp-admin/bbp-topics.php:749
3366
- msgid "Close this topic"
3367
  msgstr ""
3368
 
3369
- #: bbp-admin/bbp-topics.php:751
3370
- msgid "Open this topic"
3371
  msgstr ""
3372
 
3373
- #: bbp-admin/bbp-topics.php:757
3374
- msgid "Unstick this topic"
3375
  msgstr ""
3376
 
3377
- #: bbp-admin/bbp-topics.php:760
3378
- msgid "Stick this topic to its forum"
3379
  msgstr ""
3380
 
3381
- #: bbp-admin/bbp-topics.php:760
3382
- msgid "Stick this topic to front"
3383
  msgstr ""
3384
 
3385
- #: bbp-admin/bbp-topics.php:766
3386
- msgid "Mark the topic as not spam"
3387
  msgstr ""
3388
 
3389
- #: bbp-admin/bbp-topics.php:768
3390
- msgid "Mark this topic as spam"
3391
  msgstr ""
3392
 
3393
- #: bbp-admin/bbp-topics.php:897
3394
- msgid "Topic updated. <a href=\"%s\">View topic</a>"
 
3395
  msgstr ""
3396
 
3397
- #: bbp-admin/bbp-topics.php:906
3398
- msgid "Topic updated."
 
 
 
 
 
 
 
 
3399
  msgstr ""
3400
 
3401
- #: bbp-admin/bbp-topics.php:911
3402
- msgid "Topic restored to revision from %s"
 
 
 
 
 
 
 
 
3403
  msgstr ""
3404
 
3405
- #: bbp-admin/bbp-topics.php:915
3406
- msgid "Topic created. <a href=\"%s\">View topic</a>"
 
 
 
 
 
 
 
 
3407
  msgstr ""
3408
 
3409
- #: bbp-admin/bbp-topics.php:918
3410
- msgid "Topic saved."
 
 
 
 
 
 
 
3411
  msgstr ""
3412
 
3413
- #: bbp-admin/bbp-topics.php:921
3414
- msgid "Topic submitted. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
3415
  msgstr ""
3416
 
3417
- #: bbp-admin/bbp-topics.php:924
3418
- msgid ""
3419
- "Topic scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
3420
- "\">Preview topic</a>"
3421
  msgstr ""
3422
 
3423
- #: bbp-admin/bbp-topics.php:931
3424
- msgid "Topic draft updated. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3425
  msgstr ""
3426
 
3427
  #. Plugin Name of the plugin/theme
3428
  msgid "bbPress"
3429
  msgstr ""
3430
 
3431
- #. #-#-#-#-# plugin.pot (bbPress 2.0-beta-1) #-#-#-#-#
3432
  #. Plugin URI of the plugin/theme
3433
- #. #-#-#-#-# plugin.pot (bbPress 2.0-beta-1) #-#-#-#-#
3434
  #. Author URI of the plugin/theme
3435
  msgid "http://bbpress.org"
3436
  msgstr ""
2
  # This file is distributed under the same license as the bbPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: bbPress 2.0-beta-3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/bbpress\n"
7
+ "POT-Creation-Date: 2011-06-12 21:03:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: bbp-includes/bbp-reply-functions.php:171
16
+ msgid "<strong>ERROR</strong>: You do not have permission to reply."
 
 
17
  msgstr ""
18
 
19
+ #: bbp-includes/bbp-reply-functions.php:183
20
+ msgid "<strong>ERROR</strong>: Topic ID is missing."
 
 
 
 
21
  msgstr ""
22
 
23
+ #: bbp-includes/bbp-reply-functions.php:189
24
+ #: bbp-includes/bbp-topic-functions.php:121
25
+ #: bbp-includes/bbp-topic-functions.php:373
26
+ msgid "<strong>ERROR</strong>: Forum ID is missing."
27
  msgstr ""
28
 
29
+ #: bbp-includes/bbp-reply-functions.php:209
30
+ msgid "<strong>ERROR</strong>: Your reply needs a title."
31
  msgstr ""
32
 
33
+ #: bbp-includes/bbp-reply-functions.php:221
34
+ #: bbp-includes/bbp-reply-functions.php:475
35
+ msgid "<strong>ERROR</strong>: Your reply cannot be empty."
 
 
36
  msgstr ""
37
 
38
+ #: bbp-includes/bbp-reply-functions.php:226
39
+ #: bbp-includes/bbp-topic-functions.php:150
40
+ msgid "<strong>ERROR</strong>: Slow down; you move too fast."
41
  msgstr ""
42
 
43
+ #: bbp-includes/bbp-reply-functions.php:231
44
+ msgid ""
45
+ "<strong>ERROR</strong>: Duplicate reply detected; it looks as though "
46
+ "you&#8217;ve already said that!"
47
  msgstr ""
48
 
49
+ #: bbp-includes/bbp-reply-functions.php:280
50
+ #: bbp-includes/bbp-reply-functions.php:514
51
+ msgid ""
52
+ "<strong>ERROR</strong>: There was some problem adding the tags to the topic."
53
  msgstr ""
54
 
55
+ #: bbp-includes/bbp-reply-functions.php:391
56
+ msgid "<strong>ERROR</strong>: Reply ID not found."
57
  msgstr ""
58
 
59
+ #: bbp-includes/bbp-reply-functions.php:399
60
+ msgid "<strong>ERROR</strong>: The reply you want to edit was not found."
61
  msgstr ""
62
 
63
+ #: bbp-includes/bbp-reply-functions.php:412
64
+ msgid "<strong>ERROR</strong>: You do not have permission to edit that reply."
65
  msgstr ""
66
 
67
+ #: bbp-includes/bbp-reply-functions.php:442
68
+ msgid ""
69
+ "<strong>ERROR</strong>: This forum is a category. No topics or replies can "
70
+ "be created in it."
71
  msgstr ""
72
 
73
+ #: bbp-includes/bbp-reply-functions.php:446
74
+ msgid ""
75
+ "<strong>ERROR</strong>: This forum has been closed to new topics and replies."
 
 
 
76
  msgstr ""
77
 
78
+ #: bbp-includes/bbp-reply-functions.php:450
79
+ msgid ""
80
+ "<strong>ERROR</strong>: This forum is private and you do not have the "
81
+ "capability to read or create new replies in it."
 
82
  msgstr ""
83
 
84
+ #: bbp-includes/bbp-reply-functions.php:454
85
+ msgid ""
86
+ "<strong>ERROR</strong>: This forum is hidden and you do not have the "
87
+ "capability to read or create new replies in it."
88
  msgstr ""
89
 
90
+ #: bbp-includes/bbp-reply-functions.php:876
91
+ msgid "<strong>ERROR:</strong> You do not have the permission to do that!"
92
  msgstr ""
93
 
94
+ #: bbp-includes/bbp-reply-functions.php:889
95
+ msgid ""
96
+ "<strong>ERROR</strong>: There was a problem unmarking the reply as spam!"
97
  msgstr ""
98
 
99
+ #: bbp-includes/bbp-reply-functions.php:889
100
+ msgid "<strong>ERROR</strong>: There was a problem marking the reply as spam!"
101
  msgstr ""
102
 
103
+ #: bbp-includes/bbp-reply-functions.php:906
104
+ msgid "<strong>ERROR</strong>: There was a problem trashing the reply!"
105
  msgstr ""
106
 
107
+ #: bbp-includes/bbp-reply-functions.php:914
108
+ msgid "<strong>ERROR</strong>: There was a problem untrashing the reply!"
109
  msgstr ""
110
 
111
+ #: bbp-includes/bbp-reply-functions.php:922
112
+ msgid "<strong>ERROR</strong>: There was a problem deleting the reply!"
113
  msgstr ""
114
 
115
+ #: bbp-includes/bbp-reply-functions.php:1194
116
+ msgid "All Posts"
117
  msgstr ""
118
 
119
+ #: bbp-includes/bbp-reply-functions.php:1196 bbpress.php:672
120
+ msgid "All Replies"
121
  msgstr ""
122
 
123
+ #: bbp-includes/bbp-reply-functions.php:1236
124
+ #: bbp-includes/bbp-topic-functions.php:2656
125
+ msgid "Replies: %s"
 
 
 
 
 
 
 
126
  msgstr ""
127
 
128
+ #: bbp-includes/bbp-core-widgets.php:39
129
+ msgid "The login widget."
130
  msgstr ""
131
 
132
+ #: bbp-includes/bbp-core-widgets.php:42
133
+ msgid "bbPress Login Widget"
134
  msgstr ""
135
 
136
+ #: bbp-includes/bbp-core-widgets.php:69
137
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:14
138
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:35
139
+ msgid "Login"
140
  msgstr ""
141
 
142
+ #: bbp-includes/bbp-core-widgets.php:72
143
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:17
144
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:23
145
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:99
146
+ msgid "Username"
147
  msgstr ""
148
 
149
+ #: bbp-includes/bbp-core-widgets.php:77
150
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:22
151
+ msgid "Password"
152
  msgstr ""
153
 
154
+ #: bbp-includes/bbp-core-widgets.php:83
155
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-login.php:28
156
+ msgid "Keep me signed in"
157
  msgstr ""
158
 
159
+ #: bbp-includes/bbp-core-widgets.php:90
160
+ msgid "Log In"
161
  msgstr ""
162
 
163
+ #: bbp-includes/bbp-core-widgets.php:140 bbp-includes/bbp-core-widgets.php:245
164
+ #: bbp-includes/bbp-core-widgets.php:371 bbp-includes/bbp-core-widgets.php:558
165
+ #: bbp-includes/bbp-core-widgets.php:703
166
+ msgid "Title:"
167
  msgstr ""
168
 
169
+ #: bbp-includes/bbp-core-widgets.php:172
170
+ msgid "A list of views."
171
  msgstr ""
172
 
173
+ #: bbp-includes/bbp-core-widgets.php:175
174
+ msgid "bbPress View List"
175
  msgstr ""
176
 
177
+ #: bbp-includes/bbp-core-widgets.php:278
178
+ msgid "A list of forums."
 
179
  msgstr ""
180
 
181
+ #: bbp-includes/bbp-core-widgets.php:281
182
+ msgid "bbPress Forum List"
 
 
 
 
 
 
 
 
183
  msgstr ""
184
 
185
+ #: bbp-includes/bbp-core-widgets.php:377
186
+ msgid "Parent forum:"
187
+ msgstr ""
 
 
 
188
 
189
+ #: bbp-includes/bbp-core-widgets.php:383
190
+ msgid ""
191
+ "Forum ID number. \"0\" to show only root forums, \"-1\" to display all "
192
+ "forums."
193
  msgstr ""
194
 
195
+ #: bbp-includes/bbp-core-widgets.php:414
196
+ msgid "A list of recent topics, sorted by popularity or freshness."
197
+ msgstr ""
 
 
 
198
 
199
+ #: bbp-includes/bbp-core-widgets.php:417
200
+ msgid "bbPress Topics List"
 
201
  msgstr ""
202
 
203
+ #: bbp-includes/bbp-core-widgets.php:559
204
+ msgid "Maximum topics to show:"
205
+ msgstr ""
 
 
 
206
 
207
+ #: bbp-includes/bbp-core-widgets.php:560 bbp-includes/bbp-core-widgets.php:705
208
+ msgid "Show post date:"
209
  msgstr ""
210
 
211
+ #: bbp-includes/bbp-core-widgets.php:562
212
+ msgid "Popularity check:"
213
  msgstr ""
214
 
215
+ #: bbp-includes/bbp-core-widgets.php:563
216
+ msgid ""
217
+ "Number of topics back to check reply count to determine popularity. A number "
218
+ "less than the maximum number of topics to show disables the check."
219
  msgstr ""
220
 
221
+ #: bbp-includes/bbp-core-widgets.php:594
222
+ msgid "A list of bbPress recent replies."
223
  msgstr ""
224
 
225
+ #: bbp-includes/bbp-core-widgets.php:704
226
+ msgid "Maximum replies to show:"
227
  msgstr ""
228
 
229
+ #: bbp-includes/bbp-core-compatibility.php:242
230
+ msgid "Hands off, partner!"
231
  msgstr ""
232
 
233
+ #: bbp-includes/bbp-core-compatibility.php:781
234
+ #: bbp-includes/bbp-forum-template.php:1828
235
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:50
236
+ #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:20
237
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:19
238
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:30
239
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:49
240
+ #: bbp-themes/bbp-twentyten/single-reply.php:32 bbp-admin/bbp-topics.php:607
241
+ #: bbp-admin/bbp-forums.php:404 bbpress.php:669 bbpress.php:670
242
+ msgid "Replies"
243
  msgstr ""
244
 
245
+ #: bbp-includes/bbp-core-compatibility.php:828
246
+ #: bbp-includes/bbp-common-template.php:1329
247
+ #: bbp-includes/bbp-common-template.php:1631
248
+ #: bbp-themes/bbp-twentyten/taxonomy-topic-tag.php:20
249
+ msgid "Topic Tag: %s"
250
  msgstr ""
251
 
252
+ #: bbp-includes/bbp-core-compatibility.php:1136
253
+ msgid ""
254
+ "Conditional query tags do not work before the query is run. Before then, "
255
+ "they always return false."
256
  msgstr ""
257
 
258
+ #: bbp-includes/bbp-core-compatibility.php:1371
259
+ msgid "You do not have the permission to edit this user."
260
  msgstr ""
261
 
262
+ #: bbp-includes/bbp-reply-template.php:944
263
+ #: bbp-includes/bbp-user-template.php:1019
264
+ #: bbp-includes/bbp-topic-template.php:1204
265
+ msgid "View %s's profile"
266
  msgstr ""
267
 
268
+ #: bbp-includes/bbp-reply-template.php:944
269
+ #: bbp-includes/bbp-user-template.php:1019
270
+ #: bbp-includes/bbp-topic-template.php:1204
271
+ msgid "Visit %s's website"
272
  msgstr ""
273
 
274
+ #: bbp-includes/bbp-reply-template.php:1336
275
+ #: bbp-includes/bbp-topic-template.php:1966 bbpress.php:561 bbpress.php:618
276
+ #: bbpress.php:675
277
+ msgid "Edit"
278
  msgstr ""
279
 
280
+ #: bbp-includes/bbp-reply-template.php:1449
281
+ #: bbp-includes/bbp-topic-template.php:2079 bbp-admin/bbp-replies.php:711
282
+ #: bbp-admin/bbp-topics.php:787
283
+ msgid "Trash"
284
  msgstr ""
285
 
286
+ #: bbp-includes/bbp-reply-template.php:1450
287
+ #: bbp-includes/bbp-topic-template.php:2080 bbp-admin/bbp-replies.php:709
288
+ #: bbp-admin/bbp-topics.php:785
289
+ msgid "Restore"
290
  msgstr ""
291
 
292
+ #: bbp-includes/bbp-reply-template.php:1451
293
+ #: bbp-includes/bbp-topic-template.php:2081
294
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:89
295
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:102
296
+ msgid "Delete"
297
  msgstr ""
298
 
299
+ #: bbp-includes/bbp-reply-template.php:1464
300
+ #: bbp-includes/bbp-topic-template.php:2093 bbp-admin/bbp-replies.php:709
301
+ #: bbp-admin/bbp-topics.php:785
302
+ msgid "Restore this item from the Trash"
 
303
  msgstr ""
304
 
305
+ #: bbp-includes/bbp-reply-template.php:1464
306
+ #: bbp-includes/bbp-topic-template.php:2093
307
+ msgid "Are you sure you want to restore that?"
308
  msgstr ""
309
 
310
+ #: bbp-includes/bbp-reply-template.php:1466
311
+ #: bbp-includes/bbp-topic-template.php:2095 bbp-admin/bbp-replies.php:711
312
+ #: bbp-admin/bbp-topics.php:787
313
+ msgid "Move this item to the Trash"
 
314
  msgstr ""
315
 
316
+ #: bbp-includes/bbp-reply-template.php:1466
317
+ #: bbp-includes/bbp-topic-template.php:2095
318
+ msgid "Are you sure you want to trash that?"
 
319
  msgstr ""
320
 
321
+ #: bbp-includes/bbp-reply-template.php:1469
322
+ #: bbp-includes/bbp-topic-template.php:2098 bbp-admin/bbp-replies.php:715
323
+ #: bbp-admin/bbp-topics.php:791
324
+ msgid "Delete this item permanently"
325
  msgstr ""
326
 
327
+ #: bbp-includes/bbp-reply-template.php:1469
328
+ #: bbp-includes/bbp-topic-template.php:2098
329
+ msgid "Are you sure you want to delete that permanently?"
330
  msgstr ""
331
 
332
+ #: bbp-includes/bbp-reply-template.php:1518
333
+ #: bbp-includes/bbp-topic-template.php:2334 bbp-admin/bbp-replies.php:701
334
+ #: bbp-admin/bbp-topics.php:777
335
+ msgid "Spam"
336
  msgstr ""
337
 
338
+ #: bbp-includes/bbp-reply-template.php:1519
339
+ #: bbp-includes/bbp-topic-template.php:2335
340
+ msgid "Unspam"
341
  msgstr ""
342
 
343
+ #: bbp-includes/bbp-reply-template.php:1583
344
+ msgid "Split"
345
  msgstr ""
346
 
347
+ #: bbp-includes/bbp-reply-template.php:1584
348
+ msgid "Split the topic from this reply"
 
 
349
  msgstr ""
350
 
351
+ #: bbp-includes/bbp-reply-template.php:1670
352
+ msgid "Viewing reply %1$s (of %2$s total)"
353
  msgstr ""
354
 
355
+ #: bbp-includes/bbp-reply-template.php:1672
356
+ msgid "Viewing %1$s replies"
357
  msgstr ""
358
 
359
+ #: bbp-includes/bbp-reply-template.php:1674
360
+ msgid "Viewing %1$s replies - %2$s through %3$s (of %4$s total)"
 
 
 
361
  msgstr ""
362
 
363
+ #: bbp-includes/bbp-reply-template.php:1676
364
+ msgid "Viewing %1$s reply"
365
  msgstr ""
366
 
367
+ #: bbp-includes/bbp-reply-template.php:1683
368
+ msgid "Viewing post %1$s (of %2$s total)"
369
  msgstr ""
370
 
371
+ #: bbp-includes/bbp-reply-template.php:1685
372
+ msgid "Viewing %1$s posts"
 
373
  msgstr ""
374
 
375
+ #: bbp-includes/bbp-reply-template.php:1687
376
+ msgid "Viewing %1$s posts - %2$s through %3$s (of %4$s total)"
 
377
  msgstr ""
378
 
379
+ #: bbp-includes/bbp-reply-template.php:1689
380
+ msgid "Viewing %1$s post"
 
381
  msgstr ""
382
 
383
+ #: bbp-includes/bbp-common-template.php:843
384
+ msgid "No topics available"
 
385
  msgstr ""
386
 
387
+ #: bbp-includes/bbp-common-template.php:848
388
+ msgid "No forums available"
 
389
  msgstr ""
390
 
391
+ #: bbp-includes/bbp-common-template.php:853
392
+ msgid "None available"
 
 
 
393
  msgstr ""
394
 
395
+ #: bbp-includes/bbp-common-template.php:925
396
+ #: bbp-includes/bbp-common-template.php:942
397
+ #: bbp-includes/bbp-topic-functions.php:977
398
+ #: bbp-includes/bbp-topic-functions.php:1278
399
+ #: bbp-admin/importers/bbpress.php:1002
400
+ msgid "Reply To: %s"
401
  msgstr ""
402
 
403
+ #: bbp-includes/bbp-common-template.php:1273
404
+ msgid "Home"
405
  msgstr ""
406
 
407
+ #: bbp-includes/bbp-common-template.php:1343
408
+ msgid "&lsaquo;"
409
  msgstr ""
410
 
411
+ #: bbp-includes/bbp-common-template.php:1343
412
+ msgid "&rsaquo;"
413
  msgstr ""
414
 
415
+ #: bbp-includes/bbp-common-template.php:1564
416
+ msgid "Log Out"
417
  msgstr ""
418
 
419
+ #: bbp-includes/bbp-common-template.php:1618
420
+ msgid "Forum: %s"
 
 
421
  msgstr ""
422
 
423
+ #: bbp-includes/bbp-common-template.php:1622
424
+ msgid "Topic: %s"
425
  msgstr ""
426
 
427
+ #: bbp-includes/bbp-common-template.php:1640
428
+ msgid "Your Profile"
429
  msgstr ""
430
 
431
+ #: bbp-includes/bbp-common-template.php:1645
432
+ msgid "%s's Profile"
433
  msgstr ""
434
 
435
+ #: bbp-includes/bbp-common-template.php:1653
436
+ msgid "Edit Your Profile"
437
  msgstr ""
438
 
439
+ #: bbp-includes/bbp-common-template.php:1658
440
+ msgid "Edit %s's Profile"
441
  msgstr ""
442
 
443
+ #: bbp-includes/bbp-common-template.php:1665
444
+ msgid "View: %s"
445
  msgstr ""
446
 
447
+ #: bbp-includes/bbp-forum-template.php:507 bbp-admin/bbp-forums.php:452
448
+ msgid "No Topics"
449
  msgstr ""
450
 
451
+ #: bbp-includes/bbp-forum-template.php:1079
452
+ msgid "%s topic"
453
+ msgid_plural "%s topics"
454
+ msgstr[0] ""
455
+ msgstr[1] ""
456
 
457
+ #: bbp-includes/bbp-forum-template.php:1088
458
+ #: bbp-includes/bbp-topic-template.php:1629
459
+ msgid " + %d more"
460
  msgstr ""
461
 
462
+ #: bbp-includes/bbp-forum-template.php:1665
463
+ #: bbp-includes/bbp-topic-template.php:1620
464
+ msgid "%s reply"
465
+ msgid_plural "%s replies"
466
+ msgstr[0] ""
467
+ msgstr[1] ""
468
+
469
+ #: bbp-includes/bbp-forum-template.php:1675
470
+ msgid ""
471
+ "This category contains %1$s and %2$s, and was last updated by %3$s %4$s ago."
472
  msgstr ""
473
 
474
+ #: bbp-includes/bbp-forum-template.php:1679
475
+ msgid ""
476
+ "This forum contains %1$s and %2$s, and was last updated by %3$s %4$s ago."
477
  msgstr ""
478
 
479
+ #: bbp-includes/bbp-forum-template.php:1686
480
+ msgid "This category contains %1$s and %2$s."
481
  msgstr ""
482
 
483
+ #: bbp-includes/bbp-forum-template.php:1690
484
+ msgid "This forum contains %1$s and %2$s."
485
  msgstr ""
486
 
487
+ #: bbp-includes/bbp-forum-template.php:1764
488
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:45
489
+ #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:19
490
+ #: bbp-admin/bbp-topics.php:605 bbp-admin/bbp-forums.php:403 bbpress.php:612
491
+ #: bbpress.php:613
492
+ msgid "Topics"
493
  msgstr ""
494
 
495
+ #: bbp-includes/bbp-core-caps.php:31
496
+ msgid "Forum Moderator"
497
  msgstr ""
498
 
499
+ #: bbp-includes/bbp-common-functions.php:402
500
+ #: bbp-includes/bbp-common-functions.php:434
501
+ msgid "Private: %s"
502
  msgstr ""
503
 
504
+ #: bbp-includes/bbp-common-functions.php:403
505
+ #: bbp-includes/bbp-common-functions.php:435
506
+ msgid "Spammed: %s"
507
  msgstr ""
508
 
509
+ #: bbp-includes/bbp-common-functions.php:404
510
+ #: bbp-includes/bbp-common-functions.php:436
511
+ msgid "Trashed: %s"
512
  msgstr ""
513
 
514
+ #: bbp-includes/bbp-common-functions.php:637
515
+ msgid "<strong>ERROR</strong>: Invalid author name submitted!"
 
516
  msgstr ""
517
 
518
+ #: bbp-includes/bbp-common-functions.php:640
519
+ msgid "<strong>ERROR</strong>: Invalid email address submitted!"
520
  msgstr ""
521
 
522
+ #: bbp-includes/bbp-common-functions.php:823
523
+ msgid ""
524
+ "%1$s wrote:\n"
525
+ "\n"
526
+ "%2$s\n"
527
+ "\n"
528
+ "Post Link: %3$s\n"
529
+ "\n"
530
+ "You're getting this mail because you subscribed to the topic, visit the "
531
+ "topic and login to unsubscribe."
532
  msgstr ""
533
 
534
+ #: bbp-includes/bbp-core-akismet.php:271
535
+ msgid "%1$s reported this %2$s as spam"
536
  msgstr ""
537
 
538
+ #: bbp-includes/bbp-core-akismet.php:278
539
+ msgid "%1$s reported this %2$s as not spam"
540
  msgstr ""
541
 
542
+ #: bbp-includes/bbp-core-akismet.php:422
543
+ msgid "Akismet caught this post as spam"
544
  msgstr ""
545
 
546
+ #: bbp-includes/bbp-core-akismet.php:426 bbp-includes/bbp-core-akismet.php:440
547
+ msgid "Post status was changed to %s"
548
  msgstr ""
549
 
550
+ #: bbp-includes/bbp-core-akismet.php:433
551
+ msgid "Akismet cleared this post"
552
  msgstr ""
553
 
554
+ #: bbp-includes/bbp-core-akismet.php:447
555
  msgid ""
556
+ "Akismet was unable to check this post (response: %s), will automatically "
557
+ "retry again later."
558
  msgstr ""
559
 
560
+ #: bbp-includes/bbp-user-template.php:151
561
+ msgid "Anonymous"
562
  msgstr ""
563
 
564
+ #: bbp-includes/bbp-user-template.php:408
565
+ msgid "Admin"
566
  msgstr ""
567
 
568
+ #: bbp-includes/bbp-user-template.php:541
569
+ #: bbp-themes/bbp-twentyten/functions.php:235
570
+ msgid "Add this topic to your favorites"
571
  msgstr ""
572
 
573
+ #: bbp-includes/bbp-user-template.php:542
574
+ msgid " (%?%)"
 
 
575
  msgstr ""
576
 
577
+ #: bbp-includes/bbp-user-template.php:548
578
+ msgid "This topic is one of your %favorites% ["
579
  msgstr ""
580
 
581
+ #: bbp-includes/bbp-user-template.php:549
582
+ #: bbp-themes/bbp-twentyten/functions.php:234
583
+ msgid "&times;"
584
  msgstr ""
585
 
586
+ #: bbp-includes/bbp-user-template.php:550
587
+ msgid "]"
 
588
  msgstr ""
589
 
590
+ #: bbp-includes/bbp-user-template.php:648
591
+ #: bbp-themes/bbp-twentyten/functions.php:241
592
+ msgid "Subscribe"
 
 
593
  msgstr ""
594
 
595
+ #: bbp-includes/bbp-user-template.php:649
596
+ #: bbp-themes/bbp-twentyten/functions.php:242
597
+ msgid "Unsubscribe"
598
  msgstr ""
599
 
600
+ #: bbp-includes/bbp-user-template.php:705
601
+ msgid "User updated."
602
  msgstr ""
603
 
604
+ #: bbp-includes/bbp-user-template.php:729
605
+ msgid "You have super admin privileges."
606
  msgstr ""
607
 
608
+ #: bbp-includes/bbp-user-template.php:729
609
+ msgid "This user has super admin privileges."
 
 
610
  msgstr ""
611
 
612
+ #: bbp-includes/bbp-user-template.php:794
613
+ msgid "&mdash; No role for this site &mdash;"
614
  msgstr ""
615
 
616
+ #: bbp-includes/bbp-user-template.php:843
617
+ msgid "You are now logged out."
618
  msgstr ""
619
 
620
+ #: bbp-includes/bbp-user-template.php:847
621
+ msgid "New user registration is currently not allowed."
622
  msgstr ""
623
 
624
+ #: bbp-includes/bbp-user-template.php:856
625
+ msgid "Check your e-mail for the confirmation link."
 
 
626
  msgstr ""
627
 
628
+ #: bbp-includes/bbp-user-template.php:861
629
+ msgid "Check your e-mail for your new password."
 
 
 
630
  msgstr ""
631
 
632
+ #: bbp-includes/bbp-user-template.php:866
633
+ msgid "Registration complete. Please check your e-mail."
 
634
  msgstr ""
635
 
636
+ #: bbp-includes/bbp-topic-template.php:1578 bbp-admin/bbp-topics.php:698
637
+ msgid "No Replies"
 
638
  msgstr ""
639
 
640
+ #: bbp-includes/bbp-topic-template.php:1787
641
+ msgid "Tagged:"
 
 
642
  msgstr ""
643
 
644
+ #: bbp-includes/bbp-topic-template.php:2147 bbp-admin/bbp-topics.php:754
645
+ msgid "Close"
646
  msgstr ""
647
 
648
+ #: bbp-includes/bbp-topic-template.php:2148 bbp-admin/bbp-metaboxes.php:269
649
+ #: bbp-admin/bbp-topics.php:756
650
+ msgid "Open"
651
  msgstr ""
652
 
653
+ #: bbp-includes/bbp-topic-template.php:2208 bbp-admin/bbp-topics.php:768
654
+ msgid "Stick"
655
  msgstr ""
656
 
657
+ #: bbp-includes/bbp-topic-template.php:2209 bbp-admin/bbp-topics.php:765
658
+ msgid "Unstick"
659
  msgstr ""
660
 
661
+ #: bbp-includes/bbp-topic-template.php:2210 bbp-admin/bbp-topics.php:768
662
+ msgid "to front"
 
663
  msgstr ""
664
 
665
+ #: bbp-includes/bbp-topic-template.php:2277
666
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:59
667
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:73
668
+ msgid "Merge"
669
  msgstr ""
670
 
671
+ #: bbp-includes/bbp-topic-template.php:2390
672
+ msgid "Viewing topic %1$s (of %2$s total)"
 
673
  msgstr ""
674
 
675
+ #: bbp-includes/bbp-topic-template.php:2392
676
+ msgid "Viewing %1$s topics"
 
677
  msgstr ""
678
 
679
+ #: bbp-includes/bbp-topic-template.php:2394
680
+ msgid "Viewing %1$s topics - %2$s through %3$s (of %4$s total)"
681
  msgstr ""
682
 
683
+ #: bbp-includes/bbp-topic-template.php:2396
684
+ msgid "Viewing %1$s topic"
 
 
685
  msgstr ""
686
 
687
+ #: bbp-includes/bbp-topic-template.php:2456
688
+ msgid "This topic is marked as spam."
 
689
  msgstr ""
690
 
691
+ #: bbp-includes/bbp-topic-template.php:2461
692
+ msgid "This topic is in the trash."
693
  msgstr ""
694
 
695
+ #: bbp-includes/bbp-topic-template.php:2497
696
+ msgid "Normal"
697
  msgstr ""
698
 
699
+ #: bbp-includes/bbp-topic-template.php:2498
700
+ msgid "Sticky"
 
 
701
  msgstr ""
702
 
703
+ #: bbp-includes/bbp-topic-template.php:2499
704
+ msgid "Super Sticky"
705
  msgstr ""
706
 
707
+ #: bbp-includes/bbp-topic-template.php:2621
708
+ msgid "%s voice"
709
+ msgid_plural "%s voices"
710
+ msgstr[0] ""
711
+ msgstr[1] ""
712
+
713
+ #: bbp-includes/bbp-topic-template.php:2626
714
  msgid ""
715
+ "This topic has %1$s, contains %2$s, and was last updated by %3$s %4$s ago."
 
716
  msgstr ""
717
 
718
+ #: bbp-includes/bbp-topic-template.php:2630
719
+ msgid "This topic has %1$s, contains %2$s."
720
  msgstr ""
721
 
722
+ #: bbp-includes/bbp-topic-functions.php:79
723
  msgid ""
724
+ "<strong>ERROR</strong>: You do not have permission to create new topics."
 
 
725
  msgstr ""
726
 
727
+ #: bbp-includes/bbp-topic-functions.php:103
728
+ #: bbp-includes/bbp-topic-functions.php:409
729
+ msgid "<strong>ERROR</strong>: Your topic needs a title."
730
  msgstr ""
731
 
732
+ #: bbp-includes/bbp-topic-functions.php:115
733
+ #: bbp-includes/bbp-topic-functions.php:421
734
+ msgid "<strong>ERROR</strong>: Your topic cannot be empty."
735
  msgstr ""
736
 
737
+ #: bbp-includes/bbp-topic-functions.php:132
738
+ msgid ""
739
+ "<strong>ERROR</strong>: This forum is a category. No topics can be created "
740
+ "in this forum."
741
  msgstr ""
742
 
743
+ #: bbp-includes/bbp-topic-functions.php:136
744
+ #: bbp-includes/bbp-topic-functions.php:388
745
+ msgid "<strong>ERROR</strong>: This forum has been closed to new topics."
746
  msgstr ""
747
 
748
+ #: bbp-includes/bbp-topic-functions.php:140
749
+ #: bbp-includes/bbp-topic-functions.php:392
750
+ msgid ""
751
+ "<strong>ERROR</strong>: This forum is private and you do not have the "
752
+ "capability to read or create new topics in it."
753
  msgstr ""
754
 
755
+ #: bbp-includes/bbp-topic-functions.php:144
756
+ #: bbp-includes/bbp-topic-functions.php:396
757
+ msgid ""
758
+ "<strong>ERROR</strong>: This forum is hidden and you do not have the "
759
+ "capability to read or create new topics in it."
760
  msgstr ""
761
 
762
+ #: bbp-includes/bbp-topic-functions.php:155
763
+ msgid ""
764
+ "<strong>ERROR</strong>: Duplicate topic detected; it looks as though "
765
+ "you&#8217;ve already said that!"
766
  msgstr ""
767
 
768
+ #: bbp-includes/bbp-topic-functions.php:331
769
+ #: bbp-includes/bbp-topic-functions.php:844
770
+ msgid "<strong>ERROR</strong>: Topic ID not found."
 
 
771
  msgstr ""
772
 
773
+ #: bbp-includes/bbp-topic-functions.php:339
774
+ msgid "<strong>ERROR</strong>: The topic you want to edit was not found."
 
 
 
775
  msgstr ""
776
 
777
+ #: bbp-includes/bbp-topic-functions.php:352
778
+ msgid "<strong>ERROR</strong>: You do not have permission to edit that topic."
779
  msgstr ""
780
 
781
+ #: bbp-includes/bbp-topic-functions.php:384
782
+ msgid ""
783
+ "<strong>ERROR</strong>: This forum is a category. No topics can be created "
784
+ "in it."
785
  msgstr ""
786
 
787
+ #: bbp-includes/bbp-topic-functions.php:853
788
+ msgid "<strong>ERROR</strong>: The topic you want to merge was not found."
789
  msgstr ""
790
 
791
+ #: bbp-includes/bbp-topic-functions.php:857
792
+ #: bbp-includes/bbp-topic-functions.php:1132
793
+ msgid ""
794
+ "<strong>ERROR</strong>: You do not have the permissions to edit the source "
795
+ "topic."
796
  msgstr ""
797
 
798
+ #: bbp-includes/bbp-topic-functions.php:863
799
+ msgid "<strong>ERROR</strong>: Destination topic ID not found."
800
  msgstr ""
801
 
802
+ #: bbp-includes/bbp-topic-functions.php:869
803
+ msgid "<strong>ERROR</strong>: The topic you want to merge to was not found."
 
804
  msgstr ""
805
 
806
+ #: bbp-includes/bbp-topic-functions.php:873
807
+ msgid ""
808
+ "<strong>ERROR</strong>: You do not have the permissions to edit the "
809
+ "destination topic."
810
  msgstr ""
811
 
812
+ #: bbp-includes/bbp-topic-functions.php:1108
813
+ msgid "<strong>ERROR</strong>: Reply ID to split the topic from not found!"
814
  msgstr ""
815
 
816
+ #: bbp-includes/bbp-topic-functions.php:1116
817
+ msgid "<strong>ERROR</strong>: The reply you want to split from was not found."
818
  msgstr ""
819
 
820
+ #: bbp-includes/bbp-topic-functions.php:1125
821
+ msgid "<strong>ERROR</strong>: The topic you want to split was not found."
 
822
  msgstr ""
823
 
824
+ #: bbp-includes/bbp-topic-functions.php:1141
825
+ msgid "<strong>ERROR</strong>: You need to choose a valid split option."
 
826
  msgstr ""
827
 
828
+ #: bbp-includes/bbp-topic-functions.php:1154
829
+ msgid "<strong>ERROR</strong>: Destination topic ID not found!"
 
830
  msgstr ""
831
 
832
+ #: bbp-includes/bbp-topic-functions.php:1163
833
+ msgid "<strong>ERROR</strong>: The topic you want to split to was not found!"
834
  msgstr ""
835
 
836
+ #: bbp-includes/bbp-topic-functions.php:1167
837
  msgid ""
838
+ "<strong>ERROR</strong>: You do not have the permissions to edit the "
839
+ "destination topic!"
840
  msgstr ""
841
 
842
+ #: bbp-includes/bbp-topic-functions.php:1204
843
  msgid ""
844
+ "<strong>ERROR</strong>: There was a problem converting the reply into the "
845
+ "topic. Please try again."
846
  msgstr ""
847
 
848
+ #: bbp-includes/bbp-topic-functions.php:1208
849
  msgid ""
850
+ "<strong>ERROR</strong>: You do not have the permissions to create new "
851
+ "topics. The reply could not be converted into a topic."
 
 
852
  msgstr ""
853
 
854
+ #: bbp-includes/bbp-topic-functions.php:1395
855
+ msgid ""
856
+ "<strong>ERROR</strong>: The following problem(s) have been found while "
857
+ "getting the tag: %s"
858
  msgstr ""
859
 
860
+ #: bbp-includes/bbp-topic-functions.php:1410
861
+ #: bbp-includes/bbp-topic-functions.php:1446
862
+ msgid ""
863
+ "<strong>ERROR</strong>: You do not have the permissions to edit the topic "
864
+ "tags."
865
  msgstr ""
866
 
867
+ #: bbp-includes/bbp-topic-functions.php:1416
868
+ #: bbp-includes/bbp-topic-functions.php:1452
869
+ msgid "<strong>ERROR</strong>: You need to enter a tag name."
870
  msgstr ""
871
 
872
+ #: bbp-includes/bbp-topic-functions.php:1426
873
+ msgid ""
874
+ "<strong>ERROR</strong>: The following problem(s) have been found while "
875
+ "updating the tag: %s"
876
  msgstr ""
877
 
878
+ #: bbp-includes/bbp-topic-functions.php:1462
879
+ #: bbp-includes/bbp-topic-functions.php:1480
880
+ msgid ""
881
+ "<strong>ERROR</strong>: The following problem(s) have been found while "
882
+ "merging the tags: %s"
883
  msgstr ""
884
 
885
+ #: bbp-includes/bbp-topic-functions.php:1471
886
+ msgid ""
887
+ "<strong>ERROR</strong>: The tags which are being merged can not be the same."
888
  msgstr ""
889
 
890
+ #: bbp-includes/bbp-topic-functions.php:1500
891
+ msgid ""
892
+ "<strong>ERROR</strong>: You do not have the permissions to delete the topic "
893
+ "tags."
894
  msgstr ""
895
 
896
+ #: bbp-includes/bbp-topic-functions.php:1509
897
+ msgid ""
898
+ "<strong>ERROR</strong>: The following problem(s) have been found while "
899
+ "deleting the tag: %s"
900
  msgstr ""
901
 
902
+ #: bbp-includes/bbp-topic-functions.php:1619
903
+ msgid "<strong>ERROR:</strong> You do not have the permission to do that."
904
  msgstr ""
905
 
906
+ #: bbp-includes/bbp-topic-functions.php:1632
907
+ msgid "<strong>ERROR</strong>: There was a problem closing the topic."
 
908
  msgstr ""
909
 
910
+ #: bbp-includes/bbp-topic-functions.php:1632
911
+ msgid "<strong>ERROR</strong>: There was a problem opening the topic."
912
  msgstr ""
913
 
914
+ #: bbp-includes/bbp-topic-functions.php:1643
915
+ msgid "<strong>ERROR</strong>: There was a problem unsticking the topic."
916
  msgstr ""
917
 
918
+ #: bbp-includes/bbp-topic-functions.php:1643
919
+ msgid "<strong>ERROR</strong>: There was a problem sticking the topic."
920
  msgstr ""
921
 
922
+ #: bbp-includes/bbp-topic-functions.php:1653
923
+ msgid ""
924
+ "<strong>ERROR</strong>: There was a problem unmarking the topic as spam."
925
  msgstr ""
926
 
927
+ #: bbp-includes/bbp-topic-functions.php:1653
928
+ msgid "<strong>ERROR</strong>: There was a problem marking the topic as spam."
929
  msgstr ""
930
 
931
+ #: bbp-includes/bbp-topic-functions.php:1670
932
+ msgid "<strong>ERROR</strong>: There was a problem trashing the topic."
933
  msgstr ""
934
 
935
+ #: bbp-includes/bbp-topic-functions.php:1678
936
+ msgid "<strong>ERROR</strong>: There was a problem untrashing the topic."
937
  msgstr ""
938
 
939
+ #: bbp-includes/bbp-topic-functions.php:1686
940
+ msgid "<strong>ERROR</strong>: There was a problem deleting the topic."
941
  msgstr ""
942
 
943
+ #: bbp-includes/bbp-topic-functions.php:2631 bbpress.php:615
944
+ msgid "All Topics"
945
  msgstr ""
946
 
947
+ #: bbp-includes/bbp-user-functions.php:368
948
+ #: bbp-includes/bbp-user-functions.php:637
949
+ msgid ""
950
+ "<strong>ERROR</strong>: You don't have the permission to edit favorites of "
951
+ "that user!"
952
  msgstr ""
953
 
954
+ #: bbp-includes/bbp-user-functions.php:372
955
  msgid ""
956
+ "<strong>ERROR</strong>: No topic was found! Which topic are you marking/"
957
+ "unmarking as favorite?"
958
  msgstr ""
959
 
960
+ #: bbp-includes/bbp-user-functions.php:401
961
+ msgid ""
962
+ "<strong>ERROR</strong>: There was a problem removing that topic from "
963
+ "favorites!"
964
  msgstr ""
965
 
966
+ #: bbp-includes/bbp-user-functions.php:403
967
+ msgid "<strong>ERROR</strong>: There was a problem favoriting that topic!"
968
  msgstr ""
969
 
970
+ #: bbp-includes/bbp-user-functions.php:641
971
  msgid ""
972
+ "<strong>ERROR</strong>: No topic was found! Which topic are you subscribing/"
973
+ "unsubscribing to?"
974
  msgstr ""
975
 
976
+ #: bbp-includes/bbp-user-functions.php:669
977
+ msgid ""
978
+ "<strong>ERROR</strong>: There was a problem unsubscribing from that topic!"
 
979
  msgstr ""
980
 
981
+ #: bbp-includes/bbp-user-functions.php:671
982
+ msgid "<strong>ERROR</strong>: There was a problem subscribing to that topic!"
983
  msgstr ""
984
 
985
+ #: bbp-includes/bbp-user-functions.php:744
986
+ msgid ""
987
+ "What are you doing here? You do not have the permission to edit this user."
988
  msgstr ""
989
 
990
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:29
991
+ msgid "<p>Here are the statistics and popular topics of our forums.</p>"
992
  msgstr ""
993
 
994
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:35
995
+ msgid "Registered Users"
996
  msgstr ""
997
 
998
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:40
999
+ #: bbp-admin/bbp-admin.php:171 bbpress.php:555 bbpress.php:556
1000
+ msgid "Forums"
1001
  msgstr ""
1002
 
1003
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:55 bbpress.php:811
1004
+ msgid "Topic Tags"
 
1005
  msgstr ""
1006
 
1007
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:62
1008
+ msgid "Empty Topic Tags"
 
1009
  msgstr ""
1010
 
1011
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:71
1012
+ msgid "Hidden Topics"
 
1013
  msgstr ""
1014
 
1015
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:82
1016
+ msgid "Hidden Replies"
1017
  msgstr ""
1018
 
1019
+ #: bbp-themes/bbp-twentyten/page-forum-statistics.php:101
1020
+ msgid "Popular Topics"
1021
  msgstr ""
1022
 
1023
+ #: bbp-themes/bbp-twentyten/functions.php:230
1024
+ msgid "favorites"
 
 
1025
  msgstr ""
1026
 
1027
+ #: bbp-themes/bbp-twentyten/functions.php:231
1028
+ msgid "?"
 
1029
  msgstr ""
1030
 
1031
+ #: bbp-themes/bbp-twentyten/functions.php:232
1032
+ msgid "This topic is one of your %favLinkYes% [%favDel%]"
 
1033
  msgstr ""
1034
 
1035
+ #: bbp-themes/bbp-twentyten/functions.php:233
1036
+ msgid "%favAdd% (%favLinkNo%)"
 
1037
  msgstr ""
1038
 
1039
+ #: bbp-themes/bbp-twentyten/bbpress/user-details.php:14
1040
+ msgid "Profile: %s"
1041
  msgstr ""
1042
 
1043
+ #: bbp-themes/bbp-twentyten/bbpress/user-details.php:18
1044
+ msgid "Edit Profile of User %s"
1045
  msgstr ""
1046
 
1047
+ #: bbp-themes/bbp-twentyten/bbpress/user-details.php:18
1048
+ msgid "(Edit)"
 
 
 
 
 
 
 
 
1049
  msgstr ""
1050
 
1051
+ #: bbp-themes/bbp-twentyten/bbpress/user-details.php:31
1052
+ msgid "About %s"
 
 
1053
  msgstr ""
1054
 
1055
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:22
1056
+ msgid "Split topic \"%s\""
 
 
1057
  msgstr ""
1058
 
1059
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:27
1060
+ msgid ""
1061
+ "When you split a topic, you are slicing it in half starting with the reply "
1062
+ "you just selected. Choose to use that reply as a new topic with a new title, "
1063
+ "or merge those replies into an existing topic."
1064
  msgstr ""
1065
 
1066
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:31
1067
+ msgid ""
1068
+ "If you use the existing topic option, replies within both topics will be "
1069
+ "merged chronologically. The order of the merged replies is based on the time "
1070
+ "and date they were posted."
1071
  msgstr ""
1072
 
1073
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:35
1074
+ msgid "Split Method"
 
 
1075
  msgstr ""
1076
 
1077
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:39
1078
+ msgid "New topic in <strong>%s</strong> titled:"
 
1079
  msgstr ""
1080
 
1081
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:40
1082
+ msgid "Split: %s"
 
 
1083
  msgstr ""
1084
 
1085
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:47
1086
+ msgid "Use an existing topic in this forum:"
 
1087
  msgstr ""
1088
 
1089
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:56
1090
+ msgid "No other topics found!"
 
 
1091
  msgstr ""
1092
 
1093
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:67
1094
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:63
1095
+ msgid "Topic Extras"
1096
  msgstr ""
1097
 
1098
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:74
1099
+ msgid "Copy subscribers to the new topic"
 
 
1100
  msgstr ""
1101
 
1102
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:79
1103
+ msgid "Copy favoriters to the new topic"
 
1104
  msgstr ""
1105
 
1106
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:82
1107
+ msgid "Copy topic tags to the new topic"
1108
  msgstr ""
1109
 
1110
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:88
1111
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:84
1112
+ msgid "<strong>WARNING:</strong> This process cannot be undone."
1113
  msgstr ""
1114
 
1115
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:92
1116
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:120
1117
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:88
1118
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:154
1119
+ msgid "Submit"
1120
  msgstr ""
1121
 
1122
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:105
1123
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:101
1124
+ msgid "You do not have the permissions to edit this topic!"
1125
  msgstr ""
1126
 
1127
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-split.php:105
1128
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:101
1129
+ msgid "You cannot edit this topic."
1130
  msgstr ""
1131
 
1132
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:29
1133
+ msgid "Reply to: &ldquo;%s&rdquo;"
1134
  msgstr ""
1135
 
1136
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:34
1137
+ msgid ""
1138
+ "This topic is marked as closed to new replies, however your posting "
1139
+ "capabilities still allow you to do so."
1140
  msgstr ""
1141
 
1142
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:42
1143
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:57
1144
+ msgid "Your account has the ability to post unrestricted HTML content."
1145
  msgstr ""
1146
 
1147
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:60
1148
+ msgid "Reply:"
1149
  msgstr ""
1150
 
1151
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:67
1152
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:86
1153
+ msgid ""
1154
+ "You may use these <abbr title=\"HyperText Markup Language\">HTML</abbr> tags "
1155
+ "and attributes:"
1156
  msgstr ""
1157
 
1158
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:74
1159
+ msgid "Tags:"
1160
  msgstr ""
1161
 
1162
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:86
1163
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:125
1164
+ msgid "Notify the author of follow-up replies via email"
1165
  msgstr ""
1166
 
1167
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:90
1168
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:129
1169
+ msgid "Notify me of follow-up replies via email"
1170
  msgstr ""
1171
 
1172
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:101
1173
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:139
1174
+ msgid "Revision"
 
1175
  msgstr ""
1176
 
1177
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:104
1178
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:142
1179
+ msgid "Keep a log of this edit:"
1180
  msgstr ""
1181
 
1182
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:108
1183
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:146
1184
+ msgid "Optional reason for editing:"
1185
  msgstr ""
1186
 
1187
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:134
1188
+ msgid "You cannot reply to this topic."
1189
  msgstr ""
1190
 
1191
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:134
1192
+ msgid "You must be logged in to reply to this topic."
1193
  msgstr ""
1194
 
1195
+ #: bbp-themes/bbp-twentyten/bbpress/form-reply.php:144
1196
+ msgid "This topic has been closed to new replies."
1197
  msgstr ""
1198
 
1199
+ #: bbp-themes/bbp-twentyten/bbpress/feedback-logged-in.php:13
1200
+ msgid "You are already logged in."
 
 
1201
  msgstr ""
1202
 
1203
+ #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:15
1204
+ msgid "Author information"
1205
  msgstr ""
1206
 
1207
+ #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:15
1208
+ msgid "Your information:"
1209
  msgstr ""
1210
 
1211
+ #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:17
1212
+ msgid "Name (required):"
1213
  msgstr ""
1214
 
1215
+ #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:22
1216
+ msgid "Mail (will not be published) (required):"
1217
  msgstr ""
1218
 
1219
+ #: bbp-themes/bbp-twentyten/bbpress/form-anonymous.php:27
1220
+ msgid "Website:"
1221
  msgstr ""
1222
 
1223
+ #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:20
1224
+ msgid "Subscribed Forum Topics"
 
 
1225
  msgstr ""
1226
 
1227
+ #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:31
1228
+ msgid "You are not currently subscribed to any topics."
1229
  msgstr ""
1230
 
1231
+ #: bbp-themes/bbp-twentyten/bbpress/user-subscriptions.php:31
1232
+ msgid "This user is not currently subscribed to any topics."
1233
  msgstr ""
1234
 
1235
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:14
1236
+ msgid "Lost Password"
1237
  msgstr ""
1238
 
1239
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:18
1240
+ msgid "Username or Email"
1241
  msgstr ""
1242
 
1243
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-lost-pass.php:27
1244
+ msgid "Reset my password"
1245
+ msgstr ""
 
 
 
1246
 
1247
+ #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:18
1248
+ #: bbp-admin/bbp-replies.php:538 bbp-admin/bbp-metaboxes.php:52
1249
+ #: bbp-admin/bbp-metaboxes.php:256 bbp-admin/bbp-metaboxes.php:364
1250
+ #: bbp-admin/bbp-metaboxes.php:367 bbp-admin/bbp-metaboxes.php:407
1251
+ #: bbp-admin/bbp-metaboxes.php:410 bbp-admin/bbp-topics.php:606
1252
+ #: bbp-admin/bbp-forums.php:402 bbpress.php:557
1253
+ msgid "Forum"
1254
  msgstr ""
1255
 
1256
+ #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:20
1257
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:19
1258
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:22
1259
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:45
1260
+ #: bbp-admin/bbp-settings.php:536
1261
+ msgid "Posts"
1262
  msgstr ""
1263
 
1264
+ #: bbp-themes/bbp-twentyten/bbpress/loop-forums.php:21
1265
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:20
1266
+ #: bbp-admin/bbp-topics.php:611 bbp-admin/bbp-forums.php:407
1267
+ msgid "Freshness"
1268
  msgstr ""
1269
 
1270
+ #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:16
1271
+ msgid "Forum Topics Created"
 
1272
  msgstr ""
1273
 
1274
+ #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:27
1275
+ msgid "You have not created any topics."
1276
  msgstr ""
1277
 
1278
+ #: bbp-themes/bbp-twentyten/bbpress/user-topics-created.php:27
1279
+ msgid "This user has not created any topics."
1280
  msgstr ""
1281
 
1282
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:14
1283
+ msgid "Create an Account"
1284
  msgstr ""
1285
 
1286
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:17
1287
+ msgid "Your username must be unique, and cannot be changed later."
1288
  msgstr ""
1289
 
1290
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:18
1291
+ msgid ""
1292
+ "We use your email address to email you a secure password and verify your "
1293
+ "account."
1294
  msgstr ""
1295
 
1296
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:28
1297
+ msgid "Email Address"
1298
  msgstr ""
1299
 
1300
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-register.php:36
1301
+ msgid "Register"
1302
  msgstr ""
1303
 
1304
+ #: bbp-themes/bbp-twentyten/bbpress/form-protected.php:16
1305
+ msgid "Protected"
1306
  msgstr ""
1307
 
1308
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:17
1309
+ #: bbp-themes/bbp-twentyten/bbpress/content-single-topic-lead.php:18
1310
+ #: bbp-admin/bbp-replies.php:539 bbp-admin/bbp-metaboxes.php:69
1311
+ #: bbp-admin/bbp-metaboxes.php:432 bbp-admin/bbp-metaboxes.php:435
1312
+ #: bbpress.php:614
1313
+ msgid "Topic"
1314
  msgstr ""
1315
 
1316
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:18
1317
+ #: bbp-admin/bbp-topics.php:608
1318
+ msgid "Voices"
1319
  msgstr ""
1320
 
1321
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:21
1322
+ msgid "Remove"
1323
  msgstr ""
1324
 
1325
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:42
1326
+ msgid "Started by: %1$s"
1327
  msgstr ""
1328
 
1329
+ #: bbp-themes/bbp-twentyten/bbpress/loop-topics.php:46
1330
+ msgid "in: <a href=\"%1$s\">%2$s</a>"
1331
+ msgstr ""
 
 
1332
 
1333
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:22
1334
+ msgid "Merge topic \"%s\""
1335
+ msgstr ""
1336
+
1337
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:27
1338
  msgid ""
1339
+ "Select the topic to merge this one into. The destination topic will remain "
1340
+ "the lead topic, and this one will change into a reply."
1341
  msgstr ""
1342
 
1343
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:28
1344
+ msgid ""
1345
+ "To keep this topic as the lead, go to the other topic and use the merge tool "
1346
+ "from there instead."
1347
  msgstr ""
1348
 
1349
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:32
1350
+ msgid ""
1351
+ "All replies within both topics will be merged chronologically. The order of "
1352
+ "the merged replies is based on the time and date they were posted. If the "
1353
+ "destination topic was created after this one, it's post date will be updated "
1354
+ "to second earlier than this one."
1355
  msgstr ""
1356
 
1357
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:36
1358
+ msgid "Destination"
1359
  msgstr ""
1360
 
1361
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:40
1362
+ msgid "Merge with this topic:"
1363
  msgstr ""
1364
 
1365
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:49
1366
+ msgid "No topics were found to which the topic could be merged to!"
 
 
 
 
1367
  msgstr ""
1368
 
1369
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:55
1370
+ msgid "There are no other topics in this forum to merge with."
1371
  msgstr ""
1372
 
1373
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:70
1374
+ msgid "Merge topic subscribers"
1375
  msgstr ""
1376
 
1377
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:75
1378
+ msgid "Merge topic favoriters"
1379
  msgstr ""
1380
 
1381
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php:78
1382
+ msgid "Merge topic tags"
1383
  msgstr ""
1384
 
1385
+ #: bbp-themes/bbp-twentyten/bbpress/content-single-topic-lead.php:15
1386
+ #: bbp-admin/bbp-forums.php:405
1387
+ msgid "Creator"
1388
  msgstr ""
1389
 
1390
+ #: bbp-themes/bbp-twentyten/bbpress/content-single-topic-lead.php:43
1391
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:64
1392
+ msgid "%1$s at %2$s"
1393
  msgstr ""
1394
 
1395
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:18
1396
+ msgid "Manage Tag: \"%s\""
1397
  msgstr ""
1398
 
1399
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:22
1400
+ msgid "Rename"
1401
  msgstr ""
1402
 
1403
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:25
1404
+ msgid "Leave the slug empty to have one automatically generated."
1405
  msgstr ""
1406
 
1407
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:29
1408
+ msgid ""
1409
+ "Changing the slug affects its permalink. Any links to the old slug will stop "
1410
+ "working."
1411
  msgstr ""
1412
 
1413
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:35
1414
+ msgid "Name:"
 
 
1415
  msgstr ""
1416
 
1417
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:40
1418
+ msgid "Slug:"
1419
  msgstr ""
1420
 
1421
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:45
1422
+ msgid "Update"
 
1423
  msgstr ""
1424
 
1425
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:62
1426
+ msgid "Merging tags together cannot be undone."
 
1427
  msgstr ""
1428
 
1429
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:68
1430
+ msgid "Existing tag:"
 
 
1431
  msgstr ""
1432
 
1433
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:74
 
1434
  msgid ""
1435
+ "Are you sure you want to merge the \"%s\" tag into the tag you specified?"
 
 
 
 
1436
  msgstr ""
1437
 
1438
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:92
1439
+ msgid "This does not delete your topics. Only the tag itself is deleted."
1440
  msgstr ""
1441
 
1442
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:95
1443
+ msgid "Deleting a tag cannot be undone."
1444
  msgstr ""
1445
 
1446
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:96
1447
+ msgid "Any links to this tag will no longer function."
 
 
1448
  msgstr ""
1449
 
1450
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic-tag.php:103
1451
  msgid ""
1452
+ "Are you sure you want to delete the \"%s\" tag? This is permanent and cannot "
1453
+ "be undone."
1454
  msgstr ""
1455
 
1456
+ #: bbp-themes/bbp-twentyten/bbpress/feedback-no-topics.php:13
1457
+ msgid "Oh bother! No topics were found here!"
 
 
1458
  msgstr ""
1459
 
1460
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:17
1461
+ #: bbp-themes/bbp-twentyten/bbpress/loop-replies.php:40
1462
+ #: bbp-themes/bbp-twentyten/single-reply.php:31 bbp-admin/bbp-replies.php:540
1463
+ #: bbp-admin/bbp-topics.php:609
1464
+ msgid "Author"
1465
  msgstr ""
1466
 
1467
+ #: bbp-themes/bbp-twentyten/bbpress/user-posts.php:14
1468
+ msgid "Blog Posts"
1469
  msgstr ""
1470
 
1471
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:39
1472
+ msgid "Edit topic \"%s\""
 
1473
  msgstr ""
1474
 
1475
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:41
1476
+ msgid "Create new topic in: &ldquo;%s&rdquo;"
1477
  msgstr ""
1478
 
1479
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:41
1480
+ msgid "Create new topic"
1481
  msgstr ""
1482
 
1483
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:49
1484
+ msgid ""
1485
+ "This forum is marked as closed to new topics, however your posting "
1486
+ "capabilities still allow you to do so."
1487
  msgstr ""
1488
 
1489
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:74
1490
+ msgid "Topic Title (Maximum Length: %d):"
1491
  msgstr ""
1492
 
1493
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:79
1494
+ msgid "Topic Description:"
1495
  msgstr ""
1496
 
1497
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:93
1498
+ msgid "Topic Tags:"
1499
  msgstr ""
1500
 
1501
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:100 bbpress.php:626
1502
+ msgid "Forum:"
 
1503
  msgstr ""
1504
 
1505
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:110
1506
+ msgid "Topic Type:"
1507
  msgstr ""
1508
 
1509
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:168
1510
+ msgid "This forum is closed to new topics."
1511
  msgstr ""
1512
 
1513
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:176
1514
+ msgid "You cannot create new topics at this time."
1515
  msgstr ""
1516
 
1517
+ #: bbp-themes/bbp-twentyten/bbpress/form-topic.php:176
1518
+ msgid "You must be logged in to create new topics."
1519
  msgstr ""
1520
 
1521
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:14
1522
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:19
1523
+ #: bbp-admin/bbp-metaboxes.php:466 bbp-admin/bbp-metaboxes.php:469
1524
+ msgid "Name"
1525
  msgstr ""
1526
 
1527
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:24
1528
+ msgid "First Name"
1529
  msgstr ""
1530
 
1531
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:29
1532
+ msgid "Last Name"
1533
  msgstr ""
1534
 
1535
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:34
1536
+ msgid "Nickname"
1537
  msgstr ""
1538
 
1539
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:39
1540
+ msgid "Display name publicly as"
1541
  msgstr ""
1542
 
1543
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:49
1544
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:52
1545
+ msgid "Contact Info"
1546
  msgstr ""
1547
 
1548
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:57
1549
+ #: bbp-admin/bbp-metaboxes.php:480 bbp-admin/bbp-metaboxes.php:483
1550
+ msgid "Website"
1551
  msgstr ""
1552
 
1553
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:74
1554
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:77
1555
+ msgid "About Yourself"
1556
  msgstr ""
1557
 
1558
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:74
1559
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:77
1560
+ msgid "About the user"
1561
  msgstr ""
1562
 
1563
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:82
1564
+ msgid "Biographical Info"
1565
  msgstr ""
1566
 
1567
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:84
 
1568
  msgid ""
1569
+ "Share a little biographical information to fill out your profile. This may "
1570
+ "be shown publicly."
1571
  msgstr ""
1572
 
1573
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:91
1574
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:94
1575
+ msgid "Account"
 
1576
  msgstr ""
1577
 
1578
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:101
1579
+ msgid "Usernames cannot be changed."
 
 
1580
  msgstr ""
1581
 
1582
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:105
1583
+ msgid "E-mail"
1584
  msgstr ""
1585
 
1586
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:117
1587
  msgid ""
1588
+ "There is a pending email address change to <code>%1$s</code>. <a href=\"%2$s"
1589
+ "\">Cancel</a>"
1590
  msgstr ""
1591
 
1592
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:126
1593
+ msgid "New Password"
1594
+ msgstr ""
1595
+
1596
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:129
1597
  msgid ""
1598
+ "If you would like to change the password type a new one. Otherwise leave "
1599
+ "this blank."
1600
  msgstr ""
1601
 
1602
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:132
1603
+ msgid "Type your new password again."
1604
  msgstr ""
1605
 
1606
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:135
1607
  msgid ""
1608
+ "Hint: The password should be at least seven characters long. To make it "
1609
+ "stronger, use upper and lower case letters, numbers and symbols like ! \" ? "
1610
+ "$ % ^ &amp; )."
1611
  msgstr ""
1612
 
1613
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:142
1614
+ msgid "Role:"
 
1615
  msgstr ""
1616
 
1617
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:153
1618
+ msgid "Super Admin"
 
1619
  msgstr ""
1620
 
1621
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:156
1622
+ msgid "Grant this user super admin privileges for the Network."
 
1623
  msgstr ""
1624
 
1625
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:169
1626
+ #: bbp-admin/bbp-settings.php:420
1627
+ msgid "Save Changes"
 
1628
  msgstr ""
1629
 
1630
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:174
1631
+ msgid "Update Profile"
 
1632
  msgstr ""
1633
 
1634
+ #: bbp-themes/bbp-twentyten/bbpress/form-user-edit.php:174
1635
+ msgid "Update User"
 
 
 
1636
  msgstr ""
1637
 
1638
+ #: bbp-themes/bbp-twentyten/bbpress/feedback-no-forums.php:13
1639
+ msgid "Oh bother! No forums were found here!"
 
 
 
1640
  msgstr ""
1641
 
1642
+ #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:16
1643
+ msgid "Favorite Forum Topics"
 
 
1644
  msgstr ""
1645
 
1646
+ #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:27
1647
+ msgid "You currently have no favorite topics."
 
1648
  msgstr ""
1649
 
1650
+ #: bbp-themes/bbp-twentyten/bbpress/user-favorites.php:27
1651
+ msgid "This user has no favorite topics."
1652
  msgstr ""
1653
 
1654
+ #: bbp-themes/bbp-twentyten/bbpress/feedback-no-access.php:13
1655
+ #: bbp-admin/bbp-metaboxes.php:283
1656
+ msgid "Private"
1657
  msgstr ""
1658
 
1659
+ #: bbp-themes/bbp-twentyten/bbpress/feedback-no-access.php:16
1660
+ msgid "You do not have permission to view this forum."
 
 
1661
  msgstr ""
1662
 
1663
+ #: bbp-themes/bbp-twentyten/single-reply.php:52
1664
+ msgid "Posted on %1$s at %2$s"
1665
  msgstr ""
1666
 
1667
+ #: bbp-themes/bbp-twentyten/page-topic-tags.php:25
 
1668
  msgid ""
1669
+ "<p>This is a collection of tags that are currently popular on our forums.</p>"
 
1670
  msgstr ""
1671
 
1672
+ #: bbp-admin/bbp-functions.php:152
1673
+ msgid "Count topics in each forum"
1674
  msgstr ""
1675
 
1676
+ #: bbp-admin/bbp-functions.php:153
1677
+ msgid "Count replies in each forum"
1678
  msgstr ""
1679
 
1680
+ #: bbp-admin/bbp-functions.php:154
1681
+ msgid "Count replies in each topic"
 
 
1682
  msgstr ""
1683
 
1684
+ #: bbp-admin/bbp-functions.php:155
1685
+ msgid "Count voices in each topic"
1686
  msgstr ""
1687
 
1688
+ #: bbp-admin/bbp-functions.php:156
1689
+ msgid "Count spammed & trashed replies in each topic"
1690
  msgstr ""
1691
 
1692
+ #: bbp-admin/bbp-functions.php:157
1693
+ msgid "Count replies for each user"
1694
  msgstr ""
1695
 
1696
+ #: bbp-admin/bbp-functions.php:158
1697
+ msgid "Remove trashed topics from user favorites"
1698
  msgstr ""
1699
 
1700
+ #: bbp-admin/bbp-functions.php:159
1701
+ msgid "Remove trashed topics from user subscriptions"
1702
  msgstr ""
1703
 
1704
+ #: bbp-admin/bbp-functions.php:163
1705
+ msgid "Recalculate last activity in each topic and forum"
1706
  msgstr ""
1707
 
1708
+ #: bbp-admin/bbp-functions.php:183
1709
+ msgid "Counting the number of replies in each topic&hellip; %s"
 
 
1710
  msgstr ""
1711
 
1712
+ #: bbp-admin/bbp-functions.php:184 bbp-admin/bbp-functions.php:228
1713
+ #: bbp-admin/bbp-functions.php:271 bbp-admin/bbp-functions.php:301
1714
+ #: bbp-admin/bbp-functions.php:335 bbp-admin/bbp-functions.php:367
1715
+ #: bbp-admin/bbp-functions.php:413 bbp-admin/bbp-functions.php:492
1716
+ #: bbp-admin/bbp-functions.php:574 bbp-admin/bbp-functions.php:706
1717
+ #: bbp-admin/bbp-functions.php:765 bbp-admin/bbp-functions.php:822
1718
+ msgid "Failed!"
1719
  msgstr ""
1720
 
1721
+ #: bbp-admin/bbp-functions.php:210 bbp-admin/bbp-functions.php:254
1722
+ #: bbp-admin/bbp-functions.php:281 bbp-admin/bbp-functions.php:315
1723
+ #: bbp-admin/bbp-functions.php:349 bbp-admin/bbp-functions.php:395
1724
+ #: bbp-admin/bbp-functions.php:747 bbp-admin/bbp-functions.php:805
1725
+ #: bbp-admin/bbp-functions.php:902
1726
+ msgid "Complete!"
1727
  msgstr ""
1728
 
1729
+ #: bbp-admin/bbp-functions.php:227
1730
+ msgid "Counting the number of voices in each topic&hellip; %s"
 
 
1731
  msgstr ""
1732
 
1733
+ #: bbp-admin/bbp-functions.php:270
 
1734
  msgid ""
1735
+ "Counting the number of spammed and trashed replies in each topic&hellip; %s"
 
1736
  msgstr ""
1737
 
1738
+ #: bbp-admin/bbp-functions.php:300
1739
+ msgid "Counting the number of topics in each forum&hellip; %s"
 
1740
  msgstr ""
1741
 
1742
+ #: bbp-admin/bbp-functions.php:334
1743
+ msgid "Counting the number of replies in each forum&hellip; %s"
 
 
1744
  msgstr ""
1745
 
1746
+ #: bbp-admin/bbp-functions.php:366
1747
+ msgid "Counting the number of topics to which each user has replied&hellip; %s"
 
 
 
1748
  msgstr ""
1749
 
1750
+ #: bbp-admin/bbp-functions.php:412
1751
+ msgid "Counting the number of topic tags in each topic&hellip; %s"
 
1752
  msgstr ""
1753
 
1754
+ #: bbp-admin/bbp-functions.php:491
1755
+ msgid "Counting the number of topics in each topic tag&hellip; %s"
 
 
1756
  msgstr ""
1757
 
1758
+ #: bbp-admin/bbp-functions.php:573
1759
+ msgid "Deleting topic tags with no topics&hellip; %s"
 
 
1760
  msgstr ""
1761
 
1762
+ #: bbp-admin/bbp-functions.php:705
1763
+ msgid "Removing trashed topics from user favorites&hellip; %s"
1764
  msgstr ""
1765
 
1766
+ #: bbp-admin/bbp-functions.php:731 bbp-admin/bbp-functions.php:789
1767
+ msgid "Nothing to remove!"
1768
  msgstr ""
1769
 
1770
+ #: bbp-admin/bbp-functions.php:764
1771
+ msgid "Removing trashed topics from user subscriptions&hellip; %s"
1772
  msgstr ""
1773
 
1774
+ #: bbp-admin/bbp-functions.php:821
1775
+ msgid "Recomputing latest post in every topic and forum&hellip; %s"
1776
  msgstr ""
1777
 
1778
+ #: bbp-admin/bbp-replies.php:127
1779
+ msgid ""
1780
+ "The reply title field and the big reply editing area are fixed in place, but "
1781
+ "you can reposition all the other boxes using drag and drop, and can minimize "
1782
+ "or expand them by clicking the title bar of the box. Use the Screen Options "
1783
+ "tab to unhide more boxes (Reply Attributes, Slug) or to choose a 1- or 2-"
1784
+ "column layout for this screen."
1785
  msgstr ""
1786
 
1787
+ #: bbp-admin/bbp-replies.php:128
1788
  msgid ""
1789
+ "<strong>Title</strong> - Enter a title for your reply. After you enter a "
1790
+ "title, you will see the permalink below, which you can edit."
1791
  msgstr ""
1792
 
1793
+ #: bbp-admin/bbp-replies.php:129
1794
+ msgid ""
1795
+ "<strong>Post editor</strong> - Enter the text for your reply. There are two "
1796
+ "modes of editing: Visual and HTML. Choose the mode by clicking on the "
1797
+ "appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon "
1798
+ "in the row to get a second row of controls. The screen icon just before that "
1799
+ "allows you to expand the edit box to full screen. The HTML mode allows you "
1800
+ "to enter raw HTML along with your forum text. You can insert media files by "
1801
+ "clicking the icons above the post editor and following the directions."
1802
  msgstr ""
1803
 
1804
+ #: bbp-admin/bbp-replies.php:130
1805
+ msgid ""
1806
+ "<strong>Reply Attributes</strong> - Select the attributes that your reply "
1807
+ "should have. The Parent Topic dropdown determines the parent topic that the "
1808
+ "reply belongs to."
1809
  msgstr ""
1810
 
1811
+ #: bbp-admin/bbp-replies.php:131
1812
+ msgid ""
1813
+ "<strong>Publish</strong> - The Publish box will allow you to save your reply "
1814
+ "as Draft or Pending Review. You may Preview your reply before it is "
1815
+ "published as well. The Visibility will determine whether the reply is "
1816
+ "Public, Password protected (requiring a password on the site to view) or "
1817
+ "Private (only the author will have access to it). Replies may be published "
1818
+ "immediately by clicking the dropdown, or at a specific date and time by "
1819
+ "clicking the Edit link."
1820
  msgstr ""
1821
 
1822
+ #: bbp-admin/bbp-replies.php:132
1823
+ msgid ""
1824
+ "<strong>Revisions</strong> - Revisions show past versions of the saved "
1825
+ "reply. Each revision can be compared to the current version, or another "
1826
+ "revision. Revisions can also be restored to the current version."
1827
  msgstr ""
1828
 
1829
+ #: bbp-admin/bbp-replies.php:133 bbp-admin/bbp-replies.php:174
1830
+ #: bbp-admin/bbp-topics.php:134 bbp-admin/bbp-topics.php:178
1831
+ #: bbp-admin/bbp-settings.php:449 bbp-admin/bbp-forums.php:130
1832
+ #: bbp-admin/bbp-forums.php:168
1833
+ msgid "<strong>For more information:</strong>"
1834
  msgstr ""
1835
 
1836
+ #: bbp-admin/bbp-replies.php:136 bbp-admin/bbp-replies.php:177
1837
+ #: bbp-admin/bbp-topics.php:137 bbp-admin/bbp-topics.php:181
1838
+ #: bbp-admin/bbp-settings.php:452 bbp-admin/bbp-forums.php:133
1839
+ #: bbp-admin/bbp-forums.php:171
1840
+ msgid "<a href=\"http://bbpress.org/documentation/\">bbPress Documentation</a>"
1841
  msgstr ""
1842
 
1843
+ #: bbp-admin/bbp-replies.php:137 bbp-admin/bbp-replies.php:178
1844
+ #: bbp-admin/bbp-topics.php:138 bbp-admin/bbp-topics.php:182
1845
+ #: bbp-admin/bbp-settings.php:453 bbp-admin/bbp-forums.php:134
1846
+ #: bbp-admin/bbp-forums.php:172
1847
+ msgid "<a href=\"http://bbpress.org/forums/\">bbPress Support Forums</a>"
 
 
 
 
1848
  msgstr ""
1849
 
1850
+ #: bbp-admin/bbp-replies.php:152
1851
+ msgid "This screen displays the replies created on your site."
1852
  msgstr ""
1853
 
1854
+ #: bbp-admin/bbp-replies.php:153 bbp-admin/bbp-topics.php:154
1855
+ #: bbp-admin/bbp-forums.php:150
1856
+ msgid "You can customize the display of this screen in a number of ways:"
1857
  msgstr ""
1858
 
1859
+ #: bbp-admin/bbp-replies.php:156
1860
+ msgid ""
1861
+ "You can hide/display columns based on your needs (Forum, Topic, Author, and "
1862
+ "Created) and decide how many replies to list per screen using the Screen "
1863
+ "Options tab."
1864
  msgstr ""
1865
 
1866
+ #: bbp-admin/bbp-replies.php:157
1867
+ msgid ""
1868
+ "You can filter the list of replies by reply status using the text links in "
1869
+ "the upper left to show All, Published, Pending Review, Draft, or Trashed "
1870
+ "topics. The default view is to show all replies."
1871
+ msgstr ""
 
 
 
 
 
1872
 
1873
+ #: bbp-admin/bbp-replies.php:158
1874
+ msgid ""
1875
+ "You can view replies in a simple title list or with an excerpt. Choose the "
1876
+ "view you prefer by clicking on the icons at the top of the list on the right."
1877
+ msgstr ""
1878
 
1879
+ #: bbp-admin/bbp-replies.php:159
1880
+ msgid ""
1881
+ "You can refine the list to show only replies from a specific month by using "
1882
+ "the dropdown menus above the replies list. Click the Filter button after "
1883
+ "making your selection."
1884
+ msgstr ""
1885
 
1886
+ #: bbp-admin/bbp-replies.php:160
1887
+ msgid ""
1888
+ "You can also show only replies from a specific parent forum by using the "
1889
+ "parent forum dropdown above the replies list and selecting the parent forum. "
1890
+ "Click the Filter button after making your selection."
1891
  msgstr ""
1892
 
1893
+ #: bbp-admin/bbp-replies.php:163
1894
+ msgid ""
1895
+ "Hovering over a row in the replies list will display action links that allow "
1896
+ "you to manage your reply. You can perform the following actions:"
1897
  msgstr ""
1898
 
1899
+ #: bbp-admin/bbp-replies.php:166
1900
+ msgid ""
1901
+ "Edit takes you to the editing screen for that reply. You can also reach that "
1902
+ "screen by clicking on the reply title."
1903
  msgstr ""
1904
 
1905
+ #: bbp-admin/bbp-replies.php:167
1906
+ msgid ""
1907
+ "Trash removes your reply from this list and places it in the trash, from "
1908
+ "which you can permanently delete it."
1909
  msgstr ""
1910
 
1911
+ #: bbp-admin/bbp-replies.php:168
1912
+ msgid "View will take you to your live reply to view the reply."
1913
  msgstr ""
1914
 
1915
+ #: bbp-admin/bbp-replies.php:169
1916
+ msgid ""
1917
+ "Spam will mark the topic as spam, preventing further replies to it and "
1918
+ "removing it from the site&rsquo;s public view."
1919
  msgstr ""
1920
 
1921
+ #: bbp-admin/bbp-replies.php:172
1922
+ msgid ""
1923
+ "You can also edit multiple replies at once. Select the replies you want to "
1924
+ "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
1925
+ "Apply. You will be able to change the metadata for all selected replies at "
1926
+ "once. To remove a reply from the grouping, just click the x next to its name "
1927
+ "in the Bulk Edit area that appears."
1928
  msgstr ""
1929
 
1930
+ #: bbp-admin/bbp-replies.php:173
1931
+ msgid ""
1932
+ "The Bulk Actions menu may also be used to delete multiple replies at once. "
1933
+ "Select Delete from the dropdown after making your selection."
1934
  msgstr ""
1935
 
1936
+ #: bbp-admin/bbp-replies.php:201
1937
+ msgid "Reply Attributes"
1938
  msgstr ""
1939
 
1940
+ #: bbp-admin/bbp-replies.php:283 bbp-admin/bbp-topics.php:304
1941
+ msgid "Author Information"
1942
  msgstr ""
1943
 
1944
+ #: bbp-admin/bbp-replies.php:439
1945
+ msgid "The reply was not found!"
1946
  msgstr ""
1947
 
1948
+ #: bbp-admin/bbp-replies.php:442 bbp-admin/bbp-topics.php:471
1949
+ msgid "You do not have the permission to do that!"
1950
  msgstr ""
1951
 
1952
+ #: bbp-admin/bbp-replies.php:503
1953
+ msgid "There was a problem marking the reply \"%1$s\" as spam."
1954
  msgstr ""
1955
 
1956
+ #: bbp-admin/bbp-replies.php:503
1957
+ msgid "Reply \"%1$s\" successfully marked as spam."
1958
  msgstr ""
1959
 
1960
+ #: bbp-admin/bbp-replies.php:507
1961
+ msgid "There was a problem unmarking the reply \"%1$s\" as spam."
1962
  msgstr ""
1963
 
1964
+ #: bbp-admin/bbp-replies.php:507
1965
+ msgid "Reply \"%1$s\" successfully unmarked as spam."
 
1966
  msgstr ""
1967
 
1968
+ #: bbp-admin/bbp-replies.php:537
1969
+ msgid "Title"
1970
  msgstr ""
1971
 
1972
+ #: bbp-admin/bbp-replies.php:541 bbp-admin/bbp-topics.php:610
1973
+ #: bbp-admin/bbp-forums.php:406
1974
+ msgid "Created"
1975
  msgstr ""
1976
 
1977
+ #: bbp-admin/bbp-replies.php:591 bbp-admin/bbp-replies.php:598
1978
+ msgid "No Topic"
1979
  msgstr ""
1980
 
1981
+ #: bbp-admin/bbp-replies.php:615 bbp-admin/bbp-replies.php:629
1982
+ #: bbp-admin/bbp-topics.php:658
1983
+ msgid "No Forum"
1984
  msgstr ""
1985
 
1986
+ #: bbp-admin/bbp-replies.php:620
1987
+ msgid "(Mismatch)"
1988
  msgstr ""
1989
 
1990
+ #: bbp-admin/bbp-replies.php:643 bbp-admin/bbp-topics.php:686
1991
+ #: bbp-admin/bbp-forums.php:441
1992
+ msgid "%1$s <br /> %2$s"
1993
  msgstr ""
1994
 
1995
+ #: bbp-admin/bbp-replies.php:688 bbp-admin/bbp-topics.php:744
1996
+ msgid "View &#8220;%s&#8221;"
1997
  msgstr ""
1998
 
1999
+ #: bbp-admin/bbp-replies.php:688 bbp-admin/bbp-topics.php:744
2000
+ msgid "View"
2001
  msgstr ""
2002
 
2003
+ #: bbp-admin/bbp-replies.php:699
2004
+ msgid "Mark the reply as not spam"
2005
  msgstr ""
2006
 
2007
+ #: bbp-admin/bbp-replies.php:699 bbp-admin/bbp-topics.php:775
2008
+ msgid "Not spam"
2009
  msgstr ""
2010
 
2011
+ #: bbp-admin/bbp-replies.php:701
2012
+ msgid "Mark this reply as spam"
2013
  msgstr ""
2014
 
2015
+ #: bbp-admin/bbp-replies.php:715 bbp-admin/bbp-topics.php:791
2016
+ msgid "Delete Permanently"
2017
  msgstr ""
2018
 
2019
+ #: bbp-admin/bbp-replies.php:750 bbp-admin/bbp-topics.php:826
2020
+ msgid "Empty Spam"
2021
  msgstr ""
2022
 
2023
+ #: bbp-admin/bbp-replies.php:760 bbp-admin/bbp-topics.php:836
2024
+ msgid "In all forums"
 
 
 
 
 
 
 
 
 
 
 
 
2025
  msgstr ""
2026
 
2027
+ #: bbp-admin/bbp-replies.php:837
2028
+ msgid "Reply updated. <a href=\"%s\">View topic</a>"
2029
  msgstr ""
2030
 
2031
+ #: bbp-admin/bbp-replies.php:840 bbp-admin/bbp-topics.php:916
2032
+ #: bbp-admin/bbp-forums.php:520
2033
+ msgid "Custom field updated."
2034
  msgstr ""
2035
 
2036
+ #: bbp-admin/bbp-replies.php:843 bbp-admin/bbp-topics.php:919
2037
+ #: bbp-admin/bbp-forums.php:523
2038
+ msgid "Custom field deleted."
2039
  msgstr ""
2040
 
2041
+ #: bbp-admin/bbp-replies.php:846
2042
+ msgid "Reply updated."
2043
  msgstr ""
2044
 
2045
+ #: bbp-admin/bbp-replies.php:851
2046
+ msgid "Reply restored to revision from %s"
2047
  msgstr ""
2048
 
2049
+ #: bbp-admin/bbp-replies.php:855
2050
+ msgid "Reply created. <a href=\"%s\">View topic</a>"
2051
  msgstr ""
2052
 
2053
+ #: bbp-admin/bbp-replies.php:858
2054
+ msgid "Reply saved."
2055
  msgstr ""
2056
 
2057
+ #: bbp-admin/bbp-replies.php:861
2058
+ msgid "Reply submitted. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
2059
  msgstr ""
2060
 
2061
+ #: bbp-admin/bbp-replies.php:864
2062
  msgid ""
2063
+ "Reply scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
2064
+ "\">Preview topic</a>"
 
 
 
 
2065
  msgstr ""
2066
 
2067
+ #: bbp-admin/bbp-replies.php:866 bbp-admin/bbp-topics.php:942
2068
+ #: bbp-admin/bbp-forums.php:546
2069
+ msgid "M j, Y @ G:i"
2070
  msgstr ""
2071
 
2072
+ #: bbp-admin/bbp-replies.php:871
2073
+ msgid "Reply draft updated. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
2074
  msgstr ""
2075
 
2076
+ #: bbp-admin/importers/bbpress.php:350
2077
  msgid "bbPress Standalone Importer"
2078
  msgstr ""
2079
 
2080
+ #: bbp-admin/importers/bbpress.php:363
2081
  msgid "Try Again"
2082
  msgstr ""
2083
 
2084
+ #: bbp-admin/importers/bbpress.php:447
2085
  msgid ""
2086
  "It looks like you attempted to convert your bbPress standalone previously "
2087
  "and got interrupted."
2088
  msgstr ""
2089
 
2090
+ #: bbp-admin/importers/bbpress.php:450
2091
  msgid "Cancel &amp; start a new import"
2092
  msgstr ""
2093
 
2094
+ #: bbp-admin/importers/bbpress.php:451
2095
  msgid "Continue previous import"
2096
  msgstr ""
2097
 
2098
+ #: bbp-admin/importers/bbpress.php:459
2099
  msgid ""
2100
  "Existing bbPress standalone installation found. See configuration section "
2101
  "for details."
2102
  msgstr ""
2103
 
2104
+ #: bbp-admin/importers/bbpress.php:466
2105
  msgid ""
2106
  "This importer allows you to convert your bbPress Standalone into the bbPress "
2107
  "Plugin."
2108
  msgstr ""
2109
 
2110
+ #: bbp-admin/importers/bbpress.php:468
2111
  msgid "Instructions"
2112
  msgstr ""
2113
 
2114
+ #: bbp-admin/importers/bbpress.php:470
2115
  msgid ""
2116
  "Create a <a href=\"%s\">backup</a> of your database and files. If the import "
2117
  "process is interrupted for any reason, restore from that backup and re-run "
2118
  "the import."
2119
  msgstr ""
2120
 
2121
+ #: bbp-admin/importers/bbpress.php:471
2122
  msgid ""
2123
  "Seriously... Go back everything up, and don't come back until that's done. "
2124
  "If things go awry, it's possible this importer will not be able to complete "
2126
  "we're not kidding."
2127
  msgstr ""
2128
 
2129
+ #: bbp-admin/importers/bbpress.php:472
2130
  msgid "To reduce memory overhead and avoid possible conflicts please:"
2131
  msgstr ""
2132
 
2133
+ #: bbp-admin/importers/bbpress.php:475
2134
  msgid ""
2135
  "Disable all plugins (except bbPress) on both your WordPress and bbPress "
2136
  "standalone installations."
2137
  msgstr ""
2138
 
2139
+ #: bbp-admin/importers/bbpress.php:478
2140
  msgid "Switch to a default WordPress theme."
2141
  msgstr ""
2142
 
2143
+ #: bbp-admin/importers/bbpress.php:482
2144
  msgid "Notes on compatibility:"
2145
  msgstr ""
2146
 
2147
+ #: bbp-admin/importers/bbpress.php:485
2148
  msgid ""
2149
+ "If you are using the alpha version of bbPress 1.1, subscriptions will be "
2150
+ "ported automatically."
2151
  msgstr ""
2152
 
2153
+ #: bbp-admin/importers/bbpress.php:488
2154
  msgid ""
2155
+ "If you have the <a href=\"%s\">Subscribe to Topic</a> plugin active, then "
2156
+ "this script will migrate user subscriptions from that plugin."
2157
  msgstr ""
2158
 
2159
+ #: bbp-admin/importers/bbpress.php:491
2160
  msgid ""
2161
  "If you are importing an existing BuddyPress Forums installation, we should "
2162
  "have found your previous configuration file."
2163
  msgstr ""
2164
 
2165
+ #: bbp-admin/importers/bbpress.php:495
2166
  msgid ""
2167
  "This converter can be a drag on large forums with lots of existing topics "
2168
  "and replies. If possible, do this import in a safe place (like a local "
2169
  "installation.)"
2170
  msgstr ""
2171
 
2172
+ #: bbp-admin/importers/bbpress.php:498
2173
  msgid "Configuration"
2174
  msgstr ""
2175
 
2176
+ #: bbp-admin/importers/bbpress.php:499
2177
  msgid ""
2178
+ "Enter the full path to your bbPress configuration file i.e. <code>bb-config."
2179
+ "php</code>:"
2180
  msgstr ""
2181
 
2182
+ #: bbp-admin/importers/bbpress.php:503
2183
  msgid "bbPress Standalone Path:"
2184
  msgstr ""
2185
 
2186
+ #: bbp-admin/importers/bbpress.php:510
2187
  msgid "Proceed"
2188
  msgstr ""
2189
 
2190
+ #: bbp-admin/importers/bbpress.php:556
2191
  msgid ""
2192
  "Please enter the path to your bbPress configuration file - <code>bb-config."
2193
  "php</code>."
2194
  msgstr ""
2195
 
2196
+ #: bbp-admin/importers/bbpress.php:557 bbp-admin/importers/bbpress.php:575
2197
  msgid "Go Back"
2198
  msgstr ""
2199
 
2200
+ #: bbp-admin/importers/bbpress.php:574
2201
  msgid ""
2202
  "bbPress configuration file <code>bb-config.php</code> doesn't exist in the "
2203
  "path specified! Please check the path and try again."
2204
  msgstr ""
2205
 
2206
+ #: bbp-admin/importers/bbpress.php:608
2207
  msgid "Configuration Options"
2208
  msgstr ""
2209
 
2210
+ #: bbp-admin/importers/bbpress.php:614
2211
  msgid ""
2212
  "<strong>Auto-detected</strong>: Your WordPress and bbPress user tables are "
2213
  "integrated. Proceed to <label for=\"step_board\">importing forums, topics "
2214
  "and posts</label>."
2215
  msgstr ""
2216
 
2217
+ #: bbp-admin/importers/bbpress.php:621
2218
  msgid ""
2219
  "Your WordPress blog is <strong>new</strong> and you don't have the fear of "
2220
  "losing WordPress users:"
2221
  msgstr ""
2222
 
2223
+ #: bbp-admin/importers/bbpress.php:622
2224
  msgid "Go to migrating users section."
2225
  msgstr ""
2226
 
2227
+ #: bbp-admin/importers/bbpress.php:623
2228
  msgid ""
2229
+ "<strong>Note</strong>: The WordPress %1$s and %2$s tables will be renamed "
2230
+ "(not deleted) so that you can restore them if something goes wrong."
2231
  msgstr ""
2232
 
2233
+ #: bbp-admin/importers/bbpress.php:624
2234
  msgid ""
2235
+ "Please ensure there are no tables named %1$s and %2$s to avoid renaming "
2236
+ "conflicts."
2237
  msgstr ""
2238
 
2239
+ #: bbp-admin/importers/bbpress.php:625
2240
  msgid "Also, your WordPress and bbPress installs must be in the same database."
2241
  msgstr ""
2242
 
2243
+ #: bbp-admin/importers/bbpress.php:629
2244
  msgid ""
2245
  "You're done with user migration or have the user tables <strong>integrated</"
2246
  "strong>:"
2247
  msgstr ""
2248
 
2249
+ #: bbp-admin/importers/bbpress.php:630
2250
  msgid "Proceed to importing forums, topics and posts section."
2251
  msgstr ""
2252
 
2253
+ #: bbp-admin/importers/bbpress.php:634
2254
  msgid ""
2255
  "You have a well <strong>established</strong> WordPress user base, the user "
2256
  "tables are not integrated and you can't lose your users:"
2257
  msgstr ""
2258
 
2259
+ #: bbp-admin/importers/bbpress.php:635
2260
  msgid ""
2261
  "This is currently not yet supported, and will likely not be in the future "
2262
  "also as it is highly complex to merge two user sets (which might even "
2263
  "conflict)."
2264
  msgstr ""
2265
 
2266
+ #: bbp-admin/importers/bbpress.php:636
2267
  msgid ""
2268
+ "Patches are always <a href=\"%s\" title=\"The last revision containing the "
2269
+ "custom user migration code\">welcome</a>. :)"
2270
  msgstr ""
2271
 
2272
+ #: bbp-admin/importers/bbpress.php:644
2273
  msgid "Migrate Users"
2274
  msgstr ""
2275
 
2276
+ #: bbp-admin/importers/bbpress.php:647
2277
  msgid "Import Forums, Topics & Posts"
2278
  msgstr ""
2279
 
2280
+ #: bbp-admin/importers/bbpress.php:651
2281
  msgid "Start!"
2282
  msgstr ""
2283
 
2284
+ #: bbp-admin/importers/bbpress.php:687
2285
  msgid "Importing Users"
2286
  msgstr ""
2287
 
2288
+ #: bbp-admin/importers/bbpress.php:688
2289
  msgid "We&#8217;re in the process of migrating your users..."
2290
  msgstr ""
2291
 
2292
+ #: bbp-admin/importers/bbpress.php:698
2293
  msgid ""
2294
  "Renamed the <code>%1$s</code> and <code>%2$s</code> tables to <code>%3$s</"
2295
  "code> and <code>%4$s</code> respectively."
2296
  msgstr ""
2297
 
2298
+ #: bbp-admin/importers/bbpress.php:700
2299
  msgid ""
2300
  "There was a problem dropping the <code>%1$s</code> and <code>%2$s</code> "
2301
  "tables. Please check and re-run the script or rename or drop the tables "
2302
  "yourself."
2303
  msgstr ""
2304
 
2305
+ #: bbp-admin/importers/bbpress.php:716
2306
  msgid "Created the <code>%s</code> table and copied the users from bbPress."
2307
  msgstr ""
2308
 
2309
+ #: bbp-admin/importers/bbpress.php:718 bbp-admin/importers/bbpress.php:735
2310
  msgid ""
2311
  "There was a problem duplicating the table <code>%1$s</code> to <code>%2$s</"
2312
  "code>. Please check and re-run the script or duplicate the table yourself."
2313
  msgstr ""
2314
 
2315
+ #: bbp-admin/importers/bbpress.php:733
2316
  msgid ""
2317
  "Created the <code>%s</code> table and copied the user information from "
2318
  "bbPress."
2319
  msgstr ""
2320
 
2321
+ #: bbp-admin/importers/bbpress.php:808
2322
  msgid ""
2323
  "There was a problem in getting an administrator of the blog. Now, please go "
2324
  "to your blog, set a user as administrator, login as that user and directly "
2327
  "in as the bbPress keymaster)."
2328
  msgstr ""
2329
 
2330
+ #: bbp-admin/importers/bbpress.php:831
2331
  msgid ""
2332
  "User roles have been successfully mapped based. The bbPress keymaster is "
2333
  "WordPress administrator, bbPress administrator and moderators are moderators "
2337
  "$s)."
2338
  msgstr ""
2339
 
2340
+ #: bbp-admin/importers/bbpress.php:836
2341
  msgid ""
2342
  "Your users have all been imported, but wait &#8211; there&#8217;s more! Now "
2343
  "we need to import your forums, topics and posts!"
2344
  msgstr ""
2345
 
2346
+ #: bbp-admin/importers/bbpress.php:839
2347
+ msgid "Import forums, topics and posts &raquo;"
2348
  msgstr ""
2349
 
2350
+ #: bbp-admin/importers/bbpress.php:867
2351
  msgid "Importing Forums, Topics And Posts"
2352
  msgstr ""
2353
 
2354
+ #: bbp-admin/importers/bbpress.php:868
2355
  msgid ""
2356
  "We&#8217;re importing your bbPress standalone forums, topics and replies..."
2357
  msgstr ""
2358
 
2359
+ #: bbp-admin/importers/bbpress.php:875
2360
  msgid "No forums were found!"
2361
  msgstr ""
2362
 
2363
+ #: bbp-admin/importers/bbpress.php:879
2364
  msgid "Total number of forums: %s"
2365
  msgstr ""
2366
 
2367
+ #: bbp-admin/importers/bbpress.php:885
2368
  msgid "Processing forum #%1$s (<a href=\"%2$s\">%3$s</a>)"
2369
  msgstr ""
2370
 
2371
+ #: bbp-admin/importers/bbpress.php:905
2372
  msgid "Added the forum as forum #<a href=\"%1$s\">%2$s</a>"
2373
  msgstr ""
2374
 
2375
+ #: bbp-admin/importers/bbpress.php:907
2376
  msgid "There was a problem in adding the forum."
2377
  msgstr ""
2378
 
2379
+ #: bbp-admin/importers/bbpress.php:928
2380
  msgid "The forum is a category and has no topics."
2381
  msgstr ""
2382
 
2383
+ #: bbp-admin/importers/bbpress.php:933
2384
  msgid ""
2385
  "The forum is a category but has topics, so it has been set as closed on the "
2386
  "new board."
2387
  msgstr ""
2388
 
2389
+ #: bbp-admin/importers/bbpress.php:940
2390
  msgid "Total number of topics in the forum: %s"
2391
  msgstr ""
2392
 
2393
+ #: bbp-admin/importers/bbpress.php:1080
2394
  msgid ""
2395
  "Added topic #%1$s (<a href=\"%2$s\">%3$s</a>) as topic #<a href=\"%4$s\">%5"
2396
  "$s</a> with %6$s replies."
2397
  msgstr ""
2398
 
2399
+ #: bbp-admin/importers/bbpress.php:1082
2400
  msgid "There was a problem in adding topic #1$s (<a href=\"%2$s\">%3$s</a>)."
2401
  msgstr ""
2402
 
2403
+ #: bbp-admin/importers/bbpress.php:1101
2404
  msgid ""
2405
  "Your forums, topics and posts have all been imported, but wait &#8211; "
2406
  "there&#8217;s more! Now we need to do a <a href=\"%s\">recount</a> to get "
2407
  "the counts in sync! Yes, we&#8217;re bad at Math."
2408
  msgstr ""
2409
 
2410
+ #: bbp-admin/importers/bbpress.php:1103
2411
  msgid "After that it's all done. <a href=\"%s\">Have fun!</a> :)"
2412
  msgstr ""
2413
 
2414
+ #: bbp-admin/importers/bbpress.php:1114
2415
  msgid "bbPress Standalone"
2416
  msgstr ""
2417
 
2418
+ #: bbp-admin/importers/bbpress.php:1114
2419
  msgid "Import your bbPress standalone board."
2420
  msgstr ""
2421
 
2422
+ #: bbp-admin/bbp-admin.php:168 bbp-admin/bbp-tools.php:67
2423
+ msgid "Recount"
2424
  msgstr ""
2425
 
2426
+ #: bbp-admin/bbp-admin.php:189
2427
+ msgid "Main Settings"
2428
  msgstr ""
2429
 
2430
+ #: bbp-admin/bbp-admin.php:192
2431
+ msgid "Lock post editing after"
2432
  msgstr ""
2433
 
2434
+ #: bbp-admin/bbp-admin.php:196
2435
+ msgid "Throttle time"
2436
  msgstr ""
2437
 
2438
+ #: bbp-admin/bbp-admin.php:200
2439
+ msgid "Allow Favorites"
2440
  msgstr ""
2441
 
2442
+ #: bbp-admin/bbp-admin.php:204
2443
+ msgid "Allow Subscriptions"
2444
  msgstr ""
2445
 
2446
+ #: bbp-admin/bbp-admin.php:208
2447
+ msgid "Allow Anonymous Posting"
2448
  msgstr ""
2449
 
2450
+ #: bbp-admin/bbp-admin.php:214
2451
+ msgid "Per Page"
 
2452
  msgstr ""
2453
 
2454
+ #: bbp-admin/bbp-admin.php:217 bbp-admin/bbp-admin.php:230
2455
+ msgid "Topics Per Page"
2456
  msgstr ""
2457
 
2458
+ #: bbp-admin/bbp-admin.php:221 bbp-admin/bbp-admin.php:234
2459
+ msgid "Replies Per Page"
 
 
2460
  msgstr ""
2461
 
2462
+ #: bbp-admin/bbp-admin.php:227
2463
+ msgid "Per RSS Page"
 
 
2464
  msgstr ""
2465
 
2466
+ #: bbp-admin/bbp-admin.php:240
2467
+ msgid "Archive Slugs"
2468
  msgstr ""
2469
 
2470
+ #: bbp-admin/bbp-admin.php:243
2471
+ msgid "Forums Base"
2472
  msgstr ""
2473
 
2474
+ #: bbp-admin/bbp-admin.php:247
2475
+ msgid "Topics Base"
2476
  msgstr ""
2477
 
2478
+ #: bbp-admin/bbp-admin.php:253
2479
+ msgid "Single Slugs"
2480
  msgstr ""
2481
 
2482
+ #: bbp-admin/bbp-admin.php:256
2483
+ msgid "Forum Prefix"
 
 
 
2484
  msgstr ""
2485
 
2486
+ #: bbp-admin/bbp-admin.php:260 bbp-admin/bbp-settings.php:557
2487
+ msgid "Forum slug"
 
 
 
2488
  msgstr ""
2489
 
2490
+ #: bbp-admin/bbp-admin.php:264 bbp-admin/bbp-settings.php:560
2491
+ msgid "Topic slug"
 
 
2492
  msgstr ""
2493
 
2494
+ #: bbp-admin/bbp-admin.php:268 bbp-admin/bbp-settings.php:572
2495
+ msgid "Topic tag slug"
 
 
2496
  msgstr ""
2497
 
2498
+ #: bbp-admin/bbp-admin.php:272 bbp-admin/bbp-settings.php:563
2499
+ msgid "Reply slug"
 
 
 
2500
  msgstr ""
2501
 
2502
+ #: bbp-admin/bbp-admin.php:278 bbp-admin/bbp-settings.php:566
2503
+ msgid "User base"
 
 
 
 
2504
  msgstr ""
2505
 
2506
+ #: bbp-admin/bbp-admin.php:282 bbp-admin/bbp-settings.php:569
2507
+ msgid "View base"
 
 
 
2508
  msgstr ""
2509
 
2510
+ #: bbp-admin/bbp-admin.php:353
2511
  msgid ""
2512
+ "<strong>bbPress is in Theme Compatability Mode</strong>. Your forums are "
2513
+ "using default styling."
2514
  msgstr ""
2515
 
2516
+ #: bbp-admin/bbp-admin.php:372
2517
+ msgid "Settings"
 
 
 
2518
  msgstr ""
2519
 
2520
+ #: bbp-admin/bbp-admin.php:398
2521
+ msgid "Right Now in Forums"
 
 
 
2522
  msgstr ""
2523
 
2524
+ #: bbp-admin/bbp-admin.php:645
2525
+ msgid "Green"
 
 
 
2526
  msgstr ""
2527
 
2528
+ #: bbp-admin/bbp-metaboxes.php:44
2529
+ msgid "Content"
 
 
 
 
 
2530
  msgstr ""
2531
 
2532
+ #: bbp-admin/bbp-metaboxes.php:86 bbpress.php:671
2533
+ msgid "Reply"
2534
+ msgid_plural "Replies"
2535
+ msgstr[0] ""
2536
+ msgstr[1] ""
2537
 
2538
+ #: bbp-admin/bbp-metaboxes.php:103 bbpress.php:812
2539
+ msgid "Topic Tag"
2540
+ msgid_plural "Topic Tags"
2541
+ msgstr[0] ""
2542
+ msgstr[1] ""
 
 
 
 
 
2543
 
2544
+ #: bbp-admin/bbp-metaboxes.php:125
2545
+ msgid "Discussion"
 
 
2546
  msgstr ""
2547
 
2548
+ #: bbp-admin/bbp-metaboxes.php:133
2549
+ msgid "User"
2550
+ msgid_plural "Users"
2551
+ msgstr[0] ""
2552
+ msgstr[1] ""
2553
 
2554
+ #: bbp-admin/bbp-metaboxes.php:152
2555
+ msgid "Hidden Topic"
2556
+ msgid_plural "Hidden Topics"
2557
+ msgstr[0] ""
2558
+ msgstr[1] ""
2559
 
2560
+ #: bbp-admin/bbp-metaboxes.php:171
2561
+ msgid "Hidden Reply"
2562
+ msgid_plural "Hidden Replies"
2563
+ msgstr[0] ""
2564
+ msgstr[1] ""
2565
 
2566
+ #: bbp-admin/bbp-metaboxes.php:190
2567
+ msgid "Empty Topic Tag"
2568
+ msgid_plural "Empty Topic Tags"
2569
+ msgstr[0] ""
2570
+ msgstr[1] ""
2571
+
2572
+ #: bbp-admin/bbp-metaboxes.php:216
2573
+ msgid "Theme <strong>natively supports</strong> bbPress"
2574
  msgstr ""
2575
 
2576
+ #: bbp-admin/bbp-metaboxes.php:218
2577
+ msgid "Theme <strong>does not</strong> natively support bbPress"
 
 
2578
  msgstr ""
2579
 
2580
+ #: bbp-admin/bbp-metaboxes.php:223
2581
+ msgid "You are using <span class=\"b\">bbPress %s</span>."
 
 
 
2582
  msgstr ""
2583
 
2584
+ #: bbp-admin/bbp-metaboxes.php:257
2585
+ msgid "Category"
 
 
 
2586
  msgstr ""
2587
 
2588
+ #: bbp-admin/bbp-metaboxes.php:270
2589
+ msgid "Closed"
2590
  msgstr ""
2591
 
2592
+ #: bbp-admin/bbp-metaboxes.php:282
2593
+ msgid "Public"
 
2594
  msgstr ""
2595
 
2596
+ #: bbp-admin/bbp-metaboxes.php:284
2597
+ msgid "Hidden"
 
 
2598
  msgstr ""
2599
 
2600
+ #: bbp-admin/bbp-metaboxes.php:296 bbp-admin/bbp-metaboxes.php:297
2601
+ msgid "Type:"
 
 
 
2602
  msgstr ""
2603
 
2604
+ #: bbp-admin/bbp-metaboxes.php:302 bbp-admin/bbp-metaboxes.php:303
2605
+ msgid "Status:"
 
 
 
 
2606
  msgstr ""
2607
 
2608
+ #: bbp-admin/bbp-metaboxes.php:308 bbp-admin/bbp-metaboxes.php:309
2609
+ msgid "Visibility:"
 
 
2610
  msgstr ""
2611
 
2612
+ #: bbp-admin/bbp-metaboxes.php:316
2613
+ msgid "Parent:"
 
 
2614
  msgstr ""
2615
 
2616
+ #: bbp-admin/bbp-metaboxes.php:317
2617
+ msgid "Forum Parent"
 
 
2618
  msgstr ""
2619
 
2620
+ #: bbp-admin/bbp-metaboxes.php:323
2621
+ msgid "(No Parent)"
2622
  msgstr ""
2623
 
2624
+ #: bbp-admin/bbp-metaboxes.php:332
2625
+ msgid "Order:"
 
 
 
 
 
2626
  msgstr ""
2627
 
2628
+ #: bbp-admin/bbp-metaboxes.php:333
2629
+ msgid "Forum Order"
 
 
2630
  msgstr ""
2631
 
2632
+ #: bbp-admin/bbp-metaboxes.php:361 bbp-admin/bbp-topics.php:664
2633
+ msgid "(No Forum)"
2634
  msgstr ""
2635
 
2636
+ #: bbp-admin/bbp-metaboxes.php:404
2637
+ msgid "(Use Forum of Topic)"
 
2638
  msgstr ""
2639
 
2640
+ #: bbp-admin/bbp-metaboxes.php:425
2641
+ msgid "(No Topic)"
 
2642
  msgstr ""
2643
 
2644
+ #: bbp-admin/bbp-metaboxes.php:473 bbp-admin/bbp-metaboxes.php:476
2645
+ msgid "Email"
2646
  msgstr ""
2647
 
2648
+ #: bbp-admin/bbp-metaboxes.php:489 bbp-admin/bbp-metaboxes.php:492
2649
+ msgid "IP Address"
2650
  msgstr ""
2651
 
2652
+ #: bbp-admin/bbp-topics.php:127
2653
+ msgid ""
2654
+ "The topic title field and the big topic editing area are fixed in place, but "
2655
+ "you can reposition all the other boxes using drag and drop, and can minimize "
2656
+ "or expand them by clicking the title bar of the box. Use the Screen Options "
2657
+ "tab to unhide more boxes (Topic Tags, Topic Attributes, or Slug) or to "
2658
+ "choose a 1- or 2-column layout for this screen."
2659
  msgstr ""
2660
 
2661
+ #: bbp-admin/bbp-topics.php:128
2662
+ msgid ""
2663
+ "<strong>Title</strong> - Enter a title for your topic. After you enter a "
2664
+ "title, you will see the permalink below, which you can edit."
2665
  msgstr ""
2666
 
2667
+ #: bbp-admin/bbp-topics.php:129
2668
+ msgid ""
2669
+ "<strong>Post editor</strong> - Enter the text for your topic. There are two "
2670
+ "modes of editing: Visual and HTML. Choose the mode by clicking on the "
2671
+ "appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon "
2672
+ "in the row to get a second row of controls. The screen icon just before that "
2673
+ "allows you to expand the edit box to full screen. The HTML mode allows you "
2674
+ "to enter raw HTML along with your forum text. You can insert media files by "
2675
+ "clicking the icons above the post editor and following the directions."
2676
  msgstr ""
2677
 
2678
+ #: bbp-admin/bbp-topics.php:130
2679
+ msgid ""
2680
+ "<strong>Topic Attributes</strong> - Select the attributes that your topic "
2681
+ "should have. The Forum dropdown determines the parent forum that the topic "
2682
+ "belongs to. Select the forum or category from the dropdown, or leave the "
2683
+ "default (No Forum) to post the topic without an assigned forum."
2684
  msgstr ""
2685
 
2686
+ #: bbp-admin/bbp-topics.php:131
2687
+ msgid ""
2688
+ "<strong>Publish</strong> - The Publish box will allow you to save your topic "
2689
+ "as Draft or Pending Review. You may Preview your topic before it is "
2690
+ "published as well. The Visibility will determine whether the topic is "
2691
+ "Public, Password protected (requiring a password on the site to view) or "
2692
+ "Private (only the author will have access to it). Topics may be published "
2693
+ "immediately by clicking the dropdown, or at a specific date and time by "
2694
+ "clicking the Edit link."
2695
  msgstr ""
2696
 
2697
+ #: bbp-admin/bbp-topics.php:132
2698
+ msgid ""
2699
+ "<strong>Topic Tags</strong> - You can assign keywords to your topics using "
2700
+ "Topic Tags. Unlike categories, tags have no hierarchy, meaning there is no "
2701
+ "relationship from one tag to another. Topics can be added and modified "
2702
+ "further from the Topic Tags screen."
2703
  msgstr ""
2704
 
2705
+ #: bbp-admin/bbp-topics.php:133
2706
+ msgid ""
2707
+ "<strong>Revisions</strong> - Revisions show past versions of the saved "
2708
+ "topic. Each revision can be compared to the current version, or another "
2709
+ "revision. Revisions can also be restored to the current version."
2710
+ msgstr ""
2711
+
2712
+ #: bbp-admin/bbp-topics.php:153
2713
+ msgid "This screen displays the topics created on your site."
2714
  msgstr ""
2715
 
2716
+ #: bbp-admin/bbp-topics.php:157
2717
  msgid ""
2718
+ "You can hide/display columns based on your needs and decide how many topics "
2719
+ "to list per screen using the Screen Options tab."
2720
  msgstr ""
2721
 
2722
+ #: bbp-admin/bbp-topics.php:158
2723
+ msgid ""
2724
+ "You can filter the list of topics by topics status using the text links in "
2725
+ "the upper left to show All, Published, Pending Review, Draft, or Trashed "
2726
+ "topics. The default view is to show all topics."
2727
  msgstr ""
2728
 
2729
+ #: bbp-admin/bbp-topics.php:159
2730
+ msgid ""
2731
+ "You can view topics in a simple title list or with an excerpt. Choose the "
2732
+ "view you prefer by clicking on the icons at the top of the list on the right."
2733
  msgstr ""
2734
 
2735
+ #: bbp-admin/bbp-topics.php:160
2736
  msgid ""
2737
+ "You can refine the list to show only topics from a specific month by using "
2738
+ "the dropdown menus above the topics list. Click the Filter button after "
2739
+ "making your selection."
 
 
2740
  msgstr ""
2741
 
2742
+ #: bbp-admin/bbp-topics.php:161
2743
  msgid ""
2744
+ "You can also show only topics from a specific parent forum by using the "
2745
+ "parent forum dropdown above the topics list and selecting the parent forum. "
2746
+ "Click the Filter button after making your selection."
2747
  msgstr ""
2748
 
2749
+ #: bbp-admin/bbp-topics.php:162
2750
  msgid ""
2751
+ "You can refine the list by clicking on the topic creator in the topics list."
 
 
 
 
 
 
2752
  msgstr ""
2753
 
2754
+ #: bbp-admin/bbp-topics.php:165
2755
  msgid ""
2756
+ "Hovering over a row in the topics list will display action links that allow "
2757
+ "you to manage your topic. You can perform the following actions:"
 
2758
  msgstr ""
2759
 
2760
+ #: bbp-admin/bbp-topics.php:168
2761
  msgid ""
2762
+ "Edit takes you to the editing screen for that topic. You can also reach that "
2763
+ "screen by clicking on the topic title."
 
 
 
 
 
2764
  msgstr ""
2765
 
2766
+ #: bbp-admin/bbp-topics.php:169
2767
  msgid ""
2768
+ "Trash removes your topic from this list and places it in the trash, from "
2769
+ "which you can permanently delete it."
 
2770
  msgstr ""
2771
 
2772
+ #: bbp-admin/bbp-topics.php:170
2773
+ msgid "View will take you to your live topic to view the topic."
2774
  msgstr ""
2775
 
2776
+ #: bbp-admin/bbp-topics.php:171
2777
  msgid ""
2778
+ "Close will close your topic, disabling new replies within it. It will remain "
2779
+ "viewable to users, but replies will not be allowed."
 
2780
  msgstr ""
2781
 
2782
+ #: bbp-admin/bbp-topics.php:172
2783
  msgid ""
2784
+ "Stick (to front) will pin the topic to the front page of the forum that "
2785
+ "it&rsquo;s in. New topics will begin beneath the list of \"stuck\" topics, "
2786
+ "which will always sit at the top of the list."
2787
  msgstr ""
2788
 
2789
+ #: bbp-admin/bbp-topics.php:173
2790
  msgid ""
2791
+ "Spam will mark the topic as spam, closing the post to new replies and "
2792
+ "removing it from the public view."
2793
  msgstr ""
2794
 
2795
+ #: bbp-admin/bbp-topics.php:176
2796
  msgid ""
2797
+ "You can also edit multiple topics at once. Select the topics you want to "
2798
+ "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
2799
+ "Apply. You will be able to change the metadata for all selected topics at "
2800
+ "once. To remove a topic from the grouping, just click the x next to its name "
2801
+ "in the Bulk Edit area that appears."
2802
  msgstr ""
2803
 
2804
+ #: bbp-admin/bbp-topics.php:177
2805
  msgid ""
2806
+ "The Bulk Actions menu may also be used to delete multiple topics at once. "
2807
+ "Select Delete from the dropdown after making your selection."
 
2808
  msgstr ""
2809
 
2810
+ #: bbp-admin/bbp-topics.php:197
2811
  msgid ""
2812
+ "You can change the display of this screen using the Screen Options tab to "
2813
+ "set how many items are displayed per screen (20 by default) and to display/"
2814
+ "hide columns in the table (Description, Slug, and Topics)."
2815
  msgstr ""
2816
 
2817
+ #: bbp-admin/bbp-topics.php:198
2818
  msgid ""
2819
+ "You can assign keywords to your topics using Topic Tags. Unlike categories, "
2820
+ "tags have no hierarchy, meaning there is no relationship from one tag to "
2821
+ "another."
2822
  msgstr ""
2823
 
2824
+ #: bbp-admin/bbp-topics.php:199
2825
  msgid ""
2826
+ "Normally, tags are ad-hoc keywords that identify important information in "
2827
+ "your topic (names, subjects, etc) that may or may not recur in other topics. "
2828
+ "If you think of your forum like a book, the tags are like the terms in the "
2829
+ "index."
2830
  msgstr ""
2831
 
2832
+ #: bbp-admin/bbp-topics.php:200
2833
+ msgid ""
2834
+ "When editing a topic tag on this screen, you will fill in the following "
2835
+ "fields:"
2836
+ msgstr ""
2837
+
2838
+ #: bbp-admin/bbp-topics.php:203
2839
+ msgid "<strong>Name</strong> - The name is how it appears on your site."
2840
+ msgstr ""
2841
+
2842
+ #: bbp-admin/bbp-topics.php:204
2843
+ msgid ""
2844
+ "<strong>Slug</strong> - The Slug is the URL-friendly version of the name. It "
2845
+ "is usually all lowercase and contains only letters, numbers, and hyphens."
2846
+ msgstr ""
2847
+
2848
+ #: bbp-admin/bbp-topics.php:205
2849
+ msgid ""
2850
+ "<strong>Description</strong> - The description is not prominent by default; "
2851
+ "however, some forum themes may display it."
2852
+ msgstr ""
2853
+
2854
+ #: bbp-admin/bbp-topics.php:229
2855
+ msgid "Topic Attributes"
2856
+ msgstr ""
2857
+
2858
+ #: bbp-admin/bbp-topics.php:468
2859
+ msgid "The topic was not found!"
2860
+ msgstr ""
2861
+
2862
+ #: bbp-admin/bbp-topics.php:551
2863
+ msgid "There was a problem opening the topic \"%1$s\"."
2864
+ msgstr ""
2865
+
2866
+ #: bbp-admin/bbp-topics.php:551
2867
+ msgid "Topic \"%1$s\" successfully opened."
2868
+ msgstr ""
2869
+
2870
+ #: bbp-admin/bbp-topics.php:555
2871
+ msgid "There was a problem closing the topic \"%1$s\"."
2872
+ msgstr ""
2873
+
2874
+ #: bbp-admin/bbp-topics.php:555
2875
+ msgid "Topic \"%1$s\" successfully closed."
2876
+ msgstr ""
2877
+
2878
+ #: bbp-admin/bbp-topics.php:559
2879
+ msgid "There was a problem sticking the topic \"%1$s\" to front."
2880
+ msgstr ""
2881
+
2882
+ #: bbp-admin/bbp-topics.php:559
2883
+ msgid "Topic \"%1$s\" successfully sticked to front."
2884
+ msgstr ""
2885
+
2886
+ #: bbp-admin/bbp-topics.php:563
2887
+ msgid "There was a problem sticking the topic \"%1$s\"."
2888
+ msgstr ""
2889
+
2890
+ #: bbp-admin/bbp-topics.php:563
2891
+ msgid "Topic \"%1$s\" successfully sticked."
2892
+ msgstr ""
2893
+
2894
+ #: bbp-admin/bbp-topics.php:567
2895
+ msgid "There was a problem unsticking the topic \"%1$s\"."
2896
+ msgstr ""
2897
+
2898
+ #: bbp-admin/bbp-topics.php:567
2899
+ msgid "Topic \"%1$s\" successfully unsticked."
2900
+ msgstr ""
2901
+
2902
+ #: bbp-admin/bbp-topics.php:571
2903
+ msgid "There was a problem marking the topic \"%1$s\" as spam."
2904
+ msgstr ""
2905
+
2906
+ #: bbp-admin/bbp-topics.php:571
2907
+ msgid "Topic \"%1$s\" successfully marked as spam."
2908
+ msgstr ""
2909
+
2910
+ #: bbp-admin/bbp-topics.php:575
2911
+ msgid "There was a problem unmarking the topic \"%1$s\" as spam."
2912
+ msgstr ""
2913
+
2914
+ #: bbp-admin/bbp-topics.php:575
2915
+ msgid "Topic \"%1$s\" successfully unmarked as spam."
2916
+ msgstr ""
2917
+
2918
+ #: bbp-admin/bbp-topics.php:696 bbp-admin/bbp-forums.php:450
2919
+ msgid "%s ago"
2920
  msgstr ""
2921
 
2922
+ #: bbp-admin/bbp-topics.php:754
2923
+ msgid "Close this topic"
 
 
2924
  msgstr ""
2925
 
2926
+ #: bbp-admin/bbp-topics.php:756
2927
+ msgid "Open this topic"
 
 
 
 
 
2928
  msgstr ""
2929
 
2930
+ #: bbp-admin/bbp-topics.php:765
2931
+ msgid "Unstick this topic"
 
 
2932
  msgstr ""
2933
 
2934
+ #: bbp-admin/bbp-topics.php:768
2935
+ msgid "Stick this topic to its forum"
2936
  msgstr ""
2937
 
2938
+ #: bbp-admin/bbp-topics.php:768
2939
+ msgid "Stick this topic to front"
2940
  msgstr ""
2941
 
2942
+ #: bbp-admin/bbp-topics.php:775
2943
+ msgid "Mark the topic as not spam"
2944
  msgstr ""
2945
 
2946
+ #: bbp-admin/bbp-topics.php:777
2947
+ msgid "Mark this topic as spam"
2948
  msgstr ""
2949
 
2950
+ #: bbp-admin/bbp-topics.php:913
2951
+ msgid "Topic updated. <a href=\"%s\">View topic</a>"
2952
  msgstr ""
2953
 
2954
+ #: bbp-admin/bbp-topics.php:922
2955
+ msgid "Topic updated."
2956
  msgstr ""
2957
 
2958
+ #: bbp-admin/bbp-topics.php:927
2959
+ msgid "Topic restored to revision from %s"
2960
  msgstr ""
2961
 
2962
+ #: bbp-admin/bbp-topics.php:931
2963
+ msgid "Topic created. <a href=\"%s\">View topic</a>"
2964
  msgstr ""
2965
 
2966
+ #: bbp-admin/bbp-topics.php:934
2967
+ msgid "Topic saved."
2968
  msgstr ""
2969
 
2970
+ #: bbp-admin/bbp-topics.php:937
2971
+ msgid "Topic submitted. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
 
 
2972
  msgstr ""
2973
 
2974
+ #: bbp-admin/bbp-topics.php:940
2975
+ msgid ""
2976
+ "Topic scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
2977
+ "\">Preview topic</a>"
2978
  msgstr ""
2979
 
2980
+ #: bbp-admin/bbp-topics.php:947
2981
+ msgid "Topic draft updated. <a target=\"_blank\" href=\"%s\">Preview topic</a>"
2982
  msgstr ""
2983
 
2984
+ #: bbp-admin/bbp-tools.php:53
2985
+ msgid "bbPress Recount"
2986
  msgstr ""
2987
 
2988
+ #: bbp-admin/bbp-tools.php:57
2989
+ msgid ""
2990
+ "bbPress keeps a running count of things like replies to each topic and "
2991
+ "topics in each forum. In rare occasions these counts can fall out of sync. "
2992
+ "Using this form you can have bbPress manually recount these items."
2993
  msgstr ""
2994
 
2995
+ #: bbp-admin/bbp-tools.php:58
2996
+ msgid "You can also use this form to clean out stale items like empty tags."
2997
  msgstr ""
2998
 
2999
+ #: bbp-admin/bbp-tools.php:64
3000
+ msgid "Things to recount:"
3001
  msgstr ""
3002
 
3003
+ #: bbp-admin/bbp-tools.php:78
3004
+ msgid "There are no recount tools available."
3005
  msgstr ""
3006
 
3007
+ #: bbp-admin/bbp-tools.php:89
3008
+ msgid "Recount Items"
3009
  msgstr ""
3010
 
3011
+ #: bbp-admin/bbp-settings.php:23
3012
+ msgid "Main settings for the bbPress plugin"
3013
  msgstr ""
3014
 
3015
+ #: bbp-admin/bbp-settings.php:39
3016
+ msgid "minutes"
3017
  msgstr ""
3018
 
3019
+ #: bbp-admin/bbp-settings.php:55
3020
+ msgid "seconds"
3021
  msgstr ""
3022
 
3023
+ #: bbp-admin/bbp-settings.php:71
3024
+ msgid "Allow users to mark topics as favorites?"
3025
  msgstr ""
3026
 
3027
+ #: bbp-admin/bbp-settings.php:87
3028
+ msgid "Allow users to subscribe to topics"
3029
  msgstr ""
3030
 
3031
+ #: bbp-admin/bbp-settings.php:103
3032
+ msgid "Allow guest users without accounts to create topics and replies"
 
 
3033
  msgstr ""
3034
 
3035
+ #: bbp-admin/bbp-settings.php:118
3036
+ msgid "Per page settings for the bbPress plugin"
3037
  msgstr ""
3038
 
3039
+ #: bbp-admin/bbp-settings.php:134 bbp-admin/bbp-settings.php:150
3040
+ #: bbp-admin/bbp-settings.php:181 bbp-admin/bbp-settings.php:197
3041
+ msgid "per page"
3042
  msgstr ""
3043
 
3044
+ #: bbp-admin/bbp-settings.php:165
3045
+ msgid "Per RSS page settings for the bbPress plugin"
3046
  msgstr ""
3047
 
3048
+ #: bbp-admin/bbp-settings.php:215
3049
+ msgid ""
3050
+ "Include custom root slugs to prefix your forums and topics with. These can "
3051
+ "be partnered with WordPress pages to allow more flexibility."
3052
  msgstr ""
3053
 
3054
+ #: bbp-admin/bbp-settings.php:267
3055
+ msgid ""
3056
+ "You can enter custom slugs for your single forums, topics, replies, and tags "
3057
+ "URLs here. If you change these, existing permalinks will also change."
3058
  msgstr ""
3059
 
3060
+ #: bbp-admin/bbp-settings.php:283
3061
+ msgid "Incude the Forum Base slug in your single forum item links"
3062
  msgstr ""
3063
 
3064
+ #: bbp-admin/bbp-settings.php:411
3065
+ msgid "bbPress Settings"
3066
  msgstr ""
3067
 
3068
+ #: bbp-admin/bbp-settings.php:435
3069
+ msgid "This screen provides access to basic bbPress settings."
3070
  msgstr ""
3071
 
3072
+ #: bbp-admin/bbp-settings.php:436
3073
+ msgid "In the Main Settings you have a number of options:"
3074
  msgstr ""
3075
 
3076
+ #: bbp-admin/bbp-settings.php:439
3077
+ msgid ""
3078
+ "You can choose to lock a post after a certain number of minutes. \"Locking "
3079
+ "post editing\" will prevent the author from editing some amount of time "
3080
+ "after saving a post."
3081
  msgstr ""
3082
 
3083
+ #: bbp-admin/bbp-settings.php:440
3084
+ msgid ""
3085
+ "\"Throttle time\" is the amount of time required between posts from a single "
3086
+ "author. The higher the throttle time, the longer a user will need to wait "
3087
+ "between posting to the forum."
3088
  msgstr ""
3089
 
3090
+ #: bbp-admin/bbp-settings.php:441
3091
+ msgid ""
3092
+ "You may choose to allow favorites, which are a way for users to save and "
3093
+ "later return to topics they favor. This is enabled by default."
 
 
 
3094
  msgstr ""
3095
 
3096
+ #: bbp-admin/bbp-settings.php:442
3097
+ msgid ""
3098
+ "You may choose to allow subscriptions, which allows users to subscribe for "
3099
+ "notifications to topics that interest them. This is enabled by default."
 
 
3100
  msgstr ""
3101
 
3102
+ #: bbp-admin/bbp-settings.php:443
3103
+ msgid ""
3104
+ "You may choose to allow \"Anonymous Posting\", which will allow guest users "
3105
+ "who do not have accounts on your site to both create topics as well as "
3106
+ "replies."
3107
  msgstr ""
3108
 
3109
+ #: bbp-admin/bbp-settings.php:446
3110
  msgid ""
3111
+ "Per Page settings allow you to control the number of topics and replies will "
3112
+ "appear on each of those pages. This is comparable to the WordPress \"Reading "
3113
+ "Settings\" page, where you can set the number of posts that should show on "
3114
+ "blog pages and in feeds."
3115
  msgstr ""
3116
 
3117
+ #: bbp-admin/bbp-settings.php:447
3118
+ msgid ""
3119
+ "The Forums section allows you to control the permalink structure for your "
3120
+ "forums. Each \"base\" is what will be displayed after your main URL and "
3121
+ "right before your permalink slug."
3122
  msgstr ""
3123
 
3124
+ #: bbp-admin/bbp-settings.php:448
3125
+ msgid ""
3126
+ "You must click the Save Changes button at the bottom of the screen for new "
3127
+ "settings to take effect."
3128
  msgstr ""
3129
 
3130
+ #: bbp-admin/bbp-settings.php:537
3131
+ msgid "Pages"
3132
  msgstr ""
3133
 
3134
+ #: bbp-admin/bbp-settings.php:538
3135
+ msgid "Revisions"
3136
  msgstr ""
3137
 
3138
+ #: bbp-admin/bbp-settings.php:539
3139
+ msgid "Attachments"
3140
  msgstr ""
3141
 
3142
+ #: bbp-admin/bbp-settings.php:540
3143
+ msgid "Menus"
3144
  msgstr ""
3145
 
3146
+ #: bbp-admin/bbp-settings.php:543
3147
+ msgid "Tag base"
3148
  msgstr ""
3149
 
3150
+ #: bbp-admin/bbp-settings.php:546
3151
+ msgid "Category base"
3152
  msgstr ""
3153
 
3154
+ #: bbp-admin/bbp-settings.php:551
3155
+ msgid "Forums base"
3156
  msgstr ""
3157
 
3158
+ #: bbp-admin/bbp-settings.php:554
3159
+ msgid "Topics base"
3160
  msgstr ""
3161
 
3162
+ #: bbp-admin/bbp-settings.php:584
3163
+ msgid "Possible \"%s\" conflict"
3164
  msgstr ""
3165
 
3166
+ #: bbp-admin/bbp-forums.php:115
3167
  msgid ""
3168
+ "The forum title field and the big forum editing area are fixed in place, but "
3169
+ "you can reposition all the other boxes using drag and drop, and can minimize "
3170
+ "or expand them by clicking the title bar of the box. Use the Screen Options "
3171
+ "tab to unhide more boxes (like Slug) or to choose a 1- or 2-column layout "
3172
+ "for this screen."
 
 
3173
  msgstr ""
3174
 
3175
+ #: bbp-admin/bbp-forums.php:116
3176
+ msgid ""
3177
+ "<strong>Title</strong> - Enter a title for your forum. After you enter a "
3178
+ "title, you will see the permalink appear below it, which is fully editable."
3179
  msgstr ""
3180
 
3181
+ #: bbp-admin/bbp-forums.php:117
3182
+ msgid ""
3183
+ "<strong>Post editor</strong> - Enter the description for your forum. There "
3184
+ "are two modes of editing: Visual and HTML. Choose the mode by clicking on "
3185
+ "the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last "
3186
+ "icon in the row to get a second row of controls. The screen icon just before "
3187
+ "that allows you to expand the edit box to full screen. The HTML mode allows "
3188
+ "you to enter raw HTML along with your forum text. You can insert media files "
3189
+ "by clicking the icons above the post editor and following the directions."
3190
  msgstr ""
3191
 
3192
+ #: bbp-admin/bbp-forums.php:118
3193
+ msgid ""
3194
+ "<strong>Forum Attributes</strong> - Select the various attributes that your "
3195
+ "forum should have:"
3196
  msgstr ""
3197
 
3198
+ #: bbp-admin/bbp-forums.php:121
3199
  msgid ""
3200
+ "Forum Type determines whether it is a Forum (by default) or a Category, "
3201
+ "which means no new topics (only other forums) can be created within it."
 
 
 
3202
  msgstr ""
3203
 
3204
+ #: bbp-admin/bbp-forums.php:122
3205
  msgid ""
3206
+ "Forum Status controls whether it is open (and thus can be posted to) or "
3207
+ "closed (thus not able to be posted to)."
3208
  msgstr ""
3209
 
3210
+ #: bbp-admin/bbp-forums.php:123
3211
  msgid ""
3212
+ "Visibility can be set to either Public (by default, seen by everyone), "
3213
+ "Private (seen only by chosen users), and Hidden (hidden from all users)."
 
 
 
 
 
3214
  msgstr ""
3215
 
3216
+ #: bbp-admin/bbp-forums.php:124
3217
  msgid ""
3218
+ "Parent turns the forum into a child forum of the selected forum/category in "
3219
+ "the dropdown."
 
 
3220
  msgstr ""
3221
 
3222
+ #: bbp-admin/bbp-forums.php:125
3223
  msgid ""
3224
+ "Order determines the order that forums in the given hierarchy are displayed "
3225
+ "(lower numbers first, higher numbers last)."
 
 
 
 
 
3226
  msgstr ""
3227
 
3228
+ #: bbp-admin/bbp-forums.php:128
3229
  msgid ""
3230
+ "<strong>Publish</strong> - The Publish box will allow you to Preview your "
3231
+ "forum before it is published, Publish your forum to your site, or Move to "
3232
+ "Trash will move your forum to the trash."
 
3233
  msgstr ""
3234
 
3235
+ #: bbp-admin/bbp-forums.php:129
3236
  msgid ""
3237
  "<strong>Revisions</strong> - Revisions show past versions of the saved "
3238
+ "forum. Each revision can be compared to the current version, or another "
3239
  "revision. Revisions can also be restored to the current version."
3240
  msgstr ""
3241
 
3242
+ #: bbp-admin/bbp-forums.php:149
3243
+ msgid "This screen displays the forums available on your site."
3244
  msgstr ""
3245
 
3246
+ #: bbp-admin/bbp-forums.php:153
3247
  msgid ""
3248
+ "You can hide/display columns based on your needs and decide how many forums "
3249
  "to list per screen using the Screen Options tab."
3250
  msgstr ""
3251
 
3252
+ #: bbp-admin/bbp-forums.php:154
3253
  msgid ""
3254
+ "You can filter the list of forums by forum status using the text links in "
3255
+ "the upper left to show All, Published, or Trashed forums. The default view "
3256
+ "is to show all forums."
3257
  msgstr ""
3258
 
3259
+ #: bbp-admin/bbp-forums.php:155
3260
  msgid ""
3261
+ "You can refine the list to show only forums from a specific month by using "
3262
+ "the dropdown menus above the forums list. Click the Filter button after "
3263
+ "making your selection. You also can refine the list by clicking on the forum "
3264
+ "creator in the forums list."
3265
  msgstr ""
3266
 
3267
+ #: bbp-admin/bbp-forums.php:158
3268
  msgid ""
3269
+ "Hovering over a row in the forums list will display action links that allow "
3270
+ "you to manage your forum. You can perform the following actions:"
 
3271
  msgstr ""
3272
 
3273
+ #: bbp-admin/bbp-forums.php:161
3274
  msgid ""
3275
+ "Edit takes you to the editing screen for that forum. You can also reach that "
3276
+ "screen by clicking on the forum title."
 
3277
  msgstr ""
3278
 
3279
+ #: bbp-admin/bbp-forums.php:162
3280
  msgid ""
3281
+ "Trash removes your forum from this list and places it in the trash, from "
3282
+ "which you can permanently delete it."
3283
  msgstr ""
3284
 
3285
+ #: bbp-admin/bbp-forums.php:163
3286
+ msgid "View will take you to your live forum to view the forum."
 
 
3287
  msgstr ""
3288
 
3289
+ #: bbp-admin/bbp-forums.php:166
3290
  msgid ""
3291
+ "You can also edit multiple forums at once. Select the forums you want to "
3292
+ "edit using the checkboxes, select Edit from the Bulk Actions menu and click "
3293
+ "Apply. You will be able to change the metadata for all selected forums at "
3294
+ "once. To remove a forum from the grouping, just click the x next to its name "
3295
+ "in the Bulk Edit area that appears."
3296
  msgstr ""
3297
 
3298
+ #: bbp-admin/bbp-forums.php:167
3299
  msgid ""
3300
+ "The Bulk Actions menu may also be used to delete multiple forums at once. "
3301
+ "Select Delete from the dropdown after making your selection."
3302
  msgstr ""
3303
 
3304
+ #: bbp-admin/bbp-forums.php:195
3305
+ msgid "Forum Attributes"
3306
  msgstr ""
3307
 
3308
+ #: bbp-admin/bbp-forums.php:517
3309
+ msgid "Forum updated. <a href=\"%s\">View forum</a>"
 
 
3310
  msgstr ""
3311
 
3312
+ #: bbp-admin/bbp-forums.php:526
3313
+ msgid "Forum updated."
 
 
 
3314
  msgstr ""
3315
 
3316
+ #: bbp-admin/bbp-forums.php:531
3317
+ msgid "Forum restored to revision from %s"
 
 
3318
  msgstr ""
3319
 
3320
+ #: bbp-admin/bbp-forums.php:535
3321
+ msgid "Forum created. <a href=\"%s\">View forum</a>"
 
 
 
 
 
3322
  msgstr ""
3323
 
3324
+ #: bbp-admin/bbp-forums.php:538
3325
+ msgid "Forum saved."
 
 
3326
  msgstr ""
3327
 
3328
+ #: bbp-admin/bbp-forums.php:541
3329
+ msgid "Forum submitted. <a target=\"_blank\" href=\"%s\">Preview forum</a>"
 
 
 
3330
  msgstr ""
3331
 
3332
+ #: bbp-admin/bbp-forums.php:544
3333
  msgid ""
3334
+ "Forum scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s"
3335
+ "\">Preview forum</a>"
 
3336
  msgstr ""
3337
 
3338
+ #: bbp-admin/bbp-forums.php:551
3339
+ msgid "Forum draft updated. <a target=\"_blank\" href=\"%s\">Preview forum</a>"
 
 
 
 
3340
  msgstr ""
3341
 
3342
+ #: bbpress.php:558
3343
+ msgid "All Forums"
 
 
3344
  msgstr ""
3345
 
3346
+ #: bbpress.php:559 bbpress.php:563
3347
+ msgid "New Forum"
3348
  msgstr ""
3349
 
3350
+ #: bbpress.php:560
3351
+ msgid "Create New Forum"
 
 
3352
  msgstr ""
3353
 
3354
+ #: bbpress.php:562
3355
+ msgid "Edit Forum"
 
 
3356
  msgstr ""
3357
 
3358
+ #: bbpress.php:564 bbpress.php:565
3359
+ msgid "View Forum"
3360
  msgstr ""
3361
 
3362
+ #: bbpress.php:566
3363
+ msgid "Search Forums"
3364
  msgstr ""
3365
 
3366
+ #: bbpress.php:567
3367
+ msgid "No forums found"
3368
  msgstr ""
3369
 
3370
+ #: bbpress.php:568
3371
+ msgid "No forums found in Trash"
3372
  msgstr ""
3373
 
3374
+ #: bbpress.php:569
3375
+ msgid "Parent Forum:"
3376
  msgstr ""
3377
 
3378
+ #: bbpress.php:590
3379
+ msgid "bbPress Forums"
3380
  msgstr ""
3381
 
3382
+ #: bbpress.php:616 bbpress.php:620
3383
+ msgid "New Topic"
3384
  msgstr ""
3385
 
3386
+ #: bbpress.php:617
3387
+ msgid "Create New Topic"
3388
  msgstr ""
3389
 
3390
+ #: bbpress.php:619
3391
+ msgid "Edit Topic"
3392
  msgstr ""
3393
 
3394
+ #: bbpress.php:621 bbpress.php:622
3395
+ msgid "View Topic"
3396
  msgstr ""
3397
 
3398
+ #: bbpress.php:623
3399
+ msgid "Search Topics"
3400
  msgstr ""
3401
 
3402
+ #: bbpress.php:624
3403
+ msgid "No topics found"
3404
  msgstr ""
3405
 
3406
+ #: bbpress.php:625
3407
+ msgid "No topics found in Trash"
3408
  msgstr ""
3409
 
3410
+ #: bbpress.php:647
3411
+ msgid "bbPress Topics"
3412
  msgstr ""
3413
 
3414
+ #: bbpress.php:673 bbpress.php:677
3415
+ msgid "New Reply"
3416
  msgstr ""
3417
 
3418
+ #: bbpress.php:674
3419
+ msgid "Create New Reply"
3420
  msgstr ""
3421
 
3422
+ #: bbpress.php:676
3423
+ msgid "Edit Reply"
3424
  msgstr ""
3425
 
3426
+ #: bbpress.php:678 bbpress.php:679
3427
+ msgid "View Reply"
3428
  msgstr ""
3429
 
3430
+ #: bbpress.php:680
3431
+ msgid "Search Replies"
3432
  msgstr ""
3433
 
3434
+ #: bbpress.php:681
3435
+ msgid "No replies found"
3436
  msgstr ""
3437
 
3438
+ #: bbpress.php:682
3439
+ msgid "No replies found in Trash"
3440
  msgstr ""
3441
 
3442
+ #: bbpress.php:683
3443
+ msgid "Topic:"
3444
  msgstr ""
3445
 
3446
+ #: bbpress.php:704
3447
+ msgid "bbPress Replies"
3448
  msgstr ""
3449
 
3450
+ #: bbpress.php:738
3451
+ msgctxt "post"
3452
+ msgid "Closed"
3453
  msgstr ""
3454
 
3455
+ #: bbpress.php:739
3456
+ msgctxt "bbpress"
3457
+ msgid "Closed <span class=\"count\">(%s)</span>"
3458
+ msgid_plural "Closed <span class=\"count\">(%s)</span>"
3459
+ msgstr[0] ""
3460
+ msgstr[1] ""
3461
+
3462
+ #: bbpress.php:747
3463
+ msgctxt "post"
3464
+ msgid "Spam"
3465
  msgstr ""
3466
 
3467
+ #: bbpress.php:748
3468
+ msgctxt "bbpress"
3469
+ msgid "Spam <span class=\"count\">(%s)</span>"
3470
+ msgid_plural "Spam <span class=\"count\">(%s)</span>"
3471
+ msgstr[0] ""
3472
+ msgstr[1] ""
3473
+
3474
+ #: bbpress.php:758
3475
+ msgctxt "post"
3476
+ msgid "Orphan"
3477
  msgstr ""
3478
 
3479
+ #: bbpress.php:759
3480
+ msgctxt "bbpress"
3481
+ msgid "Orphan <span class=\"count\">(%s)</span>"
3482
+ msgid_plural "Orphans <span class=\"count\">(%s)</span>"
3483
+ msgstr[0] ""
3484
+ msgstr[1] ""
3485
+
3486
+ #: bbpress.php:769
3487
+ msgctxt "post"
3488
+ msgid "Hidden"
3489
  msgstr ""
3490
 
3491
+ #: bbpress.php:770
3492
+ msgctxt "bbpress"
3493
+ msgid "Hidden <span class=\"count\">(%s)</span>"
3494
+ msgid_plural "Hidden <span class=\"count\">(%s)</span>"
3495
+ msgstr[0] ""
3496
+ msgstr[1] ""
3497
+
3498
+ #: bbpress.php:813
3499
+ msgid "Search Tags"
3500
  msgstr ""
3501
 
3502
+ #: bbpress.php:814
3503
+ msgid "Popular Tags"
3504
  msgstr ""
3505
 
3506
+ #: bbpress.php:815
3507
+ msgid "All Tags"
 
 
3508
  msgstr ""
3509
 
3510
+ #: bbpress.php:816
3511
+ msgid "Edit Tag"
3512
+ msgstr ""
3513
+
3514
+ #: bbpress.php:817
3515
+ msgid "Update Tag"
3516
+ msgstr ""
3517
+
3518
+ #: bbpress.php:818
3519
+ msgid "Add New Tag"
3520
+ msgstr ""
3521
+
3522
+ #: bbpress.php:819
3523
+ msgid "New Tag Name"
3524
+ msgstr ""
3525
+
3526
+ #: bbpress.php:866
3527
+ msgid "Topics with no replies"
3528
  msgstr ""
3529
 
3530
  #. Plugin Name of the plugin/theme
3531
  msgid "bbPress"
3532
  msgstr ""
3533
 
3534
+ #. #-#-#-#-# plugin.pot (bbPress 2.0-beta-3) #-#-#-#-#
3535
  #. Plugin URI of the plugin/theme
3536
+ #. #-#-#-#-# plugin.pot (bbPress 2.0-beta-3) #-#-#-#-#
3537
  #. Author URI of the plugin/theme
3538
  msgid "http://bbpress.org"
3539
  msgstr ""
bbp-languages/index.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not put custom translations here. They will be deleted on bbPress updates.
5
+ *
6
+ * Keep custom bbPress themes in /wp-content/languages/
7
+ */
8
+
9
+ ?>
bbp-themes/bbp-twentyten/archive-forum.php CHANGED
@@ -17,22 +17,10 @@
17
  <?php do_action( 'bbp_template_notices' ); ?>
18
 
19
  <div id="forum-front" class="bbp-forum-front">
20
- <h1 class="entry-title"><?php _e( 'Forums', 'bbpress' ); ?></h1>
21
  <div class="entry-content">
22
 
23
- <?php do_action( 'bbp_template_before_forums_index' ); ?>
24
-
25
- <?php if ( bbp_has_forums() ) : ?>
26
-
27
- <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
28
-
29
- <?php else : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/no', 'forums' ); ?>
32
-
33
- <?php endif; ?>
34
-
35
- <?php do_action( 'bbp_template_after_forums_index' ); ?>
36
 
37
  </div>
38
  </div><!-- #forum-front -->
17
  <?php do_action( 'bbp_template_notices' ); ?>
18
 
19
  <div id="forum-front" class="bbp-forum-front">
20
+ <h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
21
  <div class="entry-content">
22
 
23
+ <?php bbp_get_template_part( 'bbpress/content', 'archive-forums' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  </div>
26
  </div><!-- #forum-front -->
bbp-themes/bbp-twentyten/archive-topic.php CHANGED
@@ -16,36 +16,14 @@
16
 
17
  <?php do_action( 'bbp_template_notices' ); ?>
18
 
19
- <?php while ( have_posts() ) : the_post(); ?>
 
 
20
 
21
- <div id="topics-front" class="bbp-topics-front">
22
- <h1 class="entry-title"><?php the_title(); ?></h1>
23
- <div class="entry-content">
24
 
25
- <?php bbp_breadcrumb(); ?>
26
-
27
- <?php do_action( 'bbp_template_before_topics_index' ); ?>
28
-
29
- <?php if ( bbp_has_topics() ) : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
32
-
33
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
34
-
35
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
36
-
37
- <?php else : ?>
38
-
39
- <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
40
-
41
- <?php endif; ?>
42
-
43
- <?php do_action( 'bbp_template_after_topics_index' ); ?>
44
-
45
- </div>
46
- </div><!-- #topics-front -->
47
-
48
- <?php endwhile; ?>
49
 
50
  </div><!-- #content -->
51
  </div><!-- #container -->
16
 
17
  <?php do_action( 'bbp_template_notices' ); ?>
18
 
19
+ <div id="topic-front" class="bbp-topics-front">
20
+ <h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
21
+ <div class="entry-content">
22
 
23
+ <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
 
 
24
 
25
+ </div>
26
+ </div><!-- #topics-front -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  </div><!-- #content -->
29
  </div><!-- #container -->
bbp-themes/bbp-twentyten/bbpress/content-archive-forum.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Archive Forum Content Part
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php bbp_breadcrumb(); ?>
13
+
14
+ <?php do_action( 'bbp_template_before_forums_index' ); ?>
15
+
16
+ <?php if ( bbp_has_forums() ) : ?>
17
+
18
+ <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
19
+
20
+ <?php else : ?>
21
+
22
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-forums' ); ?>
23
+
24
+ <?php endif; ?>
25
+
26
+ <?php do_action( 'bbp_template_after_forums_index' ); ?>
bbp-themes/bbp-twentyten/bbpress/content-archive-topic.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Archive Topic Content Part
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php bbp_breadcrumb(); ?>
13
+
14
+ <?php do_action( 'bbp_template_before_topics_index' ); ?>
15
+
16
+ <?php if ( bbp_has_topics() ) : ?>
17
+
18
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
19
+
20
+ <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
21
+
22
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
23
+
24
+ <?php else : ?>
25
+
26
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
27
+
28
+ <?php endif; ?>
29
+
30
+ <?php do_action( 'bbp_template_after_topics_index' ); ?>
bbp-themes/bbp-twentyten/bbpress/content-single-forum.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Single Topic Content Part
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php bbp_breadcrumb(); ?>
13
+
14
+ <?php if ( post_password_required() ) : ?>
15
+
16
+ <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
17
+
18
+ <?php else : ?>
19
+
20
+ <?php bbp_single_forum_description(); ?>
21
+
22
+ <?php if ( bbp_get_forum_subforum_count() && bbp_has_forums() ) : ?>
23
+
24
+ <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
25
+
26
+ <?php endif; ?>
27
+
28
+ <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
29
+
30
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
31
+
32
+ <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
33
+
34
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
35
+
36
+ <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
37
+
38
+ <?php elseif( !bbp_is_forum_category() ) : ?>
39
+
40
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
41
+
42
+ <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
43
+
44
+ <?php endif; ?>
45
+
46
+ <?php endif; ?>
bbp-themes/bbp-twentyten/bbpress/{single-topic.php → content-single-topic-lead.php} RENAMED
@@ -9,8 +9,6 @@
9
 
10
  ?>
11
 
12
- <?php if ( bbp_show_lead_topic() ) : ?>
13
-
14
  <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
15
  <thead>
16
  <tr>
@@ -73,5 +71,3 @@
73
 
74
  </tbody>
75
  </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
76
-
77
- <?php endif; ?>
9
 
10
  ?>
11
 
 
 
12
  <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
13
  <thead>
14
  <tr>
71
 
72
  </tbody>
73
  </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
 
 
bbp-themes/bbp-twentyten/bbpress/content-single-topic.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ native
2
+ <?php
3
+
4
+ /**
5
+ * Single Topic Content Part
6
+ *
7
+ * @package bbPress
8
+ * @subpackage Theme
9
+ */
10
+
11
+ ?>
12
+
13
+ <?php bbp_breadcrumb(); ?>
14
+
15
+ <?php do_action( 'bbp_template_before_single_topic' ); ?>
16
+
17
+ <?php if ( post_password_required() ) : ?>
18
+
19
+ <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
20
+
21
+ <?php else : ?>
22
+
23
+ <?php bbp_topic_tag_list(); ?>
24
+
25
+ <?php bbp_single_topic_description(); ?>
26
+
27
+ <?php if ( bbp_show_lead_topic() ) : ?>
28
+
29
+ <?php bbp_get_template_part( 'bbpress/content', 'single-topic-lead' ); ?>
30
+
31
+ <?php endif; ?>
32
+
33
+ <?php if ( bbp_get_query_name() || bbp_has_replies() ) : ?>
34
+
35
+ <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
36
+
37
+ <?php bbp_get_template_part( 'bbpress/loop', 'replies' ); ?>
38
+
39
+ <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
40
+
41
+ <?php endif; ?>
42
+
43
+ <?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
44
+
45
+ <?php endif; ?>
46
+
47
+ <?php do_action( 'bbp_template_after_single_topic' ); ?>
bbp-themes/bbp-twentyten/bbpress/content-single-user-edit.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ native
2
+ <?php
3
+
4
+ /**
5
+ * Single User Edit Part
6
+ *
7
+ * @package bbPress
8
+ * @subpackage Theme
9
+ */
10
+
11
+ ?>
12
+
13
+ <?php do_action( 'bbp_template_notices' );
14
+
15
+ // Profile details
16
+ bbp_get_template_part( 'bbpress/user', 'details' );
17
+
18
+ // User edit form
19
+ bbp_get_template_part( 'bbpress/form', 'user-edit' );
20
+
21
+ ?>
bbp-themes/bbp-twentyten/bbpress/content-single-user.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Single User Part
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php do_action( 'bbp_template_notices' );
13
+
14
+ // Profile details
15
+ bbp_get_template_part( 'bbpress/user', 'details' );
16
+
17
+ // Subscriptions
18
+ bbp_get_template_part( 'bbpress/user', 'subscriptions' );
19
+
20
+ // Favorite topics
21
+ bbp_get_template_part( 'bbpress/user', 'favorites' );
22
+
23
+ // Topics created
24
+ bbp_get_template_part( 'bbpress/user', 'topics-created' );
25
+
26
+ ?>
bbp-themes/bbp-twentyten/bbpress/content-single-view.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ native
2
+ <?php
3
+
4
+ /**
5
+ * Single View Content Part
6
+ *
7
+ * @package bbPress
8
+ * @subpackage Theme
9
+ */
10
+
11
+ ?>
12
+
13
+ <?php bbp_breadcrumb(); ?>
14
+
15
+ <?php bbp_set_query_name( 'bbp_view' ); ?>
16
+
17
+ <?php if ( bbp_view_query() ) : ?>
18
+
19
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
20
+
21
+ <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
22
+
23
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
24
+
25
+ <?php else : ?>
26
+
27
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
28
+
29
+ <?php endif; ?>
30
+
31
+ <?php bbp_reset_query_name(); ?>
bbp-themes/bbp-twentyten/bbpress/feedback-logged-in.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Already Logged In
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <div class="bbp-template-notice info">
13
+ <p><?php _e( 'You are already logged in.', 'bbpress' ); ?></p>
14
+ </div>
bbp-themes/bbp-twentyten/bbpress/{no-access.php → feedback-no-access.php} RENAMED
File without changes
bbp-themes/bbp-twentyten/bbpress/{no-forums.php → feedback-no-forums.php} RENAMED
File without changes
bbp-themes/bbp-twentyten/bbpress/{no-topics.php → feedback-no-topics.php} RENAMED
File without changes
bbp-themes/bbp-twentyten/bbpress/form-merge.php DELETED
@@ -1,103 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Merge Topic
5
- *
6
- * @package bbPress
7
- * @subpackage Theme
8
- */
9
-
10
- ?>
11
-
12
- <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
13
-
14
- <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
15
-
16
- <form id="merge_topic" name="merge_topic" method="post" action="">
17
-
18
- <fieldset class="bbp-form">
19
-
20
- <legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
21
-
22
- <div>
23
-
24
- <div class="bbp-template-notice info">
25
- <p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></p>
26
- <p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></p>
27
- </div>
28
-
29
- <div class="bbp-template-notice">
30
- <p><?php _e( 'All replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted. If the destination topic was created after this one, it\'s post date will be updated to second earlier than this one.', 'bbpress' ); ?></p>
31
- </div>
32
-
33
- <fieldset class="bbp-form">
34
- <legend><?php _e( 'Destination', 'bbpress' ); ?></legend>
35
- <div>
36
- <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
37
-
38
- <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>
39
-
40
- <?php
41
- bbp_dropdown( array(
42
- 'post_type' => bbp_get_topic_post_type(),
43
- 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
44
- 'selected' => -1,
45
- 'exclude' => bbp_get_topic_id(),
46
- 'select_id' => 'bbp_destination_topic',
47
- 'none_found' => __( 'No topics were found to which the topic could be merged to!', 'bbpress' )
48
- ) );
49
- ?>
50
-
51
- <?php else : ?>
52
-
53
- <label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
54
-
55
- <?php endif; ?>
56
-
57
- </div>
58
- </fieldset>
59
-
60
- <fieldset class="bbp-form">
61
- <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
62
-
63
- <div>
64
-
65
- <?php if ( bbp_is_subscriptions_active() ) : ?>
66
-
67
- <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
68
- <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
69
-
70
- <?php endif; ?>
71
-
72
- <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
73
- <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
74
-
75
- <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
76
- <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />
77
-
78
- </div>
79
- </fieldset>
80
-
81
- <div class="bbp-template-notice error">
82
- <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
83
- </div>
84
-
85
- <div class="bbp-submit-wrapper">
86
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
87
- </div>
88
- </div>
89
-
90
- <?php bbp_merge_topic_form_fields(); ?>
91
-
92
- </fieldset>
93
- </form>
94
- </div>
95
-
96
- <?php else : ?>
97
-
98
- <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
99
- <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
100
- </div>
101
-
102
-
103
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/bbpress/form-reply.php CHANGED
@@ -12,131 +12,137 @@ wp_reset_postdata();
12
 
13
  ?>
14
 
15
- <?php if ( bbp_is_reply_edit() || bbp_is_topic_open() || current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
16
 
17
- <?php if ( ( bbp_is_reply_edit() && current_user_can( 'edit_reply', bbp_get_reply_id() ) ) || ( current_user_can( 'publish_topics' ) || bbp_allow_anonymous() ) ) : ?>
18
 
19
- <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
20
 
21
- <form id="new-post" name="new-post" method="post" action="">
22
- <fieldset class="bbp-form">
23
- <legend><?php printf( __( 'Reply to: &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
24
 
25
- <?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) : ?>
26
 
27
- <div class="bbp-template-notice">
28
- <p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
29
- </div>
30
 
31
- <?php endif; ?>
 
 
32
 
33
- <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
34
 
35
- <div class="bbp-template-notice">
36
- <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
37
- </div>
38
 
39
- <?php endif; ?>
40
 
41
- <?php do_action( 'bbp_template_notices' ); ?>
42
 
43
- <div>
 
 
44
 
45
- <div class="avatar">
46
 
47
- <?php bbp_is_reply_edit() ? bbp_reply_author_avatar( bbp_get_reply_id(), 120 ) : bbp_current_user_avatar( 120 ); ?>
48
 
49
- </div>
 
 
50
 
51
- <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
52
 
53
- <p>
54
- <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
55
- <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" cols="51" rows="6"><?php bbp_form_reply_content(); ?></textarea>
56
- </p>
57
 
58
- <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
59
 
60
- <p class="form-allowed-tags">
61
- <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
62
- <code><?php bbp_allowed_tags(); ?></code>
63
  </p>
64
 
65
- <?php endif; ?>
66
 
67
- <p>
68
- <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
69
- <input id="bbp_topic_tags" type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" />
70
- </p>
71
 
72
- <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
73
 
74
  <p>
 
 
 
75
 
76
- <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
77
 
78
- <?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>
79
 
80
- <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
81
 
82
- <?php else : ?>
83
 
84
- <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
85
 
86
- <?php endif; ?>
87
 
88
- </p>
89
 
90
- <?php endif; ?>
91
 
92
- <?php if ( bbp_is_reply_edit() ) : ?>
93
 
94
- <fieldset class="bbp-form">
95
- <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
96
- <div>
97
- <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
98
- <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
99
- </div>
100
 
101
- <div>
102
- <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
103
- <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
104
- </div>
105
- </fieldset>
106
 
107
- <?php else : ?>
 
 
 
 
 
108
 
109
- <?php bbp_topic_admin_links(); ?>
 
 
 
 
110
 
111
- <?php endif; ?>
112
 
113
- <div class="bbp-submit-wrapper">
114
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
 
 
 
 
 
115
  </div>
116
- </div>
117
 
118
- <?php bbp_reply_form_fields(); ?>
119
 
120
- </fieldset>
121
- </form>
122
- </div>
 
 
 
 
 
 
 
 
 
 
123
 
124
  <?php else : ?>
125
 
126
  <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
127
  <div class="bbp-template-notice">
128
- <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
129
  </div>
130
  </div>
131
 
132
  <?php endif; ?>
133
-
134
- <?php else : ?>
135
-
136
- <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
137
- <div class="bbp-template-notice">
138
- <p><?php _e( 'This topic has been closed to new replies.', 'bbpress' ); ?></p>
139
- </div>
140
- </div>
141
-
142
- <?php endif; ?>
12
 
13
  ?>
14
 
15
+ <?php if ( bbp_is_reply_edit() ) : ?>
16
 
17
+ <?php bbp_breadcrumb(); ?>
18
 
19
+ <?php endif; ?>
20
 
21
+ <?php if ( bbp_is_reply_edit() || bbp_is_topic_open() || current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
 
 
22
 
23
+ <?php if ( ( bbp_is_reply_edit() && current_user_can( 'edit_reply', bbp_get_reply_id() ) ) || ( current_user_can( 'publish_topics' ) || bbp_allow_anonymous() ) ) : ?>
24
 
25
+ <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
 
 
26
 
27
+ <form id="new-post" name="new-post" method="post" action="">
28
+ <fieldset class="bbp-form">
29
+ <legend><?php printf( __( 'Reply to: &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
30
 
31
+ <?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) : ?>
32
 
33
+ <div class="bbp-template-notice">
34
+ <p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
35
+ </div>
36
 
37
+ <?php endif; ?>
38
 
39
+ <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
40
 
41
+ <div class="bbp-template-notice">
42
+ <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
43
+ </div>
44
 
45
+ <?php endif; ?>
46
 
47
+ <?php do_action( 'bbp_template_notices' ); ?>
48
 
49
+ <div>
50
+
51
+ <div class="avatar">
52
 
53
+ <?php bbp_is_reply_edit() ? bbp_reply_author_avatar( bbp_get_reply_id(), 120 ) : bbp_current_user_avatar( 120 ); ?>
54
 
55
+ </div>
 
 
 
56
 
57
+ <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
58
 
59
+ <p>
60
+ <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
61
+ <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" cols="51" rows="6"><?php bbp_form_reply_content(); ?></textarea>
62
  </p>
63
 
64
+ <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
65
 
66
+ <p class="form-allowed-tags">
67
+ <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
68
+ <code><?php bbp_allowed_tags(); ?></code>
69
+ </p>
70
 
71
+ <?php endif; ?>
72
 
73
  <p>
74
+ <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
75
+ <input id="bbp_topic_tags" type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" />
76
+ </p>
77
 
78
+ <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
79
 
80
+ <p>
81
 
82
+ <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
83
 
84
+ <?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>
85
 
86
+ <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
87
 
88
+ <?php else : ?>
89
 
90
+ <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
91
 
92
+ <?php endif; ?>
93
 
94
+ </p>
95
 
96
+ <?php endif; ?>
 
 
 
 
 
97
 
98
+ <?php if ( bbp_is_reply_edit() ) : ?>
 
 
 
 
99
 
100
+ <fieldset class="bbp-form">
101
+ <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
102
+ <div>
103
+ <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
104
+ <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
105
+ </div>
106
 
107
+ <div>
108
+ <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
109
+ <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
110
+ </div>
111
+ </fieldset>
112
 
113
+ <?php else : ?>
114
 
115
+ <?php bbp_topic_admin_links(); ?>
116
+
117
+ <?php endif; ?>
118
+
119
+ <div class="bbp-submit-wrapper">
120
+ <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
121
+ </div>
122
  </div>
 
123
 
124
+ <?php bbp_reply_form_fields(); ?>
125
 
126
+ </fieldset>
127
+ </form>
128
+ </div>
129
+
130
+ <?php else : ?>
131
+
132
+ <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
133
+ <div class="bbp-template-notice">
134
+ <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
135
+ </div>
136
+ </div>
137
+
138
+ <?php endif; ?>
139
 
140
  <?php else : ?>
141
 
142
  <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
143
  <div class="bbp-template-notice">
144
+ <p><?php _e( 'This topic has been closed to new replies.', 'bbpress' ); ?></p>
145
  </div>
146
  </div>
147
 
148
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/bbpress/form-split.php DELETED
@@ -1,106 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Split Topic
5
- *
6
- * @package bbPress
7
- * @subpackage Theme
8
- */
9
-
10
- ?>
11
-
12
- <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
13
-
14
- <div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
15
-
16
- <form id="split_topic" name="split_topic" method="post" action="">
17
-
18
- <fieldset class="bbp-form">
19
-
20
- <legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
21
-
22
- <div>
23
-
24
- <div class="bbp-template-notice info">
25
- <p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></p>
26
- </div>
27
-
28
- <div class="bbp-template-notice">
29
- <p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></p>
30
- </div>
31
-
32
- <fieldset class="bbp-form">
33
- <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>
34
-
35
- <div>
36
- <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>" />
37
- <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
38
- <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="35" name="bbp_topic_split_destination_title" />
39
- </div>
40
-
41
- <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
42
-
43
- <div>
44
- <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>" />
45
- <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
46
-
47
- <?php
48
- bbp_dropdown( array(
49
- 'post_type' => bbp_get_topic_post_type(),
50
- 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
51
- 'selected' => -1,
52
- 'exclude' => bbp_get_topic_id(),
53
- 'select_id' => 'bbp_destination_topic',
54
- 'none_found' => __( 'No other topics found!', 'bbpress' )
55
- ) );
56
- ?>
57
-
58
- </div>
59
-
60
- <?php endif; ?>
61
-
62
- </fieldset>
63
-
64
- <fieldset class="bbp-form">
65
- <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
66
-
67
- <div>
68
-
69
- <?php if ( bbp_is_subscriptions_active() ) : ?>
70
-
71
- <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
72
- <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
73
-
74
- <?php endif; ?>
75
-
76
- <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
77
- <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
78
-
79
- <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
80
- <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
81
-
82
- </div>
83
- </fieldset>
84
-
85
- <div class="bbp-template-notice error">
86
- <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
87
- </div>
88
-
89
- <div class="bbp-submit-wrapper">
90
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
91
- </div>
92
- </div>
93
-
94
- <?php bbp_split_topic_form_fields(); ?>
95
-
96
- </fieldset>
97
- </form>
98
- </div>
99
-
100
- <?php else : ?>
101
-
102
- <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
103
- <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
104
- </div>
105
-
106
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/bbpress/form-topic-merge.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Merge Topic
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php bbp_breadcrumb(); ?>
13
+
14
+ <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
15
+
16
+ <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
17
+
18
+ <form id="merge_topic" name="merge_topic" method="post" action="">
19
+
20
+ <fieldset class="bbp-form">
21
+
22
+ <legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
23
+
24
+ <div>
25
+
26
+ <div class="bbp-template-notice info">
27
+ <p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></p>
28
+ <p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></p>
29
+ </div>
30
+
31
+ <div class="bbp-template-notice">
32
+ <p><?php _e( 'All replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted. If the destination topic was created after this one, it\'s post date will be updated to second earlier than this one.', 'bbpress' ); ?></p>
33
+ </div>
34
+
35
+ <fieldset class="bbp-form">
36
+ <legend><?php _e( 'Destination', 'bbpress' ); ?></legend>
37
+ <div>
38
+ <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
39
+
40
+ <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>
41
+
42
+ <?php
43
+ bbp_dropdown( array(
44
+ 'post_type' => bbp_get_topic_post_type(),
45
+ 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
46
+ 'selected' => -1,
47
+ 'exclude' => bbp_get_topic_id(),
48
+ 'select_id' => 'bbp_destination_topic',
49
+ 'none_found' => __( 'No topics were found to which the topic could be merged to!', 'bbpress' )
50
+ ) );
51
+ ?>
52
+
53
+ <?php else : ?>
54
+
55
+ <label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
56
+
57
+ <?php endif; ?>
58
+
59
+ </div>
60
+ </fieldset>
61
+
62
+ <fieldset class="bbp-form">
63
+ <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
64
+
65
+ <div>
66
+
67
+ <?php if ( bbp_is_subscriptions_active() ) : ?>
68
+
69
+ <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
70
+ <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
71
+
72
+ <?php endif; ?>
73
+
74
+ <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
75
+ <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
76
+
77
+ <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
78
+ <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />
79
+
80
+ </div>
81
+ </fieldset>
82
+
83
+ <div class="bbp-template-notice error">
84
+ <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
85
+ </div>
86
+
87
+ <div class="bbp-submit-wrapper">
88
+ <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
89
+ </div>
90
+ </div>
91
+
92
+ <?php bbp_merge_topic_form_fields(); ?>
93
+
94
+ </fieldset>
95
+ </form>
96
+ </div>
97
+
98
+ <?php else : ?>
99
+
100
+ <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
101
+ <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
102
+ </div>
103
+
104
+ <?php endif; ?>
bbp-themes/bbp-twentyten/bbpress/form-topic-split.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Split Topic
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php bbp_breadcrumb(); ?>
13
+
14
+ <?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
15
+
16
+ <div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
17
+
18
+ <form id="split_topic" name="split_topic" method="post" action="">
19
+
20
+ <fieldset class="bbp-form">
21
+
22
+ <legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
23
+
24
+ <div>
25
+
26
+ <div class="bbp-template-notice info">
27
+ <p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></p>
28
+ </div>
29
+
30
+ <div class="bbp-template-notice">
31
+ <p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></p>
32
+ </div>
33
+
34
+ <fieldset class="bbp-form">
35
+ <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>
36
+
37
+ <div>
38
+ <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>" />
39
+ <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
40
+ <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="35" name="bbp_topic_split_destination_title" />
41
+ </div>
42
+
43
+ <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
44
+
45
+ <div>
46
+ <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>" />
47
+ <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
48
+
49
+ <?php
50
+ bbp_dropdown( array(
51
+ 'post_type' => bbp_get_topic_post_type(),
52
+ 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
53
+ 'selected' => -1,
54
+ 'exclude' => bbp_get_topic_id(),
55
+ 'select_id' => 'bbp_destination_topic',
56
+ 'none_found' => __( 'No other topics found!', 'bbpress' )
57
+ ) );
58
+ ?>
59
+
60
+ </div>
61
+
62
+ <?php endif; ?>
63
+
64
+ </fieldset>
65
+
66
+ <fieldset class="bbp-form">
67
+ <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
68
+
69
+ <div>
70
+
71
+ <?php if ( bbp_is_subscriptions_active() ) : ?>
72
+
73
+ <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
74
+ <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
75
+
76
+ <?php endif; ?>
77
+
78
+ <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
79
+ <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
80
+
81
+ <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
82
+ <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
83
+
84
+ </div>
85
+ </fieldset>
86
+
87
+ <div class="bbp-template-notice error">
88
+ <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
89
+ </div>
90
+
91
+ <div class="bbp-submit-wrapper">
92
+ <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
93
+ </div>
94
+ </div>
95
+
96
+ <?php bbp_split_topic_form_fields(); ?>
97
+
98
+ </fieldset>
99
+ </form>
100
+ </div>
101
+
102
+ <?php else : ?>
103
+
104
+ <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
105
+ <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
106
+ </div>
107
+
108
+ <?php endif; ?>
bbp-themes/bbp-twentyten/bbpress/form-topic.php CHANGED
@@ -12,6 +12,20 @@ wp_reset_postdata();
12
 
13
  ?>
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
16
 
17
  <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
@@ -57,8 +71,8 @@ wp_reset_postdata();
57
  <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
58
 
59
  <p>
60
- <label for="bbp_topic_title"><?php _e( 'Topic Title:', 'bbpress' ); ?></label><br />
61
- <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" />
62
  </p>
63
 
64
  <p>
12
 
13
  ?>
14
 
15
+ <?php if ( !bbp_is_forum() ) : ?>
16
+
17
+ <?php bbp_breadcrumb(); ?>
18
+
19
+ <?php endif; ?>
20
+
21
+ <?php if ( bbp_is_topic_edit() ) : ?>
22
+
23
+ <?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
24
+
25
+ <?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
26
+
27
+ <?php endif; ?>
28
+
29
  <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
30
 
31
  <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
71
  <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
72
 
73
  <p>
74
+ <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
75
+ <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
76
  </p>
77
 
78
  <p>
bbp-themes/bbp-twentyten/bbpress/form-user-login.php CHANGED
@@ -24,7 +24,7 @@
24
  </div>
25
 
26
  <div class="bbp-remember-me">
27
- <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
28
  <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
29
  </div>
30
 
@@ -38,4 +38,4 @@
38
 
39
  </div>
40
  </fieldset>
41
- </form>
24
  </div>
25
 
26
  <div class="bbp-remember-me">
27
+ <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
28
  <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
29
  </div>
30
 
38
 
39
  </div>
40
  </fieldset>
41
+ </form>
bbp-themes/bbp-twentyten/bbpress/loop-forums.php CHANGED
@@ -9,6 +9,8 @@
9
 
10
  ?>
11
 
 
 
12
  <table class="bbp-forums">
13
 
14
  <thead>
@@ -21,7 +23,7 @@
21
  </thead>
22
 
23
  <tfoot>
24
- <tr><td colspan="4">&nbsp;<?php // @todo - Moderation links ?></td></tr>
25
  </tfoot>
26
 
27
  <tbody>
@@ -60,3 +62,5 @@
60
  </tbody>
61
 
62
  </table>
 
 
9
 
10
  ?>
11
 
12
+ <?php do_action( 'bbp_template_before_forums_loop' ); ?>
13
+
14
  <table class="bbp-forums">
15
 
16
  <thead>
23
  </thead>
24
 
25
  <tfoot>
26
+ <tr><td colspan="4">&nbsp;</td></tr>
27
  </tfoot>
28
 
29
  <tbody>
62
  </tbody>
63
 
64
  </table>
65
+
66
+ <?php do_action( 'bbp_template_after_forums_loop' ); ?>
bbp-themes/bbp-twentyten/bbpress/loop-replies.php CHANGED
@@ -9,6 +9,8 @@
9
 
10
  ?>
11
 
 
 
12
  <table class="bbp-replies" id="topic-<?php bbp_topic_id(); ?>-replies">
13
  <thead>
14
  <tr>
@@ -95,3 +97,5 @@
95
  </tbody>
96
 
97
  </table>
 
 
9
 
10
  ?>
11
 
12
+ <?php do_action( 'bbp_template_before_replies_loop' ); ?>
13
+
14
  <table class="bbp-replies" id="topic-<?php bbp_topic_id(); ?>-replies">
15
  <thead>
16
  <tr>
97
  </tbody>
98
 
99
  </table>
100
+
101
+ <?php do_action( 'bbp_template_after_replies_loop' ); ?>
bbp-themes/bbp-twentyten/bbpress/loop-topics.php CHANGED
@@ -9,6 +9,8 @@
9
 
10
  ?>
11
 
 
 
12
  <table class="bbp-topics" id="bbp-forum-<?php bbp_topic_id(); ?>">
13
  <thead>
14
  <tr>
@@ -92,3 +94,6 @@
92
  </tbody>
93
 
94
  </table><!-- #bbp-forum-<?php bbp_topic_id(); ?> -->
 
 
 
9
 
10
  ?>
11
 
12
+ <?php do_action( 'bbp_template_before_topics_loop' ); ?>
13
+
14
  <table class="bbp-topics" id="bbp-forum-<?php bbp_topic_id(); ?>">
15
  <thead>
16
  <tr>
94
  </tbody>
95
 
96
  </table><!-- #bbp-forum-<?php bbp_topic_id(); ?> -->
97
+
98
+ <?php do_action( 'bbp_template_after_topics_loop' ); ?>
99
+
bbp-themes/bbp-twentyten/bbpress/pagination-replies.php CHANGED
@@ -9,6 +9,8 @@
9
 
10
  ?>
11
 
 
 
12
  <div class="bbp-pagination">
13
  <div class="bbp-pagination-count">
14
 
@@ -22,3 +24,5 @@
22
 
23
  </div>
24
  </div>
 
 
9
 
10
  ?>
11
 
12
+ <?php do_action( 'bbp_template_before_pagination_loop' ); ?>
13
+
14
  <div class="bbp-pagination">
15
  <div class="bbp-pagination-count">
16
 
24
 
25
  </div>
26
  </div>
27
+
28
+ <?php do_action( 'bbp_template_after_pagination_loop' ); ?>
bbp-themes/bbp-twentyten/bbpress/pagination-topics.php CHANGED
@@ -9,6 +9,8 @@
9
 
10
  ?>
11
 
 
 
12
  <div class="bbp-pagination">
13
  <div class="bbp-pagination-count">
14
 
@@ -22,3 +24,5 @@
22
 
23
  </div>
24
  </div>
 
 
9
 
10
  ?>
11
 
12
+ <?php do_action( 'bbp_template_before_pagination_loop' ); ?>
13
+
14
  <div class="bbp-pagination">
15
  <div class="bbp-pagination-count">
16
 
24
 
25
  </div>
26
  </div>
27
+
28
+ <?php do_action( 'bbp_template_after_pagination_loop' ); ?>
bbp-themes/bbp-twentyten/bbpress/single-forum.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Single Forum Part
5
- *
6
- * @package bbPress
7
- * @subpackage Theme
8
- */
9
-
10
- ?>
11
-
12
- <?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
13
-
14
- <?php bbp_breadcrumb(); ?>
15
-
16
- <?php bbp_single_forum_description(); ?>
17
-
18
- <?php if ( bbp_get_forum_subforum_count() ) : ?>
19
-
20
- <?php if ( bbp_has_forums() ) : ?>
21
-
22
- <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
23
-
24
- <?php endif; ?>
25
-
26
- <?php endif; ?>
27
-
28
- <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
29
-
30
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
31
-
32
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
33
-
34
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
35
-
36
- <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
37
-
38
- <?php endif; ?>
39
-
40
- <?php elseif ( bbp_is_forum_private( bbp_get_forum_id(), false ) ) : ?>
41
-
42
- <?php bbp_get_template_part( 'bbpress/no', 'access'); ?>
43
-
44
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/bbpress/single-user.php DELETED
@@ -1,39 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Single User Part
5
- *
6
- * @package bbPress
7
- * @subpackage Theme
8
- */
9
-
10
- ?>
11
-
12
- <?php do_action( 'bbp_template_notices' ); ?>
13
-
14
- <?php
15
-
16
- // Profile details
17
- bbp_get_template_part( 'bbpress/user', 'details' );
18
-
19
- // Profile Edit
20
- if ( bbp_is_user_profile_edit() ) :
21
-
22
- // Subsciptions
23
- bbp_get_template_part( 'bbpress/form', 'user-edit' );
24
-
25
- // Profile Display
26
- else :
27
-
28
- // Subsciptions
29
- bbp_get_template_part( 'bbpress/user', 'subscriptions' );
30
-
31
- // Favorite topics
32
- bbp_get_template_part( 'bbpress/user', 'favorites' );
33
-
34
- // Topics created
35
- bbp_get_template_part( 'bbpress/user', 'topics-created' );
36
-
37
- endif;
38
-
39
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/bbpress/user-edit.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * bbPress User Profile Edit
5
- *
6
- * @package bbPress
7
- * @subpackage Theme
8
- */
9
-
10
- ?>
11
-
12
- <?php get_header(); ?>
13
-
14
- <div id="container">
15
- <div id="content" role="main">
16
-
17
- <?php do_action( 'bbp_template_notices' ); ?>
18
-
19
- <?php bbp_get_template_part( 'bbpress/user', 'details' ); ?>
20
-
21
- <div class="entry-content bbp-edit-user">
22
-
23
- <?php bbp_get_template_part( 'bbpress/form', 'user-edit' ); ?>
24
-
25
- </div>
26
- </div><!-- #content -->
27
- </div><!-- #container -->
28
-
29
- <?php get_sidebar(); ?>
30
- <?php get_footer(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbp-themes/bbp-twentyten/css/bbpress-rtl.css CHANGED
@@ -431,7 +431,8 @@ input[type="password"] {
431
  #bbp-your-profile fieldset legend {
432
  display: none;
433
  }
434
- #bbp-your-profile fieldset label {
 
435
  float: right;
436
  width: 150px;
437
  padding-left: 20px;
@@ -449,11 +450,14 @@ input[type="password"] {
449
  background-color: #f0f8ff;
450
  }
451
 
452
- #bbp-your-profile fieldset fieldset {
 
453
  margin: 0;
454
  width: 260px;
455
  border: none;
456
  padding: 0;
 
 
457
  }
458
  #bbp-your-profile fieldset fieldset span.description {
459
  margin-right: 0;
431
  #bbp-your-profile fieldset legend {
432
  display: none;
433
  }
434
+ #content #bbp-your-profile fieldset label,
435
+ #container #bbp-your-profile fieldset label {
436
  float: right;
437
  width: 150px;
438
  padding-left: 20px;
450
  background-color: #f0f8ff;
451
  }
452
 
453
+ #content #bbp-your-profile fieldset fieldset,
454
+ #container #bbp-your-profile fieldset fieldset {
455
  margin: 0;
456
  width: 260px;
457
  border: none;
458
  padding: 0;
459
+ clear: none;
460
+ float: none;
461
  }
462
  #bbp-your-profile fieldset fieldset span.description {
463
  margin-right: 0;
bbp-themes/bbp-twentyten/css/bbpress.css CHANGED
@@ -432,7 +432,8 @@ input[type="password"] {
432
  #bbp-your-profile fieldset legend {
433
  display: none;
434
  }
435
- #bbp-your-profile fieldset label {
 
436
  float: left;
437
  width: 150px;
438
  padding-right: 20px;
@@ -450,11 +451,14 @@ input[type="password"] {
450
  background-color: #f0f8ff;
451
  }
452
 
453
- #bbp-your-profile fieldset fieldset {
 
454
  margin: 0;
455
  width: 260px;
456
  border: none;
457
  padding: 0;
 
 
458
  }
459
  #bbp-your-profile fieldset fieldset span.description {
460
  margin-left: 0;
432
  #bbp-your-profile fieldset legend {
433
  display: none;
434
  }
435
+ #content #bbp-your-profile fieldset label,
436
+ #container #bbp-your-profile fieldset label {
437
  float: left;
438
  width: 150px;
439
  padding-right: 20px;
451
  background-color: #f0f8ff;
452
  }
453
 
454
+ #content #bbp-your-profile fieldset fieldset,
455
+ #container #bbp-your-profile fieldset fieldset {
456
  margin: 0;
457
  width: 260px;
458
  border: none;
459
  padding: 0;
460
+ clear: none;
461
+ float: none;
462
  }
463
  #bbp-your-profile fieldset fieldset span.description {
464
  margin-left: 0;
bbp-themes/bbp-twentyten/functions.php CHANGED
@@ -152,14 +152,14 @@ if ( !function_exists( 'bbp_twentyten_enqueue_scripts' ) ) :
152
  *
153
  * @uses bbp_is_topic() To check if it's the topic page
154
  * @uses get_stylesheet_directory_uri() To get the stylesheet directory uri
155
- * @uses bbp_is_user_profile_edit() To check if it's the profile edit page
156
  * @uses wp_enqueue_script() To enqueue the scripts
157
  */
158
  function bbp_twentyten_enqueue_scripts () {
159
  if ( bbp_is_topic() )
160
  wp_enqueue_script( 'bbp_topic', get_stylesheet_directory_uri() . '/js/topic.js', array( 'wp-lists' ), '20101202' );
161
 
162
- if ( bbp_is_user_profile_edit() )
163
  wp_enqueue_script( 'user-profile' );
164
  }
165
  add_action( 'wp_enqueue_scripts', 'bbp_twentyten_enqueue_scripts' );
@@ -173,7 +173,7 @@ if ( !function_exists( 'bbp_twentyten_scripts' ) ) :
173
  *
174
  * @uses bbp_is_topic() To check if it's the topic page
175
  * @uses admin_url() To get the admin url
176
- * @uses bbp_is_user_profile_edit() To check if it's the profile edit page
177
  */
178
  function bbp_twentyten_scripts () {
179
  if ( bbp_is_topic() ) : ?>
@@ -184,7 +184,7 @@ function bbp_twentyten_scripts () {
184
  /* ]]> */
185
  </script>
186
 
187
- <?php elseif ( bbp_is_user_profile_edit() ) : ?>
188
 
189
  <script type="text/javascript" charset="utf-8">
190
  if ( window.location.hash == '#password' ) {
152
  *
153
  * @uses bbp_is_topic() To check if it's the topic page
154
  * @uses get_stylesheet_directory_uri() To get the stylesheet directory uri
155
+ * @uses bbp_is_single_user_edit() To check if it's the profile edit page
156
  * @uses wp_enqueue_script() To enqueue the scripts
157
  */
158
  function bbp_twentyten_enqueue_scripts () {
159
  if ( bbp_is_topic() )
160
  wp_enqueue_script( 'bbp_topic', get_stylesheet_directory_uri() . '/js/topic.js', array( 'wp-lists' ), '20101202' );
161
 
162
+ if ( bbp_is_single_user_edit() )
163
  wp_enqueue_script( 'user-profile' );
164
  }
165
  add_action( 'wp_enqueue_scripts', 'bbp_twentyten_enqueue_scripts' );
173
  *
174
  * @uses bbp_is_topic() To check if it's the topic page
175
  * @uses admin_url() To get the admin url
176
+ * @uses bbp_is_single_user_edit() To check if it's the profile edit page
177
  */
178
  function bbp_twentyten_scripts () {
179
  if ( bbp_is_topic() ) : ?>
184
  /* ]]> */
185
  </script>
186
 
187
+ <?php elseif ( bbp_is_single_user_edit() ) : ?>
188
 
189
  <script type="text/javascript" charset="utf-8">
190
  if ( window.location.hash == '#password' ) {
bbp-themes/bbp-twentyten/page-front-forums.php CHANGED
@@ -24,19 +24,7 @@
24
 
25
  <?php the_content(); ?>
26
 
27
- <?php do_action( 'bbp_template_before_forums_index' ); ?>
28
-
29
- <?php if ( bbp_has_forums() ) : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
32
-
33
- <?php else : ?>
34
-
35
- <?php bbp_get_template_part( 'bbpress/no', 'forums' ); ?>
36
-
37
- <?php endif; ?>
38
-
39
- <?php do_action( 'bbp_template_after_forums_index' ); ?>
40
 
41
  </div>
42
  </div><!-- #forum-front -->
24
 
25
  <?php the_content(); ?>
26
 
27
+ <?php bbp_get_template_part( 'bbpress/content', 'archive-forums' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  </div>
30
  </div><!-- #forum-front -->
bbp-themes/bbp-twentyten/page-front-topics.php CHANGED
@@ -24,25 +24,7 @@
24
 
25
  <?php the_content(); ?>
26
 
27
- <?php bbp_breadcrumb(); ?>
28
-
29
- <?php do_action( 'bbp_template_before_topics_index' ); ?>
30
-
31
- <?php if ( bbp_has_topics() ) : ?>
32
-
33
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
34
-
35
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
36
-
37
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
38
-
39
- <?php else : ?>
40
-
41
- <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
42
-
43
- <?php endif; ?>
44
-
45
- <?php do_action( 'bbp_template_after_topics_index' ); ?>
46
 
47
  </div>
48
  </div><!-- #topics-front -->
24
 
25
  <?php the_content(); ?>
26
 
27
+ <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  </div>
30
  </div><!-- #topics-front -->
bbp-themes/bbp-twentyten/page-topics-no-replies.php CHANGED
@@ -30,15 +30,15 @@
30
 
31
  <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
32
 
33
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
34
 
35
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
36
 
37
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
38
 
39
  <?php else : ?>
40
 
41
- <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
42
 
43
  <?php endif; ?>
44
 
30
 
31
  <?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
32
 
33
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
34
 
35
+ <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
36
 
37
+ <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
38
 
39
  <?php else : ?>
40
 
41
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
42
 
43
  <?php endif; ?>
44
 
bbp-themes/bbp-twentyten/single-forum.php CHANGED
@@ -24,48 +24,14 @@
24
  <h1 class="entry-title"><?php bbp_forum_title(); ?></h1>
25
  <div class="entry-content">
26
 
27
- <?php bbp_breadcrumb(); ?>
28
-
29
- <?php if ( post_password_required() ) : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
32
-
33
- <?php else : ?>
34
-
35
- <?php bbp_single_forum_description(); ?>
36
-
37
- <?php if ( bbp_get_forum_subforum_count() && bbp_has_forums() ) : ?>
38
-
39
- <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
40
-
41
- <?php endif; ?>
42
-
43
- <?php if ( !bbp_is_forum_category() && bbp_has_topics() ) : ?>
44
-
45
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
46
-
47
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
48
-
49
- <?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
50
-
51
- <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
52
-
53
- <?php elseif( !bbp_is_forum_category() ) : ?>
54
-
55
- <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
56
-
57
- <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
58
-
59
- <?php endif; ?>
60
-
61
- <?php endif; ?>
62
 
63
  </div>
64
  </div><!-- #forum-<?php bbp_forum_id(); ?> -->
65
 
66
  <?php else : // Forum exists, user no access ?>
67
 
68
- <?php bbp_get_template_part( 'bbpress/no', 'access' ); ?>
69
 
70
  <?php endif; ?>
71
 
24
  <h1 class="entry-title"><?php bbp_forum_title(); ?></h1>
25
  <div class="entry-content">
26
 
27
+ <?php bbp_get_template_part( 'bbpress/content', 'single-forum' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  </div>
30
  </div><!-- #forum-<?php bbp_forum_id(); ?> -->
31
 
32
  <?php else : // Forum exists, user no access ?>
33
 
34
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?>
35
 
36
  <?php endif; ?>
37
 
bbp-themes/bbp-twentyten/{bbpress/action-edit.php → single-reply-edit.php} RENAMED
@@ -1,7 +1,8 @@
 
1
  <?php
2
 
3
  /**
4
- * Edit handler for topics and replies
5
  *
6
  * @package bbPress
7
  * @subpackage Theme
@@ -22,15 +23,7 @@
22
 
23
  <?php bbp_breadcrumb(); ?>
24
 
25
- <?php if ( bbp_is_reply_edit() ) : ?>
26
-
27
- <?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
28
-
29
- <?php elseif ( bbp_is_topic_edit() ) : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
32
-
33
- <?php endif; ?>
34
 
35
  </div>
36
  </div><!-- #bbp-edit-page -->
@@ -39,4 +32,4 @@
39
  </div><!-- #container -->
40
 
41
  <?php get_sidebar(); ?>
42
- <?php get_footer(); ?>
1
+ native
2
  <?php
3
 
4
  /**
5
+ * Edit handler for replies
6
  *
7
  * @package bbPress
8
  * @subpackage Theme
23
 
24
  <?php bbp_breadcrumb(); ?>
25
 
26
+ <?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
 
 
 
 
 
 
 
 
27
 
28
  </div>
29
  </div><!-- #bbp-edit-page -->
32
  </div><!-- #container -->
33
 
34
  <?php get_sidebar(); ?>
35
+ <?php get_footer(); ?>
bbp-themes/bbp-twentyten/single-topic-edit.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Edit handler for topics
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php get_header(); ?>
13
+
14
+ <div id="container">
15
+ <div id="content" role="main">
16
+
17
+ <?php while ( have_posts() ) the_post(); ?>
18
+
19
+ <div id="bbp-edit-page" class="bbp-edit-page">
20
+ <h1 class="entry-title"><?php the_title(); ?></h1>
21
+ <div class="entry-content">
22
+
23
+ <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
24
+
25
+ </div>
26
+ </div><!-- #bbp-edit-page -->
27
+
28
+ </div><!-- #content -->
29
+ </div><!-- #container -->
30
+
31
+ <?php get_sidebar(); ?>
32
+ <?php get_footer(); ?>
bbp-themes/bbp-twentyten/single-topic-merge.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ native
2
+ <?php
3
+
4
+ /**
5
+ * Merge topic page
6
+ *
7
+ * @package bbPress
8
+ * @subpackage Theme
9
+ */
10
+
11
+ ?>
12
+
13
+ <?php get_header(); ?>
14
+
15
+ <div id="container">
16
+ <div id="content" role="main">
17
+
18
+ <?php do_action( 'bbp_template_notices' ); ?>
19
+
20
+ <?php while ( have_posts() ) the_post(); ?>
21
+
22
+ <div id="bbp-edit-page" class="bbp-edit-page">
23
+ <h1 class="entry-title"><?php the_title(); ?></h1>
24
+ <div class="entry-content">
25
+
26
+ <?php bbp_get_template_part( 'bbpress/form', 'topic-merge' ); ?>
27
+
28
+ </div>
29
+ </div><!-- #bbp-edit-page -->
30
+
31
+ </div><!-- #content -->
32
+ </div><!-- #container -->
33
+
34
+ <?php get_sidebar(); ?>
35
+ <?php get_footer(); ?>
bbp-themes/bbp-twentyten/{bbpress/action-split-merge.php → single-topic-split.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Split/merge topic page
5
  *
6
  * @package bbPress
7
  * @subpackage Theme
@@ -22,17 +22,7 @@
22
  <h1 class="entry-title"><?php the_title(); ?></h1>
23
  <div class="entry-content">
24
 
25
- <?php bbp_breadcrumb(); ?>
26
-
27
- <?php if ( bbp_is_topic_merge() ) : ?>
28
-
29
- <?php bbp_get_template_part( 'bbpress/form', 'merge' ); ?>
30
-
31
- <?php elseif ( bbp_is_topic_split() ) : ?>
32
-
33
- <?php bbp_get_template_part( 'bbpress/form', 'split' ); ?>
34
-
35
- <?php endif; ?>
36
 
37
  </div>
38
  </div><!-- #bbp-edit-page -->
1
  <?php
2
 
3
  /**
4
+ * Split topic page
5
  *
6
  * @package bbPress
7
  * @subpackage Theme
22
  <h1 class="entry-title"><?php the_title(); ?></h1>
23
  <div class="entry-content">
24
 
25
+ <?php bbp_get_template_part( 'bbpress/form', 'topic-split' ); ?>
 
 
 
 
 
 
 
 
 
 
26
 
27
  </div>
28
  </div><!-- #bbp-edit-page -->
bbp-themes/bbp-twentyten/single-topic.php CHANGED
@@ -24,35 +24,7 @@
24
  <h1 class="entry-title"><?php bbp_topic_title(); ?></h1>
25
  <div class="entry-content">
26
 
27
- <?php bbp_breadcrumb(); ?>
28
-
29
- <?php if ( post_password_required() ) : ?>
30
-
31
- <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
32
-
33
- <?php else : ?>
34
-
35
- <?php bbp_topic_tag_list(); ?>
36
-
37
- <?php bbp_single_topic_description(); ?>
38
-
39
- <div id="ajax-response"></div>
40
-
41
- <?php bbp_get_template_part( 'bbpress/single', 'topic' ); ?>
42
-
43
- <?php if ( bbp_get_query_name() || bbp_has_replies() ) : ?>
44
-
45
- <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
46
-
47
- <?php bbp_get_template_part( 'bbpress/loop', 'replies' ); ?>
48
-
49
- <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
50
-
51
- <?php endif; ?>
52
-
53
- <?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
54
-
55
- <?php endif; ?>
56
 
57
  </div>
58
  </div><!-- #bbp-topic-wrapper-<?php bbp_topic_id(); ?> -->
@@ -61,7 +33,7 @@
61
 
62
  <?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
63
 
64
- <?php bbp_get_template_part( 'bbpress/no', 'access' ); ?>
65
 
66
  <?php endif; ?>
67
 
24
  <h1 class="entry-title"><?php bbp_topic_title(); ?></h1>
25
  <div class="entry-content">
26
 
27
+ <?php bbp_get_template_part( 'bbpress/content', 'single-topic' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  </div>
30
  </div><!-- #bbp-topic-wrapper-<?php bbp_topic_id(); ?> -->
33
 
34
  <?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
35
 
36
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-access' ); ?>
37
 
38
  <?php endif; ?>
39
 
bbp-themes/bbp-twentyten/single-user-edit.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * bbPress User Profile Edit
5
+ *
6
+ * @package bbPress
7
+ * @subpackage Theme
8
+ */
9
+
10
+ ?>
11
+
12
+ <?php get_header(); ?>
13
+
14
+ <div id="container">
15
+ <div id="content" role="main">
16
+
17
+ <div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
18
+ <div class="entry-content">
19
+
20
+ <?php bbp_get_template_part( 'bbpress/content', 'single-user-edit' ); ?>
21
+
22
+ </div><!-- .entry-content -->
23
+ </div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
24
+
25
+ </div><!-- #content -->
26
+ </div><!-- #container -->
27
+
28
+ <?php get_sidebar(); ?>
29
+ <?php get_footer(); ?>
bbp-themes/bbp-twentyten/{bbpress/user.php → single-user.php} RENAMED
@@ -17,7 +17,7 @@
17
  <div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
18
  <div class="entry-content">
19
 
20
- <?php bbp_get_template_part( 'bbpress/single', 'user' ); ?>
21
 
22
  </div><!-- .entry-content -->
23
  </div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
17
  <div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
18
  <div class="entry-content">
19
 
20
+ <?php bbp_get_template_part( 'bbpress/content', 'single-user' ); ?>
21
 
22
  </div><!-- .entry-content -->
23
  </div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
bbp-themes/bbp-twentyten/{bbpress/view.php → single-view.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * View Handler
5
  *
6
  * @package bbPress
7
  * @subpackage Theme
@@ -20,21 +20,7 @@
20
  <h1 class="entry-title"><?php bbp_view_title(); ?></h1>
21
  <div class="entry-content">
22
 
23
- <?php bbp_breadcrumb(); ?>
24
-
25
- <?php bbp_set_query_name( 'bbp_view' ); ?>
26
-
27
- <?php if ( bbp_view_query() ) : ?>
28
-
29
- <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>
30
-
31
- <?php else : ?>
32
-
33
- <p><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></p>
34
-
35
- <?php endif; ?>
36
-
37
- <?php bbp_reset_query_name(); ?>
38
 
39
  </div>
40
  </div><!-- #bbp-view-<?php bbp_view_id(); ?> -->
1
  <?php
2
 
3
  /**
4
+ * Single View
5
  *
6
  * @package bbPress
7
  * @subpackage Theme
20
  <h1 class="entry-title"><?php bbp_view_title(); ?></h1>
21
  <div class="entry-content">
22
 
23
+ <?php bbp_get_template_part( 'bbpress/content', 'single-view' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  </div>
26
  </div><!-- #bbp-view-<?php bbp_view_id(); ?> -->
bbp-themes/bbp-twentyten/style.css CHANGED
@@ -3,7 +3,7 @@
3
  * Theme URI: http://bbpress.org
4
  * Description: Adds bbPress forums to the Twenty Ten theme
5
  * Author: WordPress and bbPress teams
6
- * Version: 1.1
7
  * Tags: bbpress, black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
8
  * Template: twentyten
9
  *
3
  * Theme URI: http://bbpress.org
4
  * Description: Adds bbPress forums to the Twenty Ten theme
5
  * Author: WordPress and bbPress teams
6
+ * Version: 1.2
7
  * Tags: bbpress, black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
8
  * Template: twentyten
9
  *
bbp-themes/bbp-twentyten/taxonomy-topic-tag.php CHANGED
@@ -39,7 +39,7 @@
39
 
40
  <?php else : ?>
41
 
42
- <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
43
 
44
  <?php endif; ?>
45
 
39
 
40
  <?php else : ?>
41
 
42
+ <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
43
 
44
  <?php endif; ?>
45
 
bbp-themes/index.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not put custom themes here. They will be deleted on bbPress updates.
5
+ *
6
+ * Keep custom bbPress themes in /wp-content/themes/
7
+ */
8
+
9
+ ?>
bbpress.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: bbPress is forum software with a twist from the creators of WordPress.
16
  * Author: The bbPress Community
17
  * Author URI: http://bbpress.org
18
- * Version: 2.0-beta-2b
19
  */
20
 
21
  // Exit if accessed directly
@@ -30,7 +30,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
30
  * Note: Checking for defined( 'BBP_VERSION' ) in your code does NOT
31
  * guarantee bbPress is initialized and listening.
32
  */
33
- define( 'BBP_VERSION', '2.0-beta-2b' );
34
 
35
  if ( !class_exists( 'bbPress' ) ) :
36
  /**
@@ -48,122 +48,139 @@ class bbPress {
48
  /**
49
  * @var string Forum post type id
50
  */
51
- var $forum_post_type;
52
 
53
  /**
54
  * @var string Topic post type id
55
  */
56
- var $topic_post_type;
57
 
58
  /**
59
  * @var string Reply post type id
60
  */
61
- var $reply_post_type;
62
 
63
  /** Taxonomies ************************************************************/
64
 
65
  /**
66
  * @var string Topic tag id
67
  */
68
- var $topic_tag_id;
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  /** Post statuses *********************************************************/
71
 
72
  /**
73
  * @var string Closed post status id. Used by topics.
74
  */
75
- var $closed_status_id;
76
 
77
  /**
78
  * @var string Spam post status id. Used by topics and replies.
79
  */
80
- var $spam_status_id;
81
 
82
  /**
83
  * @var string Trash post status id. Used by topics and replies.
84
  */
85
- var $trash_status_id;
86
 
87
  /**
88
  * @var string Orphan post status id. Used by topics and replies.
89
  */
90
- var $orphan_status_id;
91
 
92
  /**
93
  * @var string Hidden post status id. Used by forums.
94
  */
95
- var $hidden_status_id;
96
 
97
  /** Slugs *****************************************************************/
98
 
99
  /**
100
  * @var string Root slug
101
  */
102
- var $root_slug;
103
 
104
  /**
105
  * @var string Forum slug
106
  */
107
- var $forum_slug;
108
 
109
  /**
110
  * @var string Topic slug
111
  */
112
- var $topic_slug;
113
 
114
  /**
115
  * @var string Topic archive slug
116
  */
117
- var $topic_archive_slug;
118
 
119
  /**
120
  * @var string Reply slug
121
  */
122
- var $reply_slug;
123
 
124
  /**
125
  * @var string Topic tag slug
126
  */
127
- var $topic_tag_slug;
128
 
129
  /**
130
  * @var string User slug
131
  */
132
- var $user_slug;
133
 
134
  /**
135
  * @var string View slug
136
  */
137
- var $view_slug;
138
 
139
  /** Paths *****************************************************************/
140
 
141
  /**
142
  * @var string Absolute path to the bbPress plugin directory
143
  */
144
- var $plugin_dir;
145
 
146
  /**
147
  * @var string Absolute path to the bbPress themes directory
148
  */
149
- var $themes_dir;
150
 
151
  /**
152
  * @var string Absolute path to the bbPress language directory
153
  */
154
- var $lang_dir;
155
 
156
  /** URLs ******************************************************************/
157
 
158
  /**
159
  * @var string URL to the bbPress plugin directory
160
  */
161
- var $plugin_url;
162
 
163
  /**
164
  * @var string URL to the bbPress themes directory
165
  */
166
- var $themes_url;
167
 
168
  /** Current ID's **********************************************************/
169
 
@@ -187,57 +204,71 @@ class bbPress {
187
  /**
188
  * @var object Current user
189
  */
190
- var $current_user;
191
 
192
  /**
193
  * @var object Displayed user
194
  */
195
- var $displayed_user;
196
 
197
  /** Queries ***************************************************************/
198
 
199
  /**
200
  * @var WP_Query For forums
201
  */
202
- var $forum_query;
203
 
204
  /**
205
  * @var WP_Query For topics
206
  */
207
- var $topic_query;
208
 
209
  /**
210
  * @var WP_Query For replies
211
  */
212
- var $reply_query;
213
 
214
  /** Arrays ****************************************************************/
215
 
216
  /**
217
  * @var array Sub Forums
218
  */
219
- var $sub_forums;
220
 
221
  /** Errors ****************************************************************/
222
 
223
  /**
224
  * @var WP_Error Used to log and display errors
225
  */
226
- var $errors;
227
 
228
  /** Views *****************************************************************/
229
 
230
  /**
231
  * @var array An array of registered bbPress views
232
  */
233
- var $views;
234
 
235
  /** Forms *****************************************************************/
236
 
237
  /**
238
  * @var int The current tab index for form building
239
  */
240
- var $tab_index;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
 
242
  /** Functions *************************************************************/
243
 
@@ -296,18 +327,23 @@ class bbPress {
296
  /** Identifiers *******************************************************/
297
 
298
  // Post type identifiers
299
- $this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' );
300
- $this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' );
301
- $this->reply_post_type = apply_filters( 'bbp_reply_post_type', 'reply' );
302
- $this->topic_tag_id = apply_filters( 'bbp_topic_tag_id', 'topic-tag' );
303
 
304
  // Status identifiers
305
- $this->spam_status_id = apply_filters( 'bbp_spam_post_status', 'spam' );
306
- $this->closed_status_id = apply_filters( 'bbp_closed_post_status', 'closed' );
307
- $this->orphan_status_id = apply_filters( 'bbp_orphan_post_status', 'orphan' );
308
- $this->hidden_status_id = apply_filters( 'bbp_hidden_post_status', 'hidden' );
309
- $this->trash_status_id = 'trash';
310
-
 
 
 
 
 
311
  /** Slugs *************************************************************/
312
 
313
  // Root forum slug
@@ -315,28 +351,28 @@ class bbPress {
315
  $this->topic_archive_slug = apply_filters( 'bbp_topic_archive_slug', get_option( '_bbp_topic_archive_slug', 'topics' ) );
316
 
317
  // Should we include the root slug in front of component slugs
318
- $prefix = !empty( $this->root_slug ) && get_option( '_bbp_include_root', true ) ? trailingslashit( $this->root_slug ) : '';
319
 
320
  // Component slugs
321
- $this->forum_slug = apply_filters( 'bbp_forum_slug', $prefix . get_option( '_bbp_forum_slug', 'forum' ) );
322
- $this->topic_slug = apply_filters( 'bbp_topic_slug', $prefix . get_option( '_bbp_topic_slug', 'topic' ) );
323
- $this->reply_slug = apply_filters( 'bbp_reply_slug', $prefix . get_option( '_bbp_reply_slug', 'reply' ) );
324
 
325
  // Taxonomy slugs
326
- $this->topic_tag_slug = apply_filters( 'bbp_topic_tag_slug', $prefix . get_option( '_bbp_topic_tag_slug', 'tag' ) );
327
 
328
  /** Other Slugs *******************************************************/
329
 
330
- $this->user_slug = apply_filters( 'bbp_user_slug', $prefix . get_option( '_bbp_user_slug', 'user' ) );
331
- $this->view_slug = apply_filters( 'bbp_view_slug', $prefix . get_option( '_bbp_view_slug', 'view' ) );
332
 
333
  /** Misc **************************************************************/
334
 
335
  // Errors
336
- $this->errors = new WP_Error();
337
 
338
  // Views
339
- $this->views = array();
340
 
341
  // Tab Index
342
  $this->tab_index = apply_filters( 'bbp_default_tab_index', 100 );
@@ -359,21 +395,40 @@ class bbPress {
359
 
360
  /** Individual files **************************************************/
361
 
362
- $files = array( 'loader', 'options', 'caps', 'hooks', 'classes', 'widgets', 'shortcodes', 'compatibility' );
 
 
 
 
 
 
 
 
 
363
 
364
  // Load the files
365
- foreach ( $files as $file )
366
  require( $this->plugin_dir . '/bbp-includes/bbp-core-' . $file . '.php' );
367
 
368
  /** Components ********************************************************/
369
 
370
- $components = array( 'general', 'forum', 'topic', 'reply', 'user' );
 
 
 
 
 
 
 
 
 
 
 
371
 
372
- // Load the function and template files
373
- foreach ( $components as $file ) {
374
- require( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-functions.php' );
375
- require( $this->plugin_dir . '/bbp-includes/bbp-' . $file . '-template.php' );
376
- }
377
 
378
  /** Admin *************************************************************/
379
 
@@ -424,9 +479,6 @@ class bbPress {
424
 
425
  // Generate rewrite rules
426
  add_action( 'bbp_generate_rewrite_rules', array( $this, 'generate_rewrite_rules' ), 10 );
427
-
428
- // Check theme compatability
429
- add_action( 'bbp_setup_theme_compat', array( $this, 'theme_compat' ), 10 );
430
  }
431
 
432
  /**
@@ -501,7 +553,9 @@ class bbPress {
501
  // Forum labels
502
  $forum['labels'] = array(
503
  'name' => __( 'Forums', 'bbpress' ),
 
504
  'singular_name' => __( 'Forum', 'bbpress' ),
 
505
  'add_new' => __( 'New Forum', 'bbpress' ),
506
  'add_new_item' => __( 'Create New Forum', 'bbpress' ),
507
  'edit' => __( 'Edit', 'bbpress' ),
@@ -530,21 +584,22 @@ class bbPress {
530
 
531
  // Forum filter
532
  $bbp_cpt['forum'] = apply_filters( 'bbp_register_forum_post_type', array(
533
- 'labels' => $forum['labels'],
534
- 'rewrite' => $forum['rewrite'],
535
- 'supports' => $forum['supports'],
536
- 'description' => __( 'bbPress Forums', 'bbpress' ),
537
- 'capabilities' => bbp_get_forum_caps(),
538
- 'capability_type' => 'forum',
539
- 'menu_position' => 56,
540
- 'has_archive' => !empty( $this->root_slug ) ? $this->root_slug : false,
541
- 'show_in_nav_menus' => true,
542
- 'public' => true,
543
- 'show_ui' => true,
544
- 'can_export' => true,
545
- 'hierarchical' => true,
546
- 'query_var' => true,
547
- 'menu_icon' => ''
 
548
  ) );
549
 
550
  // Register Forum content type
@@ -555,7 +610,9 @@ class bbPress {
555
  // Topic labels
556
  $topic['labels'] = array(
557
  'name' => __( 'Topics', 'bbpress' ),
 
558
  'singular_name' => __( 'Topic', 'bbpress' ),
 
559
  'add_new' => __( 'New Topic', 'bbpress' ),
560
  'add_new_item' => __( 'Create New Topic', 'bbpress' ),
561
  'edit' => __( 'Edit', 'bbpress' ),
@@ -584,21 +641,22 @@ class bbPress {
584
 
585
  // Topic Filter
586
  $bbp_cpt['topic'] = apply_filters( 'bbp_register_topic_post_type', array(
587
- 'labels' => $topic['labels'],
588
- 'rewrite' => $topic['rewrite'],
589
- 'supports' => $topic['supports'],
590
- 'description' => __( 'bbPress Topics', 'bbpress' ),
591
- 'capabilities' => bbp_get_topic_caps(),
592
- 'capability_type' => 'topic',
593
- 'menu_position' => 57,
594
- 'has_archive' => get_page_by_path( $this->topic_archive_slug ) ? false : $this->topic_archive_slug,
595
- 'show_in_nav_menus' => false,
596
- 'public' => true,
597
- 'show_ui' => true,
598
- 'can_export' => true,
599
- 'hierarchical' => false,
600
- 'query_var' => true,
601
- 'menu_icon' => ''
 
602
  ) );
603
 
604
  // Register Topic content type
@@ -609,7 +667,9 @@ class bbPress {
609
  // Reply labels
610
  $reply['labels'] = array(
611
  'name' => __( 'Replies', 'bbpress' ),
 
612
  'singular_name' => __( 'Reply', 'bbpress' ),
 
613
  'add_new' => __( 'New Reply', 'bbpress' ),
614
  'add_new_item' => __( 'Create New Reply', 'bbpress' ),
615
  'edit' => __( 'Edit', 'bbpress' ),
@@ -638,21 +698,22 @@ class bbPress {
638
 
639
  // Reply filter
640
  $bbp_cpt['reply'] = apply_filters( 'bbp_register_reply_post_type', array(
641
- 'labels' => $reply['labels'],
642
- 'rewrite' => $reply['rewrite'],
643
- 'supports' => $reply['supports'],
644
- 'description' => __( 'bbPress Replies', 'bbpress' ),
645
- 'capabilities' => bbp_get_reply_caps(),
646
- 'capability_type' => 'reply',
647
- 'menu_position' => 58,
648
- 'has_archive' => false,
649
- 'show_in_nav_menus' => false,
650
- 'public' => true,
651
- 'show_ui' => true,
652
- 'can_export' => true,
653
- 'hierarchical' => false,
654
- 'query_var' => true,
655
- 'menu_icon' => ''
 
656
  ) );
657
 
658
  // Register reply content type
@@ -722,9 +783,17 @@ class bbPress {
722
  * single trashed topics/replies in the front-end as wp_query
723
  * doesn't allow any hack for the trashed topics to be viewed.
724
  */
725
- if ( !empty( $wp_post_statuses['trash'] ) && current_user_can( 'view_trash' ) ) {
726
- $wp_post_statuses['trash']->internal = false; // changed to protected
727
- $wp_post_statuses['trash']->protected = true;
 
 
 
 
 
 
 
 
728
  }
729
  }
730
 
@@ -807,17 +876,10 @@ class bbPress {
807
  *
808
  * @since bbPress (r2697)
809
  *
810
- * @uses get_currentuserinfo()
811
- * @global WP_User Current user object
812
  */
813
  function setup_current_user() {
814
- global $current_user;
815
-
816
- if ( !isset( $current_user ) )
817
- $current_user = get_currentuserinfo();
818
-
819
- // Set the current user in the bbPress global
820
- $this->current_user = $current_user;
821
  }
822
 
823
  /**
@@ -856,21 +918,24 @@ class bbPress {
856
  $this->topic_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->topic_post_type . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
857
  $this->reply_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->reply_post_type . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
858
 
 
 
 
859
  // Profile Page
860
- $this->user_slug . '/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?bbp_user=' . $wp_rewrite->preg_index( 1 ) . '&paged=' . $wp_rewrite->preg_index( 2 ),
861
- $this->user_slug . '/([^/]+)/?$' => 'index.php?bbp_user=' . $wp_rewrite->preg_index( 1 ),
862
- $this->user_slug . '/([^/]+)/edit/?$' => 'index.php?bbp_user=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
863
 
864
  // @todo - favorites feeds
865
- //$this->user_slug . '/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?bbp_user=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
866
- //$this->user_slug . '/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?bbp_user=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
867
 
868
  // @todo - view feeds
869
- //$this->view_slug . '/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?bbp_view=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
870
 
871
  // View Page
872
- $this->view_slug . '/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?bbp_view=' . $wp_rewrite->preg_index( 1 ) . '&paged=' . $wp_rewrite->preg_index( 2 ),
873
- $this->view_slug . '/([^/]+)/?$' => 'index.php?bbp_view=' . $wp_rewrite->preg_index( 1 )
874
  );
875
 
876
  // Merge bbPress rules with existing
@@ -879,43 +944,6 @@ class bbPress {
879
  // Return merged rules
880
  return $wp_rewrite;
881
  }
882
-
883
- /**
884
- * If not using a bbPress compatable theme, enqueue some basic styling and js
885
- *
886
- * @since bbPress (r3029)
887
- *
888
- * @global bbPress $bbp
889
- * @uses bbp_set_theme_compat() Set the compatable theme to bbp-twentyten
890
- * @uses current_theme_supports() Check bbPress theme support
891
- * @uses wp_enqueue_style() Enqueue the bbp-twentyten default CSS
892
- * @uses wp_enqueue_script() Enqueue the bbp-twentyten default topic JS
893
- */
894
- function theme_compat() {
895
- global $bbp;
896
-
897
- // Check if current theme supports bbPress
898
- if ( !current_theme_supports( 'bbpress' ) ) {
899
-
900
- // Set the compat_theme global for help with loading template parts
901
- bbp_set_theme_compat( $bbp->themes_dir . '/bbp-twentyten' );
902
-
903
- /** Default CSS ***************************************************/
904
-
905
- // Do not enqueue CSS in admin
906
- if ( !is_admin() ) {
907
-
908
- // Right to left
909
- if ( is_rtl() ) {
910
- wp_enqueue_style( 'bbpress-style', $bbp->themes_url . '/bbp-twentyten/css/bbpress-rtl.css' );
911
-
912
- // Left to right
913
- } else {
914
- wp_enqueue_style( 'bbpress-style', $bbp->themes_url . '/bbp-twentyten/css/bbpress.css' );
915
- }
916
- }
917
- }
918
- }
919
  }
920
 
921
  // "And now here's something we hope you'll really like!"
15
  * Description: bbPress is forum software with a twist from the creators of WordPress.
16
  * Author: The bbPress Community
17
  * Author URI: http://bbpress.org
18
+ * Version: 2.0-beta-3
19
  */
20
 
21
  // Exit if accessed directly
30
  * Note: Checking for defined( 'BBP_VERSION' ) in your code does NOT
31
  * guarantee bbPress is initialized and listening.
32
  */
33
+ define( 'BBP_VERSION', '2.0-beta-3' );
34
 
35
  if ( !class_exists( 'bbPress' ) ) :
36
  /**
48
  /**
49
  * @var string Forum post type id
50
  */
51
+ var $forum_post_type = '';
52
 
53
  /**
54
  * @var string Topic post type id
55
  */
56
+ var $topic_post_type = '';
57
 
58
  /**
59
  * @var string Reply post type id
60
  */
61
+ var $reply_post_type = '';
62
 
63
  /** Taxonomies ************************************************************/
64
 
65
  /**
66
  * @var string Topic tag id
67
  */
68
+ var $topic_tag_id = '';
69
 
70
+ /** Permastructs **********************************************************/
71
+
72
+ /**
73
+ * @var string User struct
74
+ */
75
+ var $user_id = '';
76
+
77
+ /**
78
+ * @var string View struct
79
+ */
80
+ var $view_id = '';
81
+
82
+ /**
83
+ * @var string Edit struct
84
+ */
85
+ var $edit_id = '';
86
+
87
  /** Post statuses *********************************************************/
88
 
89
  /**
90
  * @var string Closed post status id. Used by topics.
91
  */
92
+ var $closed_status_id = '';
93
 
94
  /**
95
  * @var string Spam post status id. Used by topics and replies.
96
  */
97
+ var $spam_status_id = '';
98
 
99
  /**
100
  * @var string Trash post status id. Used by topics and replies.
101
  */
102
+ var $trash_status_id = '';
103
 
104
  /**
105
  * @var string Orphan post status id. Used by topics and replies.
106
  */
107
+ var $orphan_status_id = '';
108
 
109
  /**
110
  * @var string Hidden post status id. Used by forums.
111
  */
112
+ var $hidden_status_id = '';
113
 
114
  /** Slugs *****************************************************************/
115
 
116
  /**
117
  * @var string Root slug
118
  */
119
+ var $root_slug = '';
120
 
121
  /**
122
  * @var string Forum slug
123
  */
124
+ var $forum_slug = '';
125
 
126
  /**
127
  * @var string Topic slug
128
  */
129
+ var $topic_slug = '';
130
 
131
  /**
132
  * @var string Topic archive slug
133
  */
134
+ var $topic_archive_slug = '';
135
 
136
  /**
137
  * @var string Reply slug
138
  */
139
+ var $reply_slug = '';
140
 
141
  /**
142
  * @var string Topic tag slug
143
  */
144
+ var $topic_tag_slug = '';
145
 
146
  /**
147
  * @var string User slug
148
  */
149
+ var $user_slug = '';
150
 
151
  /**
152
  * @var string View slug
153
  */
154
+ var $view_slug = '';
155
 
156
  /** Paths *****************************************************************/
157
 
158
  /**
159
  * @var string Absolute path to the bbPress plugin directory
160
  */
161
+ var $plugin_dir = '';
162
 
163
  /**
164
  * @var string Absolute path to the bbPress themes directory
165
  */
166
+ var $themes_dir = '';
167
 
168
  /**
169
  * @var string Absolute path to the bbPress language directory
170
  */
171
+ var $lang_dir = '';
172
 
173
  /** URLs ******************************************************************/
174
 
175
  /**
176
  * @var string URL to the bbPress plugin directory
177
  */
178
+ var $plugin_url = '';
179
 
180
  /**
181
  * @var string URL to the bbPress themes directory
182
  */
183
+ var $themes_url = '';
184
 
185
  /** Current ID's **********************************************************/
186
 
204
  /**
205
  * @var object Current user
206
  */
207
+ var $current_user = array();
208
 
209
  /**
210
  * @var object Displayed user
211
  */
212
+ var $displayed_user = array();
213
 
214
  /** Queries ***************************************************************/
215
 
216
  /**
217
  * @var WP_Query For forums
218
  */
219
+ var $forum_query = array();
220
 
221
  /**
222
  * @var WP_Query For topics
223
  */
224
+ var $topic_query = array();
225
 
226
  /**
227
  * @var WP_Query For replies
228
  */
229
+ var $reply_query = array();
230
 
231
  /** Arrays ****************************************************************/
232
 
233
  /**
234
  * @var array Sub Forums
235
  */
236
+ var $sub_forums = array();
237
 
238
  /** Errors ****************************************************************/
239
 
240
  /**
241
  * @var WP_Error Used to log and display errors
242
  */
243
+ var $errors = array();
244
 
245
  /** Views *****************************************************************/
246
 
247
  /**
248
  * @var array An array of registered bbPress views
249
  */
250
+ var $views = array();
251
 
252
  /** Forms *****************************************************************/
253
 
254
  /**
255
  * @var int The current tab index for form building
256
  */
257
+ var $tab_index = 0;
258
+
259
+ /** Theme Compat **********************************************************/
260
+
261
+ /**
262
+ * @var string Theme to use for theme compatibility
263
+ */
264
+ var $theme_compat = '';
265
+
266
+ /** Plugins ***************************************************************/
267
+
268
+ /**
269
+ * @var mixed bbPress plugins that need a global data store should use this
270
+ */
271
+ var $plugins = false;
272
 
273
  /** Functions *************************************************************/
274
 
327
  /** Identifiers *******************************************************/
328
 
329
  // Post type identifiers
330
+ $this->forum_post_type = apply_filters( 'bbp_forum_post_type', 'forum' );
331
+ $this->topic_post_type = apply_filters( 'bbp_topic_post_type', 'topic' );
332
+ $this->reply_post_type = apply_filters( 'bbp_reply_post_type', 'reply' );
333
+ $this->topic_tag_id = apply_filters( 'bbp_topic_tag_id', 'topic-tag' );
334
 
335
  // Status identifiers
336
+ $this->spam_status_id = apply_filters( 'bbp_spam_post_status', 'spam' );
337
+ $this->closed_status_id = apply_filters( 'bbp_closed_post_status', 'closed' );
338
+ $this->orphan_status_id = apply_filters( 'bbp_orphan_post_status', 'orphan' );
339
+ $this->hidden_status_id = apply_filters( 'bbp_hidden_post_status', 'hidden' );
340
+ $this->trash_status_id = 'trash';
341
+
342
+ // Other identifiers
343
+ $this->user_id = apply_filters( 'bbp_view_id', 'bbp_user' );
344
+ $this->view_id = apply_filters( 'bbp_spam_id', 'bbp_view' );
345
+ $this->edit_id = apply_filters( 'bbp_spam_id', 'edit' );
346
+
347
  /** Slugs *************************************************************/
348
 
349
  // Root forum slug
351
  $this->topic_archive_slug = apply_filters( 'bbp_topic_archive_slug', get_option( '_bbp_topic_archive_slug', 'topics' ) );
352
 
353
  // Should we include the root slug in front of component slugs
354
+ $prefix = !empty( $this->root_slug ) && get_option( '_bbp_include_root', true ) ? trailingslashit( $this->root_slug ) : '';
355
 
356
  // Component slugs
357
+ $this->forum_slug = apply_filters( 'bbp_forum_slug', $prefix . get_option( '_bbp_forum_slug', 'forum' ) );
358
+ $this->topic_slug = apply_filters( 'bbp_topic_slug', $prefix . get_option( '_bbp_topic_slug', 'topic' ) );
359
+ $this->reply_slug = apply_filters( 'bbp_reply_slug', $prefix . get_option( '_bbp_reply_slug', 'reply' ) );
360
 
361
  // Taxonomy slugs
362
+ $this->topic_tag_slug = apply_filters( 'bbp_topic_tag_slug', $prefix . get_option( '_bbp_topic_tag_slug', 'topic-tag' ) );
363
 
364
  /** Other Slugs *******************************************************/
365
 
366
+ $this->user_slug = apply_filters( 'bbp_user_slug', $prefix . get_option( '_bbp_user_slug', 'user' ) );
367
+ $this->view_slug = apply_filters( 'bbp_view_slug', $prefix . get_option( '_bbp_view_slug', 'view' ) );
368
 
369
  /** Misc **************************************************************/
370
 
371
  // Errors
372
+ $this->errors = new WP_Error();
373
 
374
  // Views
375
+ $this->views = array();
376
 
377
  // Tab Index
378
  $this->tab_index = apply_filters( 'bbp_default_tab_index', 100 );
395
 
396
  /** Individual files **************************************************/
397
 
398
+ $core = array(
399
+ 'hooks', // All filters and actions
400
+ 'options', // Configuration Options
401
+ 'caps', // Roles and capabilities
402
+ 'classes', // Common classes
403
+ 'widgets', // Sidebar widgets
404
+ 'shortcodes', // Shortcodes for use with pages and posts
405
+ 'compatibility', // Theme compatibility for existing themes
406
+ 'akismet' // Spam prevention for topics and replies
407
+ );
408
 
409
  // Load the files
410
+ foreach ( $core as $file )
411
  require( $this->plugin_dir . '/bbp-includes/bbp-core-' . $file . '.php' );
412
 
413
  /** Components ********************************************************/
414
 
415
+ $components = array(
416
+ 'common', // Common functions and template tags
417
+ 'forum', // Forums contain subforums, topics, and replies
418
+ 'topic', // Topics contain replies
419
+ 'reply', // Replies are individual responses to topics
420
+ 'user' // Individual user profile view/edit pages
421
+ );
422
+
423
+ $files = array(
424
+ 'functions', // Functions used to carry out specific tasks
425
+ 'template' // Functions intended for use in template files
426
+ );
427
 
428
+ // Load the files
429
+ foreach ( $components as $component )
430
+ foreach ( $files as $type )
431
+ require( $this->plugin_dir . '/bbp-includes/bbp-' . $component . '-' . $type . '.php' );
 
432
 
433
  /** Admin *************************************************************/
434
 
479
 
480
  // Generate rewrite rules
481
  add_action( 'bbp_generate_rewrite_rules', array( $this, 'generate_rewrite_rules' ), 10 );
 
 
 
482
  }
483
 
484
  /**
553
  // Forum labels
554
  $forum['labels'] = array(
555
  'name' => __( 'Forums', 'bbpress' ),
556
+ 'menu_name' => __( 'Forums', 'bbpress' ),
557
  'singular_name' => __( 'Forum', 'bbpress' ),
558
+ 'all_items' => __( 'All Forums', 'bbpress' ),
559
  'add_new' => __( 'New Forum', 'bbpress' ),
560
  'add_new_item' => __( 'Create New Forum', 'bbpress' ),
561
  'edit' => __( 'Edit', 'bbpress' ),
584
 
585
  // Forum filter
586
  $bbp_cpt['forum'] = apply_filters( 'bbp_register_forum_post_type', array(
587
+ 'labels' => $forum['labels'],
588
+ 'rewrite' => $forum['rewrite'],
589
+ 'supports' => $forum['supports'],
590
+ 'description' => __( 'bbPress Forums', 'bbpress' ),
591
+ 'capabilities' => bbp_get_forum_caps(),
592
+ 'capability_type' => array( 'forum', 'forums' ),
593
+ 'menu_position' => 56,
594
+ 'has_archive' => $this->root_slug,
595
+ 'exclude_from_search' => true,
596
+ 'show_in_nav_menus' => true,
597
+ 'public' => true,
598
+ 'show_ui' => true,
599
+ 'can_export' => true,
600
+ 'hierarchical' => true,
601
+ 'query_var' => true,
602
+ 'menu_icon' => ''
603
  ) );
604
 
605
  // Register Forum content type
610
  // Topic labels
611
  $topic['labels'] = array(
612
  'name' => __( 'Topics', 'bbpress' ),
613
+ 'menu_name' => __( 'Topics', 'bbpress' ),
614
  'singular_name' => __( 'Topic', 'bbpress' ),
615
+ 'all_items' => __( 'All Topics', 'bbpress' ),
616
  'add_new' => __( 'New Topic', 'bbpress' ),
617
  'add_new_item' => __( 'Create New Topic', 'bbpress' ),
618
  'edit' => __( 'Edit', 'bbpress' ),
641
 
642
  // Topic Filter
643
  $bbp_cpt['topic'] = apply_filters( 'bbp_register_topic_post_type', array(
644
+ 'labels' => $topic['labels'],
645
+ 'rewrite' => $topic['rewrite'],
646
+ 'supports' => $topic['supports'],
647
+ 'description' => __( 'bbPress Topics', 'bbpress' ),
648
+ 'capabilities' => bbp_get_topic_caps(),
649
+ 'capability_type' => array( 'topic', 'topics' ),
650
+ 'menu_position' => 57,
651
+ 'has_archive' => $this->topic_archive_slug,
652
+ 'exclude_from_search' => true,
653
+ 'show_in_nav_menus' => false,
654
+ 'public' => true,
655
+ 'show_ui' => true,
656
+ 'can_export' => true,
657
+ 'hierarchical' => false,
658
+ 'query_var' => true,
659
+ 'menu_icon' => ''
660
  ) );
661
 
662
  // Register Topic content type
667
  // Reply labels
668
  $reply['labels'] = array(
669
  'name' => __( 'Replies', 'bbpress' ),
670
+ 'menu_name' => __( 'Replies', 'bbpress' ),
671
  'singular_name' => __( 'Reply', 'bbpress' ),
672
+ 'all_items' => __( 'All Replies', 'bbpress' ),
673
  'add_new' => __( 'New Reply', 'bbpress' ),
674
  'add_new_item' => __( 'Create New Reply', 'bbpress' ),
675
  'edit' => __( 'Edit', 'bbpress' ),
698
 
699
  // Reply filter
700
  $bbp_cpt['reply'] = apply_filters( 'bbp_register_reply_post_type', array(
701
+ 'labels' => $reply['labels'],
702
+ 'rewrite' => $reply['rewrite'],
703
+ 'supports' => $reply['supports'],
704
+ 'description' => __( 'bbPress Replies', 'bbpress' ),
705
+ 'capabilities' => bbp_get_reply_caps(),
706
+ 'capability_type' => array( 'reply', 'replies' ),
707
+ 'menu_position' => 58,
708
+ 'exclude_from_search' => true,
709
+ 'has_archive' => false,
710
+ 'show_in_nav_menus' => false,
711
+ 'public' => true,
712
+ 'show_ui' => true,
713
+ 'can_export' => true,
714
+ 'hierarchical' => false,
715
+ 'query_var' => true,
716
+ 'menu_icon' => ''
717
  ) );
718
 
719
  // Register reply content type
783
  * single trashed topics/replies in the front-end as wp_query
784
  * doesn't allow any hack for the trashed topics to be viewed.
785
  */
786
+ if ( !empty( $wp_post_statuses['trash'] ) ) {
787
+
788
+ // User can view trash so set internal to false
789
+ if ( current_user_can( 'view_trash' ) ) {
790
+ $wp_post_statuses['trash']->internal = false;
791
+ $wp_post_statuses['trash']->protected = true;
792
+
793
+ // User cannot view trash so set internal to true
794
+ } elseif ( !current_user_can( 'view_trash' ) ) {
795
+ $wp_post_statuses['trash']->internal = true;
796
+ }
797
  }
798
  }
799
 
876
  *
877
  * @since bbPress (r2697)
878
  *
879
+ * @uses wp_get_current_user()
 
880
  */
881
  function setup_current_user() {
882
+ $this->current_user = wp_get_current_user();
 
 
 
 
 
 
883
  }
884
 
885
  /**
918
  $this->topic_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->topic_post_type . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
919
  $this->reply_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->reply_post_type . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
920
 
921
+ // @todo Edit Topic Tag
922
+ //$this->topic_tag_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->topic_tag_id . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
923
+
924
  // Profile Page
925
+ $this->user_slug . '/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?' . $this->user_id . '=' . $wp_rewrite->preg_index( 1 ) . '&paged=' . $wp_rewrite->preg_index( 2 ),
926
+ $this->user_slug . '/([^/]+)/?$' => 'index.php?' . $this->user_id . '=' . $wp_rewrite->preg_index( 1 ),
927
+ $this->user_slug . '/([^/]+)/edit/?$' => 'index.php?' . $this->user_id . '=' . $wp_rewrite->preg_index( 1 ) . '&edit=1',
928
 
929
  // @todo - favorites feeds
930
+ //$this->user_slug . '/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?' . $this->user_id . '=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
931
+ //$this->user_slug . '/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?' . $this->user_id . '=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
932
 
933
  // @todo - view feeds
934
+ //$this->view_slug . '/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?' . $this->view_id . '=' . $wp_rewrite->preg_index( 1 ) . '&feed=' . $wp_rewrite->preg_index( 2 ),
935
 
936
  // View Page
937
+ $this->view_slug . '/([^/]+)/page/?([0-9]{1,})/?$' => 'index.php?' . $this->view_id . '=' . $wp_rewrite->preg_index( 1 ) . '&paged=' . $wp_rewrite->preg_index( 2 ),
938
+ $this->view_slug . '/([^/]+)/?$' => 'index.php?' . $this->view_id . '=' . $wp_rewrite->preg_index( 1 )
939
  );
940
 
941
  // Merge bbPress rules with existing
944
  // Return merged rules
945
  return $wp_rewrite;
946
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
947
  }
948
 
949
  // "And now here's something we hope you'll really like!"
humans.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ..=OO$,
2
+ ~OO=. . . . .Z88
3
+ .78.. .,OOOOOOO .7O
4
+ IO. 7OOOOOOOOOOOOOOO. 8..
5
+ O. .OOOOOOOOOOOOOOOOOOOOO O.
6
+ 7O OOOOOOOOOOOOOOOOOOOOOOOO8 O.
7
+ ,O. OOOOOOO.. OOOOOOOO. O,
8
+ IO OO OOOOOOOOO. OOOOOOOOOO..O
9
+ .O .8OO OOOOOOOOO. OOOOOOOOOOO O
10
+ O OOOO 8OOOOOOOOO. OOOOOOOOOOOZ ,O
11
+ O .OOO. .OOOOOOOOOO OOOOOOOOOOOOO .8
12
+ .Z 7OOO .OOOOOOOOO .OOOOOOOOOOOOO 8.
13
+ .O OOOO. OOO~..ZOOO. .OOO. +OOOOOOO: O.
14
+ .O OOO. .OI. .$ Z..7O. .OOOOO~ O.
15
+ .Z $OO .ZOOOOOO ..OOOOOO OOOO O.
16
+ O O7 OOOOOOOO .OOOOOOO IOOO O
17
+ O 8 .OOOOOOOO OOOOOOOO OOOZ .O
18
+ 8 .OOOOOOOO OOOOOOOO OOO .O.
19
+ ?O OOOOOOOO OOOOOOO. .OO..O.
20
+ O+ OOOOOOO +OOOOOO? ..OO O,
21
+ 78 OOOOI .,O8 OOOO8. .OO8 .O
22
+ O. . . OOOOOO7.. ..OOOO .8
23
+ .?O .7OOOOOOOOOOOOOOO.. .8.
24
+ 78 .,OOOOOOO. 7O..
25
+ :OO+. .ZO8.
26
+ ..=OO$,
27
+
28
+ We are the humans behind bbPress
29
+
30
+ /* TEAM */
31
+ Name: Matt Mullenweg
32
+ Title: Founding Developer
33
+ Twitter: photomatt
34
+ Favorite Food: BBQ
35
+
36
+ Name: John James Jacoby
37
+ Title: Lead Developer
38
+ Twitter: johnjamesjacoby
39
+ Favorite Food: Pizza
40
+
41
+ /* THANKS */
42
+ Mike Adams, Gautam Gupta, Ben L, Justin Tadlock, cnorris23, anointed
43
+
44
+ /* META */
45
+ Updated: 2011/05/29
46
+ See: http://humanstxt.org/
index.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Do not modify the files in this folder.
5
+ */
6
+
7
+ ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: matt, johnjamesjacoby, mdawaffe
3
  Tags: bbpress, forums, discussion, post type, theme
4
  Requires at least: 3.1
5
  Tested up to: 3.2
6
- Stable tag: 2.0-beta-2b
7
 
8
  bbPress is forum software with a twist from the creators of WordPress
9
 
@@ -24,7 +24,22 @@ We're keeping things as small and light as possible while still allowing for gre
24
 
25
  == Changelog ==
26
 
27
- = 2.0-beta-2b =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  * GlotPress integration
29
  * Fixes Forum archive bug
30
  * Fixes and improvements to importer
3
  Tags: bbpress, forums, discussion, post type, theme
4
  Requires at least: 3.1
5
  Tested up to: 3.2
6
+ Stable tag: 2.0-beta-3
7
 
8
  bbPress is forum software with a twist from the creators of WordPress
9
 
24
 
25
  == Changelog ==
26
 
27
+ = 2.0-beta-3 =
28
+ * Akismet integration
29
+ * Fixes replies within wp-admin
30
+ * Fixes reply notification links
31
+ * Fixes inconsistent breadcrumb behavior
32
+ * Fixes theme compatibility issues
33
+ * Fixes archive and page conflicts
34
+ * Improvements to unpretty permalink support
35
+ * Improvements to importer
36
+ * Improvements to multisite support
37
+ * Normalize theme, shortcodes, and template parts
38
+ * Add humans.txt
39
+ * Add empty index.php files to prevent snooping
40
+ * Add max length to topic titles (default 80 chars)
41
+
42
+ = 2.0-beta-2 =
43
  * GlotPress integration
44
  * Fixes Forum archive bug
45
  * Fixes and improvements to importer