Files
Testing/templates/video_group.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

1929 lines
36 KiB
Smarty

{include file='header.tpl'}
{literal}
<link rel="stylesheet" type="text/css" href="/include/videogallery3/css/mvp.css" />
<style>
.mvp-pip-toggle{display:block!important;}
#imagecontainer1{height:627px;background:#0D0D0D; text-align:center;position: relative;}
#imagecontainer img{margin:auto; max-height:100%;}
#videocontainer{display:none; }
.mvp-player-wrap{width:100%; height:100%;}
.pull-right-ad{float:right; margin-top:-40px}
@media (max-width: 587px){
.pull-right-ad{float:left; text-aliogn:center; margin-top:-20px}
}
.blogo{width:25px;}
#video_rating{background:none;}
@media (min-width: 992px) {
.pull-right-lg {
float: right;
}
}
@media (max-width: 1050px) {
{/literal}#{$owner->user_info.user_username}_profile_comments{literal} {
scroll-margin-top: 80px;
}
}
.jffthumb{
height:75px;
margin:auto;
}
@media (max-width: 477px) {
.jffthumb{
height: 100px;
margin: auto;
width: 100%;
object-fit: cover;
}}
@media (max-width: 367px) {
.jffthumb{
height: 120px;
margin: auto;
width: 100%;
object-fit: cover;
}}
.blogofloat{float: left; padding-left: 35px; padding-top: 5px;}
.blogocommentfloat{float: left; padding-left: 35px; padding-top: 5px;}
.jffusername{margin-top:12px; margin-left:152px;}
.albums_browse_item1{width:249px;}
.albums_browse_item1_margin{border-bottom:2px solid #3F3F3F; margin-bottom:10px; padding-bottom:5px;}
.albums_browse_item1_img img {
position: relative;
left: 50%;
transform: translate(-50%, -50%);
height: auto;
top: 50%;
width: 100%;
min-height: 183.86px;
/* object-fit: cover; */
min-width: 262px;
}
.albums_browse_item1_img{overflow:hidden;
height:183.86px;
}
@media (max-width: 776px){
.blogofloat{float: right; padding-top: 5px;}
.blogocommentfloat{float: left;padding-top: 5px; padding-left:0; clear:both; margin-top:20px;}
.flagreport{margin-top:20px;}
.right-full{width: 100%; padding-left:0;}
.albums_browse_item1_img{width:100%;}
.albums_browse_item1{width: 100%; padding-right:0px;padding-left:0;}
}
#video_rating{font-size:15px;}
.videoratingbar a{color:white; font-weight:normal;}
.videoratingbar img{height:25px; font-size:15px; color:white; margin-bottom: 5px;}
.jffinfo{margin-top:10px; background:#0D0D0D; border:1px solid #3F3F3F; padding:10px; font-size:15px;}
.videoratingbar{
margin-top:10px; background:#0D0D0D; border-radius: 0 0 10px 10px; border:1px solid #3F3F3F; padding:10px 20px 10px 20px; font-size:15px;
}
.videoabout{background: #0D0D0D; padding: 15px 10px 15px 22px; border-radius: 10px 10px 0 0; border:1px solid #3F3F3F; margin-bottom: 25px; color: #bbbbbb;}
.videoaboutheader{font-size:15px; margin-bottom: 10px; color:white;}
.mvp-playlist-title{font-size:13px;}
.mvp-skin-sirius .mvp-solo-progress-level::-webkit-progress-value{
background-color:#fa3200;
}
.mvp-skin-sirius .mvp-solo-progress-level::-moz-progress-bar{
background-color:#fa3200;
}
.mvp-skin-sirius .mvp-contr-btn:hover svg{
color:#fa3200;
}
.mvp-skin-sirius .mvp-input-progress {
color: #fa3200;
}
.mvp-skin-sirius .mvp-input-volume {
color: #fa3200;
}
</style>
{/literal}
{* $Id: video.tpl 236 2009-11-13 05:29:23Z phil $ *}
<div class='page_header'>
{capture assign="owner_url"}{$url->url_create('profile', $owner->user_info.user_username)}&v=video{/capture}
{lang_sprintf id=5500076 1=$url->url_create("group", $smarty.const.NULL, $group->group_info.group_id) 2=$group->group_info.group_title}<br>
by <a href="profile.php?user={$owner->user_info.user_username}">{$owner->user_info.user_username}</a>
</div>
{* LEFT COLUMN - VIDEO PLAYER AND COMMENTS *}
<div class="col-md-12 nopadding">
{* VIDEO HEADER - TITLE AND TEXT *}
<div style='padding:2px;border:1px solid #c0c0c0;'>
<div class='videoHeader'>
<div class='inner' style='cursor:default'>
<h1>{$video_info.video_title}</h1>
<h2 id='short_desc'>{$video_info.video_desc|truncate:100:"...":true}{if $video_info.video_desc|count_characters:true > 100} (<a href='javascript:void(0);' onClick="$('short_desc').style.display = 'none'; $('long_desc').style.display = 'block';">{lang_print id=5500101}</a>){/if}</h2>
{if $video_info.video_desc|count_characters:true > 100}
<h2 id='long_desc' style='display:none'>{$video_info.video_desc|nl2br} (<a href='javascript:void(0);' onClick="$('short_desc').style.display = 'block'; $('long_desc').style.display = 'none';">{lang_print id=5500027}</a>)</h2>
{/if}
</div>
</div>
{literal}
<script type="text/javascript" src="/include/videogallery3/js/new.js"></script>
<script type="text/javascript">
var player;
document.addEventListener("DOMContentLoaded", function(event) {
var settings = {
sourcePath: "/include/videogallery3/",
useEmbed: false,
useRewind: true,
rightClickContextMenu:"browser",
useCasting: true,
usePip: true,//picture in picture
adTitleText: "Advertisement",
adSkipWaitText: "You can skip ad in",
adSkipReadyText: "SKIP AD &#62;",
logoPath:'/images/watermark1.png',//logo above player
inlineAdsContinueInText: "Continue in",
inlineAdsUpgradeText: "<a href='#'>Upgrade to Pro membership to hide these ads</a>",
inlineAdsCountdown: 5,
inlineAdsOccurence: 5000,
useShare:false,
forceAdMutedOnIos:true,
createAdMarkers:true,
playAdsOnlyOnce:true,
adUpcomingMsgText: "Ad will start in..",
showAdUpcomingMsg: true,
adUpcomingMsgTime: 5,
useAdSeekbar: true,
useAdControls: true,
useInfo:false,
instanceName: "player1",
activePlaylist: ".playlist-video",
activeItem: 0,
volume: 0.5,
autoPlay: false,
autoPlayAfterFirst: true,
randomPlay: false,
loopingOn: true,
aspectRatio:1,
useGa: true,
gaTrackingId: "G-00Z6DGT33S",
hidePlaylistOnFullscreenEnter: true,
mediaEndAction: "loop",
//aspectRatio: 1,
playlistOpened: false,
useKeyboardNavigationForPlayback: true,
// rightClickContextMenu: "custom",
playlistItemContent: "thumb,title,description",
vrInfoImage: "/include/videogallery3/data/360.png",
elementsVisibilityArr: [
{
width: 500,
elements: [
"play",
"rewind",
"seekbar",
"fullscreen",
"settings",
"volume",
"chapter",
"annotations"
]
}
],
skin: "sirius",
playlistPosition: "no-playlist",
playerType: "normal",
playlistScrollType_field: "perfect-scrollbar",
/*adPre: //pre-roll: plays before video starts, only one allowed
{
type: "video",
path: [
{
quality: "HD",
mp4: "https://cdn.bateword.com/images/bumper/LOGO116x9.mp4"
}
],
skipEnable: "60", //allow skip to show button after x seconds, optional
link: "http://www.google.com", //url link to open when ad is clicked
target: "_blank" //url link target
},*/
playerTransition: "alpha"
}
player= new mvp(document.getElementById("wrapper"), settings);
player.addEventListener("fullscreenEnter", function(data){
//document.getElementById("arrowchat_base").style.display = "none"
jQuery("#arrowchat_mobiletab").hide();
jQuery("#fixedmobile").hide();
//called on fullscreen enter, returns (instance, instanceName, media)
})
player.addEventListener("fullscreenExit", function(data){
jQuery("#arrowchat_mobiletab").show();
jQuery("#fixedmobile").show();
//jQuery("#arrowchat_base").show();
//jQuery("#fixedmobile").show();
//called on fullscreen exit, returns (instance, instanceName, media)
})
});
</script>
{/literal}
<a href="javascript:void(0);" id="imagecontainer" onclick="jQuery('#imagecontainer').hide(); jQuery('#videocontainer').show();jQuery('#wrapper').css('height', '627px'); player.playMedia();jQuery('.mvp-volume-seekbar').removeClass('mvp-force-hide'); ">
<div id="imagecontainer1">
<img src="{$imagecdn1}{$groupdir|replace:'./':''}video_{$video_info.video_id}_thumb.jpg" class="img-responsive" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); "><div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width:25px; height:auto;"><svg aria-hidden="true" focusable="false" role="img" viewBox="0 0 373.008 373.008" style="width:25px;
z-index: 30000000;"><path fill="#FFFFFF" d="M61.792,2.588C64.771,0.864,68.105,0,71.444,0c3.33,0,6.663,0.864,9.655,2.588l230.116,167.2 c5.963,3.445,9.656,9.823,9.656,16.719c0,6.895-3.683,13.272-9.656,16.713L81.099,370.427c-5.972,3.441-13.334,3.441-19.302,0 c-5.973-3.453-9.66-9.833-9.66-16.724V19.305C52.137,12.413,55.818,6.036,61.792,2.588z" style=""></path></svg></div></div></a>
<div id="videocontainer">
{literal}
<div id="wrapper">
<!-- end mvp-player-wrap -->
</div>
<div id="mvp-playlist-list">
<div class="playlist-video">
<!-- , fucks it up, fix-->
<div class="mvp-playlist-item" data-type="video" data-path='[{/literal}{if $video_info.2160==1}{literal}{"quality": "2160p/4K", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-2160.mp4{literal}"},{/literal}{/if}{if $video_info.1440==1}{literal}{"quality": "1440p/2K", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-1440.mp4{literal}"},{/literal}{/if}{if $video_info.1080==1}{literal}{"quality": "1080p", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-1080.mp4{literal}"}{/literal}{/if}{if $video_info.720==1}{if $video_info.1080==1},{/if}{literal}{"quality": "720p", "mp4":{/literal}"{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-720.mp4{literal}"}{/literal}{/if}{if $video_info.480==1}{if $video_info.1080==1||$video_info.720==1},{/if}{literal}{"quality": "480p","mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-480.mp4{literal}"}{/literal}{/if}{if $video_info.240==1}{if $video_info.1080==1||$video_info.720==1||$video_info.480==1},{/if}{literal}{"quality": "240p", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}-240.mp4{literal}"}{/literal}{/if}{if $video_info.otherres==1}{if $video_info.1080==1||$video_info.720==1||$video_info.480==1||$video_info.240==1},{/if}{literal}{"quality": "Standard", "mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}.mp4{literal}"}{/literal}{/if}{if $video_info.otherres==0 && $video_info.1080==0 && $video_info.720==0 && $video_info.480==0 &&$video_info.240==0}{literal}{"quality": "Standard","mp4":"{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}.mp4"{literal}}{/literal}{/if}{literal}]' data-poster="{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}_thumb.jpg{literal}" data-thumb="{/literal}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$groupdir|replace:'./':''}video_{$video_info.video_id}_thumb.jpg{literal}" data-title="{/literal}{$video_info.video_title}{literal}" data-description="{/literal}{$video_info.video_desc}{literal}">
<!--
<div class="mvp-ad-section">
<div class="mvp-ad mvp-ad-pre" data-type="video" data-path="https://cdn.bateworld.com/images/bumper/Logo16X9.mp4"></div>
</div>
-->
</div>
</div>
</div>
</div>
<!-- Setup video player-->
{/literal}
<!-- HTML playlist -->
</div>
{* SHOW VIDEO DETAILS *}
<div class='videoInfo'>
<div id='tab'>
{if $video_info.ai==1}
<div class="aigenerated" style="margin-bottom: 10px; display:block;"><table style="width: 100%; "><tr><td style="width:15px; vertical-align:top; padding:0;"><i class="fa-light fa-microchip-ai" style="font-size:15px; margin-right:10px;"></i></td><td style="padding:0;">This media may have been generated or manipulated using AI, and may not depict a real person or event.</td></tr></table></div>
{/if}
<div class="videoratingbar">
<div class='videoInfo'>
<div id='tab'>
{* SHOW RATING (NOT ALLOWED TO RATE) *}
{* SHOW RATING (NOT ALLOWED TO RATE) *}
{if !$allowed_to_rate}
<div id='video_rating' style='float: left;'>
{section name=full_loop start=0 loop=$video_info.video_rating_full}
<img src='{$imagecdn}images/icons/jff/Rating_Star_FULL.png' border='0'>
{/section}
{if $video_info.video_rating_part}<img src='{$imagecdn}images/icons/jff/Rating_Star_HALF.png' border='0'>{/if}
{section name=none_loop start=0 loop=$video_info.video_rating_none}
<img src='{$imagecdn}images/icons/jff/Rating_Star_EMPTY.png' border='0'>
{/section}
<br>
Rate it
</div>
{* SHOW RATING (ALLOWED TO RATE) *}
{else}
<div id='video_rating' onmouseout='rating_out()' style='float: left;'>
{assign var="rating" value="0"}
{section name=full_loop start=0 loop=$video_info.video_rating_full}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_FULL.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/section}
{if $video_info.video_rating_part}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_HALF.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/if}
{section name=none_loop start=0 loop=$video_info.video_rating_none}
{assign var="rating" value=$rating+1}
<img src='{$imagecdn}images/icons/jff/Rating_Star_EMPTY.png' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/section}
<br>
Rate it
</div>
{* RATING JAVASCRIPT *}
{literal}
<script type='text/javascript'>
<!--
preload_full = new Image();
preload_full.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_FULL.png";
preload_partial = new Image();
preload_partial.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_HALF.png";
preload_empty = new Image();
preload_empty.src = "{/literal}{$imagecdn}{literal}images/icons/jff/Rating_Star_EMPTY.png";
function rating_over(rating) {
for(var x=1; x<=5; x++) {
if(x <= rating) {
$('rate_'+x).src = preload_full.src;
} else {
$('rate_'+x).src = preload_empty.src;
}
}
}
function rating_out() {
for(var x=1; x<=5; x++) {
if(x <= {/literal}{$video_info.video_rating_full}{literal}) {
$('rate_'+x).src = preload_full.src;
} else if({/literal}{$video_info.video_rating_part}{literal} != 0 && x == {/literal}{math equation='x+1' x=$video_info.video_rating_full}{literal}) {
$('rate_'+x).src = preload_partial.src;
} else {
$('rate_'+x).src = preload_empty.src;
}
}
}
function rate(rating) {
$('video_rating').onmouseout = null;
var request = new Request.JSON({
'url' : 'video_group.php',
'method' : 'post',
'secure' : false,
'data' : {
'task' : 'rate_do',
'user' : '{/literal}{$owner->user_info.user_username}{literal}',
'video_id' : '{/literal}{$video_info.video_id}{literal}',
'group_id' : '{/literal}{$group->group_info.group_id}{literal}',
'rating' : rating
},
'onComplete' : function(responseObject, responseText)
{
rating_result(responseObject);
}
});
request.send();
}
function rating_result(rating) {
$('rating_total').innerHTML = rating.rating_total;
for(var x=1; x<=5; x++) {
if(x <= rating.rating_full) {
$('rate_'+x).src = preload_full.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
} else if(rating.rating_part != 0 && x == rating.rating_full+1) {
$('rate_'+x).src = preload_partial.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
} else {
$('rate_'+x).src = preload_empty.src;
if(!rating.allowed_to_rate) { $('rate_'+x).onmouseover = null; $('rate_'+x).onclick = null; }
}
}
if(!rating.allowed_to_rate) { $('video_rating').onmouseout = null; }
}
//-->
</script>
{/literal}
{/if}
{* SHOW STATS *}
<div style='float: left; padding-left: 15px; padding-top: 5px;'>
{assign var="uploaddate" value=$datetime->time_since($video_info.video_datecreated)}
{capture assign="uploaded"}{$uploaddate[1]}
{if $uploaddate[0]==773}second{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==774}minutes{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==775}hour{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==776}day{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==777}week{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==778}month{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==779}year{if $uploaddate[1]!=1}s{/if} ago
{/if}
{/capture}
{capture assign="uploaded"}{lang_sprintf id=$uploaddate[0] 1=$uploaddate[1]}{/capture}
</div>
<div class='blogofloat'><a href="javascript:void(0);" onclick="likecontent('groupvideos', '{$video_info.video_id}', 'blogomedia', '{$owner->user_info.user_id}', '{$owner->user_info.user_username}');" class="hoverme">
<img id="blogomedia" class="blogo {if $likedmedia==1}liked{/if}" src="{$imagecdn}images/clearblogo.png"><br>
<span id="liketext">Like{if $likedmedia==1}d{/if}</span> it</a></div>
<div class="blogocommentfloat"><a href="#{$owner->user_info.user_username}_profile_comments">
<img src="{$imagecdn}images/icons/jff/Comment_Bubble_FULL.png"><br>Comment</a></div>
<div class="blogocommentfloat"><a data-toggle="modal" data-target="#myModal" href="user_list.php?{$smarty.server.QUERY_STRING}&type=groupvideo">
<img src="{$imagecdn}images/icons/jff/AddToList.png"><br>Add to List</a></div>
<div class="pull-right flagreport" style='padding-top: 5px;'>
<a style="font-size:15px;" data-toggle="modal" data-target="#myModal" href="/user_report.php?return_url={$url->url_current()|escape:url}&user={$owner->user_info.user_username}&item=media&objectid={$video_info.video_id}"><img src='{$imagecdn}images/icons/jff/Report_Flag_FULL.png' border='0'></a>
</div>
<div class="clearfix"></div>
</div></div></div>
{if $group->user_rank == 2 || $group->user_rank == 1 || ($video_info.video_user_id == $user->user_info.user_id)}
{* JAVASCRIPT FOR CONFIRMING DELETION *}
{literal}
<script type="text/javascript">
<!--
function deleteTopic() {
window.location = '{/literal}video_group.php?group_id={$group->group_info.group_id}&video_id={$video_info.video_id}&user={$owner->user_info.user_username}{literal}&task=media_delete';
}
//-->
</script>
{/literal}{/if}
</div>
</div>
<br>
{* COMMENTS *}
</div>
<div class="col-md-8 nopadding">
<div class="videoabout">
<div class='videoaboutheader'>About</div>
<div >
<div style="margin-bottom:20px;">{$video_info.video_desc}</div>
Uploaded by <a href="profile.php?user={$owner->user_info.user_username}">{$owner->user_info.user_username}</a>
{lang_sprintf id=5500024 1=$uploaded}<br>
{lang_sprintf id=5500037 1=$video_info.video_rating_total}<br>
{lang_sprintf id=5500038 1=$video_info.video_views}<br>
Comments: <span class="tc" id="totalcomments">{$total_comments|default:0}</span> <br>
<a href="javascript:void(0);" onclick="showthelikes();" data-toggle="modal" data-target="#myModal">Likes: <span id="blogomedialikes">{$total_likes|default:0}</span></a><br>
{if $tagged!=""}Members in this video: {$tagged}{/if}
</div>
</div>
<div id='videoTabFrame' class="visible-sm visible-xs hidden-md hidden-lg">
<div class='header'>{lang_sprintf id=5500022 1=$group->group_info.group_title} ({$total_videos})</div>
<div class='video_box' style='margin-bottom: 10px; padding-bottom: 10px;'>
{* LOOP THROUGH USER 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='albums_browse_item1 albums_browse_item1_margin'>
<div class="albums_browse_item1_img">
<a href='video_group.php?group_id={$group->group_info.group_id}&video_id={$videos[video_loop].video_id}&user={$owner->user_info.user_username}' style="position:relative;height: 100%; display: block;"><img src='{$imagecdn1}{$groupdir}video_{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}/images/video_placeholder.gif'" border='0' class="hover videothumbnails".
0>
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a></div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:33:'...':true}</a></div>
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a> <div class="pull-right" style="font-size: 10px; font-weight:normal;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</div></div>
</div>
{/section}
</div>
</div>
{*if $allowed_to_comment*}
<div id="profile_{$video_info.video_id}_postcomment">
{if $user->user_points > 3}
<form action="comments.php" method="post" onsubmit="return updatecount1();"><div class="profile_postcomment"><textarea name="comment" id="comment_body" cols="25" class="comment_area" style="overflow: hidden; height: 70px;" placeholder="Write Something..."></textarea><div style="margin-top: 5px;">Allowed HTML Tags: b, a, br</div><div style="text-align: right; margin-top: 5px;">
<input type="submit" id="comment_submit" class="button" value="Post Comment" />
<input type="hidden" name="object_id" id="object_id" value="{$video_info.video_id}">
<input type="hidden" name="user" id="user" value="{$user->user_info.user_id}">
<input type="hidden" name="object" id="object" value="groupvideocomments">
<input type="hidden" name="task" id="task" value="comment_post"><input type="hidden" name="type" id="type" value="groupvideo"><input type="hidden" name="iden" id="iden" value="groupvideo_id"><input type="hidden" name="value" id="value" value="{$video_info.video_id}"><input type="hidden" name="object_owner" id="object_owner" value="groupvideo"><input type="hidden" name="object_owner_id" id="object_owner_id" value="{$video_info.video_id}"><input type="hidden" name="tab" id="tab" value="groupvideos"><input type="hidden" name="col" id="col" value="groupvideo"><input type="hidden" name="child" id="child" value="1"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
{/if}
</div>{*/if*}
<div id="{$owner->user_info.user_username}_profile_comments" style='margin-left: auto; margin-right: auto;'></div>
{lang_javascript ids=39,155,175,182,183,184,185,187,784,787,829,830,831,832,833,834,835,854,856,891,1025,1026,1032,1034,1071}
{* RIGHT COLUMN - USER'S OTHER VIDEOS *}
</div>
<div class="col-md-3 nopadding pull-right-lg">
<div id='videoTabFrame' class="hidden-sm visible-md visible-lg">
<div class='header'>{lang_sprintf id=5500022 1=$group->group_info.group_title} ({$total_videos})</div>
<div class='video_box' style='margin-bottom: 10px; padding-bottom: 10px; height: 395px; overflow: auto;'>
{* LOOP THROUGH USER 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='albums_browse_item1 albums_browse_item1_margin'>
<div class="albums_browse_item1_img">
<a href='video_group.php?group_id={$group->group_info.group_id}&video_id={$videos[video_loop].video_id}&user={$owner->user_info.user_username}' style="position:relative;height: 100%; display: block;"><img src='{$imagecdn1}{$groupdir}video_{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}/images/video_placeholder.gif'" border='0' class="hover videothumbnails">
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a></div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:33:'...':true}</a></div>
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a> <div class="pull-right" style="font-size: 10px; font-weight:normal;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</div></div>
</div>
{/section}
</div>
</div>
</div>
<div style='display: none;' id='confirmdelete'>
<div style='margin-top: 10px;'>
{lang_print id=2000287}
</div>
<br>
<input type='button' class='button' value='{lang_print id=175}' onClick='parent.deleteTopic();closemodal();'> <input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();'>
</div>
<div style='display: none;' id='editvideo'>
<form action='video_group.php?group_id={$group->group_info.group_id}&video_id={$video_info.video_id}&user={$owner->user_info.user_username}&task=edit' name='editForm' method='post' target='_parent'>
<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>
<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>
{literal}
<script>
function loadXMLDoc(page)
{
/*
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("{/literal}{$owner->user_info.user_username}_profile_comments{literal}").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=groupvideo&tab=groupvideos&child=1&col=groupvideo&focus=groupvideo_id&object_owner=groupvideo&object_owner_id={$video_info.video_id}&groupvideo_id={$video_info.video_id}{literal}",true);
xmlhttp.send();
*/
jQuery("#{/literal}{$owner->user_info.user_username}_profile_comments{literal}").load("{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=groupvideo&tab=groupvideos&tab_parent=groups&child=1&col_parent=video&col=groupvideo&focus=groupvideo_id&object_owner=groupvideo&object_owner_id={$video_info.video_id}&groupvideo_id={$video_info.video_id}{literal}", function(responseTxt, statusTxt, xhr){
if(xhr.state() == "resolved"){
// alert(statusTxt);
}
else
{
e.preventdefault();
return;
}
});
}
function editVideo(id, title, desc, search, privacy, comments)
{
$('video_id').value = id;
$('video_title').defaultValue = title;
$('video_title').value = title;
$('video_desc').defaultValue = desc;
$('video_desc').value = desc;
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');
}
</script>
<script type="text/javascript">
var video_id = 0;
/*jQuery('#ajaxframe').load(function(){
document.getElementById('comment_body').value="";
});
*/
function editComment1(commentID)
{
//var commentContainerElement = $(this.options.type + '_' + this.options.typeID + '_comments');
//var commentElement = commentContainerElement.getElement('profile_comment_body_' + commentID);
var commentElement = document.getElementById('profile_comment_body_' + commentID);
var height = commentElement.offsetHeight + 10;
var commentText = commentElement.innerHTML.replace(/<br>/gi, '\r\n').replace(/>/gi, '&gt;');
var innerHTML = '';
innerHTML += "<form action='comments.php' method='post' name='editCommentForm' id='editCommentForm'>";
innerHTML += "<textarea name='comment_edit' id='comment_edit_" + commentID + "' style='height: " + height +" px; width: 100%;' onblur='doCommentEditNew("+commentID+")'>" + commentText + "</textarea>";
innerHTML += "<input type='hidden' name='task' value='comment_edit'>";
innerHTML += "<input type='hidden' name='comment_id' value='" + commentID + "'>";
innerHTML += "<input type='hidden' name='object_id' value='{$video_info.video_id}'><input type='hidden' name='user' value='{$user->user_info.user_id}'><input type='hidden' name='object' value='groupvideocomments'>";
innerHTML += "<input type='hidden' name='type' value='groupmedia'>";
innerHTML += "<input type='hidden' name='iden' value='groupmedia_id'>";
innerHTML += "<input type='hidden' name='value' value='{/literal}{$video_info.groupmedia_id}{literal}'>";
innerHTML +=
'<input type="hidden" name="tab" value="users">';
innerHTML +=
'<input type="hidden" name="col" value="user">';
/* if( this.options.typeTabParent ) innerHTML +=
'<input type="hidden" name="tab_parent" value="' + this.options.typeTabParent + '">';
if( this.options.typeColParent ) innerHTML +=
'<input type="hidden" name="col_parent" value="' + this.options.typeColParent + '">';
if( this.options.typeChild ) innerHTML +=
'<input type="hidden" name="child" value="1">';
*/
innerHTML += "</form>";
// Inject
commentElement.innerHTML = innerHTML;
textarea_autogrow('comment_edit_' + commentID);
jQuery('#comment_edit_' + commentID).focus();
}
jQuery(document).ready(function() {
loadXMLDoc(1);
});
</script>
{/literal}
<div id='wholiked' style="display:none;">
<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;">
Users who liked this video:<br>
{section name=like_loop loop=$likes}
<a href="profile.php?user={$likes[like_loop].user_username}">{$likes[like_loop].user_username}</a><br>
{/section}
<br />
<br />
</div></div>
</div>
{include file='footer.tpl'}