Jump to content

Premium videos


Recommended Posts

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.

 

  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...