Love the gallery btw. However, I need to adjust the file size limitation and the allowable file types for videos and photos. How can this be done?
-
Posted 1 year ago #
-
hi
Thanks for the message.
Please put this in your functions.php//changing the extension for photo add_filter("gallery_valid_file_extension_for_photo","my_custom_photo_extensions",20); function my_custom_photo_extensions($ext){ return array("jpg","jpeg","png",gif");// all the extensions you want as an array }The same goes for video/audio
you will need following filters for them
gallery_valid_file_extension_for_video gallery_valid_file_extension_for_audioYou can adjust the file size limitation from wp-admin->Buddypress->Gallery settings
Please let me know if you still face difficulties.Thanks
BrajeshPosted 1 year ago # -
Thanks for the reply Brajesh. Please forgive my apparent ignorance here. There is no file referred to as functions.php in my installation. I am comfortable enough with php to make the changes but I am unable to locate the reference you posted above. If you could indulge me, please provide specific detailed instructions on what I should be looking for and changing.
I'm OK with the file size area. Although as a possible added feature, could you make separate admin rights from user rights? As in, admin can upload 500mb but users can only upload 50mb.
Also, in reference to the first question, having the ability, as admin, to change the acceptable file extensions through the dashboard would be enormously helpful.
Posted 1 year ago # -
There is a functions.php files in your theme folder. For instance, if you're using bp-default, the file would be located in /wp-content/plugins/buddypress/bp-themes/bp-default/functions.php. If you're using a different theme, it would be in /wp-content/themes/(your theme)/functions.php.
Posted 1 year ago # -
Interestingly, I'm using the Saffron theme and the Gallery directory is located there as per the installation instructions. However, the functions.php is located in /wp-content/plugins/buddypress/bp-themes/bp-default/. Is this wrong?
Posted 1 year ago # -
Well, it seems that the flowplayer is having difficulty with my files. I have a Flip video camera. I convert some mp4 files to .mov and .avi. The mov file get audio but no video and the .flv file gets a 200, Stream not found, Netstream.play.StreamNotFound.clip ... Any ideas here?
Oh, I added the filters and it allowed the upload.
Posted 1 year ago # -
Flowplayer is a flash video player and not really designed to run mov or avi's. You fixed the filter to allow the upload, but the conversion doesn't always work right for the player. If you have a choice of what to convert it to, you should choose .flv but if not, you should be researching showing .mov and .avi. Hope this helps.
Posted 1 year ago # -
Yeah, I was afraid you were going to say that. I tried .flv conversion but it sucked, very jittery. The Flowplayer website claims mov and avi aren't a problem. So they say. Any suggestion on a MP4 to FLV converter that maintains the quality of the video?
Posted 1 year ago # -
I answered my own question. For anyone else needing one, there is a FREE video converter that produces excellent FLV videos here http://www.any-video-converter.com/products/for_video_free/
They work great on the Flowplayer too!
Posted 1 year ago # -
@redsaguaro
Thanks for the heads-up! I had the eval version of AVC-pro installed (which adds an audio "watermark" every few seconds). Didn't even see the free version.
Works great... thanks again.
Posted 1 year ago #
Reply
You must log in to post.