Now we have the new video feature there is not an option for choices of who can upload videos. As uploads can take a lot of space for your storage allowance here is an option to only have that available for Admins so members don't go crazy uploading videos. Unless you are on the biggest plan with lot's of storage available then this could become an issue. As each video size is allowed upto 100mb so if you are on the basic plans which only gives you 1gig of storage then 10 videos at 100mb each will wipe out your storage for your whole site.
This code will still allow members to embed but not upload where as Admins can do both.
Code to go in your site&pages custom code end of page section
<script>
if (!x$("body").hasClass("isAdmin")) {
x$('.newVideoPage-inputFileWrapper').closest('.form-field').addClass('uploadingOption');
x$('.uploadingOption').closest('.module-body').addClass('uploadingOption');
x$('.newVideoPage-page1 .module-header:first').addClass('uploadingOption');
x$('.uploadingOption').hide();
x$('.newVideoPage-page1 .module-name').text('Add Videos From YouTube, Hulu, Vimeo, or Another Service');
}
</script>
Also we are going to add one line of css as well into our design studio, it is in the custom code also but this will help it go away quicker
.uploadingOption{ display:none!important }
It would be better to use the remove option but it seems that the form upload code requires the other form field to be there as well for embeds which is why I did not use the remove option.
Hope this helps
John :-)
Replies