rtMedia for WordPress, BuddyPress and bbPress - Version 3.2.7

Version Description

  • Update readme
  • Add support for simple file uploader in shortcode
Download this release

Release Info

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

Code changes from version 3.2.6 to 3.2.7

app/admin/RTMediaAdmin.php CHANGED
@@ -102,12 +102,14 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
102
  $results = $wpdb->get_results ( $sql );
103
  if ( $results ) {
104
  foreach ( $results as $media ) {
 
105
  ?>
106
  <tr>
107
  <td class = "b"> <?php echo $media->count; ?> </td>
108
  <td class = "t"><?php echo constant(strtoupper('RTMEDIA_'.$media->media_type.'_PLURAL_LABEL') ); ?></td>
109
  </tr>
110
  <?php
 
111
  }
112
  }
113
  ?>
@@ -1149,11 +1151,11 @@ if ( ! class_exists ( 'RTMediaAdmin' ) ) {
1149
  </script>
1150
  <?php
1151
  }
1152
-
1153
  function presstrends_plugin() {
1154
  // PressTrends Account API Key
1155
- $api_key = 'o3w063qppl7ha022jyc3bjpi7usrmczho';
1156
- $auth = '';
1157
  // Start of Metrics
1158
  global $wpdb;
1159
  $data = get_transient( 'presstrends_cache_data' );
102
  $results = $wpdb->get_results ( $sql );
103
  if ( $results ) {
104
  foreach ( $results as $media ) {
105
+ if( defined( strtoupper( 'RTMEDIA_'.$media->media_type.'_PLURAL_LABEL' ) ) ) {
106
  ?>
107
  <tr>
108
  <td class = "b"> <?php echo $media->count; ?> </td>
109
  <td class = "t"><?php echo constant(strtoupper('RTMEDIA_'.$media->media_type.'_PLURAL_LABEL') ); ?></td>
110
  </tr>
111
  <?php
112
+ }
113
  }
114
  }
115
  ?>
1151
  </script>
1152
  <?php
1153
  }
1154
+
1155
  function presstrends_plugin() {
1156
  // PressTrends Account API Key
1157
+ $api_key = 'djbzu1no2tdz4qq4u2fpgaemuup2zzmtjulb';
1158
+ $auth = 'o3w063qppl7ha022jyc3bjpi7usrmczho';
1159
  // Start of Metrics
1160
  global $wpdb;
1161
  $data = get_transient( 'presstrends_cache_data' );
app/assets/js/rtMedia.backbone.js CHANGED
@@ -394,11 +394,15 @@ jQuery(function($) {
394
  uploaderObj.uploadFiles(e);
395
  });
396
  $("#rtMedia-start-upload").hide();
397
-
398
  jQuery(document).on('click', '#rtm_show_upload_ui', function(){
399
  jQuery('#rtm-media-gallery-uploader').slideToggle();
400
  uploaderObj.uploader.refresh();//refresh the uploader for opera/IE fix on media page
401
  });
 
 
 
 
402
  }
403
 
404
 
394
  uploaderObj.uploadFiles(e);
395
  });
396
  $("#rtMedia-start-upload").hide();
397
+
398
  jQuery(document).on('click', '#rtm_show_upload_ui', function(){
399
  jQuery('#rtm-media-gallery-uploader').slideToggle();
400
  uploaderObj.uploader.refresh();//refresh the uploader for opera/IE fix on media page
401
  });
402
+ } else {
403
+ jQuery(document).on('click', '#rtm_show_upload_ui', function(){
404
+ jQuery('#rtm-media-gallery-uploader').slideToggle();
405
+ });
406
  }
407
 
408
 
app/main/controllers/media/RTMediaMedia.php CHANGED
@@ -499,7 +499,7 @@ class RTMediaMedia {
499
  '%s added a %s', '%s added %d %s.', $count, 'rtmedia'
500
  ), $username, $media->media_type, $media_str
501
  );
502
-
503
  $activity_args = array(
504
  'action' => $action,
505
  'content' => $activity_content,
499
  '%s added a %s', '%s added %d %s.', $count, 'rtmedia'
500
  ), $username, $media->media_type, $media_str
