Jump to content

Customize Uploader Video Page


snqke

Recommended Posts

Hello,

 

I want to customize the uploader video page for simple user 

and add the field premium near the private and public (Visibility)

and make the verified users to specify the number of tokens for the premium video 

Capture222.PNG

Link to comment
Share on other sites

This can be customized in Website UI -> Pages, search for video_edit block. In this block there is this code:

<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>

You can add additional radio button with value = 2 for premium videos. Then you also need to add a text edit_video.field_is_private_values.2 into Website UI -> Texts, or you can just hardcode the word "Premium" right in template.

For verified users to add a number of tokens you can add this code:

{{if $smarty.session.is_trusted==1}}
	<div class="row">
		<label for="video_edit_tokens_required">Video cost in tokens</label>
		<input id="video_edit_tokens_required" class="textfield" type="text" name="tokens_required" value="{{$smarty.post.tokens_required}}"/>
		<div class="field-error down"></div>
	</div>
{{/if}}

 

Link to comment
Share on other sites

Thanks for your reply,

I just added this following code, but it does not work properly

<input type="radio" id="edit_video_is_private_2" name="is_premium" 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">{{$lang.edit_video.field_is_private_values.2}}</label>

 

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.

×
×
  • Create New...