Version Description
Fixed the Notice that was generated on the albums page
Download this release
Release Info
Developer | rtcamp |
Plugin | rtMedia for WordPress, BuddyPress and bbPress |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- includes/bp-media-actions.php +1 -1
- includes/bp-media-screens.php +1 -1
- includes/bp-media-template-functions.php +17 -4
- includes/bp-media-upgrade-script.php +4 -3
- loader.php +2 -2
- readme.txt +5 -2
includes/bp-media-actions.php
CHANGED
@@ -273,7 +273,7 @@ function bp_media_upload_enqueue(){
|
|
273 |
'container' => 'bp-media-upload-ui',
|
274 |
'drop_element' => 'drag-drop-area',
|
275 |
'filters' => array(array('title' => "Media Files",'extensions'=> "mp4,jpg,png,jpeg,gif,mp3")),
|
276 |
-
'max_file_size' => '
|
277 |
'multipart' => true,
|
278 |
'urlstream_upload' => true,
|
279 |
'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
|
273 |
'container' => 'bp-media-upload-ui',
|
274 |
'drop_element' => 'drag-drop-area',
|
275 |
'filters' => array(array('title' => "Media Files",'extensions'=> "mp4,jpg,png,jpeg,gif,mp3")),
|
276 |
+
'max_file_size' => min(array(ini_get('upload_max_filesize'),ini_get('post_max_size'))),
|
277 |
'multipart' => true,
|
278 |
'urlstream_upload' => true,
|
279 |
'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ),
|
includes/bp-media-screens.php
CHANGED
@@ -584,7 +584,7 @@ function bp_media_albums_screen_content() {
|
|
584 |
bp_media_album_the_content();
|
585 |
endwhile;
|
586 |
echo '</ul>';
|
587 |
-
bp_media_display_show_more();
|
588 |
do_action('bp_media_after_content');
|
589 |
else:
|
590 |
bp_media_show_formatted_error_message(__('Sorry, no albums were found.', 'bp-media'), 'info');
|
584 |
bp_media_album_the_content();
|
585 |
endwhile;
|
586 |
echo '</ul>';
|
587 |
+
bp_media_display_show_more('albums');
|
588 |
do_action('bp_media_after_content');
|
589 |
else:
|
590 |
bp_media_show_formatted_error_message(__('Sorry, no albums were found.', 'bp-media'), 'info');
|
includes/bp-media-template-functions.php
CHANGED
@@ -217,11 +217,24 @@ function bp_media_album_the_content($id = 0) {
|
|
217 |
echo '';
|
218 |
}
|
219 |
}
|
220 |
-
function bp_media_display_show_more(){
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">Show More</a></div>';
|
|
|
225 |
}
|
226 |
|
227 |
function bp_media_show_upload_form_multiple_activity() {
|
217 |
echo '';
|
218 |
}
|
219 |
}
|
220 |
+
function bp_media_display_show_more($type='media'){
|
221 |
+
$showmore = false;
|
222 |
+
switch($type){
|
223 |
+
case 'media':
|
224 |
+
global $bp_media_query;
|
225 |
+
//found_posts
|
226 |
+
if(isset($bp_media_query->found_posts)&&$bp_media_query->found_posts>10)
|
227 |
+
$showmore = true;
|
228 |
+
break;
|
229 |
+
case 'albums':
|
230 |
+
global $bp_media_albums_query;
|
231 |
+
if(isset($bp_media_query->found_posts)&&$bp_media_query->found_posts>10)
|
232 |
+
$showmore = true;
|
233 |
+
break;
|
234 |
+
}
|
235 |
+
if($showmore){
|
236 |
echo '<div class="bp-media-actions"><a href="#" class="button" id="bp-media-show-more">Show More</a></div>';
|
237 |
+
}
|
238 |
}
|
239 |
|
240 |
function bp_media_show_upload_form_multiple_activity() {
|
includes/bp-media-upgrade-script.php
CHANGED
@@ -53,9 +53,10 @@ function bp_media_upgrade_to_2_2(){
|
|
53 |
}
|
54 |
}
|
55 |
update_option('bp_media_db_version',BP_MEDIA_DB_VERSION);
|
56 |
-
add_action('admin_notices',
|
57 |
-
<b>BuddyPress Media</b> Database upgraded successfully.
|
58 |
-
</p></div>';});
|
59 |
wp_cache_flush();
|
60 |
}
|
|
|
|
|
|
|
61 |
?>
|
53 |
}
|
54 |
}
|
55 |
update_option('bp_media_db_version',BP_MEDIA_DB_VERSION);
|
56 |
+
add_action('admin_notices','bp_media_database_updated_notice');
|
|
|
|
|
57 |
wp_cache_flush();
|
58 |
}
|
59 |
+
function bp_media_database_updated_notice(){echo '<div class="updated rt-success"><p>
|
60 |
+
<b>BuddyPress Media</b> Database upgraded successfully.
|
61 |
+
</p></div>';}
|
62 |
?>
|
loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BuddyPress Media
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
-
Version: 2.2.
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
*/
|
@@ -12,7 +12,7 @@ Author URI: http://rtcamp.com
|
|
12 |
define('BP_MEDIA_IS_INSTALLED', 1);
|
13 |
|
14 |
/* Constant to store the current version of the BP Media Plugin. */
|
15 |
-
define('BP_MEDIA_VERSION', '2.2.
|
16 |
|
17 |
/* A constant to be used as base for other URLs throughout the plugin */
|
18 |
define('BP_MEDIA_PLUGIN_DIR', dirname(__FILE__));
|
3 |
Plugin Name: BuddyPress Media
|
4 |
Plugin URI: http://rtcamp.com/buddypress-media/
|
5 |
Description: This plugin adds missing media rich features like photos, videos and audios uploading to BuddyPress which are essential if you are building social network, seriously!
|
6 |
+
Version: 2.2.2
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
*/
|
12 |
define('BP_MEDIA_IS_INSTALLED', 1);
|
13 |
|
14 |
/* Constant to store the current version of the BP Media Plugin. */
|
15 |
+
define('BP_MEDIA_VERSION', '2.2.2');
|
16 |
|
17 |
/* A constant to be used as base for other URLs throughout the plugin */
|
18 |
define('BP_MEDIA_PLUGIN_DIR', dirname(__FILE__));
|
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: 3.3.2
|
8 |
Tested up to: 3.4.2
|
9 |
-
Stable tag: 2.2.
|
10 |
|
11 |
Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
|
12 |
|
@@ -73,6 +73,9 @@ Please visit [BuddyPress Media's Features page](http://rtcamp.com/buddypress-med
|
|
73 |
|
74 |
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about fuure releases.
|
75 |
|
|
|
|
|
|
|
76 |
= 2.2.1 =
|
77 |
* Removed anonymous function since its not supported in PHP versions < 5.3
|
78 |
|
@@ -127,4 +130,4 @@ Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-medi
|
|
127 |
* HTML5 Video Tag Support (with fallback)
|
128 |
|
129 |
== Upgrade Notice ==
|
130 |
-
Added album support for user-profile. Important update with plenty of new features.
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 3.3.2
|
8 |
Tested up to: 3.4.2
|
9 |
+
Stable tag: 2.2.2
|
10 |
|
11 |
Adds Photos, Music, Videos & Albums to your BuddyPress. Supports mobile devices (iPhone/iPad, etc) and automatic audio/video conversion.
|
12 |
|
73 |
|
74 |
Please visit [BuddyPress Media's Roadmap page](http://rtcamp.com/buddypress-media/roadmap/ "Visit BuddyPress Media's Features page") to get some details about fuure releases.
|
75 |
|
76 |
+
= 2.2.2 =
|
77 |
+
Fixed the Notice that was generated on the albums page
|
78 |
+
|
79 |
= 2.2.1 =
|
80 |
* Removed anonymous function since its not supported in PHP versions < 5.3
|
81 |
|
130 |
* HTML5 Video Tag Support (with fallback)
|
131 |
|
132 |
== Upgrade Notice ==
|
133 |
+
Added album support for user-profile. Important update with plenty of new features.
|