501
  );
502
+ $action = apply_filters('rtmedia_buddypress_action_text_fitler',$action,$username,$count,$user->user_nicename,$media->media_type);
503
  $activity_args = array(
504
  'action' => $action,
505
  'content' => $activity_content,
app/main/controllers/upload/RTMediaUploadEndpoint.php CHANGED
@@ -79,6 +79,21 @@ class RTMediaUploadEndpoint {
79
 
80
  }
81
  if(isset($this->upload['rtmedia_simple_file_upload']) && $this->upload['rtmedia_simple_file_upload'] == true ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  return $media;
83
  }
84
  }
@@ -97,8 +112,14 @@ class RTMediaUploadEndpoint {
97
  }
98
  }
99
 
 
100
  // Ha ha ha
101
  ob_end_clean ();
 
 
 
 
 
102
  if ( isset ( $_POST[ "rtmedia_update" ] ) && $_POST[ "rtmedia_update" ] == "true" ) {
103
  if(preg_match('/(?i)msie [1-9]/',$_SERVER['HTTP_USER_AGENT'])) { // if IE(<=9) set content type = text/plain
104
  header ( 'Content-type: text/plain' );
79
 
80
  }
81
  if(isset($this->upload['rtmedia_simple_file_upload']) && $this->upload['rtmedia_simple_file_upload'] == true ) {
82
+ $redirect_url = "";
83
+ if ( isset ( $_POST[ "redirect" ] ) ) {
84
+ if ( intval ( $_POST[ "redirect" ] ) > 1 ) {
85
+ //bulkurl
86
+ if ( $media[ 0 ]->context == "group" ) {
87
+ $redirect_url = trailingslashit ( get_rtmedia_group_link ( $media[ 0 ]->context_id ) ) . RTMEDIA_MEDIA_SLUG;
88
+ } else {
89
+ $redirect_url = trailingslashit ( get_rtmedia_user_link ( $media[ 0 ]->media_author ) ) . RTMEDIA_MEDIA_SLUG;
90
+ }
91
+ } else {
92
+ $redirect_url = get_rtmedia_permalink ( $media[ 0 ]->id );
93
+ }
94
+ $redirect_url = apply_filters("rtmedia_simple_file_upload_redirect_url_filter",$redirect_url);
95
+ wp_safe_redirect($redirect_url);
96
+ }
97
  return $media;
98
  }
99
  }
112
  }
113
  }
114
 
115
+
116
  // Ha ha ha
117
  ob_end_clean ();
