103 lines
3.5 KiB
Smarty
103 lines
3.5 KiB
Smarty
{include file='header.tpl'}
|
|
{if $user->user_info.user_level_id==2}
|
|
{if $task=="uploaded"}
|
|
Your video has been uploaded
|
|
{else}{if $user->user_info.introvid != ""}
|
|
{literal}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/literal}
|
|
{/if}
|
|
<div class="center">
|
|
Current Intro Video<br />
|
|
|
|
{if $user->user_info.introvid==""}
|
|
{elseif $user->user_info.video_is_converted==2 || $user->user_info.video_is_converted==0}
|
|
Your video is being processed
|
|
{else}
|
|
{literal}
|
|
<script src="/js/html5media.min.js"></script>
|
|
<video width="400" height="350" id="myElement" controls poster="{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a_thumb.jpg{literal}">
|
|
|
|
|
|
<source src="{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a.mp4{literal}" type="video/mp4">
|
|
<source src="{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a{literal}.flv" type="video/flv">
|
|
|
|
|
|
Please use another browser to view this video.
|
|
|
|
</video>
|
|
|
|
<script type="text/javascript" src="/player/jwplayer.js" ></script>
|
|
<script type="text/javascript">jwplayer.key="ZEHRl3BZ35p1owAi0ceaQ6S3yKRy5SJt+CC1pA==";</script>
|
|
<script type="text/javascript">
|
|
|
|
function supports_h264_baseline_video() {
|
|
|
|
//if (!supports_video()) { return false; }
|
|
var v = document.createElement("video");
|
|
return v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');
|
|
}
|
|
|
|
jQuery(document).ready(function() {
|
|
var v = document.createElement("video"); // Check if the browser supports the video tag
|
|
if (!supports_h264_baseline_video()) {
|
|
|
|
jwplayer("myElement").setup({
|
|
modes: [
|
|
{ type: 'flash', src: '/player/player.swf' },
|
|
{ type: 'html5' }
|
|
|
|
],
|
|
levels: [
|
|
{file: "{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a.flv{literal}", type: 'video/flv' },
|
|
{file: "{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a.mp4{literal}", type: 'video/mp4' }
|
|
|
|
],
|
|
|
|
//file: "{/literal}{$video_info.video_dir|replace:'./':''}{$video_id}.mp4{literal}",
|
|
image: "{/literal}{$url->url_userdir($user->user_info.user_id)}a12541a_thumb.jpg{literal}",
|
|
height: 350,
|
|
width: 400
|
|
});}
|
|
else {
|
|
// fix for firefox not looping
|
|
var myVideo = document.getElementById('demo-video');
|
|
|
|
if (!(typeof myVideo.loop == 'boolean')) { // loop supported
|
|
myVideo.addEventListener('ended', function () {
|
|
this.currentTime = 0;
|
|
this.play();
|
|
}, false);
|
|
}
|
|
}
|
|
});</script>{/literal}
|
|
{/if}
|
|
|
|
|
|
{* SHOW REMOVE PHOTO LINK IF NECESSARY *}
|
|
{if $user->user_info.introvid != ""}
|
|
<div id="userEditRemovePhotoLink">[ <a href='intro_upload.php?task=remove'>remove intro video</a> ]</div>
|
|
{/if}
|
|
|
|
<div style="padding-bottom:10px;padding-top:20px;">Add a short video introduction. Please keep it under 2 minutes. No oral or anal sex images please.</div>
|
|
{include file='user_upload.tpl' action='intro_upload.php' session_id=$session_id upload_token=$upload_token show_uploader=1 inputs=$inputs file_result=$file_result max_files=1 }
|
|
</div>
|
|
{/if}
|
|
{else}
|
|
<div class='page_header'>The content you are attempting to view is for Paid Members only.</div>
|
|
For Premium Access, <a href="/content.php?page=premium-membership">CLICK HERE</a> to upgrade your membership.
|
|
<br />
|
|
<br />
|
|
<br />
|
|
|
|
<input type='button' class='button' value='Return' onClick='history.go(-1)'>
|
|
|
|
|
|
{/if}
|
|
{include file='footer.tpl'} |