rtMedia for WordPress, BuddyPress and bbPress - Version 4.5.9

Version Description

rtMedia 4.5.9, with an addition of new classes in BuddPress Activity based on the uploaded media type, and other minor fixes around BuddPress Activity.

=

Download this release

Release Info

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

Code changes from version 4.5.8 to 4.5.9

app/assets/css/rtmedia.css CHANGED
@@ -865,7 +865,7 @@ button::-moz-focus-inner {
865
padding: 0;
866
width: 90px;
867
height: 110px;
868
- -webkit-tap-highlight-color: transparent;
869
opacity: 0;
870
z-index: 10;
871
-webkit-transition: all 300ms ease-out;
@@ -2969,7 +2969,7 @@ a.rtmedia-upload-media-link {
2969
#buddypress .mejs-controls button {
2970
padding: 4px 8px;
2971
border: none;
2972
- background: transparent url("../../../lib/media-element/mejs-controls.png") no-repeat;
2973
}
2974
#buddypress .mejs-controls .mejs-play > button {
2975
background-position: 0 0;
865
padding: 0;
866
width: 90px;
867
height: 110px;
868
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
869
opacity: 0;
870
z-index: 10;
871
-webkit-transition: all 300ms ease-out;
2969
#buddypress .mejs-controls button {
2970
padding: 4px 8px;
2971
border: none;
2972
+ background: rgba(0, 0, 0, 0) url("../../../lib/media-element/mejs-controls.png") no-repeat;
2973
}
2974
#buddypress .mejs-controls .mejs-play > button {
2975
background-position: 0 0;
app/assets/js/rtMedia.backbone.js CHANGED
@@ -1005,9 +1005,18 @@ jQuery( document ).ready( function( $ ) {
1005
1006
var rt_uploader_div = whats_new_form.find( '.rtmedia-uploader-div' );
1007
var rt_uploader_filelist = whats_new_form.find( '#rtmedia_uploader_filelist' );
1008
1009
rt_uploader_div.show();
1010
1011
rt_uploader_div.addClass( 'clearfix' );
1012
1013
whats_new_form.find( '#rtmedia-action-update' ).removeClass( 'clearfix' );
1005
1006
var rt_uploader_div = whats_new_form.find( '.rtmedia-uploader-div' );
1007
var rt_uploader_filelist = whats_new_form.find( '#rtmedia_uploader_filelist' );
1008
+ var whats_new_option = whats_new_form.find( '#whats-new-options' );
1009
1010
rt_uploader_div.show();
1011
1012
+ if ( 0 !== whats_new_option.length ) {
1013
+ whats_new_option.show();
1014
+
1015
+ whats_new_option.css( {
1016
+ 'opacity': '1'
1017
+ } );
1018
+ }
1019
+
1020
rt_uploader_div.addClass( 'clearfix' );
1021
1022
whats_new_form.find( '#rtmedia-action-update' ).removeClass( 'clearfix' );
app/main/controllers/activity/RTMediaActivity.php CHANGED
@@ -76,6 +76,25 @@ class RTMediaActivity {
76
}
77
$rtmedia_activity_ul_class = apply_filters( 'rtmedia_' . $type . '_ul_class', 'rtm-activity-media-list' );
78
79
$media_content = '';
80
$count = 0;
81
foreach ( $media_details as $media ) {
@@ -144,10 +163,11 @@ class RTMediaActivity {
144
}
145
146
$media_container_start = sprintf(
147
- '<ul class="%s %s rtmedia-activity-media-length-%s">',
148
esc_attr( $media_container_start_class ),
149
esc_attr( $rtmedia_activity_ul_class ),
150
- esc_attr( $count )
151
);
152
153
$media_container_end = '</ul>';
@@ -169,15 +189,17 @@ class RTMediaActivity {
169
$activity .= $activity_content;
170
$activity .= $activity_container_end;
171
172
// Bypass comment links limit.
173
add_filter(
174
'option_comment_max_links',
175
- function ( $values ) {
176
$rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
177
// Check if files available.
178
if ( is_array( $rtmedia_attached_files ) && ! empty( $rtmedia_attached_files[0] ) ) {
179
// One url of image and other for anchor tag.
180
- $values = count( $rtmedia_attached_files ) * 3;
181
}
182
return $values;
183
}
76
}
77
$rtmedia_activity_ul_class = apply_filters( 'rtmedia_' . $type . '_ul_class', 'rtm-activity-media-list' );
78
79
+ $uploaded_media_types = [];
80
+ $rtmedia_activity_ul_list_class = 'rtm-activity-mixed-list';
81
+
82
+ // Loop through each media and check media type.
83
+ $uploaded_media_types = array_map( function ( $current_media ) {
84
+ return is_object( $current_media ) ? $current_media->media_type : '';
85
+ }, $media_details );
86
+
87
+ // Remove empty values from media type list.
88
+ $media_type_list = array_filter( $uploaded_media_types, 'strlen' );
89
+
90
+ // Update activity class based on media type.
91
+ if ( ! empty( $media_type_list ) ) {
92
+ if ( count( array_unique( $uploaded_media_types ) ) === 1 ) {
93
+ $current_media_type = end( $uploaded_media_types );
94
+ $rtmedia_activity_ul_list_class = "rtm-activity-{$current_media_type}-list";
95
+ }
96
+ }
97
+
98
$media_content = '';
99
$count = 0;
100
foreach ( $media_details as $media ) {
163
}
164
165
$media_container_start = sprintf(
166
+ '<ul class="%s %s rtmedia-activity-media-length-%s %s">',
167
esc_attr( $media_container_start_class ),
168
esc_attr( $rtmedia_activity_ul_class ),
169
+ esc_attr( $count ),
170
+ esc_attr( $rtmedia_activity_ul_list_class )
171
);
172
173
$media_container_end = '</ul>';
189
$activity .= $activity_content;
190
$activity .= $activity_container_end;
191
192
+ $current_max_links = absint( get_option( 'comment_max_links' ) ); // get current number of allowed links.
193
+
194
// Bypass comment links limit.
195
add_filter(
196
'option_comment_max_links',
197
+ function ( $values ) use ( $current_max_links ) {
198
$rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
199
// Check if files available.
200
if ( is_array( $rtmedia_attached_files ) && ! empty( $rtmedia_attached_files[0] ) ) {
201
// One url of image and other for anchor tag.
202
+ $values = ( count( $rtmedia_attached_files ) * 3 ) + $current_max_links;
203
}
204
return $values;
205
}
index.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
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!
6
- Version: 4.5.8
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -22,7 +22,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
22
* The version of the plugin
23
*
24
*/
25
- define( 'RTMEDIA_VERSION', '4.5.8' );
26
}
27
28
if ( ! defined( 'RTMEDIA_PATH' ) ) {
3
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
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!
6
+ Version: 4.5.9
7
Author: rtCamp
8
Text Domain: buddypress-media
9
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
22
* The version of the plugin
23
*
24
*/
25
+ define( 'RTMEDIA_VERSION', '4.5.9' );
26
}
27
28
if ( ! defined( 'RTMEDIA_PATH' ) ) {
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.8\n"
6
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
- "POT-Creation-Date: 2019-08-06 10:41:32+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
2
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.9\n"
6
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
+ "POT-Creation-Date: 2019-10-29 08:18:31+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
=== rtMedia for WordPress, BuddyPress and bbPress ===
2
- Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad
3
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
4
License: GPLv2 or later
5
License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
Requires at least: WordPress 4.1
7
- Tested up to: 5.2.2
8
- Stable tag: 4.5.8
9
10
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
@@ -134,7 +134,18 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134
135
== Changelog ==
136
137
- = 4.5.8 [August 7, 2019] =
138
139
* FIXED
140
@@ -1614,8 +1625,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1614
1615
== Upgrade Notice ==
1616
1617
- = 4.5.8 =
1618
- rtMedia 4.5.8, with fixes for, media duplication when posted from the lightbox, upload terms and direct media upload compability on activity comment and media caption overlapping issue on Legacy template with some UI fixes.
1619
1620
== Sponsors ==
1621
1
=== rtMedia for WordPress, BuddyPress and bbPress ===
2
+ Contributors: rtcamp, mangeshp, sanket.parmar, pranalipatel, jignesh.nakrani, manishsongirkar36, kiranpotphode, yahil, 1naveengiri, bhargavbhandari90, raftaar1191, rittesh.patel, sagarjadhav, pushpak.pop, faishal, desaiuditd, rahul286, JoshuaAbenazer, gagan0123, saurabhshukla, nitun.lanjewar, umesh.nevase, suhasgirgaonkar, neerukoul, hrishiv90, kanakiyajay, jarretc, tobiaskluge, rafaelfunchal, UmeshSingla, mehulkaklotar, tannermirabel, kishores, chandrapatel, rahul3883, nomnom99, sayanchakraborty, milindmore22, thrijith, abhijitrakas, sid177, montu3366, jashwini, juhise, ravatparmar, dharmin16, malavvasita, pooja1210, krupajnanda, surajkumarsingh, kanumalivad, dishitpala
3
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
4
License: GPLv2 or later
5
License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
Requires at least: WordPress 4.1
7
+ Tested up to: 5.3
8
+ Stable tag: 4.5.9
9
10
Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
134
135
== Changelog ==
136
137
+ = 4.5.9 [October 29, 2019] =
138
+
139
+ * Enhancement
140
+
141
+ * Add new class on activity page based on the uploaded media type
142
+
143
+ * FIXED
144
+
145
+ * Post Update button issue with BuddyPress Nouveau template
146
+ * Issue when user uploads the media with link in comment on buddypress activity
147
+
148
+ = 4.5.8 [August 6, 2019] =
149
150
* FIXED
151
1625
1626
== Upgrade Notice ==
1627
1628
+ = 4.5.9 =
1629
+ rtMedia 4.5.9, with an addition of new classes in BuddPress Activity based on the uploaded media type, and other minor fixes around BuddPress Activity.
1630
1631
== Sponsors ==
1632