118
+ //check for simpe
119
+ /**
120
+ * if(redirect)
121
+ *
122
+ */
123
  if ( isset ( $_POST[ "rtmedia_update" ] ) && $_POST[ "rtmedia_update" ] == "true" ) {
124
  if(preg_match('/(?i)msie [1-9]/',$_SERVER['HTTP_USER_AGENT'])) { // if IE(<=9) set content type = text/plain
125
  header ( 'Content-type: text/plain' );
app/main/routers/RTMediaRouter.php CHANGED
@@ -95,7 +95,7 @@ class RTMediaRouter {
95
  // if it is not our route, return early
96
  if ( ! $this->is_template () )
97
  return;
98
-
99
  status_header ( 200 );
100
  //set up the query variables
101
  $this->set_query_vars ();
@@ -121,7 +121,7 @@ class RTMediaRouter {
121
  // otherwise, apply a filter to the template,
122
  // pass the template and slug to the function hooking here
123
  // so it can load a custom template
124
-
125
  $template_load = new RTMediaTemplate();
126
  global $new_rt_template;
127
  $new_rt_template = $template_load->set_template ( $template );
@@ -136,16 +136,16 @@ class RTMediaRouter {
136
  strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest'
137
  ){
138
  $rt_ajax_request = true;
139
- }
140
  if($rt_ajax_request)
141
  return $new_rt_template;
142
  if( function_exists ('bp_set_theme_compat_active'))
143
  bp_set_theme_compat_active( apply_filters( 'rtmedia_main_template_set_theme_compat', true ) );
144
  add_filter( 'the_content', array(&$this,'rt_replace_the_content') );
145
  $this ->rt_theme_compat_reset_post();
146
-
147
  return apply_filters( 'rtmedia_main_template_include', $template, $new_rt_template );
148
-
149
  }
150
 
151
  /**
@@ -163,7 +163,7 @@ class RTMediaRouter {
163
  load_template($new_rt_template);
164
  return '';
165
  $new_content = apply_filters( 'bp_replace_the_content', $content );
166
-
167
  // Juggle the content around and try to prevent unsightly comments
168
  if ( !empty( $new_content ) && ( $new_content !== $content ) ) {
169
 
@@ -193,8 +193,8 @@ function rt_theme_compat_reset_post( $args = array() ) {
193
  break;
194
  }
195
  }
196
- }else if( isset($rtmedia_query->media) && count($rtmedia_query->media) == 1 ){
197
- $wp_query->post = get_post($rtmedia_query->media[0]->media_id);
198
  }
199
  $dummy = wp_parse_args( $args, array(
200
  'ID' => $wp_query->post->ID,
@@ -228,7 +228,7 @@ function rt_theme_compat_reset_post( $args = array() ) {
228
  'is_archive' => false,
229
  'is_tax' => false,
230
  ) );
231
- } else {
232
  $dummy = wp_parse_args( $args, array(
233
  'ID' => 0,
234
  'post_status' => 'public',
@@ -284,8 +284,8 @@ function rt_theme_compat_reset_post( $args = array() ) {
284
  }
285
  }
286
  }
287
-
288
-
289
  // Bail if dummy post is empty
290
  if ( empty( $dummy ) ) {
291
  return;
@@ -318,7 +318,7 @@ function rt_theme_compat_reset_post( $args = array() ) {
318
  status_header( 200 );
319
  }
320
 
321
-
322
  }
323
 
324
 
95
  // if it is not our route, return early
96
  if ( ! $this->is_template () )
97
  return;
98
+
99
  status_header ( 200 );
100
  //set up the query variables
101
  $this->set_query_vars ();
121
  // otherwise, apply a filter to the template,
122
  // pass the template and slug to the function hooking here
123
  // so it can load a custom template
124
+
125
  $template_load = new RTMediaTemplate();
126
  global $new_rt_template;
127
  $new_rt_template = $template_load->set_template ( $template );
136
  strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest'
137
  ){
138
  $rt_ajax_request = true;
139
+ }
140
  if($rt_ajax_request)
141
  return $new_rt_template;
142
  if( function_exists ('bp_set_theme_compat_active'))
143
  bp_set_theme_compat_active( apply_filters( 'rtmedia_main_template_set_theme_compat', true ) );
144
  add_filter( 'the_content', array(&$this,'rt_replace_the_content') );
145
  $this ->rt_theme_compat_reset_post();
146
+
147
  return apply_filters( 'rtmedia_main_template_include', $template, $new_rt_template );
148
+
149
  }
150
 
151
  /**
163
  load_template($new_rt_template);
164
  return '';
165
  $new_content = apply_filters( 'bp_replace_the_content', $content );
166
+
167
  // Juggle the content around and try to prevent unsightly comments
168
  if ( !empty( $new_content ) && ( $new_content !== $content ) ) {
169
 
193
  break;
194
  }
195
  }
196
+ }else if( isset($rtmedia_query->media) && count($rtmedia_query->media) == 1 && $rtmedia_query->media ){
197
+ $wp_query->post = get_post($rtmedia_query->media[0]->media_id);
198
  }
199
  $dummy = wp_parse_args( $args, array(
200
  'ID' => $wp_query->post->ID,
228
  'is_archive' => false,
229
  'is_tax' => false,
230
  ) );
231
+ } else {
232
  $dummy = wp_parse_args( $args, array(
233
  'ID' => 0,
234
  'post_status' => 'public',
284
  }
285
  }
286
  }
287
+
288
+
289
  // Bail if dummy post is empty
290
  if ( empty( $dummy ) ) {
291
  return;
318
  status_header( 200 );
319
  }
320
 
321
+
322
  }
323
 
324
 
index.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
  Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
- Version: 3.2.6
8
  Author: rtCamp
9
  Text Domain: rtmedia
10
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
4
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
5
  Plugin URI: http://rtcamp.com/buddypress-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
6
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
7
+ Version: 3.2.7
8
  Author: rtCamp
9
  Text Domain: rtmedia
10
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
readme.txt CHANGED
@@ -6,74 +6,83 @@ License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 3.6
8
  Tested up to: WordPress 3.7 + BuddyPress 1.8.1
9
- Stable tag: 3.2.6
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
 
13
  == Description ==
14
 
15
- > **Important Update**
16
  >
17
- > If you are looking for more features, 1-on-1 support, please consider [rtMedia-PRO](https://rtcamp.com/store/rtmedia-pro/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media).
18
- >
19
- > [rtMedia-PRO](https://rtcamp.com/store/rtmedia-pro/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) is premiun & open-source (and of-course GPL too).
20
 
21
- rtMedia is **only** complete media solution for WordPress, BuddyPress and bbPress.
22
 
23
  Built with a mobile-first approach, it works on mobile/tablet devices (like iPhone/iPad, Android).
24
 
25
  = Live Demos =
26
 
27
- In case you are in hurry, you can skip the long list of features in subsequent sections and just explore live demos!
28
 
29
  * [rtMedia Demo](http://demo.rtcamp.com/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media)
30
  * [rtMedia with Kaltura Add-on](http://demo.rtcamp.com/rtmedia-kaltura/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) (Uses Kaltura.com account for video conversion)
31
  * [rtMedia with FFMPEG Add-on](http://demo.rtcamp.com/rtmedia-ffmpeg/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) (Uses FFMPEG-based video conversion)
32
 
 
 
 
 
 
33
 
34
  = rtMedia Features =
35
 
36
- * **[Free Audio/Video conversion](http://rtcamp.com/rtmedia/addons/audio-video-encoding-service/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - rtCamp (company behind rtMedia) has setup dedicated serves to provide free audio/video encoding services for all sites running rtMedia.
37
  * **WordPress Integration** - Display media on WordPress author pages (eg: http://demo.rtcamp.com/rtmedia/author/admin/media/)
38
- * **BuddyPress Integration** - Adds media tab under to BuddyPress Profiles & Groups.
39
- * **BuddyPress Activity Stream** - Attach media to activity status updates like you do it on Facebook.
40
- * **bbPress Integration** - Integrates with profiles. Attachment support for topics and replies is coming soon.
41
- * **Albums** - To organise media into manageable collection. BuddyPress-Group albums supports collaboration.
42
- * **Global albums** - can be used to define preset albums. "Wall Posts" is an example of global album.
43
- * **Responsive** - Album Slideshow (Lightbox), video-player, uploads works on mobiles & tablets. Support for swipe-guesture.
44
- * **Privacy** - control who can see media files, albums and buddypress-activities.
45
  * **Templating system** - Completely customise rtMedia by modifying the template files. Just copy over the template folder to your theme.
46
  * **[Featured Media](http://rtcamp.com/rtmedia/docs/admin/featured-media/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Featured Media documentation")** - This can be used for facebook-style cover photo on profiles.
47
- * **[rtMedia Uploader](http://rtcamp.com/rtmedia/docs/common/shortcodes/uploader-shortcode/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media)** - Use `[rtmedia_uploader]` shortcode or `<?php rtmedia_uploader() ?>` template tag, to show drag-n-drop uploader in any WordPress area (post, page, custom-post, etc).
48
- * **[rtMedia Gallery](http://rtcamp.com/rtmedia/docs/common/shortcodes/gallery-shortcode/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media)** - Display media gallery anywhere on your site using `[rtmedia_gallery]` shortcode or `<?php rtmedia_gallery ?>` template tag.
49
 
50
  = rtMedia-PRO Features =
51
 
52
- * **Sidebar Widgets** - Add sidebar widgets for recent, most popular media gallery and quick-upload.
53
- * **Post-editor Button** - Add tinymce button to make it easy to insert gallery and uploader on any wordpress page.
54
- * **Star-Rating Option** - Classic 5-star rating option. You can choose between facebook-style "like" or "star-rating".
 
 
 
 
 
 
55
  * **Global Albums** - Create list of predefined albums. Optionally disable new album-creation by user.
56
  * **Premium 1-on-1 support** - From backend of your WordPress, you can send raise direct support requests, feature requests, report bugs.
57
- * **Automatic Updates** - rtMedia-PRO will see more than one weekly release on average. So automatic-updates is must and its already there.
58
 
59
  = Audio/Video Conversion =
60
 
61
  rtMedia has 3 premium solutions to take care of audio/video conversion.
62
 
63
- * **[Audio/Video Encoding Service](http://rtcamp.com/rtmedia/addons/audio-video-encoding-service/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - If free plan is not enough for you, there is monthly subscription service also. Easiest to setup.
64
  * **[FFMPEG-Addon](http://rtcamp.com/store/rtmedia-ffmpeg/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - Requires FFMPEG & Media-Node installed on a VPS/Dedicated server.
65
  * **[Kaltura-Addon](http://rtcamp.com/store/rtmedia-kaltura/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Kaltura Addon for Kaltura.com/Kaltura-CE/Kaltura On-Prem version")** - Requires a Kaltura.com account or Kaltura-CE or Kaltura-on-Prem server.
66
 
 
 
67
  = rtMedia Premium Addons for Photos =
68
 
69
- * **[Instagram-Effects](http://rtcamp.com/store/rtmedia-instagram/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - Users can apply Instagram like filters to photos.
70
- * **[Photo-Tagging](http://rtcamp.com/store/rtmedia-photo-tagging/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - Users can tag their friends/other users in photos.
71
 
72
 
73
  = *Coming Soon* - Premium Addons on the way =
74
 
75
  * **Watermark Addon** - Adds advanced, customised watermark text to photos. Supports Google Fonts. *(Development completed. Under testing)*
76
- * **Membership Addon** - Users can be given controlled upload quotas and media type access on their profiles and groups. *(planning stage)*
77
 
78
 
79
  = Important Links =
@@ -100,11 +109,14 @@ Read rtMedia [Documentation](http://rtcamp.com/rtmedia/docs/?utm_source=readme&u
100
 
101
  == Screenshots ==
102
 
103
- Please visit [rtMedia's Features page](http://rtcamp.com/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page").
 
 
 
104
 
105
  1. Media Settings
106
  2. Privacy Settings
107
- 3. Builtin Support
108
  4. Media View
109
  5. Album View
110
  6. Uploader
@@ -119,9 +131,13 @@ Please visit [rtMedia's Features page](http://rtcamp.com/rtmedia/?utm_source=rea
119
 
120
  Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
121
 
 
 
 
 
122
  = 3.2.6 =
123
- * Updated dutch transalation.
124
- * Fix WordPress template issue.
125
 
126
 
127
  = 3.2.5 =
@@ -151,12 +167,12 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
151
  * Translatable message and button in activity stream and single media view thanks to [jonasnick](https://github.com/jonasnick)
152
  * Limits items posted in activity feed thanks to [jarretc](https://github.com/jarretc)
153
  * bug fixed for album deletion
154
- * Fix count issue on update
155
 
156
  = 3.1.6 =
157
  * Removed download button enable/disable settings
158
  * Bug fixed for translation
159
- * added support for Playlists and its required filters
160
 
161
  = 3.1.5 =
162
  * Ignore privacy if admin user.
@@ -586,8 +602,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
586
 
587
  == Upgrade Notice ==
588
 
589
- = 3.2.6 =
590
- Requires BuddyPress 1.7 or higher, if using BuddyPress. Updated translation files and bug fixes.
591
 
592
  == Sponsors ==
593
 
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: WordPress 3.6
8
  Tested up to: WordPress 3.7 + BuddyPress 1.8.1
9
+ Stable tag: 3.2.7
10
 
11
  Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
12
 
13
  == Description ==
14
 
15
+ > **rtMedia-PRO**
16
  >
17
+ > If you are looking for more features, priority support, please consider [rtMedia-PRO](https://rtcamp.com/store/rtmedia-pro/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media). [rtMedia-PRO](https://rtcamp.com/store/rtmedia-pro/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) is premiun & open-source (and of-course GPL too).
 
 
18
 
19
+ rtMedia is the **only** complete media solution for WordPress, BuddyPress and bbPress.
20
 
21
  Built with a mobile-first approach, it works on mobile/tablet devices (like iPhone/iPad, Android).
22
 
23
  = Live Demos =
24
 
25
+ If you're in a hurry, you can skip the long list of features in subsequent sections and just explore live demos!
26
 
27
  * [rtMedia Demo](http://demo.rtcamp.com/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media)
28
  * [rtMedia with Kaltura Add-on](http://demo.rtcamp.com/rtmedia-kaltura/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) (Uses Kaltura.com account for video conversion)
29
  * [rtMedia with FFMPEG Add-on](http://demo.rtcamp.com/rtmedia-ffmpeg/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media) (Uses FFMPEG-based video conversion)
30
 
31
+ = Video Tour =
32
+
33
+ Since rtMedia has many features video doesn't include all features:
34
+
35
+ http://www.youtube.com/watch?v=dJrykKQGDcs
36
 
37
  = rtMedia Features =
38
 
39
+ * **[Free Audio/Video conversion](http://rtcamp.com/rtmedia/addons/audio-video-encoding-service/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Free Audio/Video Encoding Service")** - rtCamp (company behind rtMedia) has setup dedicated serves to provide free audio/video encoding services for all sites running rtMedia.
40
  * **WordPress Integration** - Display media on WordPress author pages (eg: http://demo.rtcamp.com/rtmedia/author/admin/media/)
41
+ * **BuddyPress Integration** - Find a new media tab under BuddyPress Profiles & Groups.
42
+ * **BuddyPress Activity Stream** - Attach media to activity status updates just like Facebook.
43
+ * **Albums** - Organise media into manageable collections. BuddyPress Group albums support collaboration.
44
+ * **Responsive** - Album Slideshow (Lightbox), video player, uploads work on mobiles & tablets. Support for swipe guestures.
45
+ * **Privacy** - Control who can see media files, albums and BuddyPress activities.
 
 
46
  * **Templating system** - Completely customise rtMedia by modifying the template files. Just copy over the template folder to your theme.
47
  * **[Featured Media](http://rtcamp.com/rtmedia/docs/admin/featured-media/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Featured Media documentation")** - This can be used for facebook-style cover photo on profiles.
48
+ * **[rtMedia Uploader](http://rtcamp.com/rtmedia/docs/common/shortcodes/uploader-shortcode/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Uploader")** - Use `[rtmedia_uploader]` shortcode or `<?php rtmedia_uploader() ?>` template tag, to show drag-n-drop uploader in any WordPress area (post, page, custom-post, etc).
49
+ * **[rtMedia Gallery](http://rtcamp.com/rtmedia/docs/common/shortcodes/gallery-shortcode/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Gallery")** - Display media gallery anywhere on your site using `[rtmedia_gallery]` shortcode or `<?php rtmedia_gallery ?>` template tag.
50
 
51
  = rtMedia-PRO Features =
52
 
53
+ * **bbPress Integration** - Integrates with profiles. Also adds attachment support for topics and replies.
54
+ * **Moderation Feature** - "Report Abuse" button for users. Interface to manage reported media and optionally block users from future uploads.
55
+ * **MyCRED/CubePoints Integration** - You can reward users for media uploads. Out of box integration for MyCRED and CubePoints.
56
+ * **Document and other fie types support** - Support for PDF, PPT, DOC, XLS and any other file type you want to allow uploading.
57
+ * **Album Privacy** - Album-level privacy makes it easy to manage content.
58
+ * **Audio Playlist** - Playlist support for media. Direct exporting of playlist to iTunes comptaible format supported.
59
+ * **Sidebar Widgets** - Add sidebar widgets for recent, most popular media gallery and quick upload.
60
+ * **Post-editor Button** - Includes tinymce button to insert gallery and uploader on any WordPress page.
61
+ * **Star-Rating Option** - Classic 5-star rating option. You can choose between Facebook-style "like" or "star-rating".
62
  * **Global Albums** - Create list of predefined albums. Optionally disable new album-creation by user.
63
  * **Premium 1-on-1 support** - From backend of your WordPress, you can send raise direct support requests, feature requests, report bugs.
64
+ * **Automatic Updates** - rtMedia-PRO will see releases at regular intervals. So automatic updates is a must and it's already there.
65
 
66
  = Audio/Video Conversion =
67
 
68
  rtMedia has 3 premium solutions to take care of audio/video conversion.
69
 
70
+ * **[Audio/Video Encoding Service](http://rtcamp.com/rtmedia/addons/audio-video-encoding-service/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Audio/Video Encoding Service")** - If free plan is not enough for you, there is monthly subscription service also. Easiest to setup.
71
  * **[FFMPEG-Addon](http://rtcamp.com/store/rtmedia-ffmpeg/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia FFMPEG Addon")** - Requires FFMPEG & Media-Node installed on a VPS/Dedicated server.
72
  * **[Kaltura-Addon](http://rtcamp.com/store/rtmedia-kaltura/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Kaltura Addon for Kaltura.com/Kaltura-CE/Kaltura On-Prem version")** - Requires a Kaltura.com account or Kaltura-CE or Kaltura-on-Prem server.
73
 
74
+ [Comparison of audio/video encoding solutions can be found here.](http://rtcamp.com/rtmedia/addons/compare-encoding-solutions/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Comparison of audio/video encoding solutions")
75
+
76
  = rtMedia Premium Addons for Photos =
77
 
78
+ * **[Instagram-Effects](http://rtcamp.com/store/rtmedia-instagram/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Instagram Addon")** - Users can apply Instagram like filters to photos.
79
+ * **[Photo-Tagging](http://rtcamp.com/store/rtmedia-photo-tagging/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "rtMedia Photo-Tagging Addon")** - Users can tag their friends/other users in photos.
80
 
81
 
82
  = *Coming Soon* - Premium Addons on the way =
83
 
84
  * **Watermark Addon** - Adds advanced, customised watermark text to photos. Supports Google Fonts. *(Development completed. Under testing)*
85
+ * **Membership Addon** - Users can be given controlled upload quotas and media type access on their profiles and groups. *(Planning stage)*
86
 
87
 
88
  = Important Links =
109
 
110
  == Screenshots ==
111
 
112
+ You can also check [rtMedia's Live Demo](http://demo.rtcamp.com/rtmedia/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Live Demo") or video below:
113
+
114
+ http://www.youtube.com/watch?v=dJrykKQGDcs
115
+
116
 
117
  1. Media Settings
118
  2. Privacy Settings
119
+ 3. Built-in Support
120
  4. Media View
121
  5. Album View
122
  6. Uploader
131
 
132
  Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_source=readme&utm_medium=plugin&utm_campaign=buddypress-media "Visit rtMedia's Features page") to get some details about future releases.
133
 
134
+ = 3.2.7 =
135
+ * Update readme
136
+ * Add support for simple file uploader in shortcode
137
+
138
  = 3.2.6 =
139
+ * Updated dutch translation.
140
+ * Fixed WordPress template issue.
141
 
142
 
143
  = 3.2.5 =
167
  * Translatable message and button in activity stream and single media view thanks to [jonasnick](https://github.com/jonasnick)
168
  * Limits items posted in activity feed thanks to [jarretc](https://github.com/jarretc)
169
  * bug fixed for album deletion
170
+ * Fixed count issue on update
171
 
172
  = 3.1.6 =
173
  * Removed download button enable/disable settings
174
  * Bug fixed for translation
175
+ * Added support for Playlists and its required filters
176
 
177
  = 3.1.5 =
178
  * Ignore privacy if admin user.
602
 
603
  == Upgrade Notice ==
604
 
605
+ = 3.2.7 =
606
+ Requires BuddyPress 1.7 or higher, if using BuddyPress. Update readme and simple file upload in shortcode.
607
 
608
  == Sponsors ==
609
 
templates/upload/uploader.php CHANGED
@@ -1,23 +1,47 @@
1
  <?php if ( is_array ( $tabs ) && count ( $tabs ) ) { ?>
2
  <div class="rtmedia-container">
3
  <?php
4
-
5
  if( isset($attr['rtmedia_simple_file_upload']) && $attr['rtmedia_simple_file_upload'] == true) {
6
- echo '<div class="rtm-file-input-container"> <input type="file" name="rtmedia_file_multiple[]" multiple="true" class="rtm-simple-file-input" id="rtmedia_simple_file_input" />';
 
 
 
 
 
7
  RTMediaUploadView::upload_nonce_generator ( true );
8
  if ( ! empty ( $attr ) ) {
9
  foreach ( $attr as $key => $value ) {
10
  if ( $key == 'context' )
11
  echo '<input type="hidden" name="context" value="' . $value . '" />';
12
- if ( $key == 'context_id' )
13
  echo '<input type="hidden" name="context_id" value="' . $value . '" />';
14
- if ( $key == 'privacy' )
15
  echo '<input type="hidden" name="privacy" value="' . $value . '" />';
16
- if ( $key == 'album_id' )
17
  echo '<input type="hidden" name="album_id" value="' . $value . '" />';
 
 
 
 
 
 
18
  }
19
  }
20
- echo "</div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  } else {
22
  ?>
23
  <div class="rtmedia-uploader no-js">
1
  <?php if ( is_array ( $tabs ) && count ( $tabs ) ) { ?>
2
  <div class="rtmedia-container">
3
  <?php
4
+
5
  if( isset($attr['rtmedia_simple_file_upload']) && $attr['rtmedia_simple_file_upload'] == true) {
6
+ if(isset($attr['rtmedia_upload_without_form']) && $attr['rtmedia_upload_without_form'] == true) {
7
+ echo '<div class="rtmedia-simple-file-upload">';
8
+ } else {
9
+ echo '<form id="rtmedia-uploader-form" method="post" action="upload" enctype="multipart/form-data">';
10
+ echo '<div class="rtmedia-simple-file-upload">';
11
+ }
12
  RTMediaUploadView::upload_nonce_generator ( true );
13
  if ( ! empty ( $attr ) ) {
14
  foreach ( $attr as $key => $value ) {
15
  if ( $key == 'context' )
16
  echo '<input type="hidden" name="context" value="' . $value . '" />';
17
+ else if ( $key == 'context_id' )
18
  echo '<input type="hidden" name="context_id" value="' . $value . '" />';
19
+ else if ( $key == 'privacy' )
20
  echo '<input type="hidden" name="privacy" value="' . $value . '" />';
21
+ else if ( $key == 'album_id' )
22
  echo '<input type="hidden" name="album_id" value="' . $value . '" />';
23
+ else if ( $key == 'title' )
24
+ echo '<p class="rtmedia-file-upload-p rtmedia-file-upload-title"><input type="text" name="title" /></p>';
25
+ else if ( $key == 'description' )
26
+ echo '<p class="rtmedia-file-upload-p rtmedia-file-upload-desc"><textarea name="description"></textarea></p>';
27
+ else
28
+ echo "<input type='hidden' id='rt_upload_hf_".sanitize_key ( $key )."' value='".$value."' name ='".$key."' />";
29
  }
30
  }
31
+ if(isset($attr['rtmedia_upload_allow_multiple']) && $attr['rtmedia_upload_allow_multiple'] == true) {
32
+ echo '<div class="rtm-file-input-container"> <p class="rtmedia-file-upload-p"> <input type="file" name="rtmedia_file_multiple[]" multiple="true" class="rtm-simple-file-input" id="rtmedia_simple_file_input" /> </p> </div>';
33
+ } else {
34
+ echo '<div class="rtm-file-input-container"> <p class="rtmedia-file-upload-p"> <input type="file" name="rtmedia_file" class="rtm-simple-file-input" id="rtmedia_simple_file_input" /> </p> </div>';
35
+ }
36
+ do_action("rtmedia_add_upload_content");
37
+
38
+ if(isset($attr['rtmedia_upload_without_form']) && $attr['rtmedia_upload_without_form'] == true) {
39
+ echo '</div>';
40
+ } else {
41
+ echo '<p> <input type="submit" name="rtmedia_simple_file_upload_submit" /> </p> ';
42
+ echo '</div>';
43
+ echo '</form>';
44
+ }
45
  } else {
46
  ?>
47
  <div class="rtmedia-uploader no-js">