Files
Testing/templates/user_eventvideo.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

372 lines
14 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{include file='header.tpl'}{literal}<style>
.needsattention img{width:100px;}
.needsattention div, .pendingreview div, .deleted div{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width:100px; height:auto;}
.needsattention{position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: #d4a411;
opacity: 60%;}
.pendingreview img{width:100px;}
.pendingreview{position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: #009529;
opacity: 60%;}
.deleted img{width:100px;}
.deleted{position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
background: #ff0000;
opacity: 60%;}
.frmSearch {border: 1px solid #a8d4b1;background-color: #c6f7d0;margin: 2px 0px;padding:40px;border-radius:4px;}
#country-list{float:left;list-style:none;margin-top:-3px;padding:0;width:190px;position: absolute;}
#country-list li{padding: 10px; background: #fa3200; border-bottom: #fa3200 1px solid;}
#country-list li:hover{background:#000000;cursor: pointer;}
</style>{/literal}
{* $Id: user_video.tpl 148 2009-03-30 23:58:01Z john $ *}
<ul class="nav nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabs" style="border-bottom:2px solid black;">
<li role="presentation" class="active"><a href="user_eventvideo.php" class="jquerycss">Event Videos</a></li>
<li role="presentation"><a href="tag_eventvideo.php" class="jquerycss">Tagged Videos</a></li>
</ul><br>
<br>
<!--<img src='./images/icons/video_video48.gif' border='0' class='icon_big' />-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">My Event Videos</span></div>
<div>{lang_sprintf id=5500103 1=$videos_total}</div>
{if $user->usersetting_info.numvideos==-1}
{* if $videos_total < $user->level_info.level_video_maxnum *}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{* /if *}
{else}
{* UPLOAD NEW VIDEO BUTTON *}
{if $task1=="resize"}<h2>Thank you, your video will be resized</h2>{/if}
{if $user->usersetting_info.numvideos==0}
{if $videos_total < $user->level_info.level_video_maxnum}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{/if}
{else}
{if $user->usersetting_info.numvideos >= $videos_total}
<div style='margin-top: 20px;'>
{* No youtube *}
{if $user->level_info.level_youtube_allow && FALSE}
<div class='button' style='float:left;'>
<a href='user_video_upload.php?task=youtube'><!--<img src='./images/icons/youtube.gif' border='0' class='button' />-->{lang_print id=5500186}</a>
</div>
{/if}
<div style='clear: both; height: 0px;'></div>
</div>
{/if}
{/if}
{/if}
<br />
{* LOOP THROUGH VIDEOS *}
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
<div class='videoTab'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' style="width:80px;">
<div class='video_photo' style="position:relative; width:80px;">
{if $videos[video_loop].approved!=3}
<a href='video_event.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&event_id={$videos[video_loop].video_event_id}'><img src='{if $videos[video_loop].cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$videos[video_loop].thumbfolder1}video_{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}/images/video_placeholder.gif'" border='0' style="width: 80px; height:80px;" class="lozad"></a>
{else}<div style="width:80px; height:80px;"></div>{/if}
{if $videos[video_loop].approved==0||$videos[video_loop].approved==4}<div class="pendingreview"><div><i class="fa-solid fa-circle-ellipsis mediastatus"></i></div></div>{elseif $videos[video_loop].approved==2}<div class="needsattention"><div>
<i class="fa-solid fa-circle-exclamation mediastatus"></i>
</div></div>{elseif $videos[video_loop].approved==3}<div class="deleted"><div style="padding-top:10px;"><i class="fa-solid fa-film-slash mediastatus" style="font-size:80px;"></i></div></div>{/if}
</div>
{if $videos[video_loop].approved==0||$videos[video_loop].approved==4}<div style="font-size: 8px;color: #009529; text-align:right;font-weight:bold;">Pending Review</div></div>{elseif $videos[video_loop].approved==2}<div style="font-size: 8px;color: #ffff00; text-align:right; font-weight:bold;">Needs Attention</div>{elseif $videos[video_loop].approved==3}<div style="font-size: 8px;color: #ff0000; text-align:right; font-weight:bold;">Removed</div>{elseif $videos[video_loop].approved==1}<div style="font-size: 8px;color: #00ff00; text-align:right;font-weight:bold;">Approved</div>{/if}
{if $videos[video_loop].approved==0||$videos[video_loop].approved==4}
{elseif $videos[video_loop].approved==2}<br>
<br><div style="font-size: 8px; line-height:20px; border:1px solid #d4a411;padding: 4px;">Before we can publish this image, you’ll need to tag other visible users.<br><a href="https://support.bateworld.com/support/solutions/articles/154000136596-how-do-i-tag-a-buddy-in-a-video-i-upload-to-a-event-" target="_blank">Need help with tagging users?</a>
</div>{elseif $videos[video_loop].approved==3}<br>
<br><div style="font-size: 8px; line-height:20px;border:1px solid #ff0000; padding: 4px;">"{$videos[video_loop].filename}" was removed because it violated BateWorld’s TOS. <br>
<a href="/contact" target="_blank">Think we made a mistake?</a>
</div>{/if}
</td>
<td valign='top' style='padding-left: 7px;'>
<div class='video_title'><a href='video_event.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&event_id={$videos[video_loop].video_event_id}'>{$video_title|truncate:30:'...':true}</a></div>
{* VIDEO HAD A PROBLEM ENCODING *}
{if $videos[video_loop].video_is_converted == -1}
<div style="padding-top:2px;padding-left:15px;font-weight:bold;color:#ee3333;">{lang_print id=5500203}</div>
{* VIDEO HAD A PROBLEM UPLOADING *}
{elseif !$videos[video_loop].video_uploaded}
<div style="padding-top:2px;padding-left:15px;font-weight:bold;color:#ee3333;">{lang_print id=5500204}</div>
{* VIDEO IS WAITING TO BE ENCODED *}
{elseif !$videos[video_loop].video_is_converted}
<div style="padding-top:2px;padding-left:15px;font-weight:bold;">{lang_print id=5500202}</div>
{* VIDEO IS PROPERLY ENCODED *}
{else}
{/if}
<div class='video_options'>
{* EDIT VIDEO *}
{if $videos[video_loop].video_is_converted == 1 && $videos[video_loop].video_uploaded}
<div style='float: left; padding-right: 15px;'>
<a href='user_eventvideo.php?event_id={$videos[video_loop].video_event_id}&media_id={$videos[video_loop].video_id}&task=edit' data-toggle="modal" data-target="#myModal"><!--<img src='./images/icons/video_edit16.gif' border='0' class='button' />-->{lang_print id=5500107}</a>
- <a href='javascript:void(0);' onClick="confirmDelete('{$videos[video_loop].video_id}');">Delete</a>
</div>
{*<div style='float: left; padding-right: 15px;'>
<a href='user_video.php?file={$dir}{$videos[video_loop].video_id}.mp4'>Download Video</a>
</div>
*}
{/if}
{* RETRY UPLOAD *}
{if $videos[video_loop].video_is_converted == -1 || !$videos[video_loop].video_uploaded}
<div style='float: left; padding-right: 15px;'>
<a href='user_video_upload.php?task=upload&video_id={$videos[video_loop].video_id}'><!--<img src='./images/icons/back16.gif' border='0' class='button' />-->Retry Upload</a>
</div>
{/if}
</div>
</td>
</tr>
</table>
</div>
{cycle values=",<div style='clear: both; height: 0px;'></div>"}
{/section}
<div style='clear: both; height: 0px;'></div>
{* IF NO VIDEOS, SHOW NOTE *}
{if $videos_total == 0}
<table cellpadding='0' cellspacing='0'>
<tr><td class='result'>
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->{lang_print id=5500109}</div>
</td></tr>
</table>
{/if}
{* JAVASCRIPT FOR CONFIRMING DELETION *}
{literal}
<script type="text/javascript">
<!--
var video_id = 0;
function confirmDelete(id)
{
video_id = id;
opendivmodal('confirmdelete');
}
function deleteVideo()
{
var request = new Request({
'url' : 'user_eventvideo.php',
'method' : 'post',
'data' : {
'task' : 'delete',
'video_id' : video_id
},
onComplete : function()
{
window.location = 'user_eventvideo.php';
}
}).send();
}
function editVideo(id, title, desc, search, privacy, comments, tags)
{
content=jQuery("#editvideo").html();
jQuery("#myModal").html(content);
jQuery("#tag").val("");
jQuery("#tags").val("");
jQuery(".modal-content").css("background", "black")
jQuery('form input').keydown(function (e) {
if (e.keyCode == 13) {
selectUsertotag(jQuery(".usersuggestions").val());
e.preventDefault();
return false;
}
});
jQuery(".tag").keyup(function(){
jQuery.ajax({
type: "POST",
url: "misc_js.php?task=find_users_to_tag&input="+jQuery(this).val(),
data:'input='+jQuery(this).val(),
beforeSend: function(){
//jQuery("#usersuggestions").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px");
},
success: function(data){
//alert(jQuery(this).parent(".tagscontainer").);
jQuery(".usersuggestions").show();
jQuery(".usersuggestions").html(data);
//jQuery("tag").css("background","#FFF");
}
});
});
$('video_id').value = id;
$('video_title').defaultValue = title;
$('video_title').value = title;
$('video_desc').defaultValue = desc;
$('video_desc').value = desc;
jQuery('.toshowusers').html(tags);
if( $('video_search_'+search) )
{
$('video_search_'+search).checked = true;
$('video_search_'+search).defaultChecked = true;
}
if( $('privacy_'+privacy) )
{
$('privacy_'+privacy).checked = true;
$('privacy_'+privacy).defaultChecked = true;
}
if( $('comments_'+comments) )
{
$('comments_'+comments).checked = true;
$('comments_'+comments).defaultChecked = true;
}
// opendivmodal('editvideo');
}
function selectUsertotag(val) {
who=jQuery(".tags").val();
whoarray=who.split(",");
alreadyin=0;
for(var i = 0; i < whoarray.length; i++){
if(val==whoarray[i]){alreadyin=1;}
}
if(alreadyin==0){
if(who==""){
jQuery(".tags").val(val);
}else{
jQuery(".tags").val(who+","+val);
}
jQuery(".toshowusers").append(val+"<br>");
}
who=jQuery(".tags").val();
whoarray1=who.split(",");
jQuery(".usersuggestions").hide();
jQuery(".tag").val("");
}
//-->
</script>
{/literal}
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
<div style='display: none;' id='confirmdelete'>
<div style='margin-top: 10px;'>
{lang_print id=5500146}
</div>
<br>
<input type='button' class='button' value='{lang_print id=175}' onClick='parent.deleteVideo();closemodal();'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
</div>
{* HIDDEN DIV TO DISPLAY EDIT VIDEO *}
<div style='display: none;' id='editvideo'>
<div class="modal-dialog"><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button><div class="modal-content" style="text-align:left;">
<form action='user_eventvideo.php' name='editForm' method='post' target='_parent' autocomplete="off">
<div style='margin-top: 10px;'>{lang_print id=5500082}</div>
<br />
<b>{lang_print id=5500078}</b><br>
<input name='video_title' id='video_title' type='text' class='text' maxlength='50' size='30' value=''>
<br />
<br />
<b>{lang_print id=5500079}</b><br>
<textarea name='video_desc' id='video_desc' rows='6' cols='50'></textarea>
<br />
<br>
<div class="tagscontainer">
<div class="toshowusers"></div>
<div class="tagcontainer">Tag other members appearing in this video:</div><div><input type="text" name="tag" id="tag" class="tag"><div class="usersuggestions"></div>
</div>
<input type='hidden' name='tags' id='tags' class="tags" value=''>
<br>
<br>
<input type='submit' class='button' value='{lang_print id=173}' />
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();' />
<input type='hidden' name='task' value='edit' />
<input type='hidden' name='video_id' id='video_id' value='0' />
</form>
<br />
<br />
</div></div></div></div>
{include file='footer.tpl'}