rtMedia for WordPress, BuddyPress and bbPress - Version 2.2.8

Version Description

  • Fixed some screen functions
Download this release

Release Info

Developer gagan0123
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 2.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

includes/bp-media-class-wordpress.php CHANGED
@@ -336,7 +336,8 @@ class BP_Media_Host_Wordpress {
336
  * Returns the HTML for title of the single entry page of the Media Entry
337
  */
338
  function get_media_single_title(){
339
- $content = '<div class="bp_media_title">' . wp_html_excerpt($this->name, $bp_media_default_excerpts['single_entry_title']) . '</div>;';
 
340
  return $content;
341
  }
342
 
336
  * Returns the HTML for title of the single entry page of the Media Entry
337
  */
338
  function get_media_single_title(){
339
+ global $bp_media_default_excerpts;
340
+ $content = '<div class="bp_media_title">' . wp_html_excerpt($this->name, $bp_media_default_excerpts['single_entry_title']) . '</div>';
341
  return $content;
342
  }
343
 
includes/bp-media-screens.php CHANGED
@@ -67,7 +67,7 @@ function bp_media_images_screen() {
67
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_IMAGES_SLUG));
68
  exit;
69
  }
70
- add_action('bp_template_title', 'bp_media_images_entry_screen_title');
71
  add_action('bp_template_content', 'bp_media_images_entry_screen_content');
72
  break;
73
  case BP_MEDIA_DELETE_SLUG :
@@ -168,17 +168,16 @@ function bp_media_images_edit_screen_content() {
168
  * Screen function for Images Entry page
169
  */
170
  function bp_media_images_entry_screen() {
171
- add_action('bp_template_title', 'bp_media_images_entry_screen_title');
172
  add_action('bp_template_content', 'bp_media_images_entry_screen_content');
173
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
174
  }
175
 
176
- function bp_media_images_entry_screen_title() {
177
  global $bp_media_current_entry;
178
  /** @var $bp_media_current_entry BP_Media_Host_Wordpress */
179
  if(is_object($bp_media_current_entry))
180
  echo $bp_media_current_entry->get_media_single_title();
181
- _e('Images Entry Page');
182
  }
183
 
184
  function bp_media_images_entry_screen_content() {
@@ -217,6 +216,7 @@ function bp_media_videos_screen() {
217
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_VIDEOS_SLUG));
218
  exit;
219
  }
 
220
  add_action('bp_template_content', 'bp_media_videos_entry_screen_content');
221
  break;
222
  case BP_MEDIA_DELETE_SLUG :
@@ -225,8 +225,6 @@ function bp_media_videos_screen() {
225
  }
226
  bp_media_entry_delete();
227
  break;
228
- case '206':
229
- wp_redirect('http://google.com');
230
  default:
231
  bp_media_set_query();
232
  add_action('bp_template_content', 'bp_media_videos_screen_content');
