Skip to content

Commit

Permalink
Merge pull request #1717 from rtCamp/develop
Browse files Browse the repository at this point in the history
Version update v4.6.6
  • Loading branch information
pooja-muchandikar committed Dec 30, 2020
2 parents 84cd398 + 23153cb commit 7c57589
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 15 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ https://www.youtube.com/watch?v=dJrykKQGDcs

## Changelog ##

### 4.6.6 [December 30, 2020] ###

* Enhancement
* Added fading effect for the media lightbox

* FIXED

* UI/UX issues
* JS errors/notices

### 4.6.5 [November 23, 2020] ###

* FIXED
Expand Down Expand Up @@ -186,7 +196,7 @@ https://www.youtube.com/watch?v=dJrykKQGDcs
* Custom css not applying when added from rtMedia settings’ custom css tab
* Too many redirections on BuddyPress’ privacy page
* Unable to delete media from lightbox and single media page
* Likes on mendia comment not working
* Likes on media comment not working
* PHP errors and warning

### 4.6.1 [April 9, 2020] ###
Expand Down
37 changes: 37 additions & 0 deletions app/assets/css/rtmedia.css
Original file line number Diff line number Diff line change
Expand Up @@ -1187,8 +1187,45 @@ img.mfp-img {
z-index: 2147483647;
}

.mfp-content {
/* Add animation frames */
}
@-webkit-keyframes open {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes open {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes close {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes close {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.mfp-content .rtm-lightbox-container {
background: #000000;
-webkit-animation: open 1s;
animation: open 1s;
margin: 0 auto;
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/css/rtmedia.min.css

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion app/assets/css/sass/_popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,29 @@

// Additional Styles
.mfp-content {
.rtm-lightbox-container {

/* Add animation frames */
@keyframes open {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes close {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

.rtm-lightbox-container {
background: $black;
animation: open 1s;
margin: 0 auto;
position: relative;

Expand Down
28 changes: 26 additions & 2 deletions app/assets/js/rtMedia.backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ jQuery( function( $ ) {
* https://wordpress.org/plugins/buddypress-edit-activity/
*/
$.ajaxPrefilter( function( options, originalOptions, jqXHR ) {
if ( 'undefined' === typeof originalOptions || 'undefined' === typeof originalOptions.data || 'buddypress-edit-activity-save' !== originalOptions.data.action ) {
return;
// Modify options, control originalOptions, store jqXHR, etc
try {
if ( null === originalOptions.data || typeof ( originalOptions.data ) === 'undefined' || typeof ( originalOptions.data.action ) === 'undefined' || 'buddypress-edit-activity-save' !== originalOptions.data.action ) {
return true;
}
} catch ( e ) {
return true;
}

if ( ! $( '#activity-' + originalOptions.data.activity_id ).hasClass( 'rtmedia_update' ) ) {
Expand Down Expand Up @@ -396,6 +401,9 @@ jQuery( function( $ ) {
} );
} );
$( this ).parent().remove();

/** Scroll function called */
rtMediaScrollComments();
} );

$( document ).on( 'keypress', '#rtmedia_go_to_num', function( e ) {
Expand Down Expand Up @@ -1826,6 +1834,9 @@ jQuery( document ).ready( function( $ ) {
rtmedia_reset_video_and_audio_for_popup();

rtMediaHook.call( 'rtmedia_js_after_comment_added', [ ] );

/** Scroll function called */
rtMediaScrollComments();
},
error: function( data ) {
if ( widget_id ) {
Expand Down Expand Up @@ -2926,3 +2937,16 @@ function rtmedia_disable_popup_navigation( $selector ){
} );
} );
}

/**
* Function that smooth scrolls to the latest comment in rtMedia.
* Created on 23-Nov-2020 by Vipin Kumar Dinkar <[email protected]>
*/
const rtMediaScrollComments = () => {
const commentBox = document.getElementById( 'rtmedia_comment_ul' );

if ( commentBox !== null ) {
const commentsToScroll = ( commentBox.offsetHeight ) * 1000;
commentBox.scrollTo( { top: commentsToScroll, behavior: 'smooth' } );
}
}
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
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!
Version: 4.6.5
Version: 4.6.6
Author: rtCamp
Text Domain: buddypress-media
Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
Expand All @@ -21,7 +21,7 @@
/**
* The version of the plugin
*/
define( 'RTMEDIA_VERSION', '4.6.5' );
define( 'RTMEDIA_VERSION', '4.6.6' );
}

if ( ! defined( 'RTMEDIA_PATH' ) ) {
Expand Down
4 changes: 2 additions & 2 deletions languages/buddypress-media.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
msgid ""
msgstr ""
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.5\n"
"Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.6.6\n"
"Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
"POT-Creation-Date: 2020-11-23 08:24:44+00:00\n"
"POT-Creation-Date: 2020-12-29 07:57:11+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down
23 changes: 17 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=== rtMedia for WordPress, BuddyPress and bbPress ===
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, shobhit2412, vaishaliagola27
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, shobhit2412, vaishu.agola27
Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, image, upload, share, MediaElement.js, media-node, rtMedia, WordPress, bbPress, masonry
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: WordPress 4.1
Tested up to: 5.5.3
Stable tag: 4.6.5
Tested up to: 5.6
Stable tag: 4.6.6

Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.

Expand Down Expand Up @@ -134,6 +134,17 @@ http://www.youtube.com/watch?v=dJrykKQGDcs

== Changelog ==

= 4.6.6 [December 30, 2020] =

* Enhancement

* Added fading effect for the media lightbox

* FIXED

* UI/UX issues
* JS errors/notices

= 4.6.5 [November 23, 2020] =

* FIXED
Expand Down Expand Up @@ -176,7 +187,7 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
* Custom css not applying when added from rtMedia settings’ custom css tab
* Too many redirections on BuddyPress’ privacy page
* Unable to delete media from lightbox and single media page
* Likes on mendia comment not working
* Likes on media comment not working
* PHP errors and warning

= 4.6.1 [April 9, 2020] =
Expand Down Expand Up @@ -1718,8 +1729,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs

== Upgrade Notice ==

= 4.6.5 =
rtMedia 4.6.5 with added added fixes such as sitewide activities media missing in media page, JS errors on trying to edit an image, along with other small UI/UX fixes and improvements.
= 4.6.6 =
rtMedia 4.6.6 with enhancement added for media lightbox and some UI/UX fixes and JS fixes.

== Sponsors ==

Expand Down

0 comments on commit 7c57589

Please sign in to comment.