solved question on controlling uploaded videos by members

Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I want to import all the uploaded videos that my mebers currently have on my ning site, and still allow all those videos to show and play in my new JR site. However, I'd like to prevent my members from uploading NEW videos directly to my site in the future, once we go live. I want to instead have them only add videos via Youtube or Vimeo from now on. But I don't want to take away the videos they will have that get imported from ning. Thus, I cannot just de-activate the video module on member profiles, because they wouldn't be able to see their old videos that are already uploaded and working.

I thought I'd be able to do this using the User/Profile Daily limits modules, and I'd simply set the daily video upload limit for members to 0, going into the future and that would prevent NEW videos from being uploaded.
But I now see the module doesn't allow me to set a zero as the limit- it has to be at least the number 1.
How else can I do this?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 05/03/15 12:04:22AM
brian
@brian
9 years ago
10,148 posts
Right now you would need to do something custom - Jamroom does not have a "allow it to work before the current time" setting or function to make that happen.

We can look at modifying the Daily limits module to handle this, but it's not supported at this time.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 03/21/15 11:59:58AM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
That would be a very, very useful modification to the Daily Limits modules. It would enable admins to halt/resume various uploads to our sites, for various purposes.
I'd appreciate if you added that modification to a list of future module enhancements. :)

I guess for now I'll just set it to 1, which will at least keep members from uploading bunches of server-hogging videos at a time.

Thanks Brian!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
I don't believe it will actually work correctly in this instance:

1) the Profile Limits module keys off of the + button on the item index - in this case that button is hidden from the user since the "index" is the combined index

2) Setting the limit to 0 would still show the "Upload Video" option, since that is determined by the options available in the user's quota

So it would be a hack.

A better choice would be to modify the jrCombinedVideo/templates/create_video.tpl file and change it to this:

{foreach $_vids as $mod => $_i}
    {if $mod != 'jrVideo'}
    <a href="{$jamroom_url}/{jrCore_module_url module=$mod}/{$_i.view}">
    <div class="video-choice">
        <img src="{$_i.icon_url}" width="72" height="72" title="{$_i.alt|jrCore_entity_string}" alt="{$_i.alt|jrCore_entity_string}">
        <br>
        {$_i.title|jrCore_entity_string}
    </div>
    </a>
    {/if}
{/foreach}
<div style="clear:both"></div>
<br>
<a id="video-close" onclick="$('#create_video_dropdown').fadeOut(100);">{jrCore_icon icon="close" size="16"}</a>

That way it hides it from being an option.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 03/21/15 12:25:20PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
YES! That's exactly what I needed!
In fact, my next question was going to be How to remove the "upload video" option from the "add video" button...so this actually solves the whole issue anyway!

Yay!! :D Closing this now.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015