@@ -306,15 +304,11 @@ function bp_media_videos_edit_screen_content() {
306
  * Screen function for Videos Entry page
307
  */
308
  function bp_media_videos_entry_screen() {
309
- add_action('bp_template_title', 'bp_media_videos_entry_screen_title');
310
  add_action('bp_template_content', 'bp_media_videos_entry_screen_content');
311
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
312
  }
313
 
314
- function bp_media_videos_entry_screen_title() {
315
- _e('Videos Entry Page');
316
- }
317
-
318
  function bp_media_videos_entry_screen_content() {
319
  global $bp, $bp_media_current_entry, $bp_media_options;
320
  if (!$bp->action_variables[0] == BP_MEDIA_VIDEOS_ENTRY_SLUG)
@@ -322,16 +316,6 @@ function bp_media_videos_entry_screen_content() {
322
  do_action('bp_media_before_content');
323
  echo '<div class="bp-media-single bp-media-video">';
324
  echo $bp_media_current_entry->get_media_single_content();
325
- // echo '<div class="bp-media-actions">';
326
- // echo '<a href="#comment" class="button acomment-reply bp-primary-action">Comment</a>';
327
- // if(bp_loggedin_user_id()== bp_displayed_user_id()){
328
- // echo '<a href="'.$bp_media_current_entry->get_edit_url().'" class="button item-button bp-secondary-action edit-media">Edit</a>';
329
- // echo '<a href="'.$bp_media_current_entry->get_delete_url().'" class="button item-button bp-secondary-action delete-media confirm">Delete</a>';
330
- // }
331
- // if(isset($bp_media_options['download_enabled'])&&$bp_media_options['download_enabled']==true){
332
- // echo '<a href="'.$bp_media_current_entry->get_attachment_url().'" class="button item-button bp-secondary-action download-media">Download</a>';
333
- // }
334
- // echo '</div>';
335
  echo $bp_media_current_entry->show_comment_form();
336
  echo '</div>';
337
  do_action('bp_media_after_content');
@@ -361,6 +345,7 @@ function bp_media_audio_screen() {
361
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_AUDIO_SLUG));
362
  exit;
363
  }
 
364
  add_action('bp_template_content', 'bp_media_audio_entry_screen_content');
365
  break;
366
  case BP_MEDIA_DELETE_SLUG :
@@ -455,15 +440,11 @@ function bp_media_audio_edit_screen_content() {
455
  * Screen function for Audio Entry page
456
  */
457
  function bp_media_audio_entry_screen() {
458
- add_action('bp_template_title', 'bp_media_audio_entry_screen_title');
459
  add_action('bp_template_content', 'bp_media_audio_entry_screen_content');
460
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
461
  }
462
 
463
- function bp_media_audio_entry_screen_title() {
464
- _e('Audio Entry Page');
465
- }
466
-
467
  function bp_media_audio_entry_screen_content() {
468
  global $bp, $bp_media_current_entry, $bp_media_options;
469
  if (!$bp->action_variables[0] == BP_MEDIA_AUDIO_ENTRY_SLUG)
@@ -471,16 +452,6 @@ function bp_media_audio_entry_screen_content() {
471
  do_action('bp_media_before_content');
472
  echo '<div class="bp-media-single bp-media-audio">';
473
  echo $bp_media_current_entry->get_media_single_content();
474
- // echo '<div class="bp-media-actions">';
475
- // echo '<a href="#comment" class="button acomment-reply bp-primary-action">Comment</a>';
476
- // if(bp_loggedin_user_id()== bp_displayed_user_id()){
477
- // echo '<a href="'.$bp_media_current_entry->get_edit_url().'" class="button item-button bp-secondary-action edit-media">Edit</a>';
478
- // echo '<a href="'.$bp_media_current_entry->get_delete_url().'" class="button item-button bp-secondary-action delete-media confirm">Delete</a>';
479
- // }
480
- // if(isset($bp_media_options['download_enabled'])&&$bp_media_options['download_enabled']==true){
481
- // echo '<a href="'.$bp_media_current_entry->get_attachment_url().'" class="button item-button bp-secondary-action download-media">Download</a>';
482
- // }
483
- // echo '</div>';
484
  echo $bp_media_current_entry->show_comment_form();
485
  echo '</div>';
486
  do_action('bp_media_after_content');
67
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_IMAGES_SLUG));
68
  exit;
69
  }
70
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
71
  add_action('bp_template_content', 'bp_media_images_entry_screen_content');
72
  break;
73
  case BP_MEDIA_DELETE_SLUG :
168
  * Screen function for Images Entry page
169
  */
170
  function bp_media_images_entry_screen() {
171
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
172
  add_action('bp_template_content', 'bp_media_images_entry_screen_content');
173
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
174
  }
175
 
176
+ function bp_media_entry_screen_title() {
177
  global $bp_media_current_entry;
178
  /** @var $bp_media_current_entry BP_Media_Host_Wordpress */
179
  if(is_object($bp_media_current_entry))
180
  echo $bp_media_current_entry->get_media_single_title();
 
181
  }
182
 
183
  function bp_media_images_entry_screen_content() {
216
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_VIDEOS_SLUG));
217
  exit;
218
  }
219
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
220
  add_action('bp_template_content', 'bp_media_videos_entry_screen_content');
221
  break;
222
  case BP_MEDIA_DELETE_SLUG :
225
  }
226
  bp_media_entry_delete();
227
  break;
 
 
228
  default:
229
  bp_media_set_query();
230
  add_action('bp_template_content', 'bp_media_videos_screen_content');
304
  * Screen function for Videos Entry page
305
  */
306
  function bp_media_videos_entry_screen() {
307
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
308
  add_action('bp_template_content', 'bp_media_videos_entry_screen_content');
309
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
310
  }
311
 
 
 
 
 
312
  function bp_media_videos_entry_screen_content() {
313
  global $bp, $bp_media_current_entry, $bp_media_options;
314
  if (!$bp->action_variables[0] == BP_MEDIA_VIDEOS_ENTRY_SLUG)
316
  do_action('bp_media_before_content');
317
  echo '<div class="bp-media-single bp-media-video">';
318
  echo $bp_media_current_entry->get_media_single_content();
 
 
 
 
 
 
 
 
 
 
319
  echo $bp_media_current_entry->show_comment_form();
320
  echo '</div>';
321
  do_action('bp_media_after_content');
345
  wp_redirect(trailingslashit(bp_displayed_user_domain() . BP_MEDIA_AUDIO_SLUG));
346
  exit;
347
  }
348
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
349
  add_action('bp_template_content', 'bp_media_audio_entry_screen_content');
350
  break;
351
  case BP_MEDIA_DELETE_SLUG :
440
  * Screen function for Audio Entry page
441
  */
442
  function bp_media_audio_entry_screen() {
443
+ add_action('bp_template_title', 'bp_media_entry_screen_title');
444
  add_action('bp_template_content', 'bp_media_audio_entry_screen_content');
445
  bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
446
  }
447
 
 
 
 
 
448
  function bp_media_audio_entry_screen_content() {
449
  global $bp, $bp_media_current_entry, $bp_media_options;
450
  if (!$bp->action_variables[0] == BP_MEDIA_AUDIO_ENTRY_SLUG)
452
  do_action('bp_media_before_content');
453
  echo '<div class="bp-media-single bp-media-audio">';
454
  echo $bp_media_current_entry->get_media_single_content();
 
 
 
 
 
 
 
 
 
 
455
  echo $bp_media_current_entry->show_comment_form();
456
  echo '</div>';
457
  do_action('bp_media_after_content');
includes/css/bp-media-style.css CHANGED
@@ -133,5 +133,4 @@ ul.products li.product .add_to_cart_button:hover{background: none repeat scroll
133
  #normal-sortables .postbox .bp-media-form .submit{float: none; margin-left: 150px}
134
  .rt-success{background-color: #E1FFDF;border-color: #2ACF2A;}
135
  .rt-update{background-color: #FFEAA6;border-color:#E1CA82;}
136
- img.bp-media-donation-image{display:block;margin: 10px auto;}
137
-
133
  #normal-sortables .postbox .bp-media-form .submit{float: none; margin-left: 150px}
134
  .rt-success{background-color: #E1FFDF;border-color: #2ACF2A;}
135
  .rt-update{background-color: #FFEAA6;border-color:#E1CA82;}
136
+ img.bp-media-donation-image{display:block;margin: 10px auto;}
 
loader.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: BuddyPress Media
4
  Plugin URI: http://rtcamp.com/buddypress-media/
5
  Description: This plugin adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 2.2.7
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  */
@@ -12,7 +12,7 @@ Author URI: http://rtcamp.com
12
  define('BP_MEDIA_IS_INSTALLED', 1);
13
 
14
  /* Constant to store the current version of the BP Media Plugin. */
15
- define('BP_MEDIA_VERSION', '2.2.7');
16
 
17
  /* A constant to be used as base for other URLs throughout the plugin */
18
  define('BP_MEDIA_PLUGIN_DIR', dirname(__FILE__));
3
  Plugin Name: BuddyPress Media
4
  Plugin URI: http://rtcamp.com/buddypress-media/
5
  Description: This plugin adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 2.2.8
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  */
12
  define('BP_MEDIA_IS_INSTALLED', 1);
13
 
14
  /* Constant to store the current version of the BP Media Plugin. */
15
+ define('BP_MEDIA_VERSION', '2.2.8');
16
 
17
  /* A constant to be used as base for other URLs throughout the plugin */
18
  define('BP_MEDIA_PLUGIN_DIR', dirname(__FILE__));
readme.txt CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 3.3.2
8
  Tested up to: 3.4.2
9
- Stable tag: 2.2.7
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
@@ -73,6 +73,9 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
73
 
74
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about future releases.
75
 
 
 
 
76
  = 2.2.7 =
77
  * Fixed the "Upgrade" button issue
78
 
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 3.3.2
8
  Tested up to: 3.4.2
9
+ Stable tag: 2.2.8
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
73
 
74
  Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about future releases.
75
 
76
+ = 2.2.8 =
77
+ * Fixed some screen functions
78
+
79
  = 2.2.7 =
80
  * Fixed the "Upgrade" button issue
81