Version Description
- Fix audio/video js issue after activity update
- Fix activity after ajax load content
- Fix image edit issue
- Fix CSS issues
Download this release
Release Info
Developer | faishal |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 3.6.6 |
Comparing to | |
See all releases |
Code changes from version 3.6.5 to 3.6.6
- app/assets/css/admin.css +13 -2
- app/assets/js/rtMedia.backbone.js +31 -5
- app/helper/RTMediaThemes.php +1 -1
- app/main/controllers/template/RTMediaTemplate.php +5 -0
- app/main/routers/RTMediaRouter.php +6 -1
- app/main/routers/query/RTMediaQuery.php +3 -3
- index.php +1 -1
- readme.txt +9 -3
app/assets/css/admin.css
CHANGED
@@ -26,7 +26,7 @@ div#icon-buddypress-media { background: url('../img/bpm-icon-32.png'); backgroun
|
|
26 |
#adminmenu li.toplevel_page_bp-media-settings:hover .wp-menu-image a,
|
27 |
#adminmenu li.current.toplevel_page_bp-media-settings .wp-menu-image a{background-position: center 1px;}
|
28 |
#adminmenu li.toplevel_page_bp-media-settings .wp-menu-image a img{display:none;}
|
29 |
-
#bp-media-settings-boxes{margin:
|
30 |
#debug-info{clear:left;border:none; overflow: hidden; padding: 10px; margin: 10px 0 20px 0; -webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px; }
|
31 |
#debug-info th, #debug-info td{ border: 1px #e5e5e5 solid; border-left:none; border-right:none;}
|
32 |
.nav-tab-wrapper a#bp-media{background:url('../img/bpm-icon-32.png') transparent no-repeat; padding-left:32px;}
|
@@ -63,7 +63,7 @@ div#icon-buddypress-media { background: url('../img/bpm-icon-32.png'); backgroun
|
|
63 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.convert-videos{background-position-y:-214px;}
|
64 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.insta{background-position-y:-244px;}
|
65 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.watermark{background-position-y:-274px;}
|
66 |
-
.wrap.bp-media-admin .row {max-width:
|
67 |
#bpm-unsubscribe-dialog { display: none; }
|
68 |
#bpm-unsubscribe-dialog p { margin: 10px; }
|
69 |
|
@@ -771,3 +771,14 @@ abbr {
|
|
771 |
div.bp-media-metabox-holder #branding #mce-responses {
|
772 |
display: inline;
|
773 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
#adminmenu li.toplevel_page_bp-media-settings:hover .wp-menu-image a,
|
27 |
#adminmenu li.current.toplevel_page_bp-media-settings .wp-menu-image a{background-position: center 1px;}
|
28 |
#adminmenu li.toplevel_page_bp-media-settings .wp-menu-image a img{display:none;}
|
29 |
+
#bp-media-settings-boxes{margin:0px;}
|
30 |
#debug-info{clear:left;border:none; overflow: hidden; padding: 10px; margin: 10px 0 20px 0; -webkit-border-bottom-left-radius:3px;border-bottom-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-bottom-right-radius:3px; }
|
31 |
#debug-info th, #debug-info td{ border: 1px #e5e5e5 solid; border-left:none; border-right:none;}
|
32 |
.nav-tab-wrapper a#bp-media{background:url('../img/bpm-icon-32.png') transparent no-repeat; padding-left:32px;}
|
63 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.convert-videos{background-position-y:-214px;}
|
64 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.insta{background-position-y:-244px;}
|
65 |
.wrap.bp-media-admin .bp-media-settings-tabs a.nav-tab.watermark{background-position-y:-274px;}
|
66 |
+
.wrap.bp-media-admin .row {max-width: 100%;}
|
67 |
#bpm-unsubscribe-dialog { display: none; }
|
68 |
#bpm-unsubscribe-dialog p { margin: 10px; }
|
69 |
|
771 |
div.bp-media-metabox-holder #branding #mce-responses {
|
772 |
display: inline;
|
773 |
}
|
774 |
+
.bp-media-settings-boxes-container {
|
775 |
+
max-width: 100%;
|
776 |
+
width: 100%;
|
777 |
+
margin: 0;
|
778 |
+
}
|
779 |
+
.bp-media-settings-boxes-container #bp-media-settings-boxes {
|
780 |
+
padding-left: 0;
|
781 |
+
}
|
782 |
+
.bp-media-settings-boxes-container .bp-media-metabox-holder {
|
783 |
+
padding-right: 0;
|
784 |
+
}
|
app/assets/js/rtMedia.backbone.js
CHANGED
@@ -756,7 +756,7 @@ jQuery(document).ready(function($) {
|
|
756 |
}catch(e){
|
757 |
return true;
|
758 |
}
|
759 |
-
if (originalOptions.data.action == 'post_update') {
|
760 |
var temp = activity_attachemnt_ids;
|
761 |
while (activity_attachemnt_ids.length > 0) {
|
762 |
options.data += "&rtMedia_attached_files[]=" + activity_attachemnt_ids.pop();
|
@@ -765,11 +765,13 @@ jQuery(document).ready(function($) {
|
|
765 |
activity_attachemnt_ids = temp;
|
766 |
var orignalSuccess = originalOptions.success;
|
767 |
options.beforeSend = function() {
|
768 |
-
|
769 |
-
|
|
|
770 |
// $("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
|
771 |
-
|
772 |
-
|
|
|
773 |
if (!media_uploading && objUploadView.uploader.files.length > 0) {
|
774 |
$("#whats-new-post-in").attr('disabled', 'disabled');
|
775 |
$("#rtmedia-add-media-button-post-update").attr('disabled', 'disabled');
|
@@ -789,6 +791,13 @@ jQuery(document).ready(function($) {
|
|
789 |
//Error
|
790 |
|
791 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
792 |
jQuery("input[data-mode=rtMedia-update]").remove();
|
793 |
while (objUploadView.uploader.files.pop() != undefined) {
|
794 |
}
|
@@ -796,6 +805,17 @@ jQuery(document).ready(function($) {
|
|
796 |
$('#rtMedia-update-queue-list').html('');
|
797 |
//$("#div-attache-rtmedia").hide();
|
798 |
apply_rtMagnificPopup(jQuery('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
799 |
rtMediaHook.call('rtmedia_js_after_activity_added', []);
|
800 |
}
|
801 |
$("#whats-new-post-in").removeAttr('disabled');
|
@@ -928,4 +948,10 @@ jQuery(document).ready(function($) {
|
|
928 |
// $(this).attr("accept", $(this).attr("accept") + ';capture=camera');
|
929 |
|
930 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
931 |
});
|
756 |
}catch(e){
|
757 |
return true;
|
758 |
}
|
759 |
+
if (originalOptions.data.action == 'post_update' || originalOptions.data.action == 'activity_widget_filter') {
|
760 |
var temp = activity_attachemnt_ids;
|
761 |
while (activity_attachemnt_ids.length > 0) {
|
762 |
options.data += "&rtMedia_attached_files[]=" + activity_attachemnt_ids.pop();
|
765 |
activity_attachemnt_ids = temp;
|
766 |
var orignalSuccess = originalOptions.success;
|
767 |
options.beforeSend = function() {
|
768 |
+
if (originalOptions.data.action == 'post_update') {
|
769 |
+
if ($.trim($("#whats-new").val()) == "") {
|
770 |
+
alert(rtmedia_empty_activity_msg);
|
771 |
// $("#aw-whats-new-submit").prop("disabled", true).removeClass('loading');
|
772 |
+
return false;
|
773 |
+
}
|
774 |
+
}
|
775 |
if (!media_uploading && objUploadView.uploader.files.length > 0) {
|
776 |
$("#whats-new-post-in").attr('disabled', 'disabled');
|
777 |
$("#rtmedia-add-media-button-post-update").attr('disabled', 'disabled');
|
791 |
//Error
|
792 |
|
793 |
} else {
|
794 |
+
if( originalOptions.data.action == 'activity_widget_filter' ) {
|
795 |
+
$("div.activity").bind("fadeIn",function(){
|
796 |
+
apply_rtMagnificPopup(jQuery('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content'));
|
797 |
+
rtMediaHook.call('rtmedia_js_after_activity_added', []);
|
798 |
+
});
|
799 |
+
$("div.activity").fadeIn(100);
|
800 |
+
}
|
801 |
jQuery("input[data-mode=rtMedia-update]").remove();
|
802 |
while (objUploadView.uploader.files.pop() != undefined) {
|
803 |
}
|
805 |
$('#rtMedia-update-queue-list').html('');
|
806 |
//$("#div-attache-rtmedia").hide();
|
807 |
apply_rtMagnificPopup(jQuery('.rtmedia-list-media, .rtmedia-activity-container ul.rtmedia-list, #bp-media-list,.widget-item-listing,.bp-media-sc-list, li.media.album_updated ul,ul.bp-media-list-media, li.activity-item div.activity-content div.activity-inner div.bp_media_content'));
|
808 |
+
jQuery('ul.activity-list li.rtmedia_update:first-child .wp-audio-shortcode, ul.activity-list li.rtmedia_update:first-child .wp-video-shortcode').mediaelementplayer({
|
809 |
+
|
810 |
+
// if the <video width> is not specified, this is the default
|
811 |
+
defaultVideoWidth: 480,
|
812 |
+
// if the <video height> is not specified, this is the default
|
813 |
+
defaultVideoHeight: 270,
|
814 |
+
// if set, overrides <video width>
|
815 |
+
//videoWidth: 1,
|
816 |
+
// if set, overrides <video height>
|
817 |
+
//videoHeight: 1
|
818 |
+
});
|
819 |
rtMediaHook.call('rtmedia_js_after_activity_added', []);
|
820 |
}
|
821 |
$("#whats-new-post-in").removeAttr('disabled');
|
948 |
// $(this).attr("accept", $(this).attr("accept") + ';capture=camera');
|
949 |
|
950 |
});
|
951 |
+
|
952 |
+
// manually trigger fadein event so that we can bind some function on this event. It is used in activity when content getting load via ajax
|
953 |
+
var _old_fadein = $.fn.fadeIn;
|
954 |
+
jQuery.fn.fadeIn = function(){
|
955 |
+
return _old_fadein.apply(this,arguments).trigger("fadeIn");
|
956 |
+
};
|
957 |
});
|
app/helper/RTMediaThemes.php
CHANGED
@@ -79,7 +79,7 @@ class RTMediaThemes {
|
|
79 |
$tab_without_hash = explode("#", $tab[ 'href' ]);
|
80 |
$tab_without_hash = $tab_without_hash[1];
|
81 |
echo '<div class="content' . $active_class .'" id="' . $tab_without_hash . '">';
|
82 |
-
call_user_func($tab['callback']
|
83 |
echo '</div>';
|
84 |
}
|
85 |
echo "</div>";
|
79 |
$tab_without_hash = explode("#", $tab[ 'href' ]);
|
80 |
$tab_without_hash = $tab_without_hash[1];
|
81 |
echo '<div class="content' . $active_class .'" id="' . $tab_without_hash . '">';
|
82 |
+
call_user_func($tab['callback']);
|
83 |
echo '</div>';
|
84 |
}
|
85 |
echo "</div>";
|
app/main/controllers/template/RTMediaTemplate.php
CHANGED
@@ -194,6 +194,11 @@ class RTMediaTemplate {
|
|
194 |
}
|
195 |
$data = rtmedia_sanitize_object ( $_POST, $data_array );
|
196 |
$media = new RTMediaMedia();
|
|
|
|
|
|
|
|
|
|
|
197 |
$state = $media->update ( $rtmedia_query->action_query->id, $data, $rtmedia_query->media[ 0 ]->media_id );
|
198 |
$rtmedia_query->query ( false );
|
199 |
global $rtmedia_points_media_id;
|
194 |
}
|
195 |
$data = rtmedia_sanitize_object ( $_POST, $data_array );
|
196 |
$media = new RTMediaMedia();
|
197 |
+
$image_path = get_attached_file( $rtmedia_query->media[ 0 ]->media_id );
|
198 |
+
if( $image_path ) {
|
199 |
+
$image_meta_data = wp_generate_attachment_metadata( $rtmedia_query->media[ 0 ]->media_id, $image_path );
|
200 |
+
wp_update_attachment_metadata( $rtmedia_query->media[ 0 ]->media_id, $image_meta_data );
|
201 |
+
}
|
202 |
$state = $media->update ( $rtmedia_query->action_query->id, $data, $rtmedia_query->media[ 0 ]->media_id );
|
203 |
$rtmedia_query->query ( false );
|
204 |
global $rtmedia_points_media_id;
|
app/main/routers/RTMediaRouter.php
CHANGED
@@ -98,7 +98,12 @@ class RTMediaRouter {
|
|
98 |
|
99 |
if( isset( $rtmedia_query ) && isset( $rtmedia_query->query ) && ! isset($rtmedia_query->query['context']) ) {
|
100 |
$wp_query->is_404 = true;
|
101 |
-
return false;
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
return $return;
|
104 |
}
|
98 |
|
99 |
if( isset( $rtmedia_query ) && isset( $rtmedia_query->query ) && ! isset($rtmedia_query->query['context']) ) {
|
100 |
$wp_query->is_404 = true;
|
101 |
+
$return = false;
|
102 |
+
}
|
103 |
+
|
104 |
+
if( isset( $rtmedia_query->shortcode_global ) && $rtmedia_query->shortcode_global ) {
|
105 |
+
$wp_query->is_404 = false;
|
106 |
+
$return = true;
|
107 |
}
|
108 |
return $return;
|
109 |
}
|
app/main/routers/query/RTMediaQuery.php
CHANGED
@@ -52,7 +52,7 @@ class RTMediaQuery {
|
|
52 |
public $current_media = -1;
|
53 |
public $in_the_media_loop = false;
|
54 |
public $format = false;
|
55 |
-
public $
|
56 |
|
57 |
/**
|
58 |
* Initialise the query
|
@@ -451,7 +451,7 @@ class RTMediaQuery {
|
|
451 |
}
|
452 |
if ( isset ( $this->query ) && isset ( $this->query[ "global" ] ) ) {
|
453 |
if ( $this->query[ "global" ] == "true" ) {
|
454 |
-
$this->
|
455 |
if ( isset ( $this->query[ "context_id" ] ) )
|
456 |
unset ( $this->query[ "context_id" ] );
|
457 |
if ( isset ( $this->query[ "context" ] ) )
|
@@ -681,7 +681,7 @@ class RTMediaQuery {
|
|
681 |
else
|
682 |
$this->media = $this->populate_media ();
|
683 |
|
684 |
-
if ( $this->is_album () && !$this->
|
685 |
$this->media = $this->populate_album ();
|
686 |
}
|
687 |
|
52 |
public $current_media = -1;
|
53 |
public $in_the_media_loop = false;
|
54 |
public $format = false;
|
55 |
+
public $shortcode_global = false;
|
56 |
|
57 |
/**
|
58 |
* Initialise the query
|
451 |
}
|
452 |
if ( isset ( $this->query ) && isset ( $this->query[ "global" ] ) ) {
|
453 |
if ( $this->query[ "global" ] == "true" ) {
|
454 |
+
$this->shortcode_global = true;
|
455 |
if ( isset ( $this->query[ "context_id" ] ) )
|
456 |
unset ( $this->query[ "context_id" ] );
|
457 |
if ( isset ( $this->query[ "context" ] ) )
|
681 |
else
|
682 |
$this->media = $this->populate_media ();
|
683 |
|
684 |
+
if ( $this->is_album () && !$this->shortcode_global ) {
|
685 |
$this->media = $this->populate_album ();
|
686 |
}
|
687 |
|
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.6
|
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 |
|
@@ -132,6 +132,12 @@ 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.5 =
|
136 |
* rtMedia premium theme InspireBook 1.0 released
|
137 |
|
@@ -712,8 +718,8 @@ Please visit [rtMedia's Roadmap page](http://rtcamp.com/rtmedia/roadmap/?utm_sou
|
|
712 |
|
713 |
== Upgrade Notice ==
|
714 |
|
715 |
-
= 3.6.
|
716 |
-
Requires BuddyPress 1.7 or higher, if using BuddyPress.
|
717 |
|
718 |
== Sponsors ==
|
719 |
|
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.6
|
10 |
|
11 |
Add albums, photo, audio/video encoding, privacy, sharing, front-end uploads & more. All this works mobile/tablets devices.
|
12 |
|
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.6 =
|
136 |
+
* Fix audio/video js issue after activity update
|
137 |
+
* Fix activity after ajax load content
|
138 |
+
* Fix image edit issue
|
139 |
+
* Fix CSS issues
|
140 |
+
|
141 |
= 3.6.5 =
|
142 |
* rtMedia premium theme InspireBook 1.0 released
|
143 |
|
718 |
|
719 |
== Upgrade Notice ==
|
720 |
|
721 |
+
= 3.6.6 =
|
722 |
+
Requires BuddyPress 1.7 or higher, if using BuddyPress. Fix image edit issue, fix activity issue, fix CSS issue.
|
723 |
|
724 |
== Sponsors ==
|
725 |
|