BlackJack Posted August 9, 2022 Share Posted August 9, 2022 Tell me how to make it so that users can add videos on the site to the premium section and the video is visible only to premium users? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted August 9, 2022 Share Posted August 9, 2022 Please go to Website UI -> Pages and search for video_edit there. There should be a Video Edit block on [Memberzone] My Profile page. In this block template search for edit_video_is_private. It will show piece of code where radio buttons are rendered for choosing between public and private videos. You need to add one more radio button and label for it: {{if $smarty.post.is_private==2 || $smarty.post.video_id==0}} <input type="radio" id="edit_video_is_private_2" name="is_private" value="2" class="radio" {{if $smarty.post.is_private==2}}checked{{/if}} {{if $is_locked=='true'}}disabled{{/if}}> <label for="edit_video_is_private_2">Premium</label> {{/if}} But them because in KVS it is not possible to convert between standard and premium videos and vise versa, you need to also add some wrapping {{if}} around 2 existing radio buttons, so the whole code of the block will look like this: <div class="row"> <div class="button-group"> <label for="edit_video_is_private" class="field-label">{{$lang.edit_video.field_is_private}}</label> <div class="row"> {{if $smarty.post.is_private!=2 || $smarty.post.video_id==0}} <input type="radio" id="edit_video_is_private_0" name="is_private" value="0" class="radio" {{if $smarty.post.is_private==0}}checked{{/if}} {{if $is_locked=='true'}}disabled{{/if}}> <label for="edit_video_is_private_0">{{$lang.edit_video.field_is_private_values.0}}</label> <input type="radio" id="edit_video_is_private_1" name="is_private" value="1" class="radio" {{if $smarty.post.is_private==1}}checked{{/if}} {{if $is_locked=='true'}}disabled{{/if}}> <label for="edit_video_is_private_1">{{$lang.edit_video.field_is_private_values.1}}</label> {{/if}} {{if $smarty.post.is_private==2 || $smarty.post.video_id==0}} <input type="radio" id="edit_video_is_private_2" name="is_private" value="2" class="radio" {{if $smarty.post.is_private==2}}checked{{/if}} {{if $is_locked=='true'}}disabled{{/if}}> <label for="edit_video_is_private_2">Premium</label> {{/if}} </div> </div> <div class="field-error down"></div> </div> In order to make premium videos to be accessible only for premium members, please go to Settings -> Memberzone settings and adjust premium videos visibility option. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.