Files
Testing/templates/video-old.tpl

1080 lines
28 KiB
Smarty
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
{include file='header.tpl'}
{literal}
<script type="text/javascript">
function myFunction() {
var img = document.getElementById("blogo");
img.classList.add("rotated-image");
}
function showlikes(){
content=jQuery("#wholiked").html();
jQuery("#myModal").html(content);
jQuery(".modal-content").css("background", "black")
}
</script>{/literal}
{* $Id: video.tpl 236 2009-11-13 05:29:23Z phil $ *}
{if $video_info.video_admin_approved==0 && $user->user_info.user_id!=$owner->user_info.user_id}This video is pending moderator approval.{else}
<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=$owner_url 2=$owner->user_displayname}
</div>
{* LEFT COLUMN - VIDEO PLAYER AND COMMENTS *}
<div class="col-md-8">
{* VIDEO HEADER - TITLE AND TEXT *}
<div style='padding:2px;border:1px solid #534741;'>
<div class='videoHeader'>
<div class='inner' style='cursor:default'>
<h1>{$video_info.video_title}</h1>
<h2 id='short_desc'>{$video_info.video_desc_short|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="https://cdn.bateworld.com/include/videoplayer/start/java/FWDUVPlayer.js"></script>
<!-- Setup video player-->
<script type="text/javascript">
FWDUVPUtils.onReady(function(){
new FWDUVPlayer({
//main settings
instanceName:"player1",
parentId:"myDiv",
playlistsId:"playlists",
mainFolderPath:"https://cdn.bateworld.com/include/videoplayer/start/content",
skinPath:"classic_skin_dark",
displayType:"responsive",
initializeOnlyWhenVisible:"no",
useVectorIcons:"no",
fillEntireVideoScreen:"no",
fillEntireposterScreen:"yes",
goFullScreenOnButtonPlay:"no",
playsinline:"yes",
privateVideoPassword:"428c841430ea18a70f7b06525d4b748a",
youtubeAPIKey:"",
useHEXColorsForSkin:"no",
normalHEXButtonsColor:"#666666",
googleAnalyticsTrackingCode:"",
useResumeOnPlay:"no",
useDeepLinking:"no",
showPreloader:"yes",
preloaderBackgroundColor:"#000000",
preloaderFillColor:"#FFFFFF",
addKeyboardSupport:"no",
autoScale:"yes",
showButtonsToolTip:"yes",
stopVideoWhenPlayComplete:"no",
playAfterVideoStop:"no",
autoPlay:"no",
loop:"no",
shuffle:"no",
showErrorInfo:"yes",
maxWidth:1160,
maxHeight:552,
volume:.8,
buttonsToolTipHideDelay:1.5,
backgroundColor:"#000000",
videoBackgroundColor:"#000000",
posterBackgroundColor:"#000000",
buttonsToolTipFontColor:"#5a5a5a",
//logo settings
showLogo:"yes",
hideLogoWithController:"no",
logoPosition:"topRight",
logoLink:"",
logoPath:"/images/watermark1.png",
logoMargins:10,
//playlists/categories settings
showPlaylistsSearchInput:"no",
usePlaylistsSelectBox:"no",
showPlaylistsButtonAndPlaylists:"no",
showPlaylistsByDefault:"no",
thumbnailSelectedType:"opacity",
startAtPlaylist:0,
buttonsMargins:15,
thumbnailMaxWidth:350,
thumbnailMaxHeight:350,
horizontalSpaceBetweenThumbnails:40,
verticalSpaceBetweenThumbnails:40,
inputBackgroundColor:"#333333",
inputColor:"#999999",
//playlist settings
showPlaylistButtonAndPlaylist:"yes",
playlistPosition:"bottom",
showPlaylistByDefault:"yes",
showPlaylistName:"yes",
showSearchInput:"no",
showLoopButton:"yes",
showShuffleButton:"yes",
showPlaylistOnFullScreen:"no",
showNextAndPrevButtons:"yes",
showThumbnail:"yes",
forceDisableDownloadButtonForFolder:"yes",
addMouseWheelSupport:"yes",
startAtRandomVideo:"no",
stopAfterLastVideoHasPlayed:"no",
addScrollOnMouseMove:"no",
randomizePlaylist:'no',
folderVideoLabel:"VIDEO ",
playlistRightWidth:310,
playlistBottomHeight:150,
startAtVideo:0,
maxPlaylistItems:50,
thumbnailWidth:71,
thumbnailHeight:71,
spaceBetweenControllerAndPlaylist:1,
spaceBetweenThumbnails:1,
scrollbarOffestWidth:10,
scollbarSpeedSensitivity:.5,
playlistBackgroundColor:"#000000",
playlistNameColor:"#FFFFFF",
thumbnailNormalBackgroundColor:"#1b1b1b",
thumbnailHoverBackgroundColor:"#313131",
thumbnailDisabledBackgroundColor:"#272727",
searchInputBackgroundColor:"#000000",
searchInputColor:"#bdbdbd",
youtubeAndFolderVideoTitleColor:"#FFFFFF",
folderAudioSecondTitleColor:"#999999",
youtubeOwnerColor:"#bdbdbd",
youtubeDescriptionColor:"#bdbdbd",
mainSelectorBackgroundSelectedColor:"#FFFFFF",
mainSelectorTextNormalColor:"#FFFFFF",
mainSelectorTextSelectedColor:"#000000",
mainButtonBackgroundNormalColor:"#212021",
mainButtonBackgroundSelectedColor:"#FFFFFF",
mainButtonTextNormalColor:"#FFFFFF",
mainButtonTextSelectedColor:"#000000",
//controller settings
showController:"yes",
showControllerWhenVideoIsStopped:"yes",
showNextAndPrevButtonsInController:"no",
showRewindButton:"yes",
showPlaybackRateButton:"yes",
showVolumeButton:"yes",
showTime:"yes",
showQualityButton:"yes",
showInfoButton:"no",
showDownloadButton:"no",
showShareButton:"no",
showEmbedButton:"no",
showChromecastButton:"yes",
showFullScreenButton:"yes",
disableVideoScrubber:"no",
showScrubberWhenControllerIsHidden:"yes",
showMainScrubberToolTipLabel:"yes",
showDefaultControllerForVimeo:"no",
repeatBackground:"no",
controllerHeight:42,
controllerHideDelay:3,
startSpaceBetweenButtons:10,
spaceBetweenButtons:10,
scrubbersOffsetWidth:2,
mainScrubberOffestTop:16,
timeOffsetLeftWidth:2,
timeOffsetRightWidth:3,
timeOffsetTop:0,
volumeScrubberHeight:80,
volumeScrubberOfsetHeight:12,
timeColor:"#bdbdbd",
youtubeQualityButtonNormalColor:"#bdbdbd",
youtubeQualityButtonSelectedColor:"#FFFFFF",
scrubbersToolTipLabelBackgroundColor:"#FFFFFF",
scrubbersToolTipLabelFontColor:"#5a5a5a",
//advertisement on pause window
aopwTitle:"Advertisement",
aopwWidth:400,
aopwHeight:240,
aopwBorderSize:6,
aopwTitleColor:"#FFFFFF",
//subtitle
subtitlesOffLabel:"Subtitle off",
//popup add windows
showPopupAdsCloseButton:"yes",
//embed window and info window
embedAndInfoWindowCloseButtonMargins:15,
borderColor:"#333333",
mainLabelsColor:"#FFFFFF",
secondaryLabelsColor:"#bdbdbd",
shareAndEmbedTextColor:"#5a5a5a",
inputBackgroundColor:"#000000",
inputColor:"#FFFFFF",
//login
playIfLoggedIn:"no",
playIfLoggedInMessage:"Please <a href='https://google.com' target='_blank'>login</a> to play this video.",
//audio visualizer
audioVisualizerLinesColor:"#0099FF",
audioVisualizerCircleColor:"#FFFFFF",
//lightbox settings
closeLightBoxWhenPlayComplete:"no",
lightBoxBackgroundOpacity:.6,
lightBoxBackgroundColor:"#000000",
//sticky on scroll
stickyOnScroll:"no",
stickyOnScrollShowOpener:"yes",
stickyOnScrollWidth:"700",
stickyOnScrollHeight:"394",
//sticky display settings
showOpener:"yes",
showOpenerPlayPauseButton:"yes",
verticalPosition:"bottom",
horizontalPosition:"center",
showPlayerByDefault:"yes",
animatePlayer:"yes",
openerAlignment:"right",
mainBackgroundImagePath:"https://cdn.bateworld.com/include/videoplayer/start/content/minimal_skin_dark/main-background.png",
openerEqulizerOffsetTop:-1,
openerEqulizerOffsetLeft:3,
offsetX:0,
offsetY:0,
//playback rate / speed
defaultPlaybackRate:1, //0.25, 0.5, 1, 1.25, 1.2, 2
//cuepoints
executeCuepointsOnlyOnce:"no",
//annotations
showAnnotationsPositionTool:"no",
//ads
openNewPageAtTheEndOfTheAds:"no",
adsButtonsPosition:"left",
skipToVideoText:"You can skip to video in: ",
skipToVideoButtonText:"Skip Ad",
adsTextNormalColor:"#bdbdbd",
adsTextSelectedColor:"#FFFFFF",
adsBorderNormalColor:"#444444",
adsBorderSelectedColor:"#FFFFFF",
//a to b loop
useAToB:"yes",
atbTimeBackgroundColor:"transparent",
atbTimeTextColorNormal:"#888888",
atbTimeTextColorSelected:"#FFFFFF",
atbButtonTextNormalColor:"#888888",
atbButtonTextSelectedColor:"#FFFFFF",
atbButtonBackgroundNormalColor:"#FFFFFF",
atbButtonBackgroundSelectedColor:"#000000",
//thumbnails preview
thumbnailsPreviewWidth:196,
thumbnailsPreviewHeight:110,
thumbnailsPreviewBackgroundColor:"#000000",
thumbnailsPreviewBorderColor:"#666",
thumbnailsPreviewLabelBackgroundColor:"#666",
thumbnailsPreviewLabelFontColor:"#FFF",
// context menu
showContextmenu:'yes',
showScriptDeveloper:"no",
contextMenuBackgroundColor:"#1f1f1f",
contextMenuBorderColor:"#1f1f1f",
contextMenuSpacerColor:"#333",
contextMenuItemNormalColor:"#666666",
contextMenuItemSelectedColor:"#FFFFFF",
contextMenuItemDisabledColor:"#333"
});
});
</script>
{/literal}
<div id="myDiv" style="position:relative; left:0px; top:0px;"></div>
<ul id="playlists" style="display:none;">
<li data-source="mixedPlaylist" data-playlist-name="" data-thumbnail-path="">
<p class="fwduvp-categories-title"><span class="fwduvp-header">Title: </span><span class="fwduvp-title"></span></p>
<p class="fwduvp-categories-type"><span class="fwduvp-header">Type: </span>HTML</p>
<p class="fwduvp-categories-description"><span class="fwduvp-header">Description: </span>Favorited Videos</p>
</li>
</ul>
<!-- HTML playlist -->
<!-- HTML mixed playlist -->{literal}
<ul id="mixedPlaylist" style="display:none;">
{/literal}
{literal}
<li data-thumb-source="{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_thumb.jpg{literal}" data-video-source="[{/literal}{if $video_info.1080==1}{literal}{source:'{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-1080.mp4{literal}', label:'1080p'},{/literal}{/if}{if $video_info.720==1}{literal}{source:'{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-720.mp4{literal}', label:'720'},{/literal}{/if}{if $video_info.480==1}{literal}{source:'{/literal}https://video.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-480.mp4{literal}', label:'480'},{/literal}{/if}{if $video_info.240==1}{literal}{source:'{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}-240.mp4{literal}', label:'240p'},{/literal}{/if}{if $video_info.otherres==1}{literal}{source:'{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}.mp4{literal}', label:'Video'}{/literal}{/if}{if $video_info.otherres==0 && $video_info.1080==0 && $video_info.720==0 && $video_info.480==0 &&$video_info.240==0}{literal}{source:'{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}.mp4'{literal}}{/literal}{/if}{literal}]" data-start-at-video="0" data-poster-source="{/literal}https://cdn.bateworld.com{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_thumb.jpg{literal}" data-downloadable="no">{/literal}
{literal}
<div data-video-short-description="">
<div>
<p class="fwduvp-thumbnail-title">{/literal}{$video_info.video_title}{literal}</p>
<p class="fwduvp-thumbnail-description"></p>
</div>
</div>
<div data-video-long-description="">
<div>
<p class="fwduvp-video-title">{/literal}{$video_info.video_title}{literal}</p>
<p class="fwduvp-video-main-description"></p>
</div>
</div>
</li>
</ul>
{/literal}
</div>
{* SHOW VIDEO DETAILS *}
<div class='videoInfo'>
<div id='tab'>
{* 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='https://cdn.bateworld.com/images/icons/video_rating_full.gif' border='0'>
{/section}
{if $video_info.video_rating_part}<img src='./images/icons/video_rating_part.gif' border='0'>{/if}
{section name=none_loop start=0 loop=$video_info.video_rating_none}
<img src='https://cdn.bateworld.com/images/icons/video_rating_none.gif' border='0'>
{/section}
</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='./images/icons/video_rating_full.gif' 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='https://cdn.bateworld.com/images/icons/video_rating_part.gif' 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='https://cdn.bateworld.com/images/icons/video_rating_none.gif' border='0' onmouseover="rating_over({$rating});" onclick="rate({$rating});" id='rate_{$rating}' style='cursor:pointer;'>
{/section}
</div>
{* RATING JAVASCRIPT *}
{literal}
<script type='text/javascript'>
<!--
preload_full = new Image();
preload_full.src = "https://cdn.bateworld.com/images/icons/video_rating_full.gif";
preload_partial = new Image();
preload_partial.src = "https://cdn.bateworld.com/images/icons/video_rating_part.gif";
preload_empty = new Image();
preload_empty.src = "https://cdn.bateworld.com/images/icons/video_rating_none.gif";
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.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}',
'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 *}
{assign var="uploaddate" value=$datetime->time_since($video_info.video_datecreated)}
{capture assign="uploaded"}{lang_sprintf id=$uploaddate[0] 1=$uploaddate[1]}{/capture}
<div style='float: left; padding-left: 25px; padding-top: 5px;'><a href="javascript:void(0);" onclick="likecontent('videos', '{$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="images/clearblogo.png"> <span id="liketext">Like{if $likedmedia==1}d{/if}</span></a></div>
<div class="pull-right" 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}">&#9873;</a>
</div>
<div style='clear: both; height: 0px;'></div>
</div>
</div>
<br>
{* COMMENTS *}
{if $allowed_to_comment}
<div id="profile_{$video_info.video_id}_postcomment">
<form action="#" method="post" onsubmit="submitcommentform(); return updatecount();" id="commentform"><div class="profile_postcomment"><textarea name="comment_body" 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, img, 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="task" id="task" value="comment_post"><input type="hidden" name="type" id="type" value="video"><input type="hidden" name="iden" id="iden" value="video_id"><input type="hidden" name="value" id="value" value="{$video_info.video_id}"><input type="hidden" name="user" id="user" value="{$owner->user_info.user_username}"><input type="hidden" name="tab" id="tab" value="videos"><input type="hidden" name="col" id="col" value="video"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
</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">
<div id='videoTabFrame'>
<div class='header'>{lang_sprintf id=5500022 1=$owner->user_displayname_short} ({$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='video_row' style='{if $smarty.section.video_loop.first}padding-top: 0px; border-top: none;{/if}'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: top;' width='1'>
<div class='video_row_nowplaying{if $videos[video_loop].video_id == $video_info.video_id}2{/if}'{if $videos[video_loop].video_id != $video_info.video_id}onMouseOver="this.className='video_row_nowplaying2'" onMouseOut="this.className='video_row_nowplaying'"{/if}><a href='{$url->url_create("video", $owner->user_info.user_username, $videos[video_loop].video_id)}'><img src='{if $videos[video_loop].video_thumb}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg{else}https://cdn.bateworld.com/images/video_placeholder.gif{/if}' border='0' width='80px'></a></div>
</td>
<td style='vertical-align: top; padding-left: 7px;'>
<div class='video_row_title'><a href='{$url->url_create("video", $owner->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:45:'...':true}</a></div>
<div class='video_row_info'>
{if $videos[video_loop].video_type==0}{$videos[video_loop].video_duration_in_min} - {/if}
{$videos[video_loop].total_comments} comment{if $videos[video_loop].total_comments!=1}s{/if}
- {$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}</div>
<div>
{section name=full_loop start=0 loop=$videos[video_loop].video_rating_full}
<img src='https://cdn.bateworld.com/images/icons/video_rating_full_small.gif' border='0'>
{/section}
{if $videos[video_loop].video_rating_part}<img src='./images/icons/video_rating_part_small.gif' border='0'>{/if}
{section name=none_loop start=0 loop=$videos[video_loop].video_rating_none}
<img src='https://cdn.bateworld.com/images/icons/video_rating_none_small.gif' border='0'>
{/section}
</div>
</td>
</tr>
</table>
</div>
{/section}
</div>
</div>
<div>
<div class='header'>Video Info</div>
<div class='video_box' style='margin-bottom: 10px; padding-bottom: 10px; overflow: auto;'>
{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}
<br>
<a 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}">Report a Problem</a>
</div>
</div>
</div>
{/if}
{literal}
<script type="text/javascript" src="/js/jquery.autogrow-textarea.js"></script>
<script type="text/javascript">
function supports_h264_baseline_video() {
//if (!supports_video()) { return false; }
var v = document.createElement("video");
if(v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')=="probably")
{
return true;
}
return false;
}
jQuery(function() {
jQuery('#comment_body').autogrow();
});
jQuery(document).ready(function() {
loadXMLDoc(1);
var v = document.createElement("video"); // Check if the browser supports the video tag
});</script>
<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=video&focus=video_id&video_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=video&focus=video_id&video_id={$video_info.video_id}{literal}", function(responseTxt, statusTxt, xhr){
if(xhr.state() == "resolved"){
// alert(statusTxt);
}
else
{
e.preventdefault();
return;
}
});
}
</script>
<script type="text/javascript">
var video_id = 0;
/*jQuery('#ajaxframe').load(function(){
//loadXMLDoc(1);
//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='misc_js.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='type' value='video'>";
innerHTML += "<input type='hidden' name='iden' value='video_id'>";
innerHTML += "<input type='hidden' name='value' value='{/literal}{$video_info.video_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();
}
</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>
<br>
<br>
{include file='footer.tpl'}