Version Description
- Bug fixes
Download this release
Release Info
Developer | faishal |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.6.1 |
Comparing to | |
See all releases |
Code changes from version 3.6 to 3.6.1
- app/admin/RTMediaFormHandler.php +12 -0
- app/assets/img/rtmedia-ffmpeg-240x184.png +0 -0
- app/assets/img/rtmedia-instagram-240x184.png +0 -0
- app/assets/img/rtmedia-kaltura-240x184.png +0 -0
- app/assets/img/rtmedia-phototagging-240x184.png +0 -0
- app/assets/img/rtmedia-theme-kleo.png +0 -0
- app/helper/RTMediaAddon.php +6 -6
- app/helper/RTMediaSettings.php +2 -1
- app/helper/RTMediaThemes.php +9 -0
- app/main/controllers/api/RTMediaJsonApi.php +24 -4
- index.php +1 -1
- readme.txt +7 -4
app/admin/RTMediaFormHandler.php
CHANGED
@@ -330,6 +330,17 @@ class RTMediaFormHandler {
|
|
330 |
'group' => 100,
|
331 |
'after_content' => __('You can signup for rtMedia affiliate program from <a href="https://rtcamp.com/affiliates">here</a>'),
|
332 |
),//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
);
|
334 |
|
335 |
return $render;
|
@@ -342,6 +353,7 @@ class RTMediaFormHandler {
|
|
342 |
$render_options = apply_filters("rtmedia_general_content_add_itmes",$render_options, $options);
|
343 |
$general_group = array();
|
344 |
$general_group[10] = "Admin Settings";
|
|
|
345 |
$general_group[90] = "Miscellaneous";
|
346 |
$general_group[100] = "Footer Link";
|
347 |
$general_group = apply_filters("rtmedia_general_content_groups", $general_group);
|
330 |
'group' => 100,
|
331 |
'after_content' => __('You can signup for rtMedia affiliate program from <a href="https://rtcamp.com/affiliates">here</a>'),
|
332 |
),//
|
333 |
+
'rtmedia_enable_api' => array(
|
334 |
+
'title' => __('Enable JSON API','rtmedia'),
|
335 |
+
'callback' => array('RTMediaFormHandler', 'checkbox'),
|
336 |
+
'args' => array(
|
337 |
+
'key' => 'rtmedia_enable_api',
|
338 |
+
'value' => $options['rtmedia_enable_api'],
|
339 |
+
'desc' => __('This will allow handling API requests for rtMedia sent through any mobile app.','rtmedia')
|
340 |
+
),
|
341 |
+
'group' => 80,
|
342 |
+
'after_content' => __('You can refer API document from <a href="https://rtcamp.com/rtmedia/docs/developer/json-api/">here</a>'),
|
343 |
+
),//
|
344 |
);
|
345 |
|
346 |
return $render;
|
353 |
$render_options = apply_filters("rtmedia_general_content_add_itmes",$render_options, $options);
|
354 |
$general_group = array();
|
355 |
$general_group[10] = "Admin Settings";
|
356 |
+
$general_group[80] = "API Settings";
|
357 |
$general_group[90] = "Miscellaneous";
|
358 |
$general_group[100] = "Footer Link";
|
359 |
$general_group = apply_filters("rtmedia_general_content_groups", $general_group);
|
app/assets/img/rtmedia-ffmpeg-240x184.png
ADDED
Binary file
|
app/assets/img/rtmedia-instagram-240x184.png
ADDED
Binary file
|
app/assets/img/rtmedia-kaltura-240x184.png
ADDED
Binary file
|
app/assets/img/rtmedia-phototagging-240x184.png
ADDED
Binary file
|
app/assets/img/rtmedia-theme-kleo.png
ADDED
Binary file
|
app/helper/RTMediaAddon.php
CHANGED
@@ -115,7 +115,7 @@ if (!class_exists('RTMediaAddon')) {
|
|
115 |
$addons = array(
|
116 |
array(
|
117 |
'title' => __('rtMedia Photo Tagging', 'rtmedia'),
|
118 |
-
'img_src' => $img_src.'
|
119 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-photo-tagging/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
120 |
'desc' => '<p>' . __('rtMedia Photo Tagging add-on enables tagging on photos uploaded using BuddyPress Media.', 'rtmedia') . '</p>
|
121 |
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
@@ -125,7 +125,7 @@ if (!class_exists('RTMediaAddon')) {
|
|
125 |
),
|
126 |
array(
|
127 |
'title' => __('rtMedia Instagram', 'rtmedia'),
|
128 |
-
'img_src' => $img_src.'
|
129 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
130 |
'desc' => '<p>' . __('rtMedia Instagram adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia') . '</p>
|
131 |
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
@@ -135,21 +135,21 @@ if (!class_exists('RTMediaAddon')) {
|
|
135 |
),
|
136 |
array(
|
137 |
'title' => __('rtMedia Kaltura Add-on', 'rtmedia'),
|
138 |
-
'img_src' => $img_src.'
|
139 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
140 |
'desc' => '<p>' . __('Add support for more video formats using Kaltura video solution.', 'rtmedia') . '</p>
|
141 |
<p>' . __('Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', 'rtmedia') . '</p>',
|
142 |
-
'price' => '$
|
143 |
'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
144 |
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=15446'
|
145 |
),
|
146 |
array(
|
147 |
'title' => __('rtMedia FFMPEG Add-on', 'rtmedia'),
|
148 |
-
'img_src' => $img_src.'ffmpeg-
|
149 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
150 |
'desc' => '<p>' . __('Add supports for more audio & video formats using open-source media-node.', 'rtmedia') . '</p>
|
151 |
<p>' . __('Media node comes with automated setup script for Ubuntu/Debian.', 'rtmedia') . '</p>',
|
152 |
-
'price' => '$
|
153 |
'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
154 |
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=13677'
|
155 |
)
|
115 |
$addons = array(
|
116 |
array(
|
117 |
'title' => __('rtMedia Photo Tagging', 'rtmedia'),
|
118 |
+
'img_src' => $img_src.'rtmedia-phototagging-240x184.png',
|
119 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-photo-tagging/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
120 |
'desc' => '<p>' . __('rtMedia Photo Tagging add-on enables tagging on photos uploaded using BuddyPress Media.', 'rtmedia') . '</p>
|
121 |
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
125 |
),
|
126 |
array(
|
127 |
'title' => __('rtMedia Instagram', 'rtmedia'),
|
128 |
+
'img_src' => $img_src.'rtmedia-instagram-240x184.png',
|
129 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-instagram/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
130 |
'desc' => '<p>' . __('rtMedia Instagram adds Instagram like filters to images uploaded with rtMedia.', 'rtmedia') . '</p>
|
131 |
<p><strong>' . __('Important', 'rtmedia') . ':</strong> ' . __('You need to have ImageMagick installed on your server for this addon to work.', 'rtmedia') . '</p>',
|
135 |
),
|
136 |
array(
|
137 |
'title' => __('rtMedia Kaltura Add-on', 'rtmedia'),
|
138 |
+
'img_src' => $img_src.'rtmedia-kaltura-240x184.png',
|
139 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
140 |
'desc' => '<p>' . __('Add support for more video formats using Kaltura video solution.', 'rtmedia') . '</p>
|
141 |
<p>' . __('Works with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise.', 'rtmedia') . '</p>',
|
142 |
+
'price' => '$199',
|
143 |
'demo_link' => 'http://demo.rtcamp.com/bpm-kaltura/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
144 |
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=15446'
|
145 |
),
|
146 |
array(
|
147 |
'title' => __('rtMedia FFMPEG Add-on', 'rtmedia'),
|
148 |
+
'img_src' => $img_src.'rtmedia-ffmpeg-240x184.png',
|
149 |
'product_link' => 'http://rtcamp.com/store/buddypress-media-ffmpeg-converter/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
150 |
'desc' => '<p>' . __('Add supports for more audio & video formats using open-source media-node.', 'rtmedia') . '</p>
|
151 |
<p>' . __('Media node comes with automated setup script for Ubuntu/Debian.', 'rtmedia') . '</p>',
|
152 |
+
'price' => '$199',
|
153 |
'demo_link' => 'http://demo.rtcamp.com/bpm-media/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media',
|
154 |
'buy_now' => 'http://rtcamp.com/store/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media&add-to-cart=13677'
|
155 |
)
|
app/helper/RTMediaSettings.php
CHANGED
@@ -40,7 +40,8 @@ if (!class_exists('RTMediaSettings')) {
|
|
40 |
'general_viewcount' => 0,
|
41 |
'general_AllowUserData' => 1,
|
42 |
'rtmedia_add_linkback' => 0,
|
43 |
-
'rtmedia_affiliate_id' => ''
|
|
|
44 |
);
|
45 |
|
46 |
$defaults = apply_filters('rtmedia_general_content_default_values', $defaults);
|
40 |
'general_viewcount' => 0,
|
41 |
'general_AllowUserData' => 1,
|
42 |
'rtmedia_add_linkback' => 0,
|
43 |
+
'rtmedia_affiliate_id' => '',
|
44 |
+
'rtmedia_enable_api' => 0,
|
45 |
);
|
46 |
|
47 |
$defaults = apply_filters('rtmedia_general_content_default_values', $defaults);
|
app/helper/RTMediaThemes.php
CHANGED
@@ -117,6 +117,15 @@ class RTMediaThemes {
|
|
117 |
</div>
|
118 |
</div>
|
119 |
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
<div class="row">
|
121 |
<div class="columns large-12">
|
122 |
<h3><?php _e('Are you a developer?','rtmedia'); ?></h3>
|
117 |
</div>
|
118 |
</div>
|
119 |
<hr>
|
120 |
+
<div class="row">
|
121 |
+
<div class="columns large-4 rtmedia-theme-image"><a href="http://rt.cx/kleo" target="_blank"><img src="<?php echo RTMEDIA_URL.'app/assets/img/rtmedia-theme-kleo.png' ?>" /></a> </div>
|
122 |
+
<div class="columns large-7">
|
123 |
+
<h3 class="rtmedia-theme-3rd-party-title"><a href="http://rt.cx/kleo" target="_blank">KLEO</a></h3>
|
124 |
+
<div><span><?php _e('You no longer need to be a professional developer or designer to create an awesome website. Let your imagination run wild and create the site of your dreams. KLEO has all the tools to get you started.','rtmedia'); ?></span></div>
|
125 |
+
<div><h4><?php echo __('Click','rtmedia') . " <a href='http://rt.cx/kleo' target='_blank'>".__('here','rtmedia')."</a> ". __('for preview.','rtmedia'); ?></h4></div>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<hr>
|
129 |
<div class="row">
|
130 |
<div class="columns large-12">
|
131 |
<h3><?php _e('Are you a developer?','rtmedia'); ?></h3>
|
app/main/controllers/api/RTMediaJsonApi.php
CHANGED
@@ -19,6 +19,10 @@ class RTMediaJsonApi{
|
|
19 |
$msg_invalid_media_id = 'invalid media id',
|
20 |
$ec_invalid_request_type = 600007,
|
21 |
$msg_invalid_request_type = 'invalid request type',
|
|
|
|
|
|
|
|
|
22 |
$rtmediajsonapifunction,
|
23 |
$user_id = '';
|
24 |
|
@@ -32,11 +36,25 @@ class RTMediaJsonApi{
|
|
32 |
}
|
33 |
|
34 |
function rtmedia_api_process_request(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
if ( empty ( $_POST['method'] ) ){
|
36 |
-
echo $this->rtmedia_api_response_object( 'FALSE', $this
|
|
|
37 |
}
|
38 |
if (!class_exists('BuddyPress')) {
|
39 |
-
echo $this->rtmedia_api_response_object( 'FALSE',
|
40 |
die;
|
41 |
}
|
42 |
$this->rtmediajsonapifunction = new RTMediaJsonApiFunctions();
|
@@ -48,7 +66,7 @@ class RTMediaJsonApi{
|
|
48 |
add_filter('rtmedia_current_user', array($this->rtmediajsonapifunction, 'rtmedia_api_set_user_id'));
|
49 |
}
|
50 |
//Process Request
|
51 |
-
$method = $_POST['method'];
|
52 |
|
53 |
switch ( $method ){
|
54 |
|
@@ -118,7 +136,9 @@ class RTMediaJsonApi{
|
|
118 |
exit;
|
119 |
}
|
120 |
|
121 |
-
|
|
|
|
|
122 |
global $wpdb;
|
123 |
$rtmapilogin = new RTMediaApiLogin();
|
124 |
$login_details = array( 'last_access' => $wpdb->get_var("SELECT current_timestamp();") );
|
19 |
$msg_invalid_media_id = 'invalid media id',
|
20 |
$ec_invalid_request_type = 600007,
|
21 |
$msg_invalid_request_type = 'invalid request type',
|
22 |
+
$ec_bp_missing = 600008,
|
23 |
+
$msg_bp_missing = 'buddypress not found',
|
24 |
+
$ec_api_disabled = 600009,
|
25 |
+
$msg_api_disabled = 'API disabled by site administrator',
|
26 |
$rtmediajsonapifunction,
|
27 |
$user_id = '';
|
28 |
|
36 |
}
|
37 |
|
38 |
function rtmedia_api_process_request(){
|
39 |
+
$rtmedia_enable_json_api = FALSE;
|
40 |
+
if(function_exists('rtmedia_get_site_option')){
|
41 |
+
$rtmedia_options = rtmedia_get_site_option('rtmedia-options');
|
42 |
+
if(!empty($rtmedia_options)){
|
43 |
+
if($rtmedia_options['rtmedia_enable_api']){
|
44 |
+
$rtmedia_enable_json_api = TRUE;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
48 |
+
if(!$rtmedia_enable_json_api){
|
49 |
+
echo $this->rtmedia_api_response_object( 'FALSE', $this->ec_api_disabled, $this->msg_api_disabled );
|
50 |
+
die;
|
51 |
+
}
|
52 |
if ( empty ( $_POST['method'] ) ){
|
53 |
+
echo $this->rtmedia_api_response_object( 'FALSE', $this->ec_method_missing, $this->msg_method_missing );
|
54 |
+
die;
|
55 |
}
|
56 |
if (!class_exists('BuddyPress')) {
|
57 |
+
echo $this->rtmedia_api_response_object( 'FALSE', $this->ec_bp_missing, $this->msg_bp_missing );
|
58 |
die;
|
59 |
}
|
60 |
$this->rtmediajsonapifunction = new RTMediaJsonApiFunctions();
|
66 |
add_filter('rtmedia_current_user', array($this->rtmediajsonapifunction, 'rtmedia_api_set_user_id'));
|
67 |
}
|
68 |
//Process Request
|
69 |
+
$method = !empty( $_POST['method'] ) ? $_POST['method']: '';
|
70 |
|
71 |
switch ( $method ){
|
72 |
|
136 |
exit;
|
137 |
}
|
138 |
|
139 |
+
if (ob_get_contents()) {
|
140 |
+
ob_end_clean();
|
141 |
+
}
|
142 |
global $wpdb;
|
143 |
$rtmapilogin = new RTMediaApiLogin();
|
144 |
$login_details = array( 'last_access' => $wpdb->get_var("SELECT current_timestamp();") );
|
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.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.6.1
|
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,7 +6,7 @@ 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.6
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
@@ -14,7 +14,7 @@ Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & m
|
|
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
|
18 |
|
19 |
rtMedia is the **only** complete media solution for WordPress, BuddyPress and bbPress.
|
20 |
|
@@ -132,6 +132,9 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
|
|
132 |
== Changelog ==
|
133 |
|
134 |
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.
|
|
|
|
|
|
|
135 |
= 3.6 =
|
136 |
* rtMedia JSON API added
|
137 |
* Updated russian translations
|
@@ -691,8 +694,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
691 |
|
692 |
== Upgrade Notice ==
|
693 |
|
694 |
-
= 3.6 =
|
695 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
696 |
|
697 |
== Sponsors ==
|
698 |
|
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.6.1
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
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 premium & open-source (and of-course GPL too).
|
18 |
|
19 |
rtMedia is the **only** complete media solution for WordPress, BuddyPress and bbPress.
|
20 |
|
132 |
== Changelog ==
|
133 |
|
134 |
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.
|
135 |
+
= 3.6.1 =
|
136 |
+
* Bug fixes
|
137 |
+
|
138 |
= 3.6 =
|
139 |
* rtMedia JSON API added
|
140 |
* Updated russian translations
|
694 |
|
695 |
== Upgrade Notice ==
|
696 |
|
697 |
+
= 3.6.1 =
|
698 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Bug fixes.
|
699 |
|
700 |
== Sponsors ==
|
701 |
|