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

799 lines
19 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_rd.tpl'}
{* $Id: cockology.tpl 8 2015-12-9 06:02:53Z phil $ *}
<script type="text/javascript">
var userid="{$user->user_info.user_id}";
var pagename="Cockology";
var username="{$user->user_info.user_username}";
var userlevel="{$user->user_info.user_level_id}";
var userphoto="{$user->user_info.user_photo}";
var ostype="{$ostype}";
var devicetype="{$devicetype}";
var video_id=7;
var offset=0;
var limit=20;
var viewhtml5=0;
video="No";
{literal}if (Modernizr.video) {video="Yes";}{/literal}
</script>
{if $user->user_info.user_id>0}
{literal}
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery(".dropdown img.flag").addClass("flagvisibility");
jQuery(".dropdown dt a").click(function() {
jQuery(".dropdown dd ul").toggle();
});
jQuery(".dropdown dd ul li a").click(function() {
var text = jQuery(this).html();
jQuery(".dropdown dt a span").html(text);
jQuery(".dropdown dd ul").hide();
// jQuery("#result").html("Selected value is: " + getSelectedValue("meditation_dropdown"));
});
function getSelectedValue(id) {
return jQuery("#" + id).find("dt a span.value").html();
}
jQuery(document).bind('click', function(e) {
var jQueryclicked = jQuery(e.target);
if (! jQueryclicked.parents().hasClass("dropdown"))
jQuery(".dropdown dd ul").hide();
});
jQuery("#flagSwitcher").click(function() {
jQuery(".dropdown img.flag").toggleClass("flagvisibility");
});
});
</script>
{/literal}
<script type="text/javascript">
{literal}
jQuery.noConflict();
function changequalty(quality)
{
var vlow = '<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none"><source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-srgb_480.mp4" type="video/mp4"><object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" />';
var vmed = '<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none"><source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-srgb_720.mp4" type="video/mp4"><object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" />';
var vhigh = '<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none"><source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-1020.mp4" type="video/mp4"><object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" />';
var iphone = '<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none"><source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-apple.mp4" type="video/mp4"><object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" />';
var android = '<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none"><source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-android.mp4" type="video/mp4"><object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" />';
if(quality==="vhigh"){jQuery('#thevideo').html(vhigh);}
if(quality==="vmed"){jQuery('#thevideo').html(vmed);}
if(quality==="vlow"){jQuery('#thevideo').html(vlow);}
if(quality==="iph"){jQuery('#thevideo').html(iphone);}
if(quality==="andr"){jQuery('#thevideo').html(android);}
}
function loadjscssfile(filename, filetype){
var fileref=document.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", filename);
}
function submit_comment()
{
var thecomment=jQuery('#comment_body').val();
if(thecomment=="")
{
jQuery('#comment_error').html('Please enter a comment and re-post.');
jQuery('#comment_error').css('display','block');
return false;
}
else
{
jQuery('#comment_error').val('');
jQuery('#comment_error').css('display','none');
jQuery('#comment_submit').css('display','none');
jQuery('#spinning').css('visibility','visible');
}
var thevideoid=video_id;
var url="/include/analytics/mms/mms_comment_insert.php";
jQuery.ajax({
url: url,
type: 'POST',
data:{thepost:thecomment,vid:thevideoid,uid:userid,username:username,userphoto:userphoto},
async: true,
cache: false,
success: function(data) {
jQuery('#spinning').css('visibility','hidden');
jQuery('#comment_body').val('');
jQuery('#comment_submit').css('display','inline');
jQuery( "#thecomments" ).prepend( jQuery(data.thecomment) );
},
error: function(resp, textStatus, errorThrown){
//alert(resp.responseText+" not cool");
jQuery('#spinning').css('visibility','hidden');
//jQuery('#comment_body').val('');
jQuery('#comment_submit').css('display','inline');
}
});
}
loadCSS('//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
loadCSS('/css/meditations.css');
loadCSS('/wall/css/base.css');
loadCSS('/wall/include/wall/css/wall.css');
function getpages(url,page)
{
return false;
jQuery.ajax({
url: url,
type: 'GET',
data:{offset:offset},
async: true,
cache: false,
success: function(data) {
//setup page
reinitjack();
},
error: function(resp, textStatus, errorThrown){
}
});
}
function get_comments()
{
var url="/include/analytics/mms/mms_get_comments.php";
jQuery.ajax({
url: url,
type: 'POST',
data:{vid:video_id,uid:userid, offset:offset,limit:limit},
async: true,
cache: false,
success: function(data) {
if(data.thelimit > limit)
{
limit=data.thelimit;
}
if(data.more=="on")
{
jQuery('#morebutton').css('display','block');
}
else
{
jQuery('#morebutton').css('display','none');
}
jQuery('#totalcomments').html(data.thecount);
jQuery('#thecomments').html(data.thecomments);
},
error: function(resp, textStatus, errorThrown){
//alert(resp.responseText+" not cool");
}
});
}
function deletecomment(mmsid)
{
var url="/include/analytics/mms/mms_delete_comment.php";
jQuery.ajax({
url: url,
type: 'GET',
data:{vid:video_id,mmsid:mmsid},
async: true,
cache: false,
success: function(data) {
var commentid="comment_" + mmsid;
jQuery("#"+commentid+"").remove();
},
error: function(resp, textStatus, errorThrown){
//alert(resp.responseText+" not cool");
}
});
}
var thecurrenttext="";
var edit_post=0;
function edit_comment_post(val)
{
var thediv="profile_comment_body_"+val;
jQuery('#'+thediv+'').attr('contenteditable','true');
jQuery('#'+thediv+'').css("backgroundColor","#fff");
jQuery('#'+thediv+'').css("color","#000");
jQuery('#'+thediv+'').css("maxHeight","100px;");
theccontent=jQuery('#'+thediv+'').html();
jQuery('#'+thediv+'').text(theccontent);
if(theccontent != "")
{
thecurrenttext=jQuery('#'+thediv+'').text();
}
edit_post=1;
var menu_init="profile_comment_links_"+val;
jQuery('#'+menu_init+'').css("display","none");
var menu_update="update_comment_"+val;
jQuery('#'+menu_update+'').css("display","block");
}
function cancel_edit_comment(val)
{
var thediv="profile_comment_body_"+val;
jQuery('#'+thediv+'').attr('contenteditable','false');
jQuery('#'+thediv+'').css("backgroundColor","#660000");
jQuery('#'+thediv+'').css("color","#ffff");
jQuery('#'+thediv+'').css("maxHeight","none;");
//theccontent=jQuery('#'+thediv+'').text();
jQuery('#'+thediv+'').html(thecurrenttext);
var menu_init="profile_comment_links_"+val;
jQuery('#'+menu_init+'').css("display","block");
var menu_update="update_comment_"+val;
jQuery('#'+menu_update+'').css("display","none");
edit_post=0;
}
function update_comment(val)
{
var thediv="profile_comment_body_"+val;
var menu_init="profile_comment_links_"+val;
jQuery('#'+menu_init+'').css("display","none");
var menu_update="update_comment_"+val;
jQuery('#'+menu_update+'').css("display","none");
jQuery('#'+thediv+'').attr('contenteditable','false');
jQuery('#'+thediv+'').css("backgroundColor","#660000");
jQuery('#'+thediv+'').css("color","#ffff");
jQuery('#'+thediv+'').css("maxHeight","none;");
thepost=jQuery('#'+thediv+'').text();
jQuery('#'+thediv+'').html(thepost);
if(thepost == "")
{
// need to restore
jQuery('#'+thediv+'').html(thecurrenttext);
jQuery('#'+menu_init+'').css("display","block");
}
else
{
var upspin="edit_spin_"+val;
jQuery('#'+upspin+'').css("display","block");
var url="/include/analytics/mms/mms_update_comment.php";
jQuery.ajax({
url: url,
type: 'POST',
data:{vid:video_id,mmsid:val,thepost:thepost},
async: true,
cache: false,
success: function(data) {
jQuery('#'+upspin+'').css("display","none");
jQuery('#'+menu_init+'').css("display","block");
},
error: function(resp, textStatus, errorThrown){
//alert(resp.responseText+" not cool");
jQuery('#'+upspin+'').css("display","none");
jQuery('#'+menu_init+'').css("display","block");
}
});
}}
{/literal}
</script>
<div id="cockology_wrap">
{if $user->user_info.user_level_id==2 || $user->user_info.user_level_id==7}
<div id="leftcolumn" style="width:74%;float:left;position:relative;background:transparent;font-family:'Gentium Basic', serif;margin-bottom:33px;">
<h1 style="margin-top:0px;margin-bottom:0px;letter-spacing: 5px;font-family:'Gentium Basic', serif;font-size:178%;">COCKOLOGY</h1>
<h2 style="margin-bottom:7px;margin-top:0;padding:0;line-height:150%;margin-top:1px;"><a href="javascript:null;" style="font-family: 'Gentium Basic', serif;font-size:120%;">Hiri David Feign</a></h2>
<h3 style="text-align:center;line-height:130%;margin:9px 0 0 0px;padding:0px;font-size:14pt;letter-spacing: 1px;font-family:'Gentium Basic', serif;">SEXUAL INTELLECTUAL</h3>
<div id="thevideo" style="margin:2px 0 7px 0;clear:both;">
<video width="1280" height="720" controls style="width:100%;height:auto;" poster="/include/analytics/videos/sexual_intellectual/si-poster.jpg" preload="none">
<source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-srgb_480.mp4" type="video/mp4">
<source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-720.webm" type="video/webm">
<source src="/include/analytics/videos/sexual_intellectual/sexual-intellectual-720.ogg" type="video/ogg">
<object width="1280" height="720" type="application/x-shockwave-flash" data="/include/analytics/videos/player.swf" style="max-width:960px;max-height:540px;"><param name="movie" value="/include/analytics/videos/player.swf" /><param name="flashvars" value="autostart=false&amp;controlbar=over&amp;image=/include/analytics/videos/cocks-connected.jpg&amp;file=/sexual_intellectual/sexual-intellectual-srgb_480.mp4" /></object><p>Your browser does not support the video tag.</p></video>
</div>
<div style="margin-bottom:10px;"><strong>Quality:</strong> <a href="javascript:changequalty('vhigh');">1080</a> l <a href="javascript:changequalty('vmed');">720</a> l <a href="javascript:changequalty('vlow');">480</a> l <a href="javascript:changequalty('iph');">iPhone</a> l <a href="javascript:changequalty('andr');">Android</a></div>
<div style="margin-bottom:33px;margin-top:4px;clear:both;" id="cockology_comments">
<div id="profile_postcomment">
<div class="comment_headline">Comments (<span class="tc" id="totalcomments"></span>)</div>
<form>
<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, br</div>
<div style="text-align: right; margin-top: 5px;">
<i class="fa fa-circle-o-notch fa-spin" id="spinning" style="visibility:hidden;"></i><input type="button" id="comment_submit" class="button" value="Post Comment" onclick="submit_comment()" />
<input type="hidden" name="video_id" id="video_id" value="0" />
</div>
<div id="comment_error" style="color: #FF0000; display: none;font-size:140%;"></div>
</div>
</form>
</div>
<div id="thecomments"></div>
<div id="morebutton" style="text-align:center;display:none;"><a href="javascript:get_comments();"><i class="fa fa-chevron-circle-down fa-3x"></i> More...</a></div>
</div>
</div>
<!-- end left column //-->
<div style="width:24%;float:right;position:relative;min-width:200px;margin-top:0px;" id="rightcolumn">
<div style="padding:10px;" id="meditation_ads">
<h3 style="text-align:center;font-family:'Open Sans', sans-seri;"></h3>
<p><a href="http://www.thebatorblog.com/bate-life/cockology-in-cocktober/" target="_blank"><img src="/images/hiri_david_feign_2.jpg" width="700" height="831" alt="Hiri David Feign" style="width:100%;height:auto;" /></a>
</p>
<p style="text-align:center;">HIRI DAVID FEIGN</p>
<p style="margin-top:20px;"><a href="http://www.cybersocketwebawards.com/vote.php" target="_blank"><img src="/images/cybersocket.jpg" width="200" height="320" alt="Cybersocket" style="width:100%;height:auto;" /></a></p>
<p style="margin-top:20px;"><a href="http://www.shareasale.com/r.cfm?u=560288&b=228394&m=14085&afftrack=&urllink=www%2Eshopinprivate%2Ecom%2Falbolene%2Dmasturbation%2Dcream%2Ehtml" target="_blank"><img src="/images/albolene.png" width="381" height="465" alt="Cockology in Cocktober" style="width:100%;height:auto;" /></a></p>
</div>
</div>
<!-- end right column //-->
{literal}
<script type="text/javascript">
jQuery.noConflict();
get_comments();
function speedtest(){
var url="/include/analytics/videos/speedtest.php";
/*
jQuery.ajax({
url: url,
type: 'GET',
data:{uid:userid,html5video:video,dt:devicetype,ost:ostype},
async: true,
cache: false,
success: function(data) {
var capa="";
capa +="Estimated Bandwidth: " + data.connectionspeed +" Kb/s";
capa +=" - Supports HTML5 Video Tag: " + video;
if(devicetype !== ""){capa +=" - Device Type: " + devicetype;}
if(ostype !== ""){capa +=" - OS Type: " + ostype;}
// jQuery('#capabilities').html(capa);
},
error: function(xhr, status, error) {
var acc = []
$.each(xhr, function(index, value) {
acc.push(index + ': ' + value);
});
// alert(JSON.stringify(acc));
}
}); */
}
jQuery(document).ready(function() {
speedtest();
});
</script>
{/literal}
{else}
<h1 style="margin-top:0px;margin-bottom:0px;letter-spacing: 5px;font-family:'Open Sans', sans-seri;font-size:178%;">Cockology</h1>
<h2 style="margin-bottom:7px;margin-top:0;padding:0;line-height:150%;margin-top:7px;"><a href="javascript:null;" style="font-family: 'Gentium Basic', serif;font-size:120%;">Hiri David Feign</a></h2>
<p style="font-size:130%;line-height:130%;font-family:'Gentium Basic', serif;">On every Wednesday during the month of October we’ll be posting something from the album <em>COCKOLOGY</em> on the <a href="http://www.thebatorblog.com/bate-life/cockology-in-cocktober/" target="_blank" >TheBatorBlog</a>.<p>
<p style="font-size:150%;line-height:150%;font-family:'Gentium Basic', serif;text-align:center;margin-top:30px;margin-bottom:30px;" >See what you've been missing, become a <a href="http://bateworld.com/premium.php">PREMIUM BATEWORLD MEMBER NOW</a></p>
{/if}
</div>
{else}
<h1>You must be signed in to access this page.</h1>
{/if}
{include file='footer.tpl'}