rtMedia for WordPress, BuddyPress and bbPress - Version 2.5

Version Description

Download this release

Release Info

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

Code changes from version 2.4.3 to 2.5

app/admin/BPMediaAdmin.php CHANGED
@@ -30,7 +30,7 @@ if (!class_exists('BPMediaAdmin')) {
30
  if (current_user_can('manage_options'))
31
  add_action('bp_admin_tabs', array($this, 'tab'));
32
  if (is_multisite())
33
- add_action('network_admin_edit_bp_media_options', array($this, 'save_multisite_options'));
34
  }
35
  $this->bp_media_upgrade = new BPMediaUpgrade();
36
  $this->bp_media_settings = new BPMediaSettings();
@@ -54,10 +54,10 @@ if (!class_exists('BPMediaAdmin')) {
54
  * @global string BP_MEDIA_TXT_DOMAIN
55
  */
56
  public function menu() {
57
- add_menu_page(__('Buddypress Media Component', BP_MEDIA_TXT_DOMAIN), __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
58
- add_submenu_page('bp-media-settings', __('Buddypress Media Settings', BP_MEDIA_TXT_DOMAIN), __('Settings', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
59
- add_submenu_page('bp-media-settings', __('Buddypress Media Addons', BP_MEDIA_TXT_DOMAIN), __('Addons', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-addons', array($this, 'addons_page'));
60
- add_submenu_page('bp-media-settings', __('Buddypress Media Support', BP_MEDIA_TXT_DOMAIN), __('Support ', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-support', array($this, 'support_page'));
61
  }
62
 
63
  /**
@@ -105,13 +105,10 @@ if (!class_exists('BPMediaAdmin')) {
105
 
106
  <div id="bp-media-settings-boxes">
107
  <?php
108
- $settings_url = ( is_multisite() ) ? network_admin_url('edit.php?action=bp_media_options') : 'options.php';
109
  ?>
110
  <form id="bp_media_settings_form" name="bp_media_settings_form" action="<?php echo $settings_url; ?>" method="post" enctype="multipart/form-data">
111
  <div class="bp-media-metabox-holder"><?php
112
- // if (isset($_REQUEST['request_type'])) {
113
- // bp_media_bug_report_form($_REQUEST['request_type']);
114
- // } else {
115
  if ($option_group) {
116
  settings_fields($option_group);
117
  do_settings_sections($page);
@@ -148,8 +145,8 @@ if (!class_exists('BPMediaAdmin')) {
148
  /* BuddyPress Media */
149
  $tabs[] = array(
150
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
151
- 'title' => __('Buddypress Media', BP_MEDIA_TXT_DOMAIN),
152
- 'name' => __('Buddypress Media', BP_MEDIA_TXT_DOMAIN),
153
  'class' => ($tab == 'bp-media-settings' || $tab == 'bp-media-addons' || $tab == 'bp-media-support') ? $active_class : $idle_class
154
  );
155
 
@@ -175,21 +172,21 @@ if (!class_exists('BPMediaAdmin')) {
175
  /* BuddyPress Media */
176
  $tabs[] = array(
177
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
178
- 'title' => __('Buddypress Media Settings', BP_MEDIA_TXT_DOMAIN),
179
  'name' => __('Settings', BP_MEDIA_TXT_DOMAIN),
180
  'class' => ($tab == 'bp-media-settings') ? $active_class : $idle_class . ' first_tab'
181
  );
182
 
183
  $tabs[] = array(
184
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php')),
185
- 'title' => __('Buddypress Media Addons', BP_MEDIA_TXT_DOMAIN),
186
  'name' => __('Addons', BP_MEDIA_TXT_DOMAIN),
187
  'class' => ($tab == 'bp-media-addons') ? $active_class : $idle_class
188
  );
189
 
190
  $tabs[] = array(
191
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php')),
192
- 'title' => __('Buddypress Media Support', BP_MEDIA_TXT_DOMAIN),
193
  'name' => __('Support', BP_MEDIA_TXT_DOMAIN),
194
  'class' => ($tab == 'bp-media-support') ? $active_class : $idle_class . ' last_tab'
195
  );
@@ -239,23 +236,25 @@ if (!class_exists('BPMediaAdmin')) {
239
  }
240
 
241
  /* Multisite Save Options - http://wordpress.stackexchange.com/questions/64968/settings-api-in-multisite-missing-update-message#answer-72503 */
 
242
  public function save_multisite_options() {
243
-
244
  global $bp_media_admin;
245
  if (isset($_POST['refresh-count'])) {
246
  $bp_media_admin->update_count();
247
  }
248
  do_action('bp_media_sanitize_settings', $_POST);
249
-
250
- bp_update_option('bp_media_options', $_POST['bp_media_options']);
251
-
252
- // redirect to settings page in network
253
- wp_redirect(
254
- add_query_arg(
255
- array('page' => 'bp-media-settings', 'updated' => 'true'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
256
- )
257
- );
258
- exit;
 
 
259
  }
260
 
261
  /* Admin Sidebar */
@@ -274,7 +273,7 @@ if (!class_exists('BPMediaAdmin')) {
274
  <li>' . sprintf('<a href="%s">' . __("Read FAQ", BP_MEDIA_TXT_DOMAIN) . '</a>', 'http://rtcamp.com/buddypress-media/faq/') . '</li>
275
  <li>' . sprintf('<a href="%s">' . __("Free Support Forum", BP_MEDIA_TXT_DOMAIN) . '</a>', $bp_media->support_url) . '</li>
276
  <li>' . sprintf('<a href="%s">' . __("Github Issue Tracker", BP_MEDIA_TXT_DOMAIN) . '</a>', 'https://github.com/rtCamp/buddypress-media/issues/') . '</li>
277
- <li>' . sprintf('<a href="%s">' . __("Hire us!", BP_MEDIA_TXT_DOMAIN) . '</a> ' . __("To get professional customisation/setup service.", BP_MEDIA_TXT_DOMAIN), 'http://rtcamp.com/buddypress-media/hire/') . '</li>
278
  </ul></p>';
279
  new BPMediaAdminWidget('support', __('Need Help?', BP_MEDIA_TXT_DOMAIN), $support);
280
 
30
  if (current_user_can('manage_options'))
31
  add_action('bp_admin_tabs', array($this, 'tab'));
32
  if (is_multisite())
33
+ add_action('network_admin_edit_bp_media', array($this, 'save_multisite_options'));
34
  }
35
  $this->bp_media_upgrade = new BPMediaUpgrade();
36
  $this->bp_media_settings = new BPMediaSettings();
54
  * @global string BP_MEDIA_TXT_DOMAIN
55
  */
56
  public function menu() {
57
+ add_menu_page(__('BuddyPress Media Component', BP_MEDIA_TXT_DOMAIN), __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
58
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN), __('Settings', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-settings', array($this, 'settings_page'));
59
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Addons', BP_MEDIA_TXT_DOMAIN), __('Addons', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-addons', array($this, 'addons_page'));
60
+ add_submenu_page('bp-media-settings', __('BuddyPress Media Support', BP_MEDIA_TXT_DOMAIN), __('Support ', BP_MEDIA_TXT_DOMAIN), 'manage_options', 'bp-media-support', array($this, 'support_page'));
61
  }
62
 
63
  /**
105
 
106
  <div id="bp-media-settings-boxes">
107
  <?php
108
+ $settings_url = ( is_multisite() ) ? network_admin_url('edit.php?action=' . $option_group) : 'options.php';
109
  ?>
110
  <form id="bp_media_settings_form" name="bp_media_settings_form" action="<?php echo $settings_url; ?>" method="post" enctype="multipart/form-data">
111
  <div class="bp-media-metabox-holder"><?php
 
 
 
112
  if ($option_group) {
113
  settings_fields($option_group);
114
  do_settings_sections($page);
145
  /* BuddyPress Media */
146
  $tabs[] = array(
147
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
148
+ 'title' => __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN),
149
+ 'name' => __('BuddyPress Media', BP_MEDIA_TXT_DOMAIN),
150
  'class' => ($tab == 'bp-media-settings' || $tab == 'bp-media-addons' || $tab == 'bp-media-support') ? $active_class : $idle_class
151
  );
152
 
172
  /* BuddyPress Media */
173
  $tabs[] = array(
174
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-settings'), 'admin.php')),
175
+ 'title' => __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN),
176
  'name' => __('Settings', BP_MEDIA_TXT_DOMAIN),
177
  'class' => ($tab == 'bp-media-settings') ? $active_class : $idle_class . ' first_tab'
178
  );
179
 
180
  $tabs[] = array(
181
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-addons'), 'admin.php')),
182
+ 'title' => __('BuddyPress Media Addons', BP_MEDIA_TXT_DOMAIN),
183
  'name' => __('Addons', BP_MEDIA_TXT_DOMAIN),
184
  'class' => ($tab == 'bp-media-addons') ? $active_class : $idle_class
185
  );
186
 
187
  $tabs[] = array(
188
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php')),
189
+ 'title' => __('BuddyPress Media Support', BP_MEDIA_TXT_DOMAIN),
190
  'name' => __('Support', BP_MEDIA_TXT_DOMAIN),
191
  'class' => ($tab == 'bp-media-support') ? $active_class : $idle_class . ' last_tab'
192
  );
236
  }
237
 
238
  /* Multisite Save Options - http://wordpress.stackexchange.com/questions/64968/settings-api-in-multisite-missing-update-message#answer-72503 */
239
+
240
  public function save_multisite_options() {
 
241
  global $bp_media_admin;
242
  if (isset($_POST['refresh-count'])) {
243
  $bp_media_admin->update_count();
244
  }
245
  do_action('bp_media_sanitize_settings', $_POST);
246
+
247
+ if (isset($_POST['bp_media_options'])) {
248
+ bp_update_option('bp_media_options', $_POST['bp_media_options']);
249
+
250
+ // redirect to settings page in network
251
+ wp_redirect(
252
+ add_query_arg(
253
+ array('page' => 'bp-media-settings', 'updated' => 'true'), (is_multisite() ? network_admin_url('admin.php') : admin_url('admin.php'))
254
+ )
255
+ );
256
+ exit;
257
+ }
258
  }
259
 
260
  /* Admin Sidebar */
273
  <li>' . sprintf('<a href="%s">' . __("Read FAQ", BP_MEDIA_TXT_DOMAIN) . '</a>', 'http://rtcamp.com/buddypress-media/faq/') . '</li>
274
  <li>' . sprintf('<a href="%s">' . __("Free Support Forum", BP_MEDIA_TXT_DOMAIN) . '</a>', $bp_media->support_url) . '</li>
275
  <li>' . sprintf('<a href="%s">' . __("Github Issue Tracker", BP_MEDIA_TXT_DOMAIN) . '</a>', 'https://github.com/rtCamp/buddypress-media/issues/') . '</li>
276
+ <li>' . sprintf('<a href="%s">' . __("Hire Us!", BP_MEDIA_TXT_DOMAIN) . '</a> ' . __("To get professional customisation/setup service.", BP_MEDIA_TXT_DOMAIN), 'http://rtcamp.com/buddypress-media/hire/') . '</li>
277
  </ul></p>';
278
  new BPMediaAdminWidget('support', __('Need Help?', BP_MEDIA_TXT_DOMAIN), $support);
279
 
app/assets/css/main.css CHANGED
@@ -6,8 +6,8 @@
6
  .bp_media_title {display:block;font-size:20px;font-weight:bold;}
7
  ul.bp-media-gallery{overflow: hidden}
8
  .bp_media_description {display:block;margin-top:20px;}
9
- ul.bp-media-gallery.item-list{overflow:hidden;margin: 1% 0;}
10
- #item-body ul.bp-media-gallery li{float: left;margin: 1% 1% 0;width: 18%;border-bottom: none;padding: 0;}
11
  ul.bp-media-gallery li img{max-width:150px;width:100%;height:auto;-moz-box-shadow: 1px 1px 10px #a0a0a0;-webkit-box-shadow: 1px 1px 10px #a0a0a0;box-shadow: 1px 1px 10px #a0a0a0;-moz-transition: box-shadow 0.2s linear;-webkit-transition: box-shadow 0.2s linear;transition: box-shadow 0.2s linear;}
12
  ul.bp-media-gallery li img:hover{-moz-box-shadow: 1px 1px 10px #333;-webkit-box-shadow: 1px 1px 10px #333;box-shadow: 1px 1px 10px #333;}
13
  ul.bp-media-gallery h3{max-width: 150px;overflow: hidden;text-align: center;font-size: 110%;white-space: nowrap;height: 20px;margin: 10px 0px;}
@@ -32,14 +32,32 @@ div.bp_media_title{margin-bottom:10px;}
32
  .bp-media-twitter:hover{background-position: 80px 36px;}
33
  .bp-media-rss{background-position: 35px 0px;}
34
  .bp-media-rss:hover{background-position: 35px 36px;}
35
- #bp-media-upload-ui{position: relative;}
36
- #bp-media-upload-ui #drag-drop-area{border: 4px dashed #DDD;height: 200px;}
37
- #bp-media-upload-ui .drag-drop-inside{margin: 70px auto 0;width: 250px;}
38
- #bp-media-upload-ui .drag-drop-inside p{display: block;text-align: center;color: #AAA;margin: 5px 0;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  #bp-media-upload-ui .drag-drop-info{font-size: 20px;}
40
  #bp-media-upload-ui .drag-drop-buttons input{border-color: #BBB;color: #464646;text-decoration: none;font-size: 12px!important;line-height: 13px;padding: 3px 8px;cursor: pointer;border-width: 1px;border-style: solid;-webkit-border-radius: 11px;border-radius: 11px;-moz-box-sizing: content-box;-webkit-box-sizing: content-box;box-sizing: content-box;}
 
 
41
  .bp-media-progressbar{height: 28px;margin: 6px 10px 0 0;line-height: 2em;padding: 0;overflow: hidden;margin-bottom: 2px;border: 1px solid #D1D1D1;background: white;background-image: linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -o-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -moz-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -webkit-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -ms-linear-gradient(bottom,white 0,#F7F7F7 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1)}
42
- .bp-media-progress-text{z-index: 10;position: relative;width: 100%;padding: 0 8px;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);color: rgba(0, 0, 0, 0.6);font-size:16px;line-height: 28px;}
43
  .bp-media-progress-completed{z-index: 9;width: 0;height: 35px;margin-top: -35px;background-color: #83B4D8;background-image: linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -o-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -moz-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -webkit-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -ms-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);}
44
  .bpm-aligncenter{display: inline-block;text-align: center;width: 100%;}
45
  #bp-media-premium-addons ul,#bp-media-premium-addons li{list-style:disc;margin-left:10px;}
@@ -130,7 +148,7 @@ background-image: -webkit-gradient(linear,left bottom,left top,color-stop(1, #F7
130
  #wpadminbar .bp-media-settings-menu > .ab-item .ab-icon{background: url("../img/bpm-icon-16.png") no-repeat scroll -8px -7px transparent}
131
  #wpadminbar .bp-media-settings-menu:hover .ab-icon{background-position: -8px -41px}
132
 
133
- /* Buddypress media admin support form styling */
134
  .bp-media-updated, .bp-media-error{border-radius: 3px; padding: 0 7px; margin: 5px 0 15px; border: 1px solid}
135
  .bp-media-updated p, .bp-media-error p{margin: 0.5em 0;padding: 2px;}
136
  .bp-media-updated{background-color: #FFFFE0;border-color: #E6DB55;}
@@ -154,8 +172,8 @@ background-image: -webkit-gradient(linear,left bottom,left top,color-stop(1, #F7
154
  .rt-update{background-color: #FFEAA6;border-color:#E1CA82;}
155
  img.bp-media-donation-image{display:block;margin: 10px auto;}
156
 
157
- /* Buddypress Media Image Uploader album selection */
158
- #bp-media-album-prompt, #bp-media-album-new { background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #AAAAAA;border-radius: 5px 5px 5px 5px;display: none;padding: 3px;z-index: 110000;left: 40%;position: fixed;top: 35%;width: 300px; }
159
  #bp-media-album-new { z-index: 120000; }
160
  .bp-media-album-title { background: url("../img/Popup-title-bg.png") repeat-x scroll 50% 50% #CCCCCC;border: 1px solid #AAAAAA;border-radius: 5px 5px 5px 5px;color: #222222;display: block;font-weight: bold;padding: 0;margin-bottom: 10px; }
161
  .bp-media-album-title span { background: none repeat scroll 0 0 transparent;display: block;font-size: 16px;padding: 10px; }
@@ -169,4 +187,4 @@ img.bp-media-donation-image{display:block;margin: 10px auto;}
169
  #bp-media-album-new > label { font-size: 14px; }
170
  #bp-media-album-new input[type="text"] { width: 98%; }
171
  #custom-overlay { background: none repeat scroll 0 0 #000000;bottom: 0;left: 0;min-height: 360px;opacity: 0.7;position: fixed;right: 0;top: 0;z-index: 105000; }
172
- div.error{margin: 5px 0 15px; background-color: #ffebe8; border-color: #c00;padding: 0 .6em;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;border-style: solid;}
6
  .bp_media_title {display:block;font-size:20px;font-weight:bold;}
7
  ul.bp-media-gallery{overflow: hidden}
8
  .bp_media_description {display:block;margin-top:20px;}
9
+ ul.bp-media-gallery.item-list{overflow:visible;margin: 1% 0;width: auto;}
10
+ #item-body ul.bp-media-gallery li{float: left;margin: 1% 1% 0;width: 18%;border-bottom: none;padding: 0;position: static;}
11
  ul.bp-media-gallery li img{max-width:150px;width:100%;height:auto;-moz-box-shadow: 1px 1px 10px #a0a0a0;-webkit-box-shadow: 1px 1px 10px #a0a0a0;box-shadow: 1px 1px 10px #a0a0a0;-moz-transition: box-shadow 0.2s linear;-webkit-transition: box-shadow 0.2s linear;transition: box-shadow 0.2s linear;}
12
  ul.bp-media-gallery li img:hover{-moz-box-shadow: 1px 1px 10px #333;-webkit-box-shadow: 1px 1px 10px #333;box-shadow: 1px 1px 10px #333;}
13
  ul.bp-media-gallery h3{max-width: 150px;overflow: hidden;text-align: center;font-size: 110%;white-space: nowrap;height: 20px;margin: 10px 0px;}
32
  .bp-media-twitter:hover{background-position: 80px 36px;}
33
  .bp-media-rss{background-position: 35px 0px;}
34
  .bp-media-rss:hover{background-position: 35px 36px;}
35
+ /*#bp-media-upload-ui{position: relative;}*/
36
+
37
+
38
+ #bp-media-upload-ui #drag-drop-area{border: 4px dashed #DDD;height: 150px;width: 150px;}
39
+ .upload #bp-media-upload-ui #drag-drop-area{height: auto; width: 100%;}
40
+ #bp-media-upload-ui .drag-drop-inside{margin:auto;width: 100%;}
41
+ #bp-media-album-prompt{margin: 0;position: absolute;right: 0;text-align: right;top: 2px;min-width: 200px;}
42
+ #bp-media-album-prompt span{float: left;line-height: 25px;margin-right: 15px;}
43
+ #bp-media-album-prompt .bp-media-album-content{float: left;}
44
+ #bp-media-album-prompt #create-new{background-color: #DF562C;color: #fff;}
45
+ #bp-media-album-prompt div.hide{display: none;position: absolute;right: 0;top: 0;z-index: 100;position: relative;}
46
+ #bp-media-album-prompt #bp_media_album_new {width: 160px;}
47
+ #bp-media-album-prompt input.button{height: 25px;margin-left: 5px;padding: 0 10px;position: relative;top: -1px;}
48
+ div.bp-media-area-allocate{display: block;height: 15px;}
49
+ div.bp_media_create_album{text-align: right}
50
+ #bp_media_album_name{margin-bottom: 6px;}
51
+ #item-body:after,ul.bp-media-gallery.item-list:after{content: " ";clear: both;display: block;text-indent: -9999em;}
52
+ #item-body{position: relative;}
53
+
54
+ #bp-media-upload-ui .drag-drop-inside p{display: block;text-align: center;color: #AAA;margin: 12px 0;}
55
  #bp-media-upload-ui .drag-drop-info{font-size: 20px;}
56
  #bp-media-upload-ui .drag-drop-buttons input{border-color: #BBB;color: #464646;text-decoration: none;font-size: 12px!important;line-height: 13px;padding: 3px 8px;cursor: pointer;border-width: 1px;border-style: solid;-webkit-border-radius: 11px;border-radius: 11px;-moz-box-sizing: content-box;-webkit-box-sizing: content-box;box-sizing: content-box;}
57
+ #bp-media-uploaded-files{background: none repeat scroll 0 0 #DDDDDD;left: 0;margin-top: 5px;position: absolute;top: 155px;width: 100%;}
58
+ #bp-media-uploaded-files .error{padding: 5px;text-align: center;}
59
  .bp-media-progressbar{height: 28px;margin: 6px 10px 0 0;line-height: 2em;padding: 0;overflow: hidden;margin-bottom: 2px;border: 1px solid #D1D1D1;background: white;background-image: linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -o-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -moz-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -webkit-linear-gradient(bottom,white 0,#F7F7F7 100%);background-image: -ms-linear-gradient(bottom,white 0,#F7F7F7 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1)}
60
+ .bp-media-progress-text{z-index: 10;position: relative;width: 100%;padding: 0 8px;text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);color: rgba(0, 0, 0, 0.6);font-size:16px;line-height: 28px;height: 28px;}
61
  .bp-media-progress-completed{z-index: 9;width: 0;height: 35px;margin-top: -35px;background-color: #83B4D8;background-image: linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -o-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -moz-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -webkit-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);background-image: -ms-linear-gradient(bottom,#72A7CF 0,#90C5EE 100%);-webkit-border-radius: 3px;border-radius: 3px;-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);}
62
  .bpm-aligncenter{display: inline-block;text-align: center;width: 100%;}
63
  #bp-media-premium-addons ul,#bp-media-premium-addons li{list-style:disc;margin-left:10px;}
148
  #wpadminbar .bp-media-settings-menu > .ab-item .ab-icon{background: url("../img/bpm-icon-16.png") no-repeat scroll -8px -7px transparent}
149
  #wpadminbar .bp-media-settings-menu:hover .ab-icon{background-position: -8px -41px}
150
 
151
+ /* BuddyPress media admin support form styling */
152
  .bp-media-updated, .bp-media-error{border-radius: 3px; padding: 0 7px; margin: 5px 0 15px; border: 1px solid}
153
  .bp-media-updated p, .bp-media-error p{margin: 0.5em 0;padding: 2px;}
154
  .bp-media-updated{background-color: #FFFFE0;border-color: #E6DB55;}
172
  .rt-update{background-color: #FFEAA6;border-color:#E1CA82;}
173
  img.bp-media-donation-image{display:block;margin: 10px auto;}
174
 
175
+ /* BuddyPress Media Image Uploader album selection */
176
+ /*#bp-media-album-prompt, #bp-media-album-new { background: none repeat scroll 0 0 #FFFFFF;border: 1px solid #AAAAAA;border-radius: 5px 5px 5px 5px;display: none;padding: 3px;z-index: 110000;left: 40%;position: fixed;top: 35%;width: 300px; }
177
  #bp-media-album-new { z-index: 120000; }
178
  .bp-media-album-title { background: url("../img/Popup-title-bg.png") repeat-x scroll 50% 50% #CCCCCC;border: 1px solid #AAAAAA;border-radius: 5px 5px 5px 5px;color: #222222;display: block;font-weight: bold;padding: 0;margin-bottom: 10px; }
179
  .bp-media-album-title span { background: none repeat scroll 0 0 transparent;display: block;font-size: 16px;padding: 10px; }
187
  #bp-media-album-new > label { font-size: 14px; }
188
  #bp-media-album-new input[type="text"] { width: 98%; }
189
  #custom-overlay { background: none repeat scroll 0 0 #000000;bottom: 0;left: 0;min-height: 360px;opacity: 0.7;position: fixed;right: 0;top: 0;z-index: 105000; }
190
+ div.error{margin: 5px 0 15px; background-color: #ffebe8; border-color: #c00;padding: 0 .6em;-webkit-border-radius: 3px;border-radius: 3px;border-width: 1px;border-style: solid;}*/
app/assets/js/bp-media-uploader.js CHANGED
@@ -4,98 +4,78 @@
4
  */
5
 
6
  jQuery(document).ready(function(){
7
- jQuery('body').append('<div id="custom-overlay"></div>');
8
- jQuery('#custom-overlay').hide();
9
- jQuery('body').append('<div id="bp-media-album-prompt">'+jQuery('#bp-media-album-prompt').html()+'</div>');
10
- jQuery('body').append('<div id="bp-media-album-new">'+jQuery('#bp-media-album-new').html()+'</div>');
11
- jQuery('#content #bp-media-album-prompt').remove();
12
- jQuery('#content #bp-media-album-new').remove();
13
- jQuery('#bp-media-close').click(function(){
14
- jQuery('#bp-media-album-prompt').hide();
15
- jQuery('#custom-overlay').hide();
16
- jQuery('#bp-media-uploaded-files div').remove();
17
- });
18
- jQuery('#selected-btn').click(function() {
19
- bp_media_album_selected = jQuery('#bp-media-selected-album').val();
20
- jQuery('#bp-media-album-prompt').hide();
21
- jQuery('#custom-overlay').hide();
22
- bp_media_uploader.start();
23
- });
24
- jQuery('#create-btn').click(function() {
25
- jQuery('#custom-overlay').css('z-index', 115000);
26
- jQuery('#bp-media-album-new').show();
27
- jQuery('#bp-media-album-new').css({
28
- left: ((jQuery(window).width()-jQuery('#bp-media-album-new').width())/2),
29
- top: ((jQuery(window).height()-jQuery('#bp-media-album-new').height())/2)
30
- });
31
- });
32
- jQuery('#bp-media-create-album-close').click(function() {
33
- jQuery('#bp-media-album-new').hide();
34
- jQuery('#custom-overlay').css('z-index', 105000);
35
- });
36
- jQuery(window).resize(function(){
37
- jQuery('#bp-media-album-prompt').css({
38
- left: ((jQuery(window).width()-jQuery('#bp-media-album-prompt').width())/2),
39
- top: ((jQuery(window).height()-jQuery('#bp-media-album-prompt').height())/2)
40
- });
41
- jQuery('#bp-media-album-new').css({
42
- left: ((jQuery(window).width()-jQuery('#bp-media-album-new').width())/2),
43
- top: ((jQuery(window).height()-jQuery('#bp-media-album-new').height())/2)
44
- });
45
- });
46
- jQuery('#create-album').click(function() {
47
- var album_name = jQuery('#bp_media_album_name').val();
48
- if(album_name.length==0){
49
- alert('You have not filled the album name');
50
- return false;
51
- }
52
- var data = {
53
- action: 'bp_media_add_album',
54
- bp_media_album_name : album_name,
55
- bp_media_group_id : bp_media_uploader_params.multipart_params.bp_media_group_id
56
- };
57
- jQuery.post(bp_media_vars.ajaxurl,data,function(response){
58
- var album = parseInt(response);
59
- if(album == 0){
60
- alert('Sorry you cannot create albums in this group');
61
- }
62
- else{
63
- jQuery('#bp-media-selected-album').append('<option value='+album+' selected="selected">'+jQuery('#bp_media_album_name').val()+'</option>')
64
- jQuery('#bp-media-album-new').hide();
65
- bp_media_album_selected = jQuery('#bp-media-selected-album').val();
66
- jQuery('#bp-media-album-prompt').hide();
67
- jQuery('#custom-overlay').hide();
68
- bp_media_uploader.start();
69
- }
70
- });
71
- });
72
 
73
- var bp_media_is_multiple_upload = false;
74
- if(jQuery('#'+bp_media_uploader_params.container).length==0)
75
  return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  var bp_media_uploader=new plupload.Uploader(bp_media_uploader_params);
77
  var bp_media_album_selected = false;
78
  bp_media_uploader.init();
79
- bp_media_uploader.bind('FilesAdded', function(up, files) {
 
 
 
 
 
80
  //bp_media_is_multiple_upload = files.length==1&&jQuery('.bp-media-progressbar').length==0?false:true;
81
  bp_media_is_multiple_upload = files.length>1;
82
- jQuery.each(files, function(i, file) {
83
- jQuery('#bp-media-uploaded-files').append(
84
- '<div id="bp-media-progress-'+file.id+'" class="bp-media-progressbar"><div class="bp-media-progress-text">' +
85
- file.name + ' (' + plupload.formatSize(file.size) + ')(<b></b>)</div><div class="bp-media-progress-completed"></div></div>');
86
  });
87
- if(bp_media_album_selected == false){
88
- jQuery('#bp-media-album-prompt').css({
89
- left: ((jQuery(window).width()-jQuery('#bp-media-album-prompt').width())/2),
90
- top: ((jQuery(window).height()-jQuery('#bp-media-album-prompt').height())/2)
91
- });
92
- jQuery('#custom-overlay').show();
93
- jQuery('#bp-media-album-prompt').show();
94
- } else {
95
- bp_media_album_selected = jQuery('#bp-media-selected-album').val();
96
- bp_media_uploader.start();
97
- }
98
- up.refresh(); // Reposition Flash/Silverlight
99
  });
100
  bp_media_uploader.bind('UploadProgress', function(up, file) {
101
  jQuery('#bp-media-progress-'+file.id+' .bp-media-progress-completed').width(file.percent+'%');
@@ -120,13 +100,14 @@ jQuery(document).ready(function(){
120
  });
121
  bp_media_uploader.bind('UploadComplete',function(){
122
  var new_location = window.location.href;
123
- if(new_location.search('/media/')>0){
124
- new_location = new_location.replace('/media/','/albums/');
125
  if(bp_media_album_selected>0)
126
  new_location = new_location.concat(bp_media_album_selected);
127
  else
128
  new_location = new_location.concat('0/');
129
  window.location.replace(new_location);
130
- }
 
131
  });
132
  });
4
  */
5
 
6
  jQuery(document).ready(function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ var selected = jQuery('#bp-media-album-prompt select').val();
9
+ if(jQuery('#'+bp_media_uploader_params.container).length==0)
10
  return false;
11
+ jQuery('#bp-media-album-prompt select').change(function() {
12
+
13
+ if ( jQuery(this).val() == 'create_new' ) {
14
+ jQuery('#bp_media_album_new').css({'width':jQuery('#bp-media-album-prompt select').width()+20});
15
+ jQuery('#bp-media-album-prompt select').hide();
16
+ jQuery('#bp-media-album-prompt span').hide();
17
+ jQuery('#bp-media-album-prompt div.hide').show();
18
+ } else
19
+ selected = jQuery(this).val();
20
+ });
21
+ var new_album_flag = 0;
22
+ jQuery('#btn-create-new').click(function(){
23
+ if ( new_album_flag == 1 ) {
24
+ return false;
25
+ }
26
+ var new_album_name = jQuery('#bp_media_album_new').val();
27
+ if(new_album_name.length==0){
28
+ alert('You have not filled the album name');
29
+ return false;
30
+ } else {
31
+ new_album_flag = 1;
32
+ jQuery(this).val('Wait');
33
+ var data = {
34
+ action: 'bp_media_add_album',
35
+ bp_media_album_name : new_album_name,
36
+ bp_media_group_id : bp_media_uploader_params.multipart_params.bp_media_group_id
37
+ };
38
+ jQuery.post(bp_media_vars.ajaxurl,data,function(response){
39
+ var album = parseInt(response);
40
+ if(album == 0){
41
+ alert('Sorry you cannot create albums in this group');
42
+ }
43
+ else {
44
+ jQuery('#bp-media-album-prompt select option').removeAttr('selected');
45
+ jQuery('#bp-media-selected-album').prepend('<option value='+album+' selected="selected">'+new_album_name+'</option>');
46
+ jQuery('#bp-media-album-prompt div.hide').hide();
47
+ jQuery('#bp-media-album-prompt select').show();
48
+ jQuery('#bp-media-album-prompt span').show();
49
+ }
50
+ });
51
+ }
52
+ });
53
+ jQuery('#btn-create-cancel').click(function(){
54
+ jQuery('#bp-media-album-prompt div.hide').hide();
55
+ jQuery('#bp-media-album-prompt select option').removeAttr('selected');
56
+ jQuery('#bp-media-album-prompt select option[value=' + selected + ']').attr('selected', 'selected');
57
+ jQuery('#bp-media-album-prompt select').show();
58
+ jQuery('#bp-media-album-prompt span').show();
59
+ });
60
+ var bp_media_is_multiple_upload = false;
61
  var bp_media_uploader=new plupload.Uploader(bp_media_uploader_params);
62
  var bp_media_album_selected = false;
63
  bp_media_uploader.init();
64
+
65
+ bp_media_uploader.bind('FilesAdded', function(up, files) {
66
+ if ( jQuery('#bp-media-selected-album').val() == 'create_new' ) {
67
+ alert("Please Select an Album !!");
68
+ return false;
69
+ }
70
  //bp_media_is_multiple_upload = files.length==1&&jQuery('.bp-media-progressbar').length==0?false:true;
71
  bp_media_is_multiple_upload = files.length>1;
72
+ jQuery.each(files, function(i, file) {
73
+ var extension = file.name.substr( (file.name.lastIndexOf('.') +1) );
74
+ jQuery('#bp-media-uploaded-files').append('<div id="bp-media-progress-'+file.id+'" class="bp-media-progressbar"><div class="bp-media-progress-text">' + file.name + ' (' + plupload.formatSize(file.size) + ')(<b>0%</b>)</div><div class="bp-media-progress-completed"></div></div>');
 
75
  });
76
+ bp_media_album_selected = jQuery('#bp-media-selected-album').val();
77
+ bp_media_uploader.start();
78
+ up.refresh(); // Reposition Flash/Silverlight
 
 
 
 
 
 
 
 
 
79
  });
80
  bp_media_uploader.bind('UploadProgress', function(up, file) {
81
  jQuery('#bp-media-progress-'+file.id+' .bp-media-progress-completed').width(file.percent+'%');
100
  });
101
  bp_media_uploader.bind('UploadComplete',function(){
102
  var new_location = window.location.href;
103
+ if(new_location.search('/upload/')>0){
104
+ new_location = new_location.replace('/upload/','/albums/');
105
  if(bp_media_album_selected>0)
106
  new_location = new_location.concat(bp_media_album_selected);
107
  else
108
  new_location = new_location.concat('0/');
109
  window.location.replace(new_location);
110
+ } else
111
+ location.reload(true);
112
  });
113
  });
app/assets/js/main.js CHANGED
@@ -74,24 +74,25 @@ jQuery(document).ready(function(){
74
  e.preventDefault();
75
  var post_id = jQuery(this).attr('data-post-id');
76
  var post_date = new Date();
 
 
77
  var date = post_date.getFullYear()+'-'+(post_date.getMonth() + 1) +'-'+post_date.getDate()+' '+ post_date.getHours()+':'+(post_date.getMinutes() + 1)+':'+(post_date.getSeconds()+1);
78
- // var post_date = d.getTime();
79
- var curr_obj = jQuery(this);
80
  var remove_featured = 0;
81
- if(jQuery(this).attr('data-remove-featured')){
82
  remove_featured = jQuery(this).attr('data-remove-featured');
83
  }
84
- jQuery.ajax({
85
  url:bp_media_vars.ajax_url,
86
  type:'POST',
87
  data:'action=my_featured_action&post_id='+post_id+'&remove_featured='+remove_featured+'&post_date='+date,
88
  success:function( results )
89
  {
90
  if(remove_featured == 1){
91
- curr_obj.text('Featured');
92
  curr_obj.attr('data-remove-featured','0');
93
- } else {
94
- curr_obj.text('Remove Featured');
95
  curr_obj.attr('data-remove-featured','1');
96
  }
97
 
74
  e.preventDefault();
75
  var post_id = jQuery(this).attr('data-post-id');
76
  var post_date = new Date();
77
+ var feature = bp_media_vars.feature;
78
+ var rfeature = bp_media_vars.removefeature;
79
  var date = post_date.getFullYear()+'-'+(post_date.getMonth() + 1) +'-'+post_date.getDate()+' '+ post_date.getHours()+':'+(post_date.getMinutes() + 1)+':'+(post_date.getSeconds()+1);
80
+ var curr_obj = jQuery(this);
 
81
  var remove_featured = 0;
82
+ if(jQuery(this).attr('data-remove-featured')){
83
  remove_featured = jQuery(this).attr('data-remove-featured');
84
  }
85
+ jQuery.ajax({
86
  url:bp_media_vars.ajax_url,
87
  type:'POST',
88
  data:'action=my_featured_action&post_id='+post_id+'&remove_featured='+remove_featured+'&post_date='+date,
89
  success:function( results )
90
  {
91
  if(remove_featured == 1){
92
+ curr_obj.text(feature);
93
  curr_obj.attr('data-remove-featured','0');
94
+ } else {
95
+ curr_obj.text(rfeature);
96
  curr_obj.attr('data-remove-featured','1');
97
  }
98
 
app/helper/BPMediaLog.php CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'BPMediaLog' ) ) {
21
  if ($log_file == ''){
22
  $log_file = BP_MEDIA_PATH.'log/bpmedia.log';
23
  }
24
- return $this->log( $log_msg );
25
  }
26
 
27
  /**
21
  if ($log_file == ''){
22
  $log_file = BP_MEDIA_PATH.'log/bpmedia.log';
23
  }
24
+ return $this->log( $log_msg, $log_file );
25
  }
26
 
27
  /**
app/helper/BPMediaSettings.php CHANGED
@@ -20,7 +20,7 @@ if (!class_exists('BPMediaSettings')) {
20
  */
21
  public function settings() {
22
  global $bp_media_addon;
23
- add_settings_section('bpm-settings', __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
24
  add_settings_field('bpm-video', __('Video', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
25
  'setting' => 'bp_media_options',
26
  'option' => 'videos_enabled',
@@ -53,32 +53,54 @@ if (!class_exists('BPMediaSettings')) {
53
  add_settings_section('bpm-other', __('BuddyPress Media Other Options', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
54
  add_settings_field('bpm-other-settings', __('Re-Count Media Entries', BP_MEDIA_TXT_DOMAIN), array($this, 'button'), 'bp-media-settings', 'bpm-other', array(
55
  'option' => 'refresh-count',
56
- 'name' => 'Re-Count',
57
  'desc' => __('It will re-count all media entries of all users and correct any discrepancies.', BP_MEDIA_TXT_DOMAIN)
58
  ));
59
  $bp_media_addon = new BPMediaAddon();
60
  add_settings_section('bpm-addons', __('BuddyPress Media Addons for Audio/Video Conversion', BP_MEDIA_TXT_DOMAIN), array($bp_media_addon, 'get_addons'), 'bp-media-addons');
61
  add_settings_section('bpm-support', __('Submit a request form', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-support');
62
  add_settings_field('bpm-request', __('Request Type', BP_MEDIA_TXT_DOMAIN), array($this, 'dropdown'), 'bp-media-support', 'bpm-support', array('option' => 'select-request', 'none' => false, 'values' => array(
63
- '' => '--Select One--',
64
- 'premium_support' => 'Premium Support',
65
- 'new_feature' => 'Suggest a New Feature',
66
- 'bug_report' => 'Submit a Bug Report')
67
  ));
68
  register_setting('bp_media', 'bp_media_options', array($this, 'sanitize'));
69
  }
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  /**
72
  * Sanitizes the settings
73
  */
74
  public function sanitize($input) {
75
  global $bp_media_admin;
76
  if (isset($_POST['refresh-count'])) {
77
- if ($bp_media_admin->update_count())
78
- add_settings_error(__('Recount Success', BP_MEDIA_TXT_DOMAIN), 'recount-success', __('Recounting of media files done successfully', BP_MEDIA_TXT_DOMAIN), 'updated');
79
- else
80
- add_settings_error(__('Recount Fail', BP_MEDIA_TXT_DOMAIN), 'recount-fail', __('Recounting Failed', BP_MEDIA_TXT_DOMAIN));
 
 
 
 
 
 
 
81
  }
 
 
82
  do_action('bp_media_sanitize_settings', $_POST, $input);
83
  return $input;
84
  }
20
  */
21
  public function settings() {
22
  global $bp_media_addon;
23
+ add_settings_section('bpm-settings', __('BuddyPress Media Settings', BP_MEDIA_TXT_DOMAIN), is_multisite() ? array($this, 'network_notices') : '', 'bp-media-settings');
24
  add_settings_field('bpm-video', __('Video', BP_MEDIA_TXT_DOMAIN), array($this, 'checkbox'), 'bp-media-settings', 'bpm-settings', array(
25
  'setting' => 'bp_media_options',
26
  'option' => 'videos_enabled',
53
  add_settings_section('bpm-other', __('BuddyPress Media Other Options', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-settings');
54
  add_settings_field('bpm-other-settings', __('Re-Count Media Entries', BP_MEDIA_TXT_DOMAIN), array($this, 'button'), 'bp-media-settings', 'bpm-other', array(
55
  'option' => 'refresh-count',
56
+ 'name' => __('Re-Count', BP_MEDIA_TXT_DOMAIN),
57
  'desc' => __('It will re-count all media entries of all users and correct any discrepancies.', BP_MEDIA_TXT_DOMAIN)
58
  ));
59
  $bp_media_addon = new BPMediaAddon();
60
  add_settings_section('bpm-addons', __('BuddyPress Media Addons for Audio/Video Conversion', BP_MEDIA_TXT_DOMAIN), array($bp_media_addon, 'get_addons'), 'bp-media-addons');
61
  add_settings_section('bpm-support', __('Submit a request form', BP_MEDIA_TXT_DOMAIN), '', 'bp-media-support');
62
  add_settings_field('bpm-request', __('Request Type', BP_MEDIA_TXT_DOMAIN), array($this, 'dropdown'), 'bp-media-support', 'bpm-support', array('option' => 'select-request', 'none' => false, 'values' => array(
63
+ '' => '-- ' . __('Select One', BP_MEDIA_TXT_DOMAIN) . ' --',
64
+ 'premium_support' => __('Premium Support', BP_MEDIA_TXT_DOMAIN),
65
+ 'new_feature' => __('Suggest a New Feature', BP_MEDIA_TXT_DOMAIN),
66
+ 'bug_report' => __('Submit a Bug Report', BP_MEDIA_TXT_DOMAIN))
67
  ));
68
  register_setting('bp_media', 'bp_media_options', array($this, 'sanitize'));
69
  }
70
 
71
+ public function network_notices() {
72
+ if (get_site_option('bpm-recount-success', false)) {
73
+ echo '<div id="setting-error-bpm-recount-success" class="updated"><p><strong>' . get_site_option('bpm-recount-success') . '</strong></p></div>';
74
+ delete_site_option('bpm-recount-success');
75
+ } elseif (get_site_option('bpm-recount-fail', false)) {
76
+ echo '<div id="setting-error-bpm-recount-fail" class="error"><p><strong>' . get_site_option('bpm-recount-fail') . '</strong></p></div>';
77
+ delete_site_option('bpm-recount-fail');
78
+ } elseif (get_site_option('bpm-settings-saved')) {
79
+ echo '<div id="setting-error-bpm-settings-saved" class="updated"><p><strong>' . get_site_option('bpm-settings-saved') . '</strong></p></div>';
80
+ }
81
+ delete_site_option('bpm-settings-saved');
82
+ }
83
+
84
  /**
85
  * Sanitizes the settings
86
  */
87
  public function sanitize($input) {
88
  global $bp_media_admin;
89
  if (isset($_POST['refresh-count'])) {
90
+ if ($bp_media_admin->update_count()) {
91
+ if (is_multisite())
92
+ update_site_option('bpm-recount-success', __('Recounting of media files done successfully', BP_MEDIA_TXT_DOMAIN));
93
+ else
94
+ add_settings_error(__('Recount Success', BP_MEDIA_TXT_DOMAIN), 'bpm-recount-success', __('Recounting of media files done successfully', BP_MEDIA_TXT_DOMAIN), 'updated');
95
+ } else {
96
+ if (is_multisite())
97
+ update_site_option('bpm-recount-fail', __('Recounting Failed', BP_MEDIA_TXT_DOMAIN));
98
+ else
99
+ add_settings_error(__('Recount Fail', BP_MEDIA_TXT_DOMAIN), 'bpm-recount-fail', __('Recounting Failed', BP_MEDIA_TXT_DOMAIN));
100
+ }
101
  }
102
+ if (is_multisite())
103
+ update_site_option('bpm-settings-saved', __('Settings saved.', BP_MEDIA_FFMPEG_TXT_DOMAIN));
104
  do_action('bp_media_sanitize_settings', $_POST, $input);
105
  return $input;
106
  }
app/helper/BPMediaUpgrade.php CHANGED
@@ -55,7 +55,8 @@ if (!class_exists('BPMediaUpgrade')) {
55
  */
56
  public function upgrade_1_0_to_2_1() {
57
  global $wpdb, $bp_media;
58
- remove_filter('bp_activity_get_user_join_filter', 'activity_query_filter', 10);
 
59
  /* @var $wpdb wpdb */
60
  $wall_posts_album_ids = array();
61
  do {
@@ -73,10 +74,10 @@ if (!class_exists('BPMediaUpgrade')) {
73
  if (isset($wall_posts_album_ids[$media_file->post_author])) {
74
  $wall_posts_id = $wall_posts_album_ids[$media_file->post_author];
75
  } else {
76
- $wall_posts_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_title = 'Wall Posts' AND post_author = '" . $media_file->post_author . "' AND post_type='bp_media_album'");
77
  if ($wall_posts_id == null) {
78
  $album = new BPMediaAlbum();
79
- $album->add_album('Wall Posts', $media_file->post_author);
80
  $wall_posts_id = $album->get_id();
81
  }
82
  if (!$wall_posts_id) {
55
  */
56
  public function upgrade_1_0_to_2_1() {
57
  global $wpdb, $bp_media;
58
+ $post_wall =__( 'Wall Posts', BP_MEDIA_TXT_DOMAIN );
59
+ remove_filter('bp_activity_get_user_join_filter', 'BPMediaFilters::activity_query_filter', 10);
60
  /* @var $wpdb wpdb */
61
  $wall_posts_album_ids = array();
62
  do {
74
  if (isset($wall_posts_album_ids[$media_file->post_author])) {
75
  $wall_posts_id = $wall_posts_album_ids[$media_file->post_author];
76
  } else {
77
+ $wall_posts_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_title = $post_wall AND post_author = '" . $media_file->post_author . "' AND post_type='bp_media_album'");
78
  if ($wall_posts_id == null) {
79
  $album = new BPMediaAlbum();
80
+ $album->add_album($post_wall, $media_file->post_author);
81
  $wall_posts_id = $album->get_id();
82
  }
83
  if (!$wall_posts_id) {
app/main/BPMediaLoader.php CHANGED
@@ -68,12 +68,26 @@ class BPMediaLoader {
68
  'parent_url' => trailingslashit( bp_displayed_user_domain() )
69
  );
70
  unset( $bp->bp_nav[ $key ] );
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
  switch ( $bp->current_component ) {
73
  case BP_MEDIA_IMAGES_SLUG:
74
  case BP_MEDIA_VIDEOS_SLUG:
75
  case BP_MEDIA_AUDIO_SLUG:
76
  case BP_MEDIA_ALBUMS_SLUG:
 
77
  $count = count( $bp->action_variables );
78
  for ( $i = $count; $i > 0; $i -- ) {
79
  $bp->action_variables[ $i ] = $bp->action_variables[ $i - 1 ];
68
  'parent_url' => trailingslashit( bp_displayed_user_domain() )
69
  );
70
  unset( $bp->bp_nav[ $key ] );
71
+ break;
72
+ case BP_MEDIA_UPLOAD_SLUG:
73
+ $bp->bp_options_nav[ BP_MEDIA_SLUG ][ ] = array(
74
+ 'name' => $nav_item[ 'name' ],
75
+ 'link' => (isset( $bp->displayed_user->domain ) ? $bp->displayed_user->domain : (isset( $bp->loggedin_user->domain ) ? $bp->loggedin_user->domain : '')) . $nav_item[ 'slug' ] . '/',
76
+ 'slug' => $nav_item[ 'slug' ],
77
+ 'css_id' => $nav_item[ 'css_id' ],
78
+ 'position' => $nav_item[ 'position' ],
79
+ 'screen_function' => $nav_item[ 'screen_function' ],
80
+ 'user_has_access' => bp_is_my_profile(),
81
+ 'parent_url' => trailingslashit( bp_displayed_user_domain() )
82
+ );
83
+ unset( $bp->bp_nav[ $key ] );
84
  }
85
  switch ( $bp->current_component ) {
86
  case BP_MEDIA_IMAGES_SLUG:
87
  case BP_MEDIA_VIDEOS_SLUG:
88
  case BP_MEDIA_AUDIO_SLUG:
89
  case BP_MEDIA_ALBUMS_SLUG:
90
+ case BP_MEDIA_UPLOAD_SLUG:
91
  $count = count( $bp->action_variables );
92
  for ( $i = $count; $i > 0; $i -- ) {
93
  $bp->action_variables[ $i ] = $bp->action_variables[ $i - 1 ];
app/main/BuddyPressMedia.php CHANGED
@@ -48,6 +48,7 @@ class BuddyPressMedia {
48
  */
49
  add_action('bp_include', array($this, 'init'));
50
  add_action('widgets_init', array($this, 'widgets_init'), 1);
 
51
  global $bp_media_counter;
52
  $bp_media_counter = 0;
53
  }
@@ -202,14 +203,16 @@ class BuddyPressMedia {
202
  new BPMediaFunction();
203
  }
204
 
205
- if (file_exists(BP_MEDIA_PATH . '/languages/' . get_locale() . '.mo'))
206
- load_textdomain(BP_MEDIA_TXT_DOMAIN, BP_MEDIA_PATH . '/languages/' . get_locale() . '.mo');
207
 
208
  add_action('admin_notices', array($this, 'admin_notice'));
209
  global $bp_media_admin;
210
  $bp_media_admin = new BPMediaAdmin();
211
  }
212
 
 
 
 
 
213
  function settings_link($links, $file) {
214
  /* create link */
215
  $plugin_name = plugin_basename(BP_MEDIA_PATH.'index.php');
48
  */
49
  add_action('bp_include', array($this, 'init'));
50
  add_action('widgets_init', array($this, 'widgets_init'), 1);
51
+ add_action('plugins_loaded',array($this,'load_translation'));
52
  global $bp_media_counter;
53
  $bp_media_counter = 0;
54
  }
203
  new BPMediaFunction();
204
  }
205
 
 
 
206
 
207
  add_action('admin_notices', array($this, 'admin_notice'));
208
  global $bp_media_admin;
209
  $bp_media_admin = new BPMediaAdmin();
210
  }
211
 
212
+ static function load_translation(){
213
+ load_plugin_textdomain(BP_MEDIA_TXT_DOMAIN, false, basename(BP_MEDIA_PATH).'/languages/');
214
+ }
215
+
216
  function settings_link($links, $file) {
217
  /* create link */
218
  $plugin_name = plugin_basename(BP_MEDIA_PATH.'index.php');
app/main/group/BPMediaGroup.php CHANGED
@@ -15,6 +15,7 @@ class BPMediaGroup {
15
  new BPMediaGroupAlbum();
16
  new BPMediaGroupMusic();
17
  new BPMediaGroupVideo();
 
18
  endif;
19
  add_action('bp_actions', array($this, 'custom_nav'), 999);
20
  add_filter('bp_media_multipart_params_filter', array($this, 'multipart_params_handler'));
@@ -37,7 +38,7 @@ class BPMediaGroup {
37
  return;
38
 
39
  /** This line might break a thing or two in custom themes and widgets */
40
- remove_filter('bp_activity_get_user_join_filter', 'activity_query_filter', 10);
41
 
42
  foreach ($bp->bp_options_nav[$current_group] as $key => $nav_item) {
43
  switch ($nav_item['slug']) {
@@ -45,6 +46,7 @@ class BPMediaGroup {
45
  case BP_MEDIA_VIDEOS_SLUG:
46
  case BP_MEDIA_AUDIO_SLUG:
47
  case BP_MEDIA_ALBUMS_SLUG:
 
48
  unset($bp->bp_options_nav[$current_group][$key]);
49
  }
50
  switch ($bp->current_action) {
@@ -52,6 +54,7 @@ class BPMediaGroup {
52
  case BP_MEDIA_VIDEOS_SLUG:
53
  case BP_MEDIA_AUDIO_SLUG:
54
  case BP_MEDIA_ALBUMS_SLUG:
 
55
  $count = count($bp->action_variables);
56
  for ($i = $count; $i > 0; $i--) {
57
  $bp->action_variables[$i] = $bp->action_variables[$i - 1];
@@ -73,8 +76,7 @@ class BPMediaGroup {
73
  if (is_array($multipart_params)) {
74
  global $bp;
75
  if (isset($bp->current_action) && $bp->current_action == BP_MEDIA_SLUG
76
- && isset($bp->action_variables) && empty($bp->action_variables)
77
- && isset($bp->current_component) && $bp->current_component == 'groups'
78
  && isset($bp->groups->current_group->id)) {
79
  $multipart_params['bp_media_group_id'] = $bp->groups->current_group->id;
80
  }
@@ -94,25 +96,40 @@ class BPMediaGroup {
94
  global $bp;
95
  if (!isset($bp->current_action) || $bp->current_action != BP_MEDIA_SLUG)
96
  return false;
97
- $current_tab = BPMediaGroup::can_upload() ? BP_MEDIA_UPLOAD_SLUG : BP_MEDIA_IMAGES_SLUG;
 
 
 
98
  if (isset($bp->action_variables[0])) {
99
  $current_tab = $bp->action_variables[0];
100
  }
101
 
102
- if (BPMediaGroup::can_upload()) {
103
- $bp_media_nav[BP_MEDIA_UPLOAD_SLUG] = array(
104
  'url' => trailingslashit(bp_get_group_permalink($bp->groups->current_group)) . BP_MEDIA_SLUG,
105
- 'label' => BP_MEDIA_UPLOAD_LABEL,
106
- );
107
- } else {
108
- $bp_media_nav = array();
109
- }
110
-
111
- foreach (array('IMAGES', 'VIDEOS', 'AUDIO', 'ALBUMS') as $type) {
112
- $bp_media_nav[constant('BP_MEDIA_' . $type . '_SLUG')] = array(
113
- 'url' => trailingslashit(bp_get_group_permalink($bp->groups->current_group)) . constant('BP_MEDIA_' . $type . '_SLUG'),
114
- 'label' => constant('BP_MEDIA_' . $type . '_LABEL'),
115
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  }
117
 
118
  /** This variable will be used to display the tabs in group component */
15
  new BPMediaGroupAlbum();
16
  new BPMediaGroupMusic();
17
  new BPMediaGroupVideo();
18
+ new BPMediaGroupUpload();
19
  endif;
20
  add_action('bp_actions', array($this, 'custom_nav'), 999);
21
  add_filter('bp_media_multipart_params_filter', array($this, 'multipart_params_handler'));
38
  return;
39
 
40
  /** This line might break a thing or two in custom themes and widgets */
41
+ remove_filter('bp_activity_get_user_join_filter', 'BPMediaFilters::activity_query_filter', 10);
42
 
43
  foreach ($bp->bp_options_nav[$current_group] as $key => $nav_item) {
44
  switch ($nav_item['slug']) {
46
  case BP_MEDIA_VIDEOS_SLUG:
47
  case BP_MEDIA_AUDIO_SLUG:
48
  case BP_MEDIA_ALBUMS_SLUG:
49
+ case BP_MEDIA_UPLOAD_SLUG:
50
  unset($bp->bp_options_nav[$current_group][$key]);
51
  }
52
  switch ($bp->current_action) {
54
  case BP_MEDIA_VIDEOS_SLUG:
55
  case BP_MEDIA_AUDIO_SLUG:
56
  case BP_MEDIA_ALBUMS_SLUG:
57
+ case BP_MEDIA_UPLOAD_SLUG:
58
  $count = count($bp->action_variables);
59
  for ($i = $count; $i > 0; $i--) {
60
  $bp->action_variables[$i] = $bp->action_variables[$i - 1];
76
  if (is_array($multipart_params)) {
77
  global $bp;
78
  if (isset($bp->current_action) && $bp->current_action == BP_MEDIA_SLUG
79
+ && isset($bp->action_variables) && isset($bp->current_component) && $bp->current_component == 'groups'
 
80
  && isset($bp->groups->current_group->id)) {
81
  $multipart_params['bp_media_group_id'] = $bp->groups->current_group->id;
82
  }
96
  global $bp;
97
  if (!isset($bp->current_action) || $bp->current_action != BP_MEDIA_SLUG)
98
  return false;
99
+ $bp_media_upload = new BPMediaUploadScreen( 'upload', BP_MEDIA_UPLOAD_SLUG );
100
+ $bp_media_image = new BPMediaScreen( 'image', BP_MEDIA_IMAGES_SLUG );
101
+ $current_tab = BP_MEDIA_IMAGES_SLUG;
102
+
103
  if (isset($bp->action_variables[0])) {
104
  $current_tab = $bp->action_variables[0];
105
  }
106
 
107
+ // if (BPMediaGroup::can_upload()) {
108
+ $bp_media_nav[BP_MEDIA_IMAGES_SLUG] = array(
109
  'url' => trailingslashit(bp_get_group_permalink($bp->groups->current_group)) . BP_MEDIA_SLUG,
110
+ 'label' => BP_MEDIA_IMAGES_LABEL,
111
+ 'screen_function' => array( $bp_media_image, 'screen' )
 
 
 
 
 
 
 
 
112
  );
113
+ // } else {
114
+ // $bp_media_nav = array();
115
+ // }
116
+
117
+ foreach (array('VIDEOS', 'AUDIO', 'ALBUMS', 'UPLOAD') as $type) {
118
+ if ( $type == 'UPLOAD' ) {
119
+ if ( BPMediaGroup::can_upload() ) {
120
+ $bp_media_nav[constant('BP_MEDIA_' . $type . '_SLUG')] = array(
121
+ 'url' => trailingslashit(bp_get_group_permalink($bp->groups->current_group)) . constant('BP_MEDIA_' . $type . '_SLUG'),
122
+ 'label' => constant('BP_MEDIA_' . $type . '_LABEL'),
123
+ // 'screen_function' => array( $bp_media_upload, 'upload_screen' ),
124
+ 'user_has_access' => BPMediaGroup::can_upload()
125
+ );
126
+ }
127
+ } else {
128
+ $bp_media_nav[constant('BP_MEDIA_' . $type . '_SLUG')] = array(
129
+ 'url' => trailingslashit(bp_get_group_permalink($bp->groups->current_group)) . constant('BP_MEDIA_' . $type . '_SLUG'),
130
+ 'label' => constant('BP_MEDIA_' . $type . '_LABEL'),
131
+ );
132
+ }
133
  }
134
 
135
  /** This variable will be used to display the tabs in group component */
app/main/group/BPMediaGroupAction.php CHANGED
@@ -17,8 +17,12 @@ class BPMediaGroupAction {
17
  static function bp_media_groups_set_query() {
18
  global $bp, $bp_media_query, $bp_media_posts_per_page;
19
  if (isset($bp->current_action) && $bp->current_action == BP_MEDIA_SLUG) {
20
- if (bp_action_variable(0)) {
21
- switch (bp_action_variable(0)) {
 
 
 
 
22
  case BP_MEDIA_IMAGES_SLUG:
23
  $type = 'image';
24
  break;
@@ -125,4 +129,4 @@ class BPMediaGroupAction {
125
  return true;
126
  }
127
 
128
- }
17
  static function bp_media_groups_set_query() {
18
  global $bp, $bp_media_query, $bp_media_posts_per_page;
19
  if (isset($bp->current_action) && $bp->current_action == BP_MEDIA_SLUG) {
20
+ $current_tab = BP_MEDIA_IMAGES_SLUG;
21
+ if (isset($bp->action_variables[0])) {
22
+ $current_tab = $bp->action_variables[0];
23
+ }
24
+ if ($current_tab) {
25
+ switch ($current_tab) {
26
  case BP_MEDIA_IMAGES_SLUG:
27
  $type = 'image';
28
  break;
129
  return true;
130
  }
131
 
132
+ }
app/main/group/BPMediaGroupElementExtension.php CHANGED
@@ -19,87 +19,87 @@ if (class_exists('BP_Group_Extension')) :
19
  function display() {
20
  global $bp;
21
  BPMediaGroupAction::bp_media_groups_set_query();
22
- if (bp_action_variable(0)) {
23
- BPMediaGroup::navigation_menu();
24
- $media_type = "";
25
- $slug = "";
26
- switch (bp_action_variable(0)) {
27
- case BP_MEDIA_IMAGES_SLUG:
28
- $media_type = "image";
29
- $slug = BP_MEDIA_IMAGES_SLUG;
30
- //BPMediaGroup::bp_media_groups_images_screen();
31
- break;
32
- case BP_MEDIA_VIDEOS_SLUG:
33
- $media_type = "video";
34
- $slug = BP_MEDIA_VIDEOS_SLUG;
35
- break;
36
- case BP_MEDIA_AUDIO_SLUG:
37
- $media_type = "audio";
38
- $slug = BP_MEDIA_AUDIO_SLUG;
39
- break;
40
- case BP_MEDIA_ALBUMS_SLUG:
41
- $media_type = "album";
42
- $slug = BP_MEDIA_ALBUMS_SLUG;
43
- break;
44
- default:
45
- /** @todo Error is to be displayed for 404 */
46
- }
47
- if ($slug != "" && $media_type != "") {
48
- if (isset($bp->action_variables[1])) {
49
- switch ($bp->action_variables[1]) {
50
- case 'edit':
51
- //Edit screen for image
52
- break;
53
- case 'delete':
54
- //Delete function for media file
55
- break;
56
- default:
57
- if (intval(bp_action_variable(1)) > 0) {
58
- global $bp_media_current_entry;
59
- try {
60
- $bp_media_current_entry = new BPMediaHostWordpress(bp_action_variable(1));
61
- if ($bp_media_current_entry->get_group_id() != bp_get_current_group_id())
62
- throw new Exception(__('Sorry, the requested media does not belong to the group', BP_MEDIA_TXT_DOMAIN));
63
- } catch (Exception $e) {
64
- /** Error Handling when media not present or not belong to the group */
65
- bp_media_display_error($e->getMessage());
66
- return;
67
- }
68
- if ($media_type == "album") {
69
- $bp_media_content = new BPMediaAlbumScreen($media_type, BP_MEDIA_ALBUMS_ENTRY_SLUG);
70
- $bp->action_variables[ 0 ]= BP_MEDIA_ALBUMS_ENTRY_SLUG;
71
- $bp_media_content->entry_screen();
72
- } else {
73
- $bp_media_content = new BPMediaScreen($media_type, $slug);
74
- }
75
- $bp_media_content->entry_screen_content();
76
-
77
- break;
78
  } else {
79
- /** @todo display 404 */
80
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
82
  } else {
83
- if ($media_type == "album") {
84
- BPMediaGroupAction::bp_media_groups_albums_set_query();
85
- $bp_media_content = new BPMediaAlbumScreen($media_type, $slug);
86
- } else {
87
- $bp_media_content = new BPMediaScreen($media_type, $slug);
88
- }
89
  $bp_media_content->screen_content();
90
  }
91
  }
92
- } else {
93
-
94
- if (BPMediaGroup::can_upload()) {
95
- BPMediaGroup::navigation_menu();
96
- $bp_media_upload = new BPMediaUploadScreen('upload', BP_MEDIA_UPLOAD_SLUG);
97
- $bp_media_upload->upload_screen_content();
98
- } else {
99
- $bp->action_variables[0] = BP_MEDIA_IMAGES_SLUG;
100
- BPMediaGroupAction::bp_media_groups_set_query();
101
- $this->display();
102
- }
103
  }
104
  }
105
 
19
  function display() {
20
  global $bp;
21
  BPMediaGroupAction::bp_media_groups_set_query();
22
+ $current_tab = BP_MEDIA_IMAGES_SLUG;
23
+ if (isset($bp->action_variables[0])) {
24
+ $current_tab = $bp->action_variables[0];
25
+ }
26
+ BPMediaGroup::navigation_menu();
27
+ $media_type = "";
28
+ $slug = "";
29
+ switch ( $current_tab ) {
30
+ case BP_MEDIA_IMAGES_SLUG:
31
+ $media_type = "image";
32
+ $slug = BP_MEDIA_IMAGES_SLUG;
33
+ break;
34
+ case BP_MEDIA_VIDEOS_SLUG:
35
+ $media_type = "video";
36
+ $slug = BP_MEDIA_VIDEOS_SLUG;
37
+ break;
38
+ case BP_MEDIA_AUDIO_SLUG:
39
+ $media_type = "audio";
40
+ $slug = BP_MEDIA_AUDIO_SLUG;
41
+ break;
42
+ case BP_MEDIA_ALBUMS_SLUG:
43
+ $media_type = "album";
44
+ $slug = BP_MEDIA_ALBUMS_SLUG;
45
+ break;
46
+ case BP_MEDIA_UPLOAD_SLUG:
47
+ $media_type = "upload";
48
+ $slug = BP_MEDIA_ALBUMS_SLUG;
49
+ break;
50
+ default:
51
+ /** @todo Error is to be displayed for 404 */
52
+ }
53
+ if ($slug != "" && $media_type != "") {
54
+ if (isset($bp->action_variables[1])) {
55
+ switch ($bp->action_variables[1]) {
56
+ case 'edit':
57
+ //Edit screen for image
58
+ break;
59
+ case 'delete':
60
+ //Delete function for media file
61
+ break;
62
+ default:
63
+ if (intval(bp_action_variable(1)) > 0) {
64
+ global $bp_media_current_entry;
65
+ try {
66
+ $bp_media_current_entry = new BPMediaHostWordpress(bp_action_variable(1));
67
+ if ($bp_media_current_entry->get_group_id() != bp_get_current_group_id())
68
+ throw new Exception(__('Sorry, the requested media does not belong to the group', BP_MEDIA_TXT_DOMAIN));
69
+ } catch (Exception $e) {
70
+ /** Error Handling when media not present or not belong to the group */
71
+ bp_media_display_error($e->getMessage());
72
+ return;
73
+ }
74
+ if ($media_type == "album") {
75
+ $bp_media_content = new BPMediaAlbumScreen($media_type, BP_MEDIA_ALBUMS_ENTRY_SLUG);
76
+ $bp->action_variables[ 0 ]= BP_MEDIA_ALBUMS_ENTRY_SLUG;
77
+ $bp_media_content->entry_screen();
78
  } else {
79
+ $bp_media_content = new BPMediaScreen($media_type, $slug);
80
  }
81
+ $bp_media_content->entry_screen_content();
82
+
83
+ break;
84
+ } else {
85
+ /** @todo display 404 */
86
+ }
87
+ }
88
+ } else {
89
+ if ($media_type == "album") {
90
+ BPMediaGroupAction::bp_media_groups_albums_set_query();
91
+ $bp_media_content = new BPMediaAlbumScreen($media_type, $slug);
92
+ $bp_media_content->screen_content();
93
+ } else if ( $media_type == 'upload' ) {
94
+ if (BPMediaGroup::can_upload()) {
95
+ $bp_media_upload = new BPMediaUploadScreen('upload', BP_MEDIA_UPLOAD_SLUG);
96
+ $bp_media_upload->upload_screen_content();
97
  }
98
  } else {
99
+ $bp_media_content = new BPMediaScreen($media_type, $slug);
 
 
 
 
 
100
  $bp_media_content->screen_content();
101
  }
102
  }
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
  }
105
 
app/main/group/BPMediaGroupsExtension.php CHANGED
@@ -17,7 +17,7 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
17
  */
18
  function __construct() {
19
  global $bp;
20
- $this->name = BP_MEDIA_LABEL;
21
  $this->slug = BP_MEDIA_SLUG;
22
  $this->create_step_position = 21;
23
  $this->nav_item_position = 31;
@@ -128,9 +128,9 @@ if (class_exists('BP_Group_Extension')) :// Recommended, to prevent problems dur
128
  <?php
129
  }
130
 
131
-
132
 
133
  }
134
 
135
-
136
  endif; // class_exists( 'BP_Group_Extension' )
17
  */
18
  function __construct() {
19
  global $bp;
20
+ $this->name = __(BP_MEDIA_LABEL,BP_MEDIA_TXT_DOMAIN);
21
  $this->slug = BP_MEDIA_SLUG;
22
  $this->create_step_position = 21;
23
  $this->nav_item_position = 31;
128
  <?php
129
  }
130
 
131
+
132
 
133
  }
134
 
135
+
136
  endif; // class_exists( 'BP_Group_Extension' )
app/main/group/dummy/BPMediaGroupUpload.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Registers BPMediaGroupUpload class in groups in buddypress
4
+ *
5
+ * @package BuddyPressMedia
6
+ * @subpackage Group
7
+ *
8
+ * @author Hrishikesh Vaipurkar <hrishikesh.vaipurkar@rtcamp.com>
9
+ */
10
+ if ( class_exists( 'BP_Group_Extension' ) ) :
11
+ class BPMediaGroupUpload extends BPMediaGroupElementExtension {
12
+
13
+ function __construct() {
14
+ parent::__construct(BP_MEDIA_UPLOAD_LABEL, BP_MEDIA_UPLOAD_SLUG);
15
+ bp_register_group_extension("BPMediaGroupUpload");
16
+ }
17
+
18
+ }
19
+ endif;
20
+ ?>
app/main/includes/BPMediaActions.php CHANGED
@@ -127,6 +127,7 @@ class BPMediaActions {
127
  wp_enqueue_script('jquery-ui-tabs');
128
  wp_enqueue_script('bp-media-mejs', BP_MEDIA_URL . 'lib/media-element/mediaelement-and-player.min.js');
129
  wp_enqueue_script('bp-media-default', BP_MEDIA_URL . 'app/assets/js/main.js');
 
130
  global $bp;
131
  $cur_group_id = NULL;
132
  if (bp_is_active("groups"))
@@ -138,7 +139,9 @@ class BPMediaActions {
138
  'action_variables' => isset($bp->action_variables) ? (empty($bp->action_variables) ? array(BP_MEDIA_IMAGES_SLUG) : $bp->action_variables) : array(BP_MEDIA_IMAGES_SLUG),
139
  'displayed_user' => bp_displayed_user_id(),
140
  'loggedin_user' => bp_loggedin_user_id(),
141
- 'current_group' => $cur_group_id
 
 
142
  );
143
 
144
  wp_localize_script('bp-media-default', 'bp_media_vars', $bp_media_vars);
@@ -582,4 +585,4 @@ class BPMediaActions {
582
  }
583
 
584
  }
585
- ?>
127
  wp_enqueue_script('jquery-ui-tabs');
128
  wp_enqueue_script('bp-media-mejs', BP_MEDIA_URL . 'lib/media-element/mediaelement-and-player.min.js');
129
  wp_enqueue_script('bp-media-default', BP_MEDIA_URL . 'app/assets/js/main.js');
130
+
131
  global $bp;
132
  $cur_group_id = NULL;
133
  if (bp_is_active("groups"))
139
  'action_variables' => isset($bp->action_variables) ? (empty($bp->action_variables) ? array(BP_MEDIA_IMAGES_SLUG) : $bp->action_variables) : array(BP_MEDIA_IMAGES_SLUG),
140
  'displayed_user' => bp_displayed_user_id(),
141
  'loggedin_user' => bp_loggedin_user_id(),
142
+ 'current_group' => $cur_group_id,
143
+ 'feature' => __('Featured', BP_MEDIA_TXT_DOMAIN),
144
+ 'removefeature' => __('Remove Featured', BP_MEDIA_TXT_DOMAIN)
145
  );
146
 
147
  wp_localize_script('bp-media-default', 'bp_media_vars', $bp_media_vars);
585
  }
586
 
587
  }
588
+ ?>
app/main/includes/BPMediaComponent.php CHANGED
@@ -106,40 +106,35 @@ class BPMediaComponent extends BP_Component {
106
  break;
107
  }
108
 
109
- if ( bp_is_my_profile() ) {
110
- $main_nav = array(
111
- 'name' => BP_MEDIA_LABEL,
112
- 'slug' => BP_MEDIA_SLUG,
113
- 'position' => 80,
114
- 'screen_function' => array( $bp_media_upload, 'upload_screen' ),
115
- 'default_subnav_slug' => BP_MEDIA_UPLOAD_SLUG
116
- );
117
- } else {
 
 
 
118
  $main_nav = array(
119
- 'name' => BP_MEDIA_LABEL,
120
  'slug' => BP_MEDIA_SLUG,
121
  'position' => 80,
122
  'screen_function' => array( $bp_media_image, 'screen' ),
123
  'default_subnav_slug' => BP_MEDIA_IMAGES_SLUG
124
  );
125
- }
126
- $sub_nav[ ] = array(
127
- 'name' => BP_MEDIA_UPLOAD_LABEL,
128
- 'slug' => BP_MEDIA_UPLOAD_SLUG,
129
- 'parent_url' => trailingslashit( bp_loggedin_user_domain() . BP_MEDIA_SLUG ),
130
- 'parent_slug' => BP_MEDIA_SLUG,
131
- 'screen_function' => array( $bp_media_upload, 'upload_screen' ),
132
- 'position' => 10,
133
- 'user_has_access' => bp_is_my_profile()
134
- );
135
- parent::setup_nav( $main_nav, $sub_nav );
136
-
137
- bp_core_new_nav_item( array(
138
- 'name' => BP_MEDIA_IMAGES_LABEL,
139
  'slug' => BP_MEDIA_IMAGES_SLUG,
140
  'screen_function' => array( $bp_media_image, 'screen' ),
141
  ) );
142
 
 
143
  bp_core_new_subnav_item( array(
144
  'name' => 'View', /* Display name for the nav item(It won't be shown anywhere) */
145
  'slug' => BP_MEDIA_IMAGES_ENTRY_SLUG, /* URL slug for the nav item */
@@ -178,7 +173,7 @@ class BPMediaComponent extends BP_Component {
178
 
179
 
180
  bp_core_new_nav_item( array(
181
- 'name' => BP_MEDIA_VIDEOS_LABEL,
182
  'slug' => BP_MEDIA_VIDEOS_SLUG,
183
  'screen_function' => array( $bp_media_video, 'screen' )
184
  ) );
@@ -221,7 +216,7 @@ class BPMediaComponent extends BP_Component {
221
 
222
 
223
  bp_core_new_nav_item( array(
224
- 'name' => BP_MEDIA_AUDIO_LABEL,
225
  'slug' => BP_MEDIA_AUDIO_SLUG,
226
  'screen_function' => array( $bp_media_audio, 'screen' )
227
  ) );
@@ -264,7 +259,7 @@ class BPMediaComponent extends BP_Component {
264
 
265
 
266
  bp_core_new_nav_item( array(
267
- 'name' => BP_MEDIA_ALBUMS_LABEL,
268
  'slug' => BP_MEDIA_ALBUMS_SLUG,
269
  'screen_function' => array( $bp_media_album, 'screen' ),
270
  ) );
@@ -304,6 +299,12 @@ class BPMediaComponent extends BP_Component {
304
  'position' => 90, /* Index of where this nav item should be positioned */
305
  'screen_function' => array( $bp_media_album, 'screen' ), /* The name of the function to run when clicked */
306
  ) );
 
 
 
 
 
 
307
  }
308
 
309
  /**
106
  break;
107
  }
108
 
109
+
110
+
111
+ // -------------- Removed Upload as default tab ------------- //
112
+ // if ( bp_is_my_profile() ) {
113
+ // $main_nav = array(
114
+ // 'name' => BP_MEDIA_LABEL,
115
+ // 'slug' => BP_MEDIA_SLUG,
116
+ // 'position' => 80,
117
+ // 'screen_function' => array( $bp_media_upload, 'upload_screen' ),
118
+ // 'default_subnav_slug' => BP_MEDIA_UPLOAD_SLUG
119
+ // );
120
+ // } else {
121
  $main_nav = array(
122
+ 'name' => __(BP_MEDIA_LABEL,BP_MEDIA_TXT_DOMAIN),
123
  'slug' => BP_MEDIA_SLUG,
124
  'position' => 80,
125
  'screen_function' => array( $bp_media_image, 'screen' ),
126
  'default_subnav_slug' => BP_MEDIA_IMAGES_SLUG
127
  );
128
+ // }
129
+ $sub_nav[ ] = array();
130
+ parent::setup_nav( $main_nav, $sub_nav );
131
+ bp_core_new_nav_item( array(
132
+ 'name' => __(BP_MEDIA_IMAGES_LABEL,BP_MEDIA_TXT_DOMAIN),
 
 
 
 
 
 
 
 
 
133
  'slug' => BP_MEDIA_IMAGES_SLUG,
134
  'screen_function' => array( $bp_media_image, 'screen' ),
135
  ) );
136
 
137
+
138
  bp_core_new_subnav_item( array(
139
  'name' => 'View', /* Display name for the nav item(It won't be shown anywhere) */
140
  'slug' => BP_MEDIA_IMAGES_ENTRY_SLUG, /* URL slug for the nav item */
173
 
174
 
175
  bp_core_new_nav_item( array(
176
+ 'name' => __(BP_MEDIA_VIDEOS_LABEL,BP_MEDIA_TXT_DOMAIN),
177
  'slug' => BP_MEDIA_VIDEOS_SLUG,
178
  'screen_function' => array( $bp_media_video, 'screen' )
179
  ) );
216
 
217
 
218
  bp_core_new_nav_item( array(
219
+ 'name' => __(BP_MEDIA_AUDIO_LABEL,BP_MEDIA_TXT_DOMAIN),
220
  'slug' => BP_MEDIA_AUDIO_SLUG,
221
  'screen_function' => array( $bp_media_audio, 'screen' )
222
  ) );
259
 
260
 
261
  bp_core_new_nav_item( array(
262
+ 'name' => __(BP_MEDIA_ALBUMS_LABEL,BP_MEDIA_TXT_DOMAIN),
263
  'slug' => BP_MEDIA_ALBUMS_SLUG,
264
  'screen_function' => array( $bp_media_album, 'screen' ),
265
  ) );
299
  'position' => 90, /* Index of where this nav item should be positioned */
300
  'screen_function' => array( $bp_media_album, 'screen' ), /* The name of the function to run when clicked */
301
  ) );
302
+ bp_core_new_nav_item( array(
303
+ 'name' => __(BP_MEDIA_UPLOAD_LABEL,BP_MEDIA_TXT_DOMAIN),
304
+ 'slug' => BP_MEDIA_UPLOAD_SLUG,
305
+ 'screen_function' => array( $bp_media_upload, 'upload_screen' ),
306
+ 'user_has_access' => bp_is_my_profile()
307
+ ) );
308
  }
309
 
310
  /**
app/main/includes/BPMediaFilters.php CHANGED
@@ -10,11 +10,11 @@ class BPMediaFilters {
10
  function __construct() {
11
  add_filter('bp_activity_get_permalink', array($this, 'activity_permalink_filter'), 10, 2);
12
  add_filter('bp_get_activity_delete_link', array($this, 'delete_button_handler'));
13
- add_filter('bp_activity_get_user_join_filter', array($this, 'activity_query_filter'), 10);
14
  // and we hook our function via wp_before_admin_bar_render
15
  add_action('admin_bar_menu', array($this, 'my_account_menu'), 1);
16
  // and we hook our function via wp_before_admin_bar_render
17
- add_action('wp_before_admin_bar_render', array($this, 'adminbar_settings_menu'));
18
  global $bp_media_activity_types;
19
  $bp_media_activity_types = array('media_upload', 'album_updated', 'album_created');
20
  }
@@ -32,7 +32,7 @@ class BPMediaFilters {
32
  }
33
  if ($activity_obj != null && 'activity_comment' == $activity_obj->type) {
34
  global $activities_template;
35
- remove_filter('bp_activity_get_user_join_filter', 'activity_query_filter', 10);
36
  $parent = $activity_obj->item_id;
37
  if ($parent) {
38
  try {
@@ -87,8 +87,30 @@ class BPMediaFilters {
87
  //add_filter('bp_get_activity_parent_content', 'activity_parent_content_filter', 1);
88
 
89
  function delete_button_handler($link) {
 
 
 
90
  if (bp_current_component() == 'media')
91
  $link = str_replace('delete-activity ', 'delete-activity-single ', $link);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  return $link;
93
  }
94
 
@@ -124,7 +146,7 @@ class BPMediaFilters {
124
  /**
125
  * To hide some activities of multiple uploads
126
  */
127
- function activity_query_filter($query) {
128
  global $wpdb;
129
  $query = preg_replace('/WHERE/i', 'WHERE a.secondary_item_id!=-999 AND ', $query);
130
  return $query;
@@ -239,9 +261,9 @@ class BPMediaFilters {
239
  'title' => __('Support', BP_MEDIA_TXT_DOMAIN),
240
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php'))
241
  );
242
-
243
  $bp_media_admin_nav = apply_filters('bp_media_add_admin_bar_item', $bp_media_admin_nav);
244
-
245
  foreach ($bp_media_admin_nav as $admin_menu)
246
  $wp_admin_bar->add_menu($admin_menu);
247
  }
@@ -255,9 +277,9 @@ class BPMediaFilters {
255
 
256
  function dashboard_widgets() {
257
  global $wp_meta_boxes;
258
- // Buddypress Media
259
  // if ( is_user_admin() )
260
- wp_add_dashboard_widget('dashboard_media_widget', __('BuddyPress Media'), array($this,'dashboard_media'));
261
 
262
  global $wp_meta_boxes;
263
 
10
  function __construct() {
11
  add_filter('bp_activity_get_permalink', array($this, 'activity_permalink_filter'), 10, 2);
12
  add_filter('bp_get_activity_delete_link', array($this, 'delete_button_handler'));
13
+ add_filter('bp_activity_get_user_join_filter', 'BPMediaFilters::activity_query_filter', 10);
14
  // and we hook our function via wp_before_admin_bar_render
15
  add_action('admin_bar_menu', array($this, 'my_account_menu'), 1);
16
  // and we hook our function via wp_before_admin_bar_render
17
+ add_action('wp_before_admin_bar_render', 'BPMediaFilters::adminbar_settings_menu');
18
  global $bp_media_activity_types;
19
  $bp_media_activity_types = array('media_upload', 'album_updated', 'album_created');
20
  }
32
  }
33
  if ($activity_obj != null && 'activity_comment' == $activity_obj->type) {
34
  global $activities_template;
35
+ remove_filter('bp_activity_get_user_join_filter', array($this, 'activity_query_filter'), 10);
36
  $parent = $activity_obj->item_id;
37
  if ($parent) {
38
  try {
87
  //add_filter('bp_get_activity_parent_content', 'activity_parent_content_filter', 1);
88
 
89
  function delete_button_handler($link) {
90
+ global $activities_template;
91
+ $media_label = NULL;
92
+
93
  if (bp_current_component() == 'media')
94
  $link = str_replace('delete-activity ', 'delete-activity-single ', $link);
95
+
96
+ if ('album_updated' == $activities_template->activity->type) {
97
+ $media_label = BP_MEDIA_ALBUMS_LABEL_SINGULAR;
98
+ } elseif ($activities_template->activity->item_id) {
99
+ $mime_type = get_post_field('post_mime_type', $activities_template->activity->item_id);
100
+ $media_type = explode('/', $mime_type);
101
+ switch ($media_type[0]) {
102
+ case 'image': $media_label = BP_MEDIA_IMAGES_LABEL_SINGULAR;
103
+ break;
104
+ case 'audio': $media_label = BP_MEDIA_AUDIO_LABEL_SINGULAR;
105
+ break;
106
+ case 'video': $media_label = BP_MEDIA_VIDEOS_LABEL_SINGULAR;
107
+ break;
108
+ }
109
+ }
110
+
111
+ if ($media_label)
112
+ $link = str_replace('Delete', sprintf(__('Delete %s', BP_MEDIA_TXT_DOMAIN), $media_label), $link);
113
+
114
  return $link;
115
  }
116
 
146
  /**
147
  * To hide some activities of multiple uploads
148
  */
149
+ static function activity_query_filter($query) {
150
  global $wpdb;
151
  $query = preg_replace('/WHERE/i', 'WHERE a.secondary_item_id!=-999 AND ', $query);
152
  return $query;
261
  'title' => __('Support', BP_MEDIA_TXT_DOMAIN),
262
  'href' => bp_get_admin_url(add_query_arg(array('page' => 'bp-media-support'), 'admin.php'))
263
  );
264
+
265
  $bp_media_admin_nav = apply_filters('bp_media_add_admin_bar_item', $bp_media_admin_nav);
266
+
267
  foreach ($bp_media_admin_nav as $admin_menu)
268
  $wp_admin_bar->add_menu($admin_menu);
269
  }
277
 
278
  function dashboard_widgets() {
279
  global $wp_meta_boxes;
280
+ // BuddyPress Media
281
  // if ( is_user_admin() )
282
+ wp_add_dashboard_widget('dashboard_media_widget', __('BuddyPress Media'), array($this, 'dashboard_media'));
283
 
284
  global $wp_meta_boxes;
285
 
app/main/includes/BPMediaHostWordpress.php CHANGED
@@ -59,8 +59,12 @@ class BPMediaHostWordpress {
59
  * But for use in the class, we use group_id as positive integer even though
60
  * we use it as negative value in the bp-media-key meta key
61
  */
 
62
  $this->group_id = $meta_key < 0 ? -$meta_key : 0;
63
- preg_match_all('/audio|video|image/i', $media->post_mime_type, $result);
 
 
 
64
  if (isset($result[0][0]))
65
  $this->type = $result[0][0];
66
  else
@@ -228,7 +232,7 @@ class BPMediaHostWordpress {
228
  return false;
229
  }
230
  $activity_content .= '</div>';
231
- $activity_content .= '<div class="bp_media_description">' . __(wp_html_excerpt($this->description, $bp_media_default_excerpts['activity_entry_description']), BP_MEDIA_TXT_DOMAIN) . '</div>';
232
  return $activity_content;
233
  }
234
 
@@ -286,7 +290,7 @@ class BPMediaHostWordpress {
286
  return false;
287
  }
288
  $content .= '</div>';
289
- $content .= '<div class="bp_media_description">' . __(wp_html_excerpt($this->description, $bp_media_default_excerpts['single_entry_description']), BP_MEDIA_TXT_DOMAIN) . '</div>';
290
  return $content;
291
  }
292
 
@@ -295,7 +299,7 @@ class BPMediaHostWordpress {
295
  */
296
  function get_media_single_title() {
297
  global $bp_media_default_excerpts, $bp_media;
298
- $content = '<div class="bp_media_title">' . __(wp_html_excerpt($this->name, $bp_media_default_excerpts['single_entry_title']), BP_MEDIA_TXT_DOMAIN) . '</div>';
299
  return $content;
300
  }
301
 
@@ -697,6 +701,12 @@ class BPMediaHostWordpress {
697
  $image_array = image_downsize($this->id, 'bp_media_single_image');
698
  $this->thumbnail_id = $this->id;
699
  break;
 
 
 
 
 
 
700
  default :
701
  return false;
702
  }
@@ -708,6 +718,7 @@ class BPMediaHostWordpress {
708
  */
709
  function check_and_create_album($album_id, $group) {
710
  global $wpdb;
 
711
  $create_new_album_flag = false;
712
  if ($album_id != 0) {
713
  $album = get_post($album_id);
@@ -725,7 +736,7 @@ class BPMediaHostWordpress {
725
  "SELECT ID
726
  FROM $wpdb->posts
727
  WHERE
728
- post_title = 'Wall Posts'
729
  AND post_author = '" . get_current_user_id() . "'
730
  AND post_type='bp_media_album'"
731
  );
@@ -736,12 +747,12 @@ class BPMediaHostWordpress {
736
  INNER JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id
737
  AND $wpdb->postmeta.meta_key = 'bp-media-key'
738
  AND $wpdb->postmeta.meta_value = -$group
739
- AND $wpdb->posts.post_title = 'Wall Posts'");
740
  }
741
  if ($post_id == null) {
742
  $album = new BPMediaAlbum();
743
  if ($group == 0)
744
- $album->add_album('Wall Posts', get_current_user_id(), $group);
745
  else {
746
  $current_user = wp_get_current_user();
747
  $album->add_album($current_user->display_name . '\'s Album', get_current_user_id(), $group);
@@ -753,4 +764,4 @@ class BPMediaHostWordpress {
753
  }
754
 
755
  }
756
- ?>
59
  * But for use in the class, we use group_id as positive integer even though
60
  * we use it as negative value in the bp-media-key meta key
61
  */
62
+
63
  $this->group_id = $meta_key < 0 ? -$meta_key : 0;
64
+ if ( !'bp_media_album' == $media->post_type || !empty($media->post_mime_type) )
65
+ preg_match_all('/audio|video|image/i', $media->post_mime_type, $result);
66
+ else
67
+ $result[0][0] = 'album';
68
  if (isset($result[0][0]))
69
  $this->type = $result[0][0];
70
  else
232
  return false;
233
  }
234
  $activity_content .= '</div>';
235
+ $activity_content .= '<div class="bp_media_description">' . wp_html_excerpt($this->description, $bp_media_default_excerpts['activity_entry_description']). '</div>';
236
  return $activity_content;
237
  }
238
 
290
  return false;
291
  }
292
  $content .= '</div>';
293
+ $content .= '<div class="bp_media_description">' .wp_html_excerpt($this->description, $bp_media_default_excerpts['single_entry_description']) . '</div>';
294
  return $content;
295
  }
296
 
299
  */
300
  function get_media_single_title() {
301
  global $bp_media_default_excerpts, $bp_media;
302
+ $content = '<div class="bp_media_title">' . wp_html_excerpt($this->name, $bp_media_default_excerpts['single_entry_title']) . '</div>';
303
  return $content;
304
  }
305
 
701
  $image_array = image_downsize($this->id, 'bp_media_single_image');
702
  $this->thumbnail_id = $this->id;
703
  break;
704
+ case 'album' :
705
+ $this->url = trailingslashit($pre_url . BP_MEDIA_ALBUMS_SLUG . '/' . $this->id);
706
+ $this->edit_url = trailingslashit($pre_url . BP_MEDIA_ALBUMS_SLUG . '/' . BP_MEDIA_ALBUMS_EDIT_SLUG . '/' . $this->id);
707
+ $this->delete_url = trailingslashit($pre_url . BP_MEDIA_ALBUMS_SLUG . '/' . BP_MEDIA_DELETE_SLUG . '/' . $this->id);
708
+ // $this->thumbnail_id = get_post_meta($this->id, 'bp_media_thumbnail', true);
709
+ break;
710
  default :
711
  return false;
712
  }
718
  */
719
  function check_and_create_album($album_id, $group) {
720
  global $wpdb;
721
+ $post_wall=__( 'Wall Posts', BP_MEDIA_TXT_DOMAIN );
722
  $create_new_album_flag = false;
723
  if ($album_id != 0) {
724
  $album = get_post($album_id);
736
  "SELECT ID
737
  FROM $wpdb->posts
738
  WHERE
739
+ post_title = $post_wall
740
  AND post_author = '" . get_current_user_id() . "'
741
  AND post_type='bp_media_album'"
742
  );
747
  INNER JOIN $wpdb->postmeta ON $wpdb->posts.ID = $wpdb->postmeta.post_id
748
  AND $wpdb->postmeta.meta_key = 'bp-media-key'
749
  AND $wpdb->postmeta.meta_value = -$group
750
+ AND $wpdb->posts.post_title = $post_wall");
751
  }
752
  if ($post_id == null) {
753
  $album = new BPMediaAlbum();
754
  if ($group == 0)
755
+ $album->add_album($post_wall, get_current_user_id(), $group);
756
  else {
757
  $current_user = wp_get_current_user();
758
  $album->add_album($current_user->display_name . '\'s Album', get_current_user_id(), $group);
764
  }
765
 
766
  }
767
+ ?>
app/main/includes/BPMediaTemplateFunctions.php CHANGED
@@ -34,56 +34,7 @@ class BPMediaTemplateFunctions {
34
  <?php
35
  }
36
 
37
- function show_upload_form_multiple() {
38
- global $bp, $bp_media;
39
- ?>
40
- <div id="bp-media-album-prompt" title="Select Album"><select id="bp-media-selected-album"><?php
41
- if (bp_is_current_component('groups')) {
42
- $albums = new WP_Query(array(
43
- 'post_type' => 'bp_media_album',
44
- 'posts_per_page' => -1,
45
- 'meta_key' => 'bp-media-key',
46
- 'meta_value' => -bp_get_current_group_id(),
47
- 'meta_compare' => '='
48
- ));
49
- } else {
50
- $albums = new WP_Query(array(
51
- 'post_type' => 'bp_media_album',
52
- 'posts_per_page' => -1,
53
- 'author' => get_current_user_id()
54
- ));
55
- }
56
- if (isset($albums->posts) && is_array($albums->posts) && count($albums->posts) > 0) {
57
- foreach ($albums->posts as $album) {
58
- if ($album->post_title == 'Wall Posts')
59
- echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
60
- else
61
- echo '<option value="' . $album->ID . '">' . $album->post_title . '</option>';
62
- };
63
- }else {
64
- $album = new BPMediaAlbum();
65
- if (bp_is_current_component('groups')) {
66
- $current_group = new BP_Groups_Group(bp_get_current_group_id());
67
- $album->add_album('Wall Posts', $current_group->creator_id, bp_get_current_group_id());
68
- } else {
69
- $album->add_album('Wall Posts', bp_loggedin_user_id());
70
- }
71
- echo '<option value="' . $album->get_id() . '" selected="selected">' . $album->get_title() . '</option>';
72
- }
73
- ?></select></div>
74
- <div id="bp-media-album-new" title="Create New Album"><label for="bp_media_album_name">Album Name</label><input id="bp_media_album_name" type="text" name="bp_media_album_name" /></div>
75
- <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop">
76
- <div id="drag-drop-area">
77
- <div class="drag-drop-inside">
78
- <p class="drag-drop-info">Drop files here</p>
79
- <p>or</p>
80
- <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="Select Files" class="button" /></p>
81
- </div>
82
- </div>
83
- </div>
84
- <div id="bp-media-uploaded-files"></div>
85
- <?php
86
- }
87
 
88
  function show_pagination($type = 'top', $inner = false) {
89
  global $bp, $bp_media_paginated_links, $bp_media_query, $bp_media_albums_query;
@@ -247,37 +198,12 @@ class BPMediaTemplateFunctions {
247
  break;
248
  }
249
  if ($showmore) {
250
- echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">Show More</a></div>';
251
  }
252
  }
253
 
254
- static function show_upload_form_multiple_activity() {
255
- global $bp, $bp_media_default_excerpts;
256
- if ($bp->current_component != 'activity')
257
- return;
258
- ?>
259
- <div id="bp-media-album-prompt" title="Select Album"><select id="bp-media-selected-album"><?php
260
- $albums = new WP_Query(array(
261
- 'post_type' => 'bp_media_album',
262
- 'posts_per_page' => -1,
263
- 'author' => get_current_user_id()
264
- ));
265
- if (isset($albums->posts) && is_array($albums->posts) && count($albums->posts) > 0) {
266
- foreach ($albums->posts as $album) {
267
- if ($album->post_title == 'Wall Posts')
268
- echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
269
- else
270
- echo '<option value="' . $album->ID . '">' . $album->post_title . '</option>';
271
- };
272
- }
273
- ?></select></div>
274
- <div id="bp-media-album-new" title="Create New Album"><label for="bp_media_album_name">Album Name</label><input id="bp_media_album_name" type="text" name="bp_media_album_name" /></div>
275
- <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop activity-component">
276
- <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="Add Media" class="button" /></p>
277
- </div>
278
- <div id="bp-media-uploaded-files"></div>
279
- <?php
280
- }
281
 
282
  }
283
  ?>
34
  <?php
35
  }
36
 
37
+ //------------- Function removed show_upload_form_multiple() ------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  function show_pagination($type = 'top', $inner = false) {
40
  global $bp, $bp_media_paginated_links, $bp_media_query, $bp_media_albums_query;
198
  break;
199
  }
200
  if ($showmore) {
201
+ echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">'. __('Show More', BP_MEDIA_TXT_DOMAIN).'</a></div>';
202
  }
203
  }
204
 
205
+ //----------- Function removed show_upload_form_multiple_activity() -------------
206
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
 
208
  }
209
  ?>
app/main/includes/BPMediaUpgradeScript.php CHANGED
@@ -3,7 +3,8 @@ class BPMediaUpgradeScript{
3
 
4
  static function upgrade_from_1_0_to_2_1(){
5
  global $wpdb;
6
- remove_filter('bp_activity_get_user_join_filter','activity_query_filter',10);
 
7
  /* @var $wpdb wpdb */
8
  $wall_posts_album_ids=array();
9
  do{
@@ -22,10 +23,10 @@ class BPMediaUpgradeScript{
22
  $wall_posts_id = $wall_posts_album_ids[$media_file->post_author];
23
  }
24
  else{
25
- $wall_posts_id = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = 'Wall Posts' AND post_author = '". $media_file->post_author."' AND post_type='bp_media_album'");
26
  if($wall_posts_id==null){
27
  $album = new BPMediaAlbum();
28
- $album->add_album('Wall Posts',$media_file->post_author);
29
  $wall_posts_id = $album->get_id();
30
  }
31
  if(!$wall_posts_id){
3
 
4
  static function upgrade_from_1_0_to_2_1(){
5
  global $wpdb;
6
+ $post_wall =__( 'Wall Posts', BP_MEDIA_TXT_DOMAIN );
7
+ remove_filter('bp_activity_get_user_join_filter','BPMediaFilters::activity_query_filter',10);
8
  /* @var $wpdb wpdb */
9
  $wall_posts_album_ids=array();
10
  do{
23
  $wall_posts_id = $wall_posts_album_ids[$media_file->post_author];
24
  }
25
  else{
26
+ $wall_posts_id = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = $post_wall AND post_author = '". $media_file->post_author."' AND post_type='bp_media_album'");
27
  if($wall_posts_id==null){
28
  $album = new BPMediaAlbum();
29
+ $album->add_album($post_wall,$media_file->post_author);
30
  $wall_posts_id = $album->get_id();
31
  }
32
  if(!$wall_posts_id){
app/main/profile/BPMediaAlbum.php CHANGED
@@ -129,10 +129,10 @@ class BPMediaAlbum{
129
  $author_id = $author_id?$author_id:get_current_user_id();
130
  $post_vars = array(
131
  'post_title' => $title,
132
- 'post_name' => $title,
133
- 'post_status'=> 'publish',
134
  'post_type' => 'bp_media_album',
135
- 'post_author'=> $author_id
136
  );
137
  BPMediaActions::init_count($author_id);
138
  global $bp_media_count;
@@ -261,6 +261,20 @@ class BPMediaAlbum{
261
  return $this->owner;
262
  }
263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  /**
265
  * Returns the group id to which the media belongs, 0 if it does not belong to any group
266
  */
129
  $author_id = $author_id?$author_id:get_current_user_id();
130
  $post_vars = array(
131
  'post_title' => $title,
132
+ 'post_name' => $title,
133
+ 'post_status' => 'publish',
134
  'post_type' => 'bp_media_album',
135
+ 'post_author' => $author_id
136
  );
137
  BPMediaActions::init_count($author_id);
138
  global $bp_media_count;
261
  return $this->owner;
262
  }
263
 
264
+ /**
265
+ * Returns the edit url of the album
266
+ */
267
+ function get_edit_url(){
268
+ return $this->edit_url;
269
+ }
270
+
271
+ /**
272
+ * Returns the delete url of the album
273
+ */
274
+ function get_delete_url(){
275
+ return $this->delete_url;
276
+ }
277
+
278
  /**
279
  * Returns the group id to which the media belongs, 0 if it does not belong to any group
280
  */
app/main/profile/BPMediaAlbumScreen.php CHANGED
@@ -47,6 +47,7 @@ class BPMediaAlbumScreen extends BPMediaScreen {
47
  global $bp_media_albums_query;
48
 
49
  $this->hook_before();
 
50
  if ( $bp_media_albums_query && $bp_media_albums_query->have_posts() ):
51
  echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
52
  while ( $bp_media_albums_query->have_posts() ) : $bp_media_albums_query->the_post();
@@ -80,19 +81,35 @@ class BPMediaAlbumScreen extends BPMediaScreen {
80
  if ( ! $bp->action_variables[ 0 ] == BP_MEDIA_ALBUMS_ENTRY_SLUG )
81
  return false;
82
  echo '<div class="bp_media_title">' . $bp_media_current_album->get_title() . '</div>';
 
 
 
 
 
 
 
83
  $this->inner_query( $bp_media_current_album->get_id() );
84
  $this->hook_before();
85
  if ( $bp_media_current_album && $bp_media_query->have_posts() ):
86
  echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
87
- while ( $bp_media_query->have_posts() ) : $bp_media_query->the_post();
 
 
 
 
 
88
  $this->template->the_content();
89
- endwhile;
90
  echo '</ul>';
91
  $this->template->show_more();
92
  else:
93
  BPMediaFunction::show_formatted_error_message( __( 'Sorry, no media items were found in this album.', BP_MEDIA_TXT_DOMAIN ), 'info' );
 
 
 
 
94
  endif;
95
- $this->hook_after();
96
  }
97
 
98
  function set_query() {
47
  global $bp_media_albums_query;
48
 
49
  $this->hook_before();
50
+
51
  if ( $bp_media_albums_query && $bp_media_albums_query->have_posts() ):
52
  echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
53
  while ( $bp_media_albums_query->have_posts() ) : $bp_media_albums_query->the_post();
81
  if ( ! $bp->action_variables[ 0 ] == BP_MEDIA_ALBUMS_ENTRY_SLUG )
82
  return false;
83
  echo '<div class="bp_media_title">' . $bp_media_current_album->get_title() . '</div>';
84
+ if ( bp_displayed_user_id() == bp_loggedin_user_id() ) {
85
+ echo '<div class="activity-meta">';
86
+ echo '<a href="' . $bp_media_current_album->get_edit_url() . '" class="button item-button bp-secondary-action bp-media-edit bp-media-edit-album" title="' . __('Rename Album', BP_MEDIA_TXT_DOMAIN) . '">' . __('Rename', BP_MEDIA_TXT_DOMAIN) . '</a>';
87
+ echo '<a href="' . $bp_media_current_album->get_delete_url() . '" class="button item-button bp-secondary-action delete-activity-single confirm" rel="nofollow">' . __("Delete", BP_MEDIA_TXT_DOMAIN) . '</a>';
88
+ echo '</div>';
89
+ }
90
+
91
  $this->inner_query( $bp_media_current_album->get_id() );
92
  $this->hook_before();
93
  if ( $bp_media_current_album && $bp_media_query->have_posts() ):
94
  echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
95
+ if ( bp_is_my_profile() || BPMediaGroup::can_upload() ) {
96
+ echo '<li>';
97
+ BPMediaUploadScreen::upload_screen_content();
98
+ echo '</li>';
99
+ }
100
+ while ( $bp_media_query->have_posts() ) : $bp_media_query->the_post();
101
  $this->template->the_content();
102
+ endwhile;
103
  echo '</ul>';
104
  $this->template->show_more();
105
  else:
106
  BPMediaFunction::show_formatted_error_message( __( 'Sorry, no media items were found in this album.', BP_MEDIA_TXT_DOMAIN ), 'info' );
107
+ if ( bp_is_my_profile() || BPMediaGroup::can_upload() ) {
108
+ echo '<div class="bp-media-area-allocate"></div>';
109
+ BPMediaUploadScreen::upload_screen_content();
110
+ }
111
  endif;
112
+ $this->hook_after();
113
  }
114
 
115
  function set_query() {
app/main/profile/BPMediaScreen.php CHANGED
@@ -123,7 +123,7 @@ class BPMediaScreen {
123
 
124
  global $bp;
125
 
126
- remove_filter( 'bp_activity_get_user_join_filter', 'activity_query_filter', 10 );
127
  if ( isset( $bp->action_variables[ 0 ] ) ) {
128
  switch ( $bp->action_variables[ 0 ] ) {
129
  case constant( $editslug ) :
@@ -160,15 +160,24 @@ class BPMediaScreen {
160
  $this->set_query();
161
 
162
  $this->hook_before();
163
- if ( $bp_media_query && $bp_media_query->have_posts() ):
164
- echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
165
- while ( $bp_media_query->have_posts() ) : $bp_media_query->the_post();
 
 
 
 
 
166
  $this->template->the_content();
167
  endwhile;
168
  echo '</ul>';
169
  $this->template->show_more();
170
  else:
171
  BPMediaFunction::show_formatted_error_message( sprintf( __( 'Sorry, no %s were found.', BP_MEDIA_TXT_DOMAIN ), $this->slug ), 'info' );
 
 
 
 
172
  endif;
173
  $this->hook_after();
174
  }
@@ -286,13 +295,15 @@ class BPMediaScreen {
286
  <input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input"
287
  maxlength="<?php echo max( array( $bp_media_default_excerpts[ 'single_entry_title' ], $bp_media_default_excerpts[ 'activity_entry_title' ] ) ) ?>"
288
  value="<?php echo $bp_media_current_entry->get_title(); ?>" />
289
- <label for="bp-media-upload-input-description">
 
290
  <?php printf( __( '%s Description', BP_MEDIA_TXT_DOMAIN ), ucfirst( $this->media_type ) ); ?>
291
- </label>
292
- <input id="bp-media-upload-input-description" type="text" name="bp_media_description" class="settings-input"
293
- maxlength="<?php echo max( array( $bp_media_default_excerpts[ 'single_entry_description' ], $bp_media_default_excerpts[ 'activity_entry_description' ] ) ) ?>"
294
- value="<?php echo $bp_media_current_entry->get_content(); ?>" />
295
- <?php do_action('bp_media_add_media_fields', $this->media_type); ?>
 
296
  <div class="submit">
297
  <input type="submit" class="auto" value="<?php _e( 'Update', BP_MEDIA_TXT_DOMAIN ); ?>" />
298
  <a href="<?php echo $bp_media_current_entry->get_url(); ?>" class="button" title="<?php _e( 'Back to Media File', BP_MEDIA_TXT_DOMAIN ); ?>">
@@ -398,6 +409,5 @@ class BPMediaScreen {
398
  $bp_media_query = new WP_Query( $args );
399
  }
400
  }
401
-
402
  }
403
  ?>
123
 
124
  global $bp;
125
 
126
+ remove_filter( 'bp_activity_get_user_join_filter', 'BPMediaFilters::activity_query_filter', 10 );
127
  if ( isset( $bp->action_variables[ 0 ] ) ) {
128
  switch ( $bp->action_variables[ 0 ] ) {
129
  case constant( $editslug ) :
160
  $this->set_query();
161
 
162
  $this->hook_before();
163
+ if ( $bp_media_query && $bp_media_query->have_posts() ):
164
+ echo '<ul id="bp-media-list" class="bp-media-gallery item-list">';
165
+ if ( bp_is_my_profile() || BPMediaGroup::can_upload() ) {
166
+ echo '<li>';
167
+ BPMediaUploadScreen::upload_screen_content();
168
+ echo '</li>';
169
+ }
170
+ while ( $bp_media_query->have_posts() ) : $bp_media_query->the_post();
171
  $this->template->the_content();
172
  endwhile;
173
  echo '</ul>';
174
  $this->template->show_more();
175
  else:
176
  BPMediaFunction::show_formatted_error_message( sprintf( __( 'Sorry, no %s were found.', BP_MEDIA_TXT_DOMAIN ), $this->slug ), 'info' );
177
+ if ( bp_is_my_profile() || BPMediaGroup::can_upload() ) {
178
+ echo '<div class="bp-media-area-allocate"></div>';
179
+ BPMediaUploadScreen::upload_screen_content();
180
+ }
181
  endif;
182
  $this->hook_after();
183
  }
295
  <input id="bp-media-upload-input-title" type="text" name="bp_media_title" class="settings-input"
296
  maxlength="<?php echo max( array( $bp_media_default_excerpts[ 'single_entry_title' ], $bp_media_default_excerpts[ 'activity_entry_title' ] ) ) ?>"
297
  value="<?php echo $bp_media_current_entry->get_title(); ?>" />
298
+ <?php if ( $bp_media_current_entry->get_type() != 'album' ) { ?>
299
+ <label for="bp-media-upload-input-description">
300
  <?php printf( __( '%s Description', BP_MEDIA_TXT_DOMAIN ), ucfirst( $this->media_type ) ); ?>
301
+ </label>
302
+ <input id="bp-media-upload-input-description" type="text" name="bp_media_description" class="settings-input"
303
+ maxlength="<?php echo max( array( $bp_media_default_excerpts[ 'single_entry_description' ], $bp_media_default_excerpts[ 'activity_entry_description' ] ) ) ?>"
304
+ value="<?php echo $bp_media_current_entry->get_content(); ?>" />
305
+ <?php }
306
+ do_action('bp_media_add_media_fields', $this->media_type); ?>
307
  <div class="submit">
308
  <input type="submit" class="auto" value="<?php _e( 'Update', BP_MEDIA_TXT_DOMAIN ); ?>" />
309
  <a href="<?php echo $bp_media_current_entry->get_url(); ?>" class="button" title="<?php _e( 'Back to Media File', BP_MEDIA_TXT_DOMAIN ); ?>">
409
  $bp_media_query = new WP_Query( $args );
410
  }
411
  }
 
412
  }
413
  ?>
app/main/profile/BPMediaTemplate.php CHANGED
@@ -11,77 +11,68 @@
11
  class BPMediaTemplate {
12
 
13
  function upload_form_multiple() {
14
- ?>
15
- <div id="bp-media-album-prompt" title="Select Album">
16
- <div class="bp-media-album-title">
17
- <span><?php _e( 'Select Album', BP_MEDIA_TXT_DOMAIN ); ?></span>
18
- <span id="bp-media-close"><?php _e( 'x', BP_MEDIA_TXT_DOMAIN ); ?></span>
19
- </div>
20
- <div class="bp-media-album-content">
21
- <select id="bp-media-selected-album"><?php
22
- if ( bp_is_current_component( 'groups' ) ) {
23
- $albums = new WP_Query( array(
24
- 'post_type' => 'bp_media_album',
25
- 'posts_per_page' => -1,
26
- 'meta_key' => 'bp-media-key',
27
- 'meta_value' => -bp_get_current_group_id(),
28
- 'meta_compare' => '='
29
- ) );
30
- } else {
31
- $albums = new WP_Query( array(
32
- 'post_type' => 'bp_media_album',
33
- 'posts_per_page' => -1,
34
- 'author' => get_current_user_id()
35
- ) );
36
- }
37
- if ( isset( $albums->posts ) && is_array( $albums->posts ) && count( $albums->posts ) > 0 ) {
38
- foreach ( $albums->posts as $album ) {
39
- if ( $album->post_title == 'Wall Posts' )
40
- echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
41
- else
42
- echo '<option value="' . $album->ID . '">' . $album->post_title . '</option>';
43
- };
44
- }else {
45
- $album = new BPMediaAlbum();
46
- if ( bp_is_current_component( 'groups' ) ) {
47
- $current_group = new BP_Groups_Group( bp_get_current_group_id() );
48
- $album->add_album( 'Wall Posts', $current_group->creator_id, bp_get_current_group_id() );
49
- } else {
50
- $album->add_album( 'Wall Posts', bp_loggedin_user_id() );
51
- }
52
- echo '<option value="' . $album->get_id() . '" selected="selected">' . $album->get_title() . '</option>';
53
- }
54
- ?></select>
55
- </div>
56
- <div class="select-btn-div">
57
- <input id="selected-btn" type="button" class="btn" value="Select" />
58
- <input id="create-btn" type="button" class="btn" value="Create Album" />
59
- <div style="clear: both;"></div>
60
- </div>
61
- </div>
62
- <div id="bp-media-album-new" title="Create New Album">
63
- <div class="bp-media-album-title">
64
- <span><?php _e( 'Create Album', BP_MEDIA_TXT_DOMAIN ); ?></span>
65
- <span id="bp-media-create-album-close"><?php _e( 'x', BP_MEDIA_TXT_DOMAIN ); ?></span>
66
- </div>
67
- <div class="bp-media-album-content">
68
- <label for="bp_media_album_name"><?php _e( 'Album Name', BP_MEDIA_TXT_DOMAIN ); ?></label>
69
- <input id="bp_media_album_name" type="text" name="bp_media_album_name" />
 
 
 
70
  </div>
71
- <div class="select-btn-div">
72
- <input id="create-album" type="button" class="btn" value="Create" />
73
- </div>
74
- </div>
75
- <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop">
76
- <div id="drag-drop-area">
77
- <div class="drag-drop-inside">
78
- <p class="drag-drop-info"><?php _e( 'Drop files here', BP_MEDIA_TXT_DOMAIN ); ?></p>
79
- <p><?php _e( ' or ', BP_MEDIA_TXT_DOMAIN ); ?></p>
80
- <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e( 'Select Files', BP_MEDIA_TXT_DOMAIN ); ?>" class="button" /></p>
81
- </div>
82
- </div>
83
  </div>
84
- <div id="bp-media-uploaded-files"></div>
85
  <?php
86
  }
87
 
@@ -163,7 +154,7 @@ class BPMediaTemplate {
163
  break;
164
  }
165
  if ( $showmore ) {
166
- echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">Show More</a></div>';
167
  }
168
  }
169
 
@@ -186,7 +177,13 @@ class BPMediaTemplate {
186
  if ( $bp->current_component != 'activity' )
187
  return;
188
  ?>
189
- <div id="bp-media-album-prompt" title="Select Album"><select id="bp-media-selected-album"><?php
 
 
 
 
 
 
190
  $albums = new WP_Query( array(
191
  'post_type' => 'bp_media_album',
192
  'posts_per_page' => -1,
@@ -194,18 +191,37 @@ class BPMediaTemplate {
194
  ) );
195
  if ( isset( $albums->posts ) && is_array( $albums->posts ) && count( $albums->posts ) > 0 ) {
196
  foreach ( $albums->posts as $album ) {
197
- if ( $album->post_title == 'Wall Posts' )
198
- echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title . '</option>';
199
  else
200
- echo '<option value="' . $album->ID . '">' . $album->post_title . '</option>';
201
  };
202
  }
203
- ?></select></div>
204
- <div id="bp-media-album-new" title="Create New Album"><label for="bp_media_album_name">Album Name</label><input id="bp_media_album_name" type="text" name="bp_media_album_name" /></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop activity-component">
206
- <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="Add Media" class="button" /></p>
 
207
  </div>
208
- <div id="bp-media-uploaded-files"></div>
209
  <?php
210
  }
211
 
11
  class BPMediaTemplate {
12
 
13
  function upload_form_multiple() {
14
+ global $bp_media_current_album;
15
+ $post_wall = __( 'Wall Posts', BP_MEDIA_TXT_DOMAIN );
16
+ if ( !isset ( $bp_media_current_album ) ) { ?>
17
+ <div id="bp-media-album-prompt" title="Select Album">
18
+ <span><?php _e( 'Select Album', BP_MEDIA_TXT_DOMAIN ); ?></span>
19
+ <div class="bp-media-album-content">
20
+ <select id="bp-media-selected-album"><?php
21
+ if ( bp_is_current_component( 'groups' ) ) {
22
+ $albums = new WP_Query( array(
23
+ 'post_type' => 'bp_media_album',
24
+ 'posts_per_page' => -1,
25
+ 'meta_key' => 'bp-media-key',
26
+ 'meta_value' => -bp_get_current_group_id(),
27
+ 'meta_compare' => '='
28
+ ) );
29
+ } else {
30
+ $albums = new WP_Query( array(
31
+ 'post_type' => 'bp_media_album',
32
+ 'posts_per_page' => -1,
33
+ 'author' => get_current_user_id()
34
+ ) );
35
+ }
36
+ if ( isset( $albums->posts ) && is_array( $albums->posts ) && count( $albums->posts ) > 0 ) {
37
+ foreach ( $albums->posts as $album ) {
38
+ if ( $album->post_title == $post_wall )
39
+ echo '<option value="' . $album->ID . '" selected="selected">' .$album->post_title. '</option>';
40
+ else
41
+ echo '<option value="' . $album->ID . '">' .$album->post_title. '</option>';
42
+ };
43
+ }else {
44
+ $album = new BPMediaAlbum();
45
+ if ( bp_is_current_component( 'groups' ) ) {
46
+ $current_group = new BP_Groups_Group( bp_get_current_group_id() );
47
+ $album->add_album( $post_wall, $current_group->creator_id, bp_get_current_group_id() );
48
+ } else {
49
+ $album->add_album( $post_wall, bp_loggedin_user_id() );
50
+ }
51
+ echo '<option value="' . $album->get_id() . '" selected="selected">' .$album->get_title() ->post_title. '</option>';
52
+ }
53
+ echo '<option id="create-new" value="create_new" >' . __('+ Create New Album', BP_MEDIA_TXT_DOMAIN ). '</option>';
54
+ ?>
55
+ </select>
56
+ </div>
57
+ <div class="hide">
58
+ <input type="text" id="bp_media_album_new" value="" />
59
+ <input type="button" class="button" id="btn-create-new" value="<?php _e( 'Create', BP_MEDIA_TXT_DOMAIN ); ?>"/>
60
+ <input type="button" class="button" id="btn-create-cancel" value="<?php _e( 'Cancel', BP_MEDIA_TXT_DOMAIN ); ?>"/>
61
+ </div>
62
+ </div><?php
63
+ } else { ?>
64
+ <input type="hidden" id="bp-media-selected-album" value="<?php echo $bp_media_current_album->get_id(); ?>"/>
65
+ <?php } ?>
66
+ <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop">
67
+ <div id="drag-drop-area">
68
+ <div class="drag-drop-inside">
69
+ <p class="drag-drop-info"><?php _e( 'Drop files here', BP_MEDIA_TXT_DOMAIN ); ?></p>
70
+ <p><?php _e( ' or ', BP_MEDIA_TXT_DOMAIN ); ?></p>
71
+ <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e( 'Select Files', BP_MEDIA_TXT_DOMAIN ); ?>" class="button" /></p>
72
+ </div>
73
  </div>
74
+ <div id="bp-media-uploaded-files"></div>
 
 
 
 
 
 
 
 
 
 
 
75
  </div>
 
76
  <?php
77
  }
78
 
154
  break;
155
  }
156
  if ( $showmore ) {
157
+ echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">'. __('Show More', BP_MEDIA_TXT_DOMAIN).'</a></div>';
158
  }
159
  }
160
 
177
  if ( $bp->current_component != 'activity' )
178
  return;
179
  ?>
180
+ <div id="bp-media-album-prompt" title="Select Album">
181
+ <div class="bp-media-album-title">
182
+ <span><?php _e( 'Select Album', BP_MEDIA_TXT_DOMAIN ); ?></span>
183
+ <span id="bp-media-close"><?php _e( 'x', BP_MEDIA_TXT_DOMAIN ); ?></span>
184
+ </div>
185
+ <div class="bp-media-album-content">
186
+ <select id="bp-media-selected-album"><?php
187
  $albums = new WP_Query( array(
188
  'post_type' => 'bp_media_album',
189
  'posts_per_page' => -1,
191
  ) );
192
  if ( isset( $albums->posts ) && is_array( $albums->posts ) && count( $albums->posts ) > 0 ) {
193
  foreach ( $albums->posts as $album ) {
194
+ if ( $album->post_title == $post_wall )
195
+ echo '<option value="' . $album->ID . '" selected="selected">' . $album->post_title. '</option>';
196
  else
197
+ echo '<option value="' . $album->ID . '">' . $album->post_title, BP_MEDIA_TXT_DOMAIN . '</option>';
198
  };
199
  }
200
+ ?></select>
201
+ </div>
202
+ <div class="select-btn-div">
203
+ <input id="selected-btn" type="button" class="btn" value="<?php _e( 'Select', BP_MEDIA_TXT_DOMAIN ); ?>" />
204
+ <input id="create-btn" type="button" class="btn" value="<?php _e( 'Create Album', BP_MEDIA_TXT_DOMAIN ); ?>" />
205
+ <div style="clear: both;"></div>
206
+ </div>
207
+ </div>
208
+ <div id="bp-media-album-new" title="Create New Album">
209
+ <div class="bp-media-album-title">
210
+ <span><?php _e( 'Create Album', BP_MEDIA_TXT_DOMAIN ); ?></span>
211
+ <span id="bp-media-create-album-close"><?php _e( 'x', BP_MEDIA_TXT_DOMAIN ); ?></span>
212
+ </div>
213
+ <div class="bp-media-album-content">
214
+ <label for="bp_media_album_name"><?php _e( 'Album Name', BP_MEDIA_TXT_DOMAIN ); ?></label>
215
+ <input id="bp_media_album_name" type="text" name="bp_media_album_name" />
216
+ </div>
217
+ <div class="select-btn-div">
218
+ <input id="create-album" type="button" class="btn" value="<?php _e( 'Create', BP_MEDIA_TXT_DOMAIN ); ?>" />
219
+ </div>
220
+ </div>
221
  <div id="bp-media-upload-ui" class="hide-if-no-js drag-drop activity-component">
222
+ <p class="drag-drop-buttons"><input id="bp-media-upload-browse-button" type="button" value="<?php _e( 'Add Media', BP_MEDIA_TXT_DOMAIN ); ?>" class="button" /></p>
223
+ <div id="bp-media-uploaded-files"></div>
224
  </div>
 
225
  <?php
226
  }
227
 
app/main/profile/BPMediaUploadScreen.php CHANGED
@@ -15,10 +15,13 @@ class BPMediaUploadScreen extends BPMediaScreen {
15
  }
16
 
17
  function upload_screen() {
18
- add_action( 'wp_enqueue_scripts', array( $this, 'upload_enqueue' ) );
19
- add_action( 'bp_template_title', array( $this, 'upload_screen_title' ) );
20
- add_action( 'bp_template_content', array( $this, 'upload_screen_content' ) );
21
- $this->template->loader();
 
 
 
22
  }
23
 
24
  function upload_screen_title() {
@@ -28,7 +31,7 @@ class BPMediaUploadScreen extends BPMediaScreen {
28
  function upload_screen_content() {
29
  $this->hook_before();
30
 
31
- $this->template->upload_form_multiple();
32
 
33
  $this->hook_after();
34
  }
15
  }
16
 
17
  function upload_screen() {
18
+ if ( bp_is_my_profile() || BPMediaGroup::can_upload() ) {
19
+ add_action( 'wp_enqueue_scripts', array( $this, 'upload_enqueue' ) );
20
+ add_action( 'bp_template_title', array( $this, 'upload_screen_title' ) );
21
+ add_action( 'bp_template_content', array( $this, 'upload_screen_content' ) );
22
+ $this->template->loader();
23
+ } else
24
+ bp_core_redirect( trailingslashit( bp_displayed_user_domain() . constant( 'BP_MEDIA_SLUG' ) ) );
25
  }
26
 
27
  function upload_screen_title() {
31
  function upload_screen_content() {
32
  $this->hook_before();
33
 
34
+ $this->template->upload_form_multiple();
35
 
36
  $this->hook_after();
37
  }
index.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.4.3
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com
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.5
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com
languages/buddypress-media-es.mo ADDED
Binary file
languages/buddypress-media-ja.mo ADDED
Binary file
languages/buddypress-media-pt_BR.mo ADDED
Binary file
languages/buddypress-media.mo ADDED
Binary file
languages/buddypress-media.po CHANGED
@@ -1,23 +1,21 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Buddypress Media\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-14 17:03+0530\n"
6
- "PO-Revision-Date: 2013-01-14 17:03+0530\n"
7
  "Last-Translator: Saurabh Shukla <saurabh.shukla@rtcamp.com>\n"
8
  "Language-Team: rtCamp <info@rtcamp.com>\n"
9
  "Language: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: ../.\n"
 
 
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: app/helper/BPMediaWidget.php:22
18
- msgid "Argument missing. id is required."
19
- msgstr ""
20
-
21
  #: app/helper/BPMediaFeed.php:38
22
  msgid "No items"
23
  msgstr ""
@@ -34,98 +32,133 @@ msgstr ""
34
  msgid "Video"
35
  msgstr ""
36
 
37
- #: app/helper/BPMediaSettings.php:26
38
  msgid "Check to enable video upload functionality"
39
  msgstr ""
40
 
41
- #: app/helper/BPMediaSettings.php:28
42
  msgid "Audio"
43
  msgstr ""
44
 
45
- #: app/helper/BPMediaSettings.php:30
46
  msgid "Check to enable audio upload functionality"
47
  msgstr ""
48
 
49
- #: app/helper/BPMediaSettings.php:32
50
  msgid "Images"
51
  msgstr ""
52
 
53
- #: app/helper/BPMediaSettings.php:34
54
  msgid "Check to enable images upload functionality"
55
  msgstr ""
56
 
57
- #: app/helper/BPMediaSettings.php:36
58
  msgid "Download"
59
  msgstr ""
60
 
61
- #: app/helper/BPMediaSettings.php:38
62
  msgid "Check to enable download functionality"
63
  msgstr ""
64
 
65
- #: app/helper/BPMediaSettings.php:40
66
- #: app/helper/BPMediaSettings.php:41
67
  msgid "Spread the Word"
68
  msgstr ""
69
 
70
- #: app/helper/BPMediaSettings.php:44
71
  msgid "Yes, I support BuddyPress Media"
72
  msgstr ""
73
 
74
- #: app/helper/BPMediaSettings.php:45
75
  msgid "No, I don't want to support BuddyPress Media"
76
  msgstr ""
77
 
78
- #: app/helper/BPMediaSettings.php:48
79
  msgid "BuddyPress Media Other Options"
80
  msgstr ""
81
 
82
- #: app/helper/BPMediaSettings.php:49
83
  msgid "Re-Count Media Entries"
84
  msgstr ""
85
 
86
- #: app/helper/BPMediaSettings.php:52
 
 
 
 
87
  msgid "It will re-count all media entries of all users and correct any discrepancies."
88
  msgstr ""
89
 
90
- #: app/helper/BPMediaSettings.php:55
91
  msgid "BuddyPress Media Addons for Audio/Video Conversion"
92
  msgstr ""
93
 
94
- #: app/helper/BPMediaSettings.php:56
95
  msgid "Submit a request form"
96
  msgstr ""
97
 
98
- #: app/helper/BPMediaSettings.php:57
99
  msgid "Request Type"
100
  msgstr ""
101
 
102
- #: app/helper/BPMediaSettings.php:73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  msgid "Recounting of media files done successfully"
104
  msgstr ""
105
 
106
- #: app/helper/BPMediaSettings.php:75
 
 
 
 
 
107
  msgid "Recounting Failed"
108
  msgstr ""
109
 
110
- #: app/helper/BPMediaSettings.php:96
 
 
 
 
 
 
 
 
111
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' ) "
112
  msgstr ""
113
 
114
- #: app/helper/BPMediaSettings.php:126
115
- #: app/helper/BPMediaSettings.php:156
 
116
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' )"
117
  msgstr ""
118
 
119
- #: app/helper/BPMediaSettings.php:128
120
  msgid "Need to specify atleast to radios else use a checkbox instead"
121
  msgstr ""
122
 
123
- #: app/helper/BPMediaSettings.php:158
124
  msgid "Please provide some values to populate the dropdown. Format : array( 'value' => 'option' )"
125
  msgstr ""
126
 
127
- #: app/helper/BPMediaSupport.php:23
128
- msgid "Submit a Bug Report"
129
  msgstr ""
130
 
131
  #: app/helper/BPMediaSupport.php:26
@@ -137,35 +170,39 @@ msgid "Submit a Premium Support Request"
137
  msgstr ""
138
 
139
  #: app/helper/BPMediaSupport.php:37
140
- #: app/helper/BPMediaSupport.php:113
141
  msgid "Name"
142
  msgstr ""
143
 
144
  #: app/helper/BPMediaSupport.php:40
145
- #: app/helper/BPMediaSupport.php:116
146
  msgid "Email"
147
  msgstr ""
148
 
149
  #: app/helper/BPMediaSupport.php:43
150
- #: app/helper/BPMediaSupport.php:119
151
  msgid "Website"
152
  msgstr ""
153
 
154
  #: app/helper/BPMediaSupport.php:46
155
- #: app/helper/BPMediaSupport.php:122
156
  msgid "Phone"
157
  msgstr ""
158
 
159
  #: app/helper/BPMediaSupport.php:49
160
- #: app/helper/BPMediaSupport.php:125
161
  msgid "Subject"
162
  msgstr ""
163
 
164
  #: app/helper/BPMediaSupport.php:52
165
- #: app/helper/BPMediaSupport.php:128
166
  msgid "Details"
167
  msgstr ""
168
 
 
 
 
 
169
  #: app/helper/BPMediaSupport.php:68
170
  msgid "Your WP Admin Login:"
171
  msgstr ""
@@ -186,116 +223,116 @@ msgstr ""
186
  msgid "Your SSH / FTP password:"
187
  msgstr ""
188
 
189
- #: app/helper/BPMediaSupport.php:98
190
  msgid "BuddyPress Media Premium Support Request from"
191
  msgstr ""
192
 
193
- #: app/helper/BPMediaSupport.php:100
194
  msgid "BuddyPress Media New Feature Request from"
195
  msgstr ""
196
 
197
- #: app/helper/BPMediaSupport.php:102
198
  msgid "BuddyPress Media Bug Report from"
199
  msgstr ""
200
 
201
- #: app/helper/BPMediaSupport.php:104
202
  msgid "BuddyPress Media Contact from"
203
  msgstr ""
204
 
205
- #: app/helper/BPMediaSupport.php:131
206
  msgid "Request ID"
207
  msgstr ""
208
 
209
- #: app/helper/BPMediaSupport.php:134
210
  msgid "Server Address"
211
  msgstr ""
212
 
213
- #: app/helper/BPMediaSupport.php:137
214
  msgid "IP Address"
215
  msgstr ""
216
 
217
- #: app/helper/BPMediaSupport.php:140
218
  msgid "Server Type"
219
  msgstr ""
220
 
221
- #: app/helper/BPMediaSupport.php:143
222
  msgid "User Agent"
223
  msgstr ""
224
 
225
- #: app/helper/BPMediaSupport.php:147
226
  msgid "WordPress Admin Username"
227
  msgstr ""
228
 
229
- #: app/helper/BPMediaSupport.php:150
230
  msgid "WordPress Admin Password"
231
  msgstr ""
232
 
233
- #: app/helper/BPMediaSupport.php:153
234
  msgid "SSH FTP Host"
235
  msgstr ""
236
 
237
- #: app/helper/BPMediaSupport.php:156
238
  msgid "SSH FTP Username"
239
  msgstr ""
240
 
241
- #: app/helper/BPMediaSupport.php:159
242
  msgid "SSH FTP Password"
243
  msgstr ""
244
 
245
- #: app/helper/BPMediaSupport.php:170
246
  msgid "Thank you for your Feedback/Suggestion."
247
  msgstr ""
248
 
249
- #: app/helper/BPMediaSupport.php:172
250
  msgid "Thank you for posting your support request."
251
  msgstr ""
252
 
253
- #: app/helper/BPMediaSupport.php:173
254
  msgid "We will get back to you shortly."
255
  msgstr ""
256
 
257
- #: app/helper/BPMediaSupport.php:176
258
  msgid "Your server failed to send an email."
259
  msgstr ""
260
 
261
- #: app/helper/BPMediaSupport.php:177
262
  msgid "Kindly contact your server support to fix this."
263
  msgstr ""
264
 
265
- #: app/helper/BPMediaSupport.php:178
266
  #, php-format
267
  msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
268
  msgstr ""
269
 
270
- #: app/helper/BPMediaAddon.php:26
271
- msgid "BuddyPress-Media FFMPEG Add-on"
272
- msgstr ""
273
-
274
  #: app/helper/BPMediaAddon.php:29
275
- msgid "Add supports for more audio & video formats using open-source media-node."
276
  msgstr ""
277
 
278
- #: app/helper/BPMediaAddon.php:30
279
- msgid "Media node comes with automated setup script for Ubuntu/Debian."
280
  msgstr ""
281
 
282
- #: app/helper/BPMediaAddon.php:36
283
- msgid "BuddyPress-Media Kaltura Add-on"
284
  msgstr ""
285
 
286
  #: app/helper/BPMediaAddon.php:39
287
- msgid "Add support for more video formats using Kaltura video solution."
288
  msgstr ""
289
 
290
- #: app/helper/BPMediaAddon.php:40
291
- msgid "Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
 
 
 
 
292
  msgstr ""
293
 
294
- #: app/helper/BPMediaAddon.php:82
295
  msgid "Buy Now"
296
  msgstr ""
297
 
298
- #: app/helper/BPMediaAddon.php:83
299
  msgid "Live Demo"
300
  msgstr ""
301
 
@@ -304,249 +341,282 @@ msgstr ""
304
  msgid "Please click upgrade to upgrade the database of BuddyPress Media <a class=\"button\" id=\"refresh_media_count\" href =\"%s\" class=\"button\" title=\"It will migrate your BuddyPress Media's earlier database to new database.\">Upgrade</a>"
305
  msgstr ""
306
 
 
 
 
 
 
307
  #: app/helper/BPMediaUpgrade.php:103
308
  #: app/helper/BPMediaUpgrade.php:156
309
- #: app/main/group/BPMediaGroupAction.php:95
310
  #, php-format
311
  msgid "%1$s added a %2$s"
312
  msgstr ""
313
 
314
- #: app/admin/BPMediaAdmin.php:54
315
- msgid "Buddypress Media Component"
316
  msgstr ""
317
 
318
- #: app/admin/BPMediaAdmin.php:54
 
 
319
  msgid "BuddyPress Media"
320
  msgstr ""
321
 
322
- #: app/admin/BPMediaAdmin.php:55
323
- #: app/admin/BPMediaAdmin.php:175
324
- msgid "Buddypress Media Settings"
325
- msgstr ""
326
-
327
- #: app/admin/BPMediaAdmin.php:55
328
  #: app/admin/BPMediaAdmin.php:176
329
- #: app/main/BuddyPressMedia.php:193
330
  msgid "Settings"
331
  msgstr ""
332
 
333
- #: app/admin/BPMediaAdmin.php:56
334
  #: app/admin/BPMediaAdmin.php:182
335
- msgid "Buddypress Media Addons"
336
  msgstr ""
337
 
338
- #: app/admin/BPMediaAdmin.php:56
339
  #: app/admin/BPMediaAdmin.php:183
340
  msgid "Addons"
341
  msgstr ""
342
 
343
- #: app/admin/BPMediaAdmin.php:57
344
  #: app/admin/BPMediaAdmin.php:189
345
- msgid "Buddypress Media Support"
346
  msgstr ""
347
 
348
- #: app/admin/BPMediaAdmin.php:57
349
  msgid "Support "
350
  msgstr ""
351
 
352
- #: app/admin/BPMediaAdmin.php:95
353
- #: app/main/BuddyPressMedia.php:128
354
- #: app/main/BuddyPressMedia.php:131
355
  msgid "Media"
356
  msgstr ""
357
 
358
- #: app/admin/BPMediaAdmin.php:148
359
- #: app/admin/BPMediaAdmin.php:149
360
- msgid "Buddypress Media"
361
- msgstr ""
362
-
363
  #: app/admin/BPMediaAdmin.php:190
364
  msgid "Support"
365
  msgstr ""
366
 
367
- #: app/admin/BPMediaAdmin.php:257
368
  msgid "Empowering The Web With WordPress"
369
  msgstr ""
370
 
371
- #: app/admin/BPMediaAdmin.php:257
372
  msgid "rtCamp"
373
  msgstr ""
374
 
375
- #: app/admin/BPMediaAdmin.php:259
376
  msgid "Become a fan on Facebook"
377
  msgstr ""
378
 
379
- #: app/admin/BPMediaAdmin.php:259
380
  msgid "Facebook"
381
  msgstr ""
382
 
383
- #: app/admin/BPMediaAdmin.php:260
384
  msgid "Follow us on Twitter"
385
  msgstr ""
386
 
387
- #: app/admin/BPMediaAdmin.php:260
388
  msgid "Twitter"
389
  msgstr ""
390
 
391
- #: app/admin/BPMediaAdmin.php:261
392
  msgid "Subscribe to our feeds"
393
  msgstr ""
394
 
395
- #: app/admin/BPMediaAdmin.php:261
396
  msgid "RSS Feed"
397
  msgstr ""
398
 
399
- #: app/admin/BPMediaAdmin.php:266
400
  msgid "Read FAQ"
401
  msgstr ""
402
 
403
- #: app/admin/BPMediaAdmin.php:267
404
  msgid "Free Support Forum"
405
  msgstr ""
406
 
407
- #: app/admin/BPMediaAdmin.php:268
408
  msgid "Github Issue Tracker"
409
  msgstr ""
410
 
411
- #: app/admin/BPMediaAdmin.php:269
412
- msgid "Hire us!"
413
  msgstr ""
414
 
415
- #: app/admin/BPMediaAdmin.php:269
416
  msgid "To get professional customisation/setup service."
417
  msgstr ""
418
 
419
- #: app/admin/BPMediaAdmin.php:271
420
  msgid "Need Help?"
421
  msgstr ""
422
 
423
- #: app/admin/BPMediaAdmin.php:273
424
  msgid "Help the development keep going."
425
  msgstr ""
426
 
427
- #: app/admin/BPMediaAdmin.php:274
428
  msgid "Help us release more amazing features faster. Consider making a donation to our consistent efforts."
429
  msgstr ""
430
 
431
- #: app/admin/BPMediaAdmin.php:275
432
  msgid "Donate"
433
  msgstr ""
434
 
435
- #: app/admin/BPMediaAdmin.php:278
436
  msgid "BuddyPress Media Kaltura"
437
  msgstr ""
438
 
439
- #: app/admin/BPMediaAdmin.php:278
440
  msgid "BPM-Kaltura"
441
  msgstr ""
442
 
443
- #: app/admin/BPMediaAdmin.php:278
444
  msgid "Add support for Kaltura.com/Kaltura-CE based video conversion support"
445
  msgstr ""
446
 
447
- #: app/admin/BPMediaAdmin.php:279
448
  msgid "BuddyPress Media FFMPEG"
449
  msgstr ""
450
 
451
- #: app/admin/BPMediaAdmin.php:279
452
  msgid "BPM-FFMPEG"
453
  msgstr ""
454
 
455
- #: app/admin/BPMediaAdmin.php:279
456
  msgid "Add FFMEG-based audio/video conversion support"
457
  msgstr ""
458
 
459
- #: app/admin/BPMediaAdmin.php:281
460
  msgid "Are you a developer?"
461
  msgstr ""
462
 
463
- #: app/admin/BPMediaAdmin.php:282
464
  #, php-format
465
  msgid "If you are developing a BuddyPress Media addon we would like to include it in above list. We can also help you sell them. <a href=\"%s\">More info!</a>"
466
  msgstr ""
467
 
468
- #: app/admin/BPMediaAdmin.php:283
469
  msgid "Premium Addons"
470
  msgstr ""
471
 
472
- #: app/admin/BPMediaAdmin.php:286
473
  msgid "Latest News"
474
  msgstr ""
475
 
476
- #: app/main/BuddyPressMedia.php:134
 
 
 
 
 
 
 
 
 
477
  msgid "Photos"
478
  msgstr ""
479
 
480
- #: app/main/BuddyPressMedia.php:137
481
  msgid "Photo"
482
  msgstr ""
483
 
484
- #: app/main/BuddyPressMedia.php:140
485
  msgid "Videos"
486
  msgstr ""
487
 
488
- #: app/main/BuddyPressMedia.php:146
489
- #: app/main/BuddyPressMedia.php:149
490
  msgid "Music"
491
  msgstr ""
492
 
493
- #: app/main/BuddyPressMedia.php:152
494
  msgid "Albums"
495
  msgstr ""
496
 
497
- #: app/main/BuddyPressMedia.php:155
498
  msgid "Album"
499
  msgstr ""
500
 
501
- #: app/main/BuddyPressMedia.php:158
502
  msgid "Upload"
503
  msgstr ""
504
 
505
- #: app/main/BuddyPressMedia.php:251
506
  #, php-format
507
  msgid "The BuddyPress version installed is an older version and is not supported, please update BuddyPress to use BuddyPress Media Plugin.<a class=\"alignright\" href=\"%1$s\">X</a>"
508
  msgstr ""
509
 
510
- #: app/main/BuddyPressMedia.php:256
511
  #, php-format
512
  msgid "You have not installed BuddyPress. Please install latest version of BuddyPress to use BuddyPress Media plugin.<a class=\"alignright\" href=\"%1$s\">X</a>"
513
  msgstr ""
514
 
515
  #: app/main/profile/BPMediaTemplate.php:18
 
516
  msgid "Select Album"
517
  msgstr ""
518
 
519
- #: app/main/profile/BPMediaTemplate.php:19
520
- #: app/main/profile/BPMediaTemplate.php:66
521
- msgid "x"
522
  msgstr ""
523
 
524
- #: app/main/profile/BPMediaTemplate.php:65
525
- msgid "Create Album"
 
526
  msgstr ""
527
 
528
- #: app/main/profile/BPMediaTemplate.php:69
529
- msgid "Album Name"
530
  msgstr ""
531
 
532
- #: app/main/profile/BPMediaTemplate.php:79
533
  msgid "Drop files here"
534
  msgstr ""
535
 
536
- #: app/main/profile/BPMediaTemplate.php:80
537
  msgid " or "
538
  msgstr ""
539
 
540
- #: app/main/profile/BPMediaTemplate.php:81
541
  msgid "Select Files"
542
  msgstr ""
543
 
544
- #: app/main/profile/BPMediaScreen.php:107
545
- #: app/main/profile/BPMediaScreen.php:327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
546
  msgid "The requested url does not exist"
547
  msgstr ""
548
 
549
- #: app/main/profile/BPMediaScreen.php:118
550
  #, php-format
551
  msgid "%s List Page"
552
  msgstr ""
@@ -557,87 +627,99 @@ msgstr ""
557
  msgid "Sorry, no %s were found."
558
  msgstr ""
559
 
560
- #: app/main/profile/BPMediaScreen.php:274
561
  #, php-format
562
  msgid "Edit %s"
563
  msgstr ""
564
 
565
- #: app/main/profile/BPMediaScreen.php:289
566
  #, php-format
567
  msgid "%s Title"
568
  msgstr ""
569
 
570
- #: app/main/profile/BPMediaScreen.php:295
571
  #, php-format
572
  msgid "%s Description"
573
  msgstr ""
574
 
575
- #: app/main/profile/BPMediaScreen.php:301
576
  msgid "Update"
577
  msgstr ""
578
 
579
- #: app/main/profile/BPMediaScreen.php:302
580
  msgid "Back to Media File"
581
  msgstr ""
582
 
583
- #: app/main/profile/BPMediaScreen.php:303
584
  msgid "Back to Media"
585
  msgstr ""
586
 
587
- #: app/main/profile/BPMediaScreen.php:320
588
  msgid "You do not have access to this page."
589
  msgstr ""
590
 
591
- #: app/main/profile/BPMediaScreen.php:348
592
  msgid "Media deleted successfully"
593
  msgstr ""
594
 
595
- #: app/main/profile/BPMediaUploadScreen.php:27
596
  msgid "Upload Media"
597
  msgstr ""
598
 
599
- #: app/main/profile/BPMediaUploadScreen.php:69
600
  msgid "You are not allowed to be here"
601
  msgstr ""
602
 
603
- #: app/main/profile/BPMediaUploadScreen.php:91
604
- #: app/main/profile/BPMediaUploadScreen.php:115
605
  msgid "File uploaded is not supported"
606
  msgstr ""
607
 
608
- #: app/main/profile/BPMediaUploadScreen.php:98
609
  msgid "Image uploads are disabled"
610
  msgstr ""
611
 
612
- #: app/main/profile/BPMediaUploadScreen.php:104
613
  msgid "Video uploads are disabled"
614
  msgstr ""
615
 
616
- #: app/main/profile/BPMediaUploadScreen.php:110
617
  msgid "Audio uploads are disabled"
618
  msgstr ""
619
 
620
- #: app/main/profile/BPMediaUploadScreen.php:128
621
  msgid "Upload Successful"
622
  msgstr ""
623
 
624
- #: app/main/profile/BPMediaUploadScreen.php:133
625
  msgid "You did not specified a file to upload"
626
  msgstr ""
627
 
628
- #: app/main/profile/BPMediaAlbumScreen.php:94
 
 
 
 
 
 
 
 
 
 
 
 
629
  msgid "Sorry, no media items were found in this album."
630
  msgstr ""
631
 
632
- #: app/main/profile/BPMediaAlbum.php:42
633
  msgid "Sorry, the requested album does not exist."
634
  msgstr ""
635
 
636
- #: app/main/group/BPMediaGroupElementExtension.php:62
637
  msgid "Sorry, the requested media does not belong to the group"
638
  msgstr ""
639
 
640
- #: app/main/group/BPMediaGroup.php:163
641
  msgid "Media Settings"
642
  msgstr ""
643
 
@@ -689,213 +771,192 @@ msgid "The most popular media on your site"
689
  msgstr ""
690
 
691
  #: app/main/widgets/BPMediaPopularMedia.php:16
692
- #: app/main/widgets/BPMediaPopularMedia.php:22
 
 
 
 
 
 
 
 
 
 
 
 
693
  msgid "Popular Media"
694
  msgstr ""
695
 
696
- #: app/main/widgets/BPMediaPopularMedia.php:32
697
  msgid "comments"
698
  msgstr ""
699
 
700
- #: app/main/widgets/BPMediaPopularMedia.php:33
701
  msgid "Views"
702
  msgstr ""
703
 
704
- #: app/main/widgets/BPMediaPopularMedia.php:62
705
  msgid "No popular media found"
706
  msgstr ""
707
 
708
- #: app/main/widgets/BPMediaPopularMedia.php:84
709
- #: app/main/widgets/BPMediaRecentMedia.php:193
 
710
  msgid "Title:"
711
  msgstr ""
712
 
713
- #: app/main/widgets/BPMediaPopularMedia.php:87
714
- #: app/main/widgets/BPMediaRecentMedia.php:196
 
715
  msgid "Number of posts to show:"
716
  msgstr ""
717
 
718
- #: app/main/widgets/BPMediaRecentMedia.php:15
719
- msgid "The most recent media uploaded on your site"
720
  msgstr ""
721
 
722
- #: app/main/widgets/BPMediaRecentMedia.php:16
723
- #: app/main/widgets/BPMediaRecentMedia.php:22
724
- msgid "Recent Media"
 
 
 
 
725
  msgstr ""
726
 
727
- #: app/main/widgets/BPMediaRecentMedia.php:32
 
728
  msgid "All"
729
  msgstr ""
730
 
731
- #: app/main/widgets/BPMediaRecentMedia.php:64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  msgid "No recent media found"
733
  msgstr ""
734
 
735
- #: app/main/widgets/BPMediaRecentMedia.php:100
736
  msgid "No recent photo found"
737
  msgstr ""
738
 
739
- #: app/main/widgets/BPMediaRecentMedia.php:135
740
  msgid "No recent audio found"
741
  msgstr ""
742
 
743
- #: app/main/widgets/BPMediaRecentMedia.php:170
744
  msgid "No recent video found"
745
  msgstr ""
746
 
747
- #: app/main/includes/BPMediaHostWordpress.php:46
748
  msgid "Sorry, the requested media does not exist."
749
  msgstr ""
750
 
751
- #: app/main/includes/BPMediaHostWordpress.php:84
752
  msgid "Error Uploading File"
753
  msgstr ""
754
 
755
- #: app/main/includes/BPMediaHostWordpress.php:112
756
  msgid "MP4 file you have uploaded is corrupt."
757
  msgstr ""
758
 
759
- #: app/main/includes/BPMediaHostWordpress.php:119
760
- #: app/main/includes/BPMediaHostWordpress.php:124
761
  msgid "The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264."
762
  msgstr ""
763
 
764
- #: app/main/includes/BPMediaHostWordpress.php:129
765
  msgid "The MP4 file you have uploaded is not a video file."
766
  msgstr ""
767
 
768
- #: app/main/includes/BPMediaHostWordpress.php:141
769
  msgid "MP3 file you have uploaded is currupt."
770
  msgstr ""
771
 
772
- #: app/main/includes/BPMediaHostWordpress.php:148
773
- #: app/main/includes/BPMediaHostWordpress.php:153
774
  msgid "The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3."
775
  msgstr ""
776
 
777
- #: app/main/includes/BPMediaHostWordpress.php:158
778
  msgid "The MP3 file you have uploaded is not an audio file."
779
  msgstr ""
780
 
781
- #: app/main/includes/BPMediaHostWordpress.php:172
782
  msgid "Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4."
783
  msgstr ""
784
 
785
- #: app/main/includes/BPMediaHostWordpress.php:179
786
  msgid "Error creating attachment for the media file, please try again"
787
  msgstr ""
788
 
789
- #: app/main/includes/BPMediaHostWordpress.php:252
790
  #, php-format
791
  msgid "%s uploaded a media."
792
  msgstr ""
793
 
794
- #: app/main/includes/BPMediaHostWordpress.php:266
795
  msgid "Uploaded by "
796
  msgstr ""
797
 
798
- #: app/main/includes/BPMediaHostWordpress.php:393
799
  #, php-format
800
  msgid "Comment <span>%s</span>"
801
  msgstr ""
802
 
803
- #: app/main/includes/BPMediaHostWordpress.php:397
804
  msgid "Favorite"
805
  msgstr ""
806
 
807
- #: app/main/includes/BPMediaHostWordpress.php:399
808
  msgid "Remove Favorite"
809
  msgstr ""
810
 
811
- #: app/main/includes/BPMediaHostWordpress.php:418
812
  msgid "Post"
813
  msgstr ""
814
 
815
- #: app/main/includes/BPMediaHostWordpress.php:418
816
  msgid "or press esc to cancel."
817
  msgstr ""
818
 
819
- #: app/main/includes/BPMediaHostWordpress.php:441
820
- msgid "Delete"
821
- msgstr ""
822
-
823
- #: app/main/includes/BPMediaUtils.php:37
824
- msgid "It will migrate your BuddyPress Media's earlier database to new database."
825
- msgstr ""
826
-
827
- #: app/main/includes/BPMediaUtils.php:134
828
- msgid "Bug Report"
829
- msgstr ""
830
-
831
- #: app/main/includes/BPMediaUtils.php:137
832
- msgid "New Feature Request"
833
- msgstr ""
834
-
835
- #: app/main/includes/BPMediaUtils.php:140
836
- msgid "Premium Support Request"
837
- msgstr ""
838
-
839
- #: app/main/includes/BPMediaUtils.php:283
840
- msgid "Thank you, Your bug report sent successfully."
841
- msgstr ""
842
-
843
- #: app/main/includes/BPMediaUtils.php:286
844
- msgid "Thank you, Your new feature request sent successfully."
845
- msgstr ""
846
-
847
- #: app/main/includes/BPMediaUtils.php:289
848
- msgid "Thank you, Your premium support request sent successfully, We will contact you soon."
849
- msgstr ""
850
-
851
- #: app/main/includes/BPMediaUtils.php:339
852
- #: app/main/includes/BPMediaUtils.php:637
853
- msgid "BuddyPress Media Support"
854
- msgstr ""
855
-
856
- #: app/main/includes/BPMediaUtils.php:345
857
- msgid "Spread the word"
858
- msgstr ""
859
-
860
- #: app/main/includes/BPMediaUtils.php:346
861
- msgid "BuddyPress Media Other options"
862
- msgstr ""
863
-
864
- #: app/main/includes/BPMediaUtils.php:612
865
- msgid "Need Help/Support?"
866
- msgstr ""
867
-
868
- #: app/main/includes/BPMediaUtils.php:620
869
- msgid "Hire Us!"
870
- msgstr ""
871
-
872
- #: app/main/includes/BPMediaUtils.php:621
873
- msgid "We are available for customisation and premium support. Get on touch with us. :-)"
874
- msgstr ""
875
-
876
- #: app/main/includes/BPMediaUtils.php:652
877
- msgid "Request type:"
878
- msgstr ""
879
-
880
- #: app/main/includes/BPMediaUtils.php:654
881
- msgid "-- Choose Type --"
882
- msgstr ""
883
-
884
- #: app/main/includes/BPMediaUtils.php:655
885
- msgid "Premium Support"
886
- msgstr ""
887
-
888
- #: app/main/includes/BPMediaUtils.php:656
889
- msgid "Suggest a New Feature"
890
- msgstr ""
891
-
892
- #: app/main/includes/BPMediaUtils.php:688
893
- #, php-format
894
- msgid ""
895
- " Please use our <a href=\"%s\">free support forum</a>.<br/><span class=\"bpm-aligncenter\">OR</span><br/>\n"
896
- "\t\t<a href=\"%s\">Hire us!</a> To get professional customisation/setup service."
897
- msgstr ""
898
-
899
  #: app/main/includes/BPMediaTemplateFunctions.php:28
900
  msgid "Media Title"
901
  msgstr ""
@@ -912,97 +973,100 @@ msgstr ""
912
  msgid "Search Media..."
913
  msgstr ""
914
 
915
- #: app/main/includes/BPMediaComponent.php:316
916
- msgid "Create"
917
- msgstr ""
918
-
919
- #: app/main/includes/BPMediaComponent.php:318
920
  msgid "Edit Album"
921
  msgstr ""
922
 
923
- #: app/main/includes/BPMediaComponent.php:319
924
  msgid "New Album"
925
  msgstr ""
926
 
927
- #: app/main/includes/BPMediaComponent.php:320
928
  msgid "All Albums"
929
  msgstr ""
930
 
931
- #: app/main/includes/BPMediaComponent.php:321
932
  msgid "View Album"
933
  msgstr ""
934
 
935
- #: app/main/includes/BPMediaComponent.php:322
936
  msgid "Search Albums"
937
  msgstr ""
938
 
939
- #: app/main/includes/BPMediaComponent.php:323
940
  msgid "No album found"
941
  msgstr ""
942
 
943
- #: app/main/includes/BPMediaComponent.php:324
944
  msgid "No album found in Trash"
945
  msgstr ""
946
 
947
- #: app/main/includes/BPMediaComponent.php:348
948
  msgid "Add New Media"
949
  msgstr ""
950
 
951
- #: app/main/includes/BPMediaComponent.php:355
952
  msgid "BuddyPress Media's Media Files"
953
  msgstr ""
954
 
955
- #: app/main/includes/BPMediaFunction.php:189
956
  #, php-format
957
  msgid "%1$s added new media in album %2$s"
958
  msgstr ""
959
 
960
- #: app/main/includes/BPMediaFilters.php:296
 
 
 
 
 
961
  msgid "Users"
962
  msgstr ""
963
 
964
- #: app/main/includes/BPMediaFilters.php:298
965
  msgid "Total Photos"
966
  msgstr ""
967
 
968
- #: app/main/includes/BPMediaFilters.php:299
969
  msgid "Total Videos"
970
  msgstr ""
971
 
972
- #: app/main/includes/BPMediaFilters.php:300
973
  msgid "Total Audio"
974
  msgstr ""
975
 
976
- #: app/main/includes/BPMediaFilters.php:301
977
  msgid "Total Albums"
978
  msgstr ""
979
 
980
- #: app/main/includes/BPMediaFilters.php:303
981
  msgid "Groups"
982
  msgstr ""
983
 
984
- #: app/main/includes/BPMediaActions.php:254
985
- msgid "Edit Media"
 
986
  msgstr ""
987
 
988
- #: app/main/includes/BPMediaActions.php:254
989
- msgid "Edit"
 
990
  msgstr ""
991
 
992
- #: app/main/includes/BPMediaActions.php:266
993
- #: app/main/includes/BPMediaActions.php:271
994
- msgid "Featured Media"
995
  msgstr ""
996
 
997
- #: app/main/includes/BPMediaActions.php:266
998
- msgid "Featured"
999
  msgstr ""
1000
 
1001
- #: app/main/includes/BPMediaActions.php:271
1002
- msgid "Remove Featured"
 
1003
  msgstr ""
1004
 
1005
- #: app/main/includes/BPMediaActions.php:534
1006
  #, php-format
1007
  msgid "%1$s created an album %2$s"
1008
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: BuddyPress Media\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-02-05 17:32+0530\n"
6
+ "PO-Revision-Date: 2013-02-05 17:32+0530\n"
7
  "Last-Translator: Saurabh Shukla <saurabh.shukla@rtcamp.com>\n"
8
  "Language-Team: rtCamp <info@rtcamp.com>\n"
9
  "Language: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
14
  "X-Poedit-Basepath: ../.\n"
15
+ "X-Poedit-Language: English\n"
16
+ "X-Poedit-Country: India\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
 
 
 
 
19
  #: app/helper/BPMediaFeed.php:38
20
  msgid "No items"
21
  msgstr ""
32
  msgid "Video"
33
  msgstr ""
34
 
35
+ #: app/helper/BPMediaSettings.php:27
36
  msgid "Check to enable video upload functionality"
37
  msgstr ""
38
 
39
+ #: app/helper/BPMediaSettings.php:29
40
  msgid "Audio"
41
  msgstr ""
42
 
43
+ #: app/helper/BPMediaSettings.php:32
44
  msgid "Check to enable audio upload functionality"
45
  msgstr ""
46
 
47
+ #: app/helper/BPMediaSettings.php:34
48
  msgid "Images"
49
  msgstr ""
50
 
51
+ #: app/helper/BPMediaSettings.php:37
52
  msgid "Check to enable images upload functionality"
53
  msgstr ""
54
 
55
+ #: app/helper/BPMediaSettings.php:39
56
  msgid "Download"
57
  msgstr ""
58
 
59
+ #: app/helper/BPMediaSettings.php:42
60
  msgid "Check to enable download functionality"
61
  msgstr ""
62
 
63
+ #: app/helper/BPMediaSettings.php:44
64
+ #: app/helper/BPMediaSettings.php:45
65
  msgid "Spread the Word"
66
  msgstr ""
67
 
68
+ #: app/helper/BPMediaSettings.php:49
69
  msgid "Yes, I support BuddyPress Media"
70
  msgstr ""
71
 
72
+ #: app/helper/BPMediaSettings.php:50
73
  msgid "No, I don't want to support BuddyPress Media"
74
  msgstr ""
75
 
76
+ #: app/helper/BPMediaSettings.php:53
77
  msgid "BuddyPress Media Other Options"
78
  msgstr ""
79
 
80
+ #: app/helper/BPMediaSettings.php:54
81
  msgid "Re-Count Media Entries"
82
  msgstr ""
83
 
84
+ #: app/helper/BPMediaSettings.php:56
85
+ msgid "Re-Count"
86
+ msgstr ""
87
+
88
+ #: app/helper/BPMediaSettings.php:57
89
  msgid "It will re-count all media entries of all users and correct any discrepancies."
90
  msgstr ""
91
 
92
+ #: app/helper/BPMediaSettings.php:60
93
  msgid "BuddyPress Media Addons for Audio/Video Conversion"
94
  msgstr ""
95
 
96
+ #: app/helper/BPMediaSettings.php:61
97
  msgid "Submit a request form"
98
  msgstr ""
99
 
100
+ #: app/helper/BPMediaSettings.php:62
101
  msgid "Request Type"
102
  msgstr ""
103
 
104
+ #: app/helper/BPMediaSettings.php:63
105
+ msgid "Select One"
106
+ msgstr ""
107
+
108
+ #: app/helper/BPMediaSettings.php:64
109
+ msgid "Premium Support"
110
+ msgstr ""
111
+
112
+ #: app/helper/BPMediaSettings.php:65
113
+ msgid "Suggest a New Feature"
114
+ msgstr ""
115
+
116
+ #: app/helper/BPMediaSettings.php:66
117
+ msgid "Submit a Bug Report"
118
+ msgstr ""
119
+
120
+ #: app/helper/BPMediaSettings.php:92
121
+ #: app/helper/BPMediaSettings.php:94
122
  msgid "Recounting of media files done successfully"
123
  msgstr ""
124
 
125
+ #: app/helper/BPMediaSettings.php:94
126
+ msgid "Recount Success"
127
+ msgstr ""
128
+
129
+ #: app/helper/BPMediaSettings.php:97
130
+ #: app/helper/BPMediaSettings.php:99
131
  msgid "Recounting Failed"
132
  msgstr ""
133
 
134
+ #: app/helper/BPMediaSettings.php:99
135
+ msgid "Recount Fail"
136
+ msgstr ""
137
+
138
+ #: app/helper/BPMediaSettings.php:103
139
+ msgid "Settings saved."
140
+ msgstr ""
141
+
142
+ #: app/helper/BPMediaSettings.php:125
143
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' ) "
144
  msgstr ""
145
 
146
+ #: app/helper/BPMediaSettings.php:163
147
+ #: app/helper/BPMediaSettings.php:203
148
+ #: app/helper/BPMediaSettings.php:241
149
  msgid "Please provide \"option\" value ( required ) in the argument. Pass argument to add_settings_field in the following format array( 'option' => 'option_name' )"
150
  msgstr ""
151
 
152
+ #: app/helper/BPMediaSettings.php:165
153
  msgid "Need to specify atleast to radios else use a checkbox instead"
154
  msgstr ""
155
 
156
+ #: app/helper/BPMediaSettings.php:243
157
  msgid "Please provide some values to populate the dropdown. Format : array( 'value' => 'option' )"
158
  msgstr ""
159
 
160
+ #: app/helper/BPMediaAdminWidget.php:22
161
+ msgid "Argument missing. id is required."
162
  msgstr ""
163
 
164
  #: app/helper/BPMediaSupport.php:26
170
  msgstr ""
171
 
172
  #: app/helper/BPMediaSupport.php:37
173
+ #: app/helper/BPMediaSupport.php:117
174
  msgid "Name"
175
  msgstr ""
176
 
177
  #: app/helper/BPMediaSupport.php:40
178
+ #: app/helper/BPMediaSupport.php:120
179
  msgid "Email"
180
  msgstr ""
181
 
182
  #: app/helper/BPMediaSupport.php:43
183
+ #: app/helper/BPMediaSupport.php:123
184
  msgid "Website"
185
  msgstr ""
186
 
187
  #: app/helper/BPMediaSupport.php:46
188
+ #: app/helper/BPMediaSupport.php:126
189
  msgid "Phone"
190
  msgstr ""
191
 
192
  #: app/helper/BPMediaSupport.php:49
193
+ #: app/helper/BPMediaSupport.php:129
194
  msgid "Subject"
195
  msgstr ""
196
 
197
  #: app/helper/BPMediaSupport.php:52
198
+ #: app/helper/BPMediaSupport.php:132
199
  msgid "Details"
200
  msgstr ""
201
 
202
+ #: app/helper/BPMediaSupport.php:63
203
+ msgid "Additional Information"
204
+ msgstr ""
205
+
206
  #: app/helper/BPMediaSupport.php:68
207
  msgid "Your WP Admin Login:"
208
  msgstr ""
223
  msgid "Your SSH / FTP password:"
224
  msgstr ""
225
 
226
+ #: app/helper/BPMediaSupport.php:99
227
  msgid "BuddyPress Media Premium Support Request from"
228
  msgstr ""
229
 
230
+ #: app/helper/BPMediaSupport.php:102
231
  msgid "BuddyPress Media New Feature Request from"
232
  msgstr ""
233
 
234
+ #: app/helper/BPMediaSupport.php:105
235
  msgid "BuddyPress Media Bug Report from"
236
  msgstr ""
237
 
238
+ #: app/helper/BPMediaSupport.php:108
239
  msgid "BuddyPress Media Contact from"
240
  msgstr ""
241
 
242
+ #: app/helper/BPMediaSupport.php:135
243
  msgid "Request ID"
244
  msgstr ""
245
 
246
+ #: app/helper/BPMediaSupport.php:138
247
  msgid "Server Address"
248
  msgstr ""
249
 
250
+ #: app/helper/BPMediaSupport.php:141
251
  msgid "IP Address"
252
  msgstr ""
253
 
254
+ #: app/helper/BPMediaSupport.php:144
255
  msgid "Server Type"
256
  msgstr ""
257
 
258
+ #: app/helper/BPMediaSupport.php:147
259
  msgid "User Agent"
260
  msgstr ""
261
 
262
+ #: app/helper/BPMediaSupport.php:151
263
  msgid "WordPress Admin Username"
264
  msgstr ""
265
 
266
+ #: app/helper/BPMediaSupport.php:154
267
  msgid "WordPress Admin Password"
268
  msgstr ""
269
 
270
+ #: app/helper/BPMediaSupport.php:157
271
  msgid "SSH FTP Host"
272
  msgstr ""
273
 
274
+ #: app/helper/BPMediaSupport.php:160
275
  msgid "SSH FTP Username"
276
  msgstr ""
277
 
278
+ #: app/helper/BPMediaSupport.php:163
279
  msgid "SSH FTP Password"
280
  msgstr ""
281
 
282
+ #: app/helper/BPMediaSupport.php:174
283
  msgid "Thank you for your Feedback/Suggestion."
284
  msgstr ""
285
 
286
+ #: app/helper/BPMediaSupport.php:176
287
  msgid "Thank you for posting your support request."
288
  msgstr ""
289
 
290
+ #: app/helper/BPMediaSupport.php:177
291
  msgid "We will get back to you shortly."
292
  msgstr ""
293
 
294
+ #: app/helper/BPMediaSupport.php:180
295
  msgid "Your server failed to send an email."
296
  msgstr ""
297
 
298
+ #: app/helper/BPMediaSupport.php:181
299
  msgid "Kindly contact your server support to fix this."
300
  msgstr ""
301
 
302
+ #: app/helper/BPMediaSupport.php:182
303
  #, php-format
304
  msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
305
  msgstr ""
306
 
 
 
 
 
307
  #: app/helper/BPMediaAddon.php:29
308
+ msgid "BuddyPress-Media Kaltura Add-on"
309
  msgstr ""
310
 
311
+ #: app/helper/BPMediaAddon.php:32
312
+ msgid "Add support for more video formats using Kaltura video solution."
313
  msgstr ""
314
 
315
+ #: app/helper/BPMediaAddon.php:33
316
+ msgid "Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
317
  msgstr ""
318
 
319
  #: app/helper/BPMediaAddon.php:39
320
+ msgid "BuddyPress-Media FFMPEG Add-on"
321
  msgstr ""
322
 
323
+ #: app/helper/BPMediaAddon.php:42
324
+ msgid "Add supports for more audio & video formats using open-source media-node."
325
+ msgstr ""
326
+
327
+ #: app/helper/BPMediaAddon.php:43
328
+ msgid "Media node comes with automated setup script for Ubuntu/Debian."
329
  msgstr ""
330
 
331
+ #: app/helper/BPMediaAddon.php:84
332
  msgid "Buy Now"
333
  msgstr ""
334
 
335
+ #: app/helper/BPMediaAddon.php:85
336
  msgid "Live Demo"
337
  msgstr ""
338
 
341
  msgid "Please click upgrade to upgrade the database of BuddyPress Media <a class=\"button\" id=\"refresh_media_count\" href =\"%s\" class=\"button\" title=\"It will migrate your BuddyPress Media's earlier database to new database.\">Upgrade</a>"
342
  msgstr ""
343
 
344
+ #: app/helper/BPMediaUpgrade.php:58
345
+ #: app/main/profile/BPMediaTemplate.php:15
346
+ msgid "Wall Posts"
347
+ msgstr ""
348
+
349
  #: app/helper/BPMediaUpgrade.php:103
350
  #: app/helper/BPMediaUpgrade.php:156
351
+ #: app/main/group/BPMediaGroupAction.php:99
352
  #, php-format
353
  msgid "%1$s added a %2$s"
354
  msgstr ""
355
 
356
+ #: app/admin/BPMediaAdmin.php:57
357
+ msgid "BuddyPress Media Component"
358
  msgstr ""
359
 
360
+ #: app/admin/BPMediaAdmin.php:57
361
+ #: app/admin/BPMediaAdmin.php:148
362
+ #: app/admin/BPMediaAdmin.php:149
363
  msgid "BuddyPress Media"
364
  msgstr ""
365
 
366
+ #: app/admin/BPMediaAdmin.php:58
 
 
 
 
 
367
  #: app/admin/BPMediaAdmin.php:176
368
+ #: app/main/BuddyPressMedia.php:222
369
  msgid "Settings"
370
  msgstr ""
371
 
372
+ #: app/admin/BPMediaAdmin.php:59
373
  #: app/admin/BPMediaAdmin.php:182
374
+ msgid "BuddyPress Media Addons"
375
  msgstr ""
376
 
377
+ #: app/admin/BPMediaAdmin.php:59
378
  #: app/admin/BPMediaAdmin.php:183
379
  msgid "Addons"
380
  msgstr ""
381
 
382
+ #: app/admin/BPMediaAdmin.php:60
383
  #: app/admin/BPMediaAdmin.php:189
384
+ msgid "BuddyPress Media Support"
385
  msgstr ""
386
 
387
+ #: app/admin/BPMediaAdmin.php:60
388
  msgid "Support "
389
  msgstr ""
390
 
391
+ #: app/admin/BPMediaAdmin.php:98
392
+ #: app/main/BuddyPressMedia.php:155
393
+ #: app/main/BuddyPressMedia.php:158
394
  msgid "Media"
395
  msgstr ""
396
 
 
 
 
 
 
397
  #: app/admin/BPMediaAdmin.php:190
398
  msgid "Support"
399
  msgstr ""
400
 
401
+ #: app/admin/BPMediaAdmin.php:264
402
  msgid "Empowering The Web With WordPress"
403
  msgstr ""
404
 
405
+ #: app/admin/BPMediaAdmin.php:264
406
  msgid "rtCamp"
407
  msgstr ""
408
 
409
+ #: app/admin/BPMediaAdmin.php:266
410
  msgid "Become a fan on Facebook"
411
  msgstr ""
412
 
413
+ #: app/admin/BPMediaAdmin.php:266
414
  msgid "Facebook"
415
  msgstr ""
416
 
417
+ #: app/admin/BPMediaAdmin.php:267
418
  msgid "Follow us on Twitter"
419
  msgstr ""
420
 
421
+ #: app/admin/BPMediaAdmin.php:267
422
  msgid "Twitter"
423
  msgstr ""
424
 
425
+ #: app/admin/BPMediaAdmin.php:268
426
  msgid "Subscribe to our feeds"
427
  msgstr ""
428
 
429
+ #: app/admin/BPMediaAdmin.php:268
430
  msgid "RSS Feed"
431
  msgstr ""
432
 
433
+ #: app/admin/BPMediaAdmin.php:273
434
  msgid "Read FAQ"
435
  msgstr ""
436
 
437
+ #: app/admin/BPMediaAdmin.php:274
438
  msgid "Free Support Forum"
439
  msgstr ""
440
 
441
+ #: app/admin/BPMediaAdmin.php:275
442
  msgid "Github Issue Tracker"
443
  msgstr ""
444
 
445
+ #: app/admin/BPMediaAdmin.php:276
446
+ msgid "Hire Us!"
447
  msgstr ""
448
 
449
+ #: app/admin/BPMediaAdmin.php:276
450
  msgid "To get professional customisation/setup service."
451
  msgstr ""
452
 
453
+ #: app/admin/BPMediaAdmin.php:278
454
  msgid "Need Help?"
455
  msgstr ""
456
 
457
+ #: app/admin/BPMediaAdmin.php:280
458
  msgid "Help the development keep going."
459
  msgstr ""
460
 
461
+ #: app/admin/BPMediaAdmin.php:281
462
  msgid "Help us release more amazing features faster. Consider making a donation to our consistent efforts."
463
  msgstr ""
464
 
465
+ #: app/admin/BPMediaAdmin.php:282
466
  msgid "Donate"
467
  msgstr ""
468
 
469
+ #: app/admin/BPMediaAdmin.php:285
470
  msgid "BuddyPress Media Kaltura"
471
  msgstr ""
472
 
473
+ #: app/admin/BPMediaAdmin.php:285
474
  msgid "BPM-Kaltura"
475
  msgstr ""
476
 
477
+ #: app/admin/BPMediaAdmin.php:285
478
  msgid "Add support for Kaltura.com/Kaltura-CE based video conversion support"
479
  msgstr ""
480
 
481
+ #: app/admin/BPMediaAdmin.php:286
482
  msgid "BuddyPress Media FFMPEG"
483
  msgstr ""
484
 
485
+ #: app/admin/BPMediaAdmin.php:286
486
  msgid "BPM-FFMPEG"
487
  msgstr ""
488
 
489
+ #: app/admin/BPMediaAdmin.php:286
490
  msgid "Add FFMEG-based audio/video conversion support"
491
  msgstr ""
492
 
493
+ #: app/admin/BPMediaAdmin.php:288
494
  msgid "Are you a developer?"
495
  msgstr ""
496
 
497
+ #: app/admin/BPMediaAdmin.php:289
498
  #, php-format
499
  msgid "If you are developing a BuddyPress Media addon we would like to include it in above list. We can also help you sell them. <a href=\"%s\">More info!</a>"
500
  msgstr ""
501
 
502
+ #: app/admin/BPMediaAdmin.php:290
503
  msgid "Premium Addons"
504
  msgstr ""
505
 
506
+ #: app/admin/BPMediaAdmin.php:293
507
  msgid "Latest News"
508
  msgstr ""
509
 
510
+ #: app/main/BuddyPressMedia.php:59
511
+ msgid "BuddyPress is not installed."
512
+ msgstr ""
513
+
514
+ #: app/main/BuddyPressMedia.php:60
515
+ #, php-format
516
+ msgid "To use BuddyPress Media, <a href=\"%s\" target=\"_blank\">BuddyPress</a> must be installed first."
517
+ msgstr ""
518
+
519
+ #: app/main/BuddyPressMedia.php:161
520
  msgid "Photos"
521
  msgstr ""
522
 
523
+ #: app/main/BuddyPressMedia.php:164
524
  msgid "Photo"
525
  msgstr ""
526
 
527
+ #: app/main/BuddyPressMedia.php:167
528
  msgid "Videos"
529
  msgstr ""
530
 
531
+ #: app/main/BuddyPressMedia.php:173
532
+ #: app/main/BuddyPressMedia.php:176
533
  msgid "Music"
534
  msgstr ""
535
 
536
+ #: app/main/BuddyPressMedia.php:179
537
  msgid "Albums"
538
  msgstr ""
539
 
540
+ #: app/main/BuddyPressMedia.php:182
541
  msgid "Album"
542
  msgstr ""
543
 
544
+ #: app/main/BuddyPressMedia.php:185
545
  msgid "Upload"
546
  msgstr ""
547
 
548
+ #: app/main/BuddyPressMedia.php:280
549
  #, php-format
550
  msgid "The BuddyPress version installed is an older version and is not supported, please update BuddyPress to use BuddyPress Media Plugin.<a class=\"alignright\" href=\"%1$s\">X</a>"
551
  msgstr ""
552
 
553
+ #: app/main/BuddyPressMedia.php:285
554
  #, php-format
555
  msgid "You have not installed BuddyPress. Please install latest version of BuddyPress to use BuddyPress Media plugin.<a class=\"alignright\" href=\"%1$s\">X</a>"
556
  msgstr ""
557
 
558
  #: app/main/profile/BPMediaTemplate.php:18
559
+ #: app/main/profile/BPMediaTemplate.php:182
560
  msgid "Select Album"
561
  msgstr ""
562
 
563
+ #: app/main/profile/BPMediaTemplate.php:53
564
+ msgid "+ Create New Album"
 
565
  msgstr ""
566
 
567
+ #: app/main/profile/BPMediaTemplate.php:59
568
+ #: app/main/profile/BPMediaTemplate.php:218
569
+ msgid "Create"
570
  msgstr ""
571
 
572
+ #: app/main/profile/BPMediaTemplate.php:60
573
+ msgid "Cancel"
574
  msgstr ""
575
 
576
+ #: app/main/profile/BPMediaTemplate.php:69
577
  msgid "Drop files here"
578
  msgstr ""
579
 
580
+ #: app/main/profile/BPMediaTemplate.php:70
581
  msgid " or "
582
  msgstr ""
583
 
584
+ #: app/main/profile/BPMediaTemplate.php:71
585
  msgid "Select Files"
586
  msgstr ""
587
 
588
+ #: app/main/profile/BPMediaTemplate.php:157
589
+ msgid "Show More"
590
+ msgstr ""
591
+
592
+ #: app/main/profile/BPMediaTemplate.php:183
593
+ #: app/main/profile/BPMediaTemplate.php:211
594
+ msgid "x"
595
+ msgstr ""
596
+
597
+ #: app/main/profile/BPMediaTemplate.php:203
598
+ msgid "Select"
599
+ msgstr ""
600
+
601
+ #: app/main/profile/BPMediaTemplate.php:204
602
+ #: app/main/profile/BPMediaTemplate.php:210
603
+ msgid "Create Album"
604
+ msgstr ""
605
+
606
+ #: app/main/profile/BPMediaTemplate.php:214
607
+ msgid "Album Name"
608
+ msgstr ""
609
+
610
+ #: app/main/profile/BPMediaTemplate.php:222
611
+ msgid "Add Media"
612
+ msgstr ""
613
+
614
+ #: app/main/profile/BPMediaScreen.php:102
615
+ #: app/main/profile/BPMediaScreen.php:334
616
  msgid "The requested url does not exist"
617
  msgstr ""
618
 
619
+ #: app/main/profile/BPMediaScreen.php:113
620
  #, php-format
621
  msgid "%s List Page"
622
  msgstr ""
627
  msgid "Sorry, no %s were found."
628
  msgstr ""
629
 
630
+ #: app/main/profile/BPMediaScreen.php:278
631
  #, php-format
632
  msgid "Edit %s"
633
  msgstr ""
634
 
635
+ #: app/main/profile/BPMediaScreen.php:293
636
  #, php-format
637
  msgid "%s Title"
638
  msgstr ""
639
 
640
+ #: app/main/profile/BPMediaScreen.php:300
641
  #, php-format
642
  msgid "%s Description"
643
  msgstr ""
644
 
645
+ #: app/main/profile/BPMediaScreen.php:308
646
  msgid "Update"
647
  msgstr ""
648
 
649
+ #: app/main/profile/BPMediaScreen.php:309
650
  msgid "Back to Media File"
651
  msgstr ""
652
 
653
+ #: app/main/profile/BPMediaScreen.php:310
654
  msgid "Back to Media"
655
  msgstr ""
656
 
657
+ #: app/main/profile/BPMediaScreen.php:327
658
  msgid "You do not have access to this page."
659
  msgstr ""
660
 
661
+ #: app/main/profile/BPMediaScreen.php:355
662
  msgid "Media deleted successfully"
663
  msgstr ""
664
 
665
+ #: app/main/profile/BPMediaUploadScreen.php:28
666
  msgid "Upload Media"
667
  msgstr ""
668
 
669
+ #: app/main/profile/BPMediaUploadScreen.php:70
670
  msgid "You are not allowed to be here"
671
  msgstr ""
672
 
673
+ #: app/main/profile/BPMediaUploadScreen.php:92
674
+ #: app/main/profile/BPMediaUploadScreen.php:116
675
  msgid "File uploaded is not supported"
676
  msgstr ""
677
 
678
+ #: app/main/profile/BPMediaUploadScreen.php:99
679
  msgid "Image uploads are disabled"
680
  msgstr ""
681
 
682
+ #: app/main/profile/BPMediaUploadScreen.php:105
683
  msgid "Video uploads are disabled"
684
  msgstr ""
685
 
686
+ #: app/main/profile/BPMediaUploadScreen.php:111
687
  msgid "Audio uploads are disabled"
688
  msgstr ""
689
 
690
+ #: app/main/profile/BPMediaUploadScreen.php:129
691
  msgid "Upload Successful"
692
  msgstr ""
693
 
694
+ #: app/main/profile/BPMediaUploadScreen.php:134
695
  msgid "You did not specified a file to upload"
696
  msgstr ""
697
 
698
+ #: app/main/profile/BPMediaAlbumScreen.php:86
699
+ msgid "Rename Album"
700
+ msgstr ""
701
+
702
+ #: app/main/profile/BPMediaAlbumScreen.php:86
703
+ msgid "Rename"
704
+ msgstr ""
705
+
706
+ #: app/main/profile/BPMediaAlbumScreen.php:87
707
+ msgid "Delete"
708
+ msgstr ""
709
+
710
+ #: app/main/profile/BPMediaAlbumScreen.php:106
711
  msgid "Sorry, no media items were found in this album."
712
  msgstr ""
713
 
714
+ #: app/main/profile/BPMediaAlbum.php:60
715
  msgid "Sorry, the requested album does not exist."
716
  msgstr ""
717
 
718
+ #: app/main/group/BPMediaGroupElementExtension.php:68
719
  msgid "Sorry, the requested media does not belong to the group"
720
  msgstr ""
721
 
722
+ #: app/main/group/BPMediaGroup.php:180
723
  msgid "Media Settings"
724
  msgstr ""
725
 
771
  msgstr ""
772
 
773
  #: app/main/widgets/BPMediaPopularMedia.php:16
774
+ msgid "Popular BuddyPress Media"
775
+ msgstr ""
776
+
777
+ #: app/main/widgets/BPMediaPopularMedia.php:19
778
+ #: app/main/widgets/BPMediaPopularMedia.php:28
779
+ #: app/main/widgets/BPMediaRecentMedia.php:19
780
+ #: app/main/widgets/BPMediaRecentMedia.php:28
781
+ #, php-format
782
+ msgid "%1$s will be <strong>deprecated</strong> from version %2$s! Use %3$s instead."
783
+ msgstr ""
784
+
785
+ #: app/main/widgets/BPMediaPopularMedia.php:36
786
+ #: app/main/widgets/BPMediaWidget.php:254
787
  msgid "Popular Media"
788
  msgstr ""
789
 
790
+ #: app/main/widgets/BPMediaPopularMedia.php:47
791
  msgid "comments"
792
  msgstr ""
793
 
794
+ #: app/main/widgets/BPMediaPopularMedia.php:48
795
  msgid "Views"
796
  msgstr ""
797
 
798
+ #: app/main/widgets/BPMediaPopularMedia.php:78
799
  msgid "No popular media found"
800
  msgstr ""
801
 
802
+ #: app/main/widgets/BPMediaPopularMedia.php:100
803
+ #: app/main/widgets/BPMediaWidget.php:257
804
+ #: app/main/widgets/BPMediaRecentMedia.php:212
805
  msgid "Title:"
806
  msgstr ""
807
 
808
+ #: app/main/widgets/BPMediaPopularMedia.php:103
809
+ #: app/main/widgets/BPMediaWidget.php:260
810
+ #: app/main/widgets/BPMediaRecentMedia.php:215
811
  msgid "Number of posts to show:"
812
  msgstr ""
813
 
814
+ #: app/main/widgets/BPMediaWidget.php:11
815
+ msgid "The most recent/popular media uploaded on your site"
816
  msgstr ""
817
 
818
+ #: app/main/widgets/BPMediaWidget.php:12
819
+ msgid "BuddyPress Media Widget"
820
+ msgstr ""
821
+
822
+ #: app/main/widgets/BPMediaWidget.php:37
823
+ #, php-format
824
+ msgid "Please configure this widget <a href=\"%s\" target=\"_blank\" title=\"Configure BuddyPress Media Widget\">here</a>."
825
  msgstr ""
826
 
827
+ #: app/main/widgets/BPMediaWidget.php:43
828
+ #: app/main/widgets/BPMediaRecentMedia.php:47
829
  msgid "All"
830
  msgstr ""
831
 
832
+ #: app/main/widgets/BPMediaWidget.php:96
833
+ #: app/main/widgets/BPMediaWidget.php:136
834
+ #: app/main/widgets/BPMediaWidget.php:176
835
+ #: app/main/widgets/BPMediaWidget.php:216
836
+ msgid "No "
837
+ msgstr ""
838
+
839
+ #: app/main/widgets/BPMediaWidget.php:251
840
+ msgid "Widget Type:"
841
+ msgstr ""
842
+
843
+ #: app/main/widgets/BPMediaWidget.php:253
844
+ #: app/main/widgets/BPMediaRecentMedia.php:36
845
+ msgid "Recent Media"
846
+ msgstr ""
847
+
848
+ #: app/main/widgets/BPMediaWidget.php:264
849
+ msgid "Show All"
850
+ msgstr ""
851
+
852
+ #: app/main/widgets/BPMediaWidget.php:267
853
+ msgid "Show Photos"
854
+ msgstr ""
855
+
856
+ #: app/main/widgets/BPMediaWidget.php:270
857
+ msgid "Show Music"
858
+ msgstr ""
859
+
860
+ #: app/main/widgets/BPMediaWidget.php:274
861
+ msgid "Show Videos"
862
+ msgstr ""
863
+
864
+ #: app/main/widgets/BPMediaRecentMedia.php:15
865
+ msgid "The most recent media uploaded on your site"
866
+ msgstr ""
867
+
868
+ #: app/main/widgets/BPMediaRecentMedia.php:16
869
+ msgid "Recent BuddyPress Media"
870
+ msgstr ""
871
+
872
+ #: app/main/widgets/BPMediaRecentMedia.php:80
873
  msgid "No recent media found"
874
  msgstr ""
875
 
876
+ #: app/main/widgets/BPMediaRecentMedia.php:117
877
  msgid "No recent photo found"
878
  msgstr ""
879
 
880
+ #: app/main/widgets/BPMediaRecentMedia.php:153
881
  msgid "No recent audio found"
882
  msgstr ""
883
 
884
+ #: app/main/widgets/BPMediaRecentMedia.php:189
885
  msgid "No recent video found"
886
  msgstr ""
887
 
888
+ #: app/main/includes/BPMediaHostWordpress.php:48
889
  msgid "Sorry, the requested media does not exist."
890
  msgstr ""
891
 
892
+ #: app/main/includes/BPMediaHostWordpress.php:90
893
  msgid "Error Uploading File"
894
  msgstr ""
895
 
896
+ #: app/main/includes/BPMediaHostWordpress.php:118
897
  msgid "MP4 file you have uploaded is corrupt."
898
  msgstr ""
899
 
900
+ #: app/main/includes/BPMediaHostWordpress.php:125
901
+ #: app/main/includes/BPMediaHostWordpress.php:130
902
  msgid "The MP4 file you have uploaded is using an unsupported video codec. Supported video codec is H.264."
903
  msgstr ""
904
 
905
+ #: app/main/includes/BPMediaHostWordpress.php:135
906
  msgid "The MP4 file you have uploaded is not a video file."
907
  msgstr ""
908
 
909
+ #: app/main/includes/BPMediaHostWordpress.php:147
910
  msgid "MP3 file you have uploaded is currupt."
911
  msgstr ""
912
 
913
+ #: app/main/includes/BPMediaHostWordpress.php:154
914
+ #: app/main/includes/BPMediaHostWordpress.php:159
915
  msgid "The MP3 file you have uploaded is using an unsupported audio format. Supported audio format is MP3."
916
  msgstr ""
917
 
918
+ #: app/main/includes/BPMediaHostWordpress.php:164
919
  msgid "The MP3 file you have uploaded is not an audio file."
920
  msgstr ""
921
 
922
+ #: app/main/includes/BPMediaHostWordpress.php:178
923
  msgid "Media File you have tried to upload is not supported. Supported media files are .jpg, .png, .gif, .mp3, .mov and .mp4."
924
  msgstr ""
925
 
926
+ #: app/main/includes/BPMediaHostWordpress.php:185
927
  msgid "Error creating attachment for the media file, please try again"
928
  msgstr ""
929
 
930
+ #: app/main/includes/BPMediaHostWordpress.php:256
931
  #, php-format
932
  msgid "%s uploaded a media."
933
  msgstr ""
934
 
935
+ #: app/main/includes/BPMediaHostWordpress.php:270
936
  msgid "Uploaded by "
937
  msgstr ""
938
 
939
+ #: app/main/includes/BPMediaHostWordpress.php:395
940
  #, php-format
941
  msgid "Comment <span>%s</span>"
942
  msgstr ""
943
 
944
+ #: app/main/includes/BPMediaHostWordpress.php:399
945
  msgid "Favorite"
946
  msgstr ""
947
 
948
+ #: app/main/includes/BPMediaHostWordpress.php:401
949
  msgid "Remove Favorite"
950
  msgstr ""
951
 
952
+ #: app/main/includes/BPMediaHostWordpress.php:420
953
  msgid "Post"
954
  msgstr ""
955
 
956
+ #: app/main/includes/BPMediaHostWordpress.php:420
957
  msgid "or press esc to cancel."
958
  msgstr ""
959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
960
  #: app/main/includes/BPMediaTemplateFunctions.php:28
961
  msgid "Media Title"
962
  msgstr ""
973
  msgid "Search Media..."
974
  msgstr ""
975
 
976
+ #: app/main/includes/BPMediaComponent.php:319
 
 
 
 
977
  msgid "Edit Album"
978
  msgstr ""
979
 
980
+ #: app/main/includes/BPMediaComponent.php:320
981
  msgid "New Album"
982
  msgstr ""
983
 
984
+ #: app/main/includes/BPMediaComponent.php:321
985
  msgid "All Albums"
986
  msgstr ""
987
 
988
+ #: app/main/includes/BPMediaComponent.php:322
989
  msgid "View Album"
990
  msgstr ""
991
 
992
+ #: app/main/includes/BPMediaComponent.php:323
993
  msgid "Search Albums"
994
  msgstr ""
995
 
996
+ #: app/main/includes/BPMediaComponent.php:324
997
  msgid "No album found"
998
  msgstr ""
999
 
1000
+ #: app/main/includes/BPMediaComponent.php:325
1001
  msgid "No album found in Trash"
1002
  msgstr ""
1003
 
1004
+ #: app/main/includes/BPMediaComponent.php:349
1005
  msgid "Add New Media"
1006
  msgstr ""
1007
 
1008
+ #: app/main/includes/BPMediaComponent.php:356
1009
  msgid "BuddyPress Media's Media Files"
1010
  msgstr ""
1011
 
1012
+ #: app/main/includes/BPMediaFunction.php:202
1013
  #, php-format
1014
  msgid "%1$s added new media in album %2$s"
1015
  msgstr ""
1016
 
1017
+ #: app/main/includes/BPMediaFilters.php:112
1018
+ #, php-format
1019
+ msgid "Delete %s"
1020
+ msgstr ""
1021
+
1022
+ #: app/main/includes/BPMediaFilters.php:320
1023
  msgid "Users"
1024
  msgstr ""
1025
 
1026
+ #: app/main/includes/BPMediaFilters.php:322
1027
  msgid "Total Photos"
1028
  msgstr ""
1029
 
1030
+ #: app/main/includes/BPMediaFilters.php:323
1031
  msgid "Total Videos"
1032
  msgstr ""
1033
 
1034
+ #: app/main/includes/BPMediaFilters.php:324
1035
  msgid "Total Audio"
1036
  msgstr ""
1037
 
1038
+ #: app/main/includes/BPMediaFilters.php:325
1039
  msgid "Total Albums"
1040
  msgstr ""
1041
 
1042
+ #: app/main/includes/BPMediaFilters.php:327
1043
  msgid "Groups"
1044
  msgstr ""
1045
 
1046
+ #: app/main/includes/BPMediaActions.php:143
1047
+ #: app/main/includes/BPMediaActions.php:269
1048
+ msgid "Featured"
1049
  msgstr ""
1050
 
1051
+ #: app/main/includes/BPMediaActions.php:144
1052
+ #: app/main/includes/BPMediaActions.php:274
1053
+ msgid "Remove Featured"
1054
  msgstr ""
1055
 
1056
+ #: app/main/includes/BPMediaActions.php:257
1057
+ msgid "Edit Media"
 
1058
  msgstr ""
1059
 
1060
+ #: app/main/includes/BPMediaActions.php:257
1061
+ msgid "Edit"
1062
  msgstr ""
1063
 
1064
+ #: app/main/includes/BPMediaActions.php:269
1065
+ #: app/main/includes/BPMediaActions.php:274
1066
+ msgid "Featured Media"
1067
  msgstr ""
1068
 
1069
+ #: app/main/includes/BPMediaActions.php:538
1070
  #, php-format
1071
  msgid "%1$s created an album %2$s"
1072
  msgstr ""
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.5
8
  Tested up to: 3.5
9
- Stable tag: 2.4.3
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
@@ -16,7 +16,7 @@ BuddyPress Media adds Photos, Music, Videos & Albums to your BuddyPress. Support
16
 
17
  = Important =
18
 
19
- BuddyPress Media now includes [full translation support](https://rtcamp.com/tutorials/buddypress-media-translation/). Head over to the [translation project](http://rtcamp.com/translate/projects/buddypress-media/) to contribute your translations. If you don't see the language of your choice, let us know in the support forum, we'll add it.
20
 
21
  = iOS6 Uploads =
22
 
@@ -32,9 +32,16 @@ There's a bug in iOS 6, due to which multiple image uploads won't work. It provi
32
  * HTML5 player (with fall back to flash/silverlight player support)
33
  * Automatic conversion of common audio & video formats to mp3/mp4. via [Kaltura Add-On](http://rtcamp.com/store/buddypress-media-kaltura/ "BuddyPress Media Kaltura Addon for Kaltura.com/Kaltura-CE/Kaltura On-Prem version") and [FFMPEG Add-On](http://rtcamp.com/store/buddypress-media-ffmpeg-converter/ "BuddyPress Media FFMPEG Addon")
34
 
 
 
 
 
 
35
  = Roadmap =
36
 
37
  * Activity-update form media upload
 
 
38
  * Paid membership plans, i.e. "Upload Quota" for buddypress members (in planning stage).
39
 
40
  = Demo =
@@ -80,6 +87,14 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
80
  == Changelog ==
81
 
82
  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.
 
 
 
 
 
 
 
 
83
  = 2.4.3 =
84
  * Fixed latest activity formatting.
85
  * Added auto-update for add-ons.
@@ -192,5 +207,5 @@ Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-medi
192
  * HTML5 Video Tag Support (with fallback)
193
 
194
  == Upgrade Notice ==
195
- =2.4.3=
196
- Fixed activity formatting and added support for addon updates.
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 3.5
8
  Tested up to: 3.5
9
+ Stable tag: 2.5
10
 
11
  Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
12
 
16
 
17
  = Important =
18
 
19
+ BuddyPress Media is now available in **Brazilian Portuguese**, **Spanish** and **Japanese**. BuddyPress Media includes [full translation support](https://rtcamp.com/tutorials/buddypress-media-translation/). Head over to the [translation project](http://rtcamp.com/translate/projects/buddypress-media/) to contribute your translations. If you don't see the language of your choice, let us know in the support forum, we'll add it.
20
 
21
  = iOS6 Uploads =
22
 
32
  * HTML5 player (with fall back to flash/silverlight player support)
33
  * Automatic conversion of common audio & video formats to mp3/mp4. via [Kaltura Add-On](http://rtcamp.com/store/buddypress-media-kaltura/ "BuddyPress Media Kaltura Addon for Kaltura.com/Kaltura-CE/Kaltura On-Prem version") and [FFMPEG Add-On](http://rtcamp.com/store/buddypress-media-ffmpeg-converter/ "BuddyPress Media FFMPEG Addon")
34
 
35
+ = Translations =
36
+ * [Brazilian Portuguese](https://rtcamp.com/translate/projects/buddypress-media/pt-br/default) translation by [Jose Fabiosan](http://profiles.wordpress.org/josefabiosan/) and [doutorsocrates](http://profiles.wordpress.org/doutorsocrates/)
37
+ * [Spanish](https://rtcamp.com/translate/projects/buddypress-media/es/default) translation by [Andrés Felipe](http://profiles.wordpress.org/naturalworldstm/)
38
+ * [Japanese](https://rtcamp.com/translate/projects/buddypress-media/ja/default) translation by [Tetsu Yamaoka](http://twitter.com/ytetsu)
39
+
40
  = Roadmap =
41
 
42
  * Activity-update form media upload
43
+ * Privacy Settings
44
+ * Importers for other media plugins
45
  * Paid membership plans, i.e. "Upload Quota" for buddypress members (in planning stage).
46
 
47
  = Demo =
87
  == Changelog ==
88
 
89
  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.
90
+ = 2.4.5 =
91
+ * Bug fixes for admin notices on multisite installs.
92
+ * Bug fixes for activity on multiple uploads.
93
+ * Updated upload UI. Now uploads are possible from all tabs.
94
+ * Fixed translation readiness.
95
+ * Added Brazilian Portuguese, Spanish and Japanese languages.
96
+ * Added Album renaming and deleting functionality.
97
+
98
  = 2.4.3 =
99
  * Fixed latest activity formatting.
100
  * Added auto-update for add-ons.
207
  * HTML5 Video Tag Support (with fallback)
208
 
209
  == Upgrade Notice ==
210
+ =2.5=
211
+ Album rename, delete. New languages. Better uploader.