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

324 lines
15 KiB
Smarty

{include file='header_public.tpl'}
{* $Id: halloween_contest.tpl 12 2013-10-10 06:04:12Z phil $ *}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="/include/analytics/base.js"></script>
<script type="text/javascript" src="/include/analytics/flash_detect.js"></script>
{if $user->user_info.user_id>0}
<script type="text/javascript">
var userid="{$user->user_info.user_id}";
var pagename="Halloween Contest";
var username="{$user->user_info.user_username}";
var useremail="{$user->user_info.user_email}";
var userlevel="{$user->user_info.user_level_id}";
var userinvisible="{$user->user_info.user_invisible}";
var userphoto="{$user->user_info.user_photo}";
var thecount="";
var wid="";
{literal}
//This script below is used to the video chat from being open in a iframe by another website --><a href="community.tpl">community.tpl</a>
if (top.location.href != self.location.href){top.location.href = self.location.href;}
major="";minor="";frevision="";frevisionstr="";
if(FlashDetect.installed){major=FlashDetect.major;minor=FlashDetect.minor;frevision=FlashDetect.revision;frevisionstr=FlashDetect.revisionStr;}
thump(major,minor,frevision,frevisionstr,userid);
{/literal}
</script>
<script type="text/javascript" src="/js/community.js?ver=8"></script>
<script type="text/javascript" src="/js/halloween.js?ver=1"></script>
<div id="halloween" style="position:relative;">
<div id="left_column" style="float:left;width:730px;">
<h2 style="padding:0;margin:0;line-height:100%;"><span class="bateworld">Cocktober Halloween Contest</span></h2>
<div id="error"></div>
<div id="gallery" class="royalSlider rsDefault" style="position:relative;width:728px;height:500px;border:1px solid #ccc;">
{$entries}
</div>
<div style="height:10px;font-size:1px;overflow:hidden;">&nbsp;</div>
<div id="add_spacing" style="display:none;"></div>
<div id="entry_info_wrap" style="margin:1px 0px 5px 0px;border:1px solid #ccc;padding:5px 5px 4px 5px;position:relative;">
<div id="entry_info"></div>
<div style="height:1px;margin-top:-1px;font-size:0px;overflow:hidden;clear:both;width:100%;line-height:0px;">&nbsp;</div>
<div id="nu_comments" style="position:absolute;top:5px;right:5px;"></div>
</div>
<div id="hc_post_comment">
<div class="comment_headline">Post Comment <span id="comment_success" style="padding-left:20px;color:#FF0;"></span></div>
<div class="profile_postcomment">
<textarea name="comment_body" id="comment_body" cols="25" class="comment_area" style="overflow: hidden; height: 70px;color:#000;"></textarea>
<div id="comment_button" style="text-align: right; margin-top: 5px;">
<input type="button" id="comment_submit" class="button" value="Submit" style="padding:5px;border-radius:3px;" onclick="hc_postcomment();">
</div>
</div><!--comment button //-->
</div><!-- hc_post_comment //-->
<div id="blog_comments" style="margin-left: auto; margin-right: auto;">
</div>
</div><!-- end left column //-->
<div id="right_column" style="float:right;width:210px;">
<div id="ad_container">
<img src="/include/analytics/images/happy_halloween_4.png" alt="happy halloween" style="max-width:210px;"/>
<div id="adupload" style="background:#000;">
<p id="ms_instructions" style="padding:0 7px 7px 7px;">Thanks to everyone who entered. You were all great. The winners will be notified as in the next day or two.</p>
<ul style="margin-top:0px;padding-top:0px;padding-bottom:7px;">
<li style="padding-right:10px;">1<sup>st</sup> Place - 6 Month Premium Membership &amp; a groovy bateworld T-shirt</li>
<li style="padding-right:10px;">2<sup>nd</sup> Place - 3 Month Premium Membership &amp; a groovy bateworld T-shirt</li>
</ul>
{if $esub eq '' or $esub eq 'no'}
<div id="upload_form" style="display:block;">
<!--
<div id="upload_error" style="display:none;clear:both;padding:0 7px 14px 7px;color:yellow;">&nbsp;</div>
<form style="clear:both;" name="upload" id="upload" method="post" action="/mini-upload-form/upload_halloween.php" enctype="multipart/form-data">
<input type="text" name="adlink" id="adlink" value="" required="" style="display:none;">
<input type="file" name="upl" id="upl">
</form>
<div id="drop" style="text-align:center;display:block;width:100%;"><a class="redbutton" style="float:none;padding:7px 14px;font-size:16px;">Upload Image</a></div>
<div style="clear:both;height:14px;">&nbsp;</div>
<div id="img_preview"></div>
</div><!-- end upload_form //-->
{/if}
{if $esub eq 'pending'}
<div style="color:#fff;padding:0px 10px 10px 10px;font-weight:bold;font-size:90%;">Your entry is being processed for final approval.</div>
{/if}
{if $esub eq 'no'}
<div style="color:#fff;padding:0px 10px 10px 10px;color:yellow;font-weight:bold;font-size:90%;">Your entry has been rejected. Please submit a new entry.</div>
{/if}
{if $esub eq 'yes'}
<div style="color:#fff;padding:0px 10px 10px 10px;color:lightgreen;font-weight:bold;font-size:90%;">Congratulations! Your entry has been accepted. Good luck.</div>
{/if}
<div id="sub_success" style="display:none;color:lightgreen;padding:0px 10px 10px 10px;"></div>
</div> <!-- end adupload //-->
<div id="upload_ul"><ul></ul></div> <!-- upload progress meter //-->
</div>
<div>&nbsp;</div>
{* CUM METER *}
<div id="meter-wrap" style="text-align:center;width:210px;height:548px;background:#000;">
<a href="javascript:donot();" onclick="getthemeter(1);" style="border:none;">
<img src="/cmeter/meter2.jpg" width="200" height="542" id="canime" class="cp_canime" /></a>
<div id="bm-total-since" style="margin-top:5px;">TOTAL SINCE 10.21.2012</div>
<div id="bm-cclicks" style="margin-top:5px;">&nbsp;</div>
<div id="flashcontainer"> </div>
</div>
</div> <!-- end right column //-->
{literal}
<script src="/cmeter/cmeter.js" type="text/javascript"></script>
<script type="text/javascript" src="jackbox/js/jackbox-packed.min.js"></script>
<script src="/royalslider/jquery.royalslider.min.js"></script>
<script type="text/javascript">
var soundfile="";
var pstimer="";
function getFlashMovie(movieName) {
var isIE = navigator.appName.indexOf("Microsoft") != -1;
return (isIE) ? window[movieName] : document[movieName];
}
function callToActionscript(str) {getFlashMovie("flash_control").sendsonginfo(str);soundfile="";}
function loadsoundfile(){callToActionscript(soundfile);clearTimeout(pstimer);}
isIE = navigator.appName.indexOf("Microsoft") != -1;
if(!isIE)
{
document.getElementById("flashcontainer").innerHTML="<object type=\"application/x-shockwave-flash\" id=\"flash_control\" data=\"/flash/control.swf\" width=\"100\" height=\"100\"><param name=\"movie\" value=\"/flash/control.swf\" /><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"noborder\" /></object>";
}
else
{
document.getElementById("flashcontainer").innerHTML="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"1\" height=\"1\" id=\"flash_control\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"movie\" value=\"/flash/control.swf\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"noborder\" /></object>";
}
getthemeter2(0);
update_state(userid,pagename,username,useremail,userlevel,userinvisible,userphoto);
var theslider="";
jQuery.noConflict();
jQuery(document).ready(function() {
theslider=jQuery('#gallery').css('visibility','visible').royalSlider({
fullscreen: {
enabled: true,
nativeFS: true
},
controlNavigation: 'thumbnails',
autoScaleSlider: true,
autoScaleSliderWidth: 730,
autoScaleSliderHeight: 500,
loop: false,
imageScaleMode: 'fit-if-smaller',
navigateByClick: true,
numImagesToPreload:2,
arrowsNav:true,
arrowsNavAutoHide: true,
arrowsNavHideOnTouch: true,
keyboardNavEnabled: true,
fadeinLoadedSlide: true,
globalCaption: true,
globalCaptionInside: false,
deeplinking: {
// deep linking options go gere
enabled: true,
prefix: 'theslide'
},
thumbs: {
appendSpan: true,
firstMargin: true,
paddingBottom: 4
}
}).data('royalSlider');
//sliderInstance = theslider.data('royalSlider');
function gup( name,url )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec(url);
if( results == null )
return "";
else
return results[1];
}
function getpicinfo() {
thesrc=jQuery('.royalSlider').data('royalSlider').currSlide.content.attr('src');
theid=(gup('id',thesrc));
jQuery('#comment_success').html("");
hcuinfo(theid);
}
theslider.ev.on('rsAfterSlideChange', getpicinfo);
getpicinfo();
theslider.ev.on('rsEnterFullscreen', function() {
document.getElementById("menu-table").style.zIndex="-10";
});
theslider.ev.on('rsExitFullscreen', function() {
document.getElementById("menu-table").style.zIndex="700";
});
//blog reader
jQuery('body').append(jQuery('<div/>', {
id: 'pdp_blog_reader', class: 'draggable', style: 'z-index:1027;display:none;top:5px;left:20px;position:fixed!important'
}));
blogread='<div id="br_heading" class="draghandle"><span id="br_name">BATEWORLD READER</span><a href="javascript:min_max_reader();" onclick="" class="min_max" id="br_min_max">&nbsp;</a><a href="javascript:hidetheform(\'pdp_blog_reader\');" onclick="" class="close_btn">&nbsp;</a></div><div><div style="position:relative;"><iframe id="br_cont" src="" scrolling="auto" frameborder="0" allowtransparency="true"></iframe></div><div id="pdp_br_footer" class="draghandle">&nbsp;</div></div></div>';
jQuery('#pdp_blog_reader').html(blogread);
jQuery(".draggable").draggable({ handle: ".draghandle" });
jQuery( "#pdp_blog_reader" ).draggable({ scroll: false });
jQuery(function() {
jQuery( "#pdp_blog_reader" ).resizable({
alsoResize: "#br_cont"
});
jQuery( "#br_cont" ).resizable();
});
wh=jQuery(window).height();
wh=wh-30;
brh=jQuery('#pdp_blog_reader').height();
brf=wh-64;
brf=brf+"px";
brh=(wh-10)+"px";
jQuery('#pdp_blog_reader').css('height',brh);
jQuery('#br_cont').css('height',brf);
jQuery(".jackbox[data-group]").jackBox("init", {
deepLinking: true, // choose to use the deep-linking feature ("true" will enhance social sharing!) true/false
showInfoByDefault: false, // show item info automatically when content loads, true/false
preloadGraphics: true, // preload the jackbox graphics for a faster jackbox
fullscreenScalesContent: true, // choose to always scale content up in fullscreen mode, true/false
defaultShareImage: "1.jpg", // if the social widget can't find an image to share from your lightbox content,
// it will use this image's url instead. Only applicable to Pinterest.
autoPlayVideo: false, // video autoplay default, this can also be set per video in the data-attributes, true/false
flashVideoFirst: false, // choose which technology has first priority for video, HTML5 or Flash, true/false
defaultVideoWidth: 960, // the default video width, can also be set per video in the data-attributes
defaultVideoHeight: 540, // the default video height, can also be set per video in the data-attributes
baseName: "jackbox", // base url applied to built-in widgets/modules
className: ".jackbox", // the default jQuery selector
useThumbs: false, // choose to use thumbnails, true/false
thumbsStartHidden: false, // choose to initially hide the thumbnail strip, true/false
thumbnailWidth: 75, // the default thumb width, can also be set per video in the data-attributes
thumbnailHeight: 50, // the default thumb height, can also be set per video in the data-attributes
useThumbTooltips: true, // choose to use small thumbnail tooltips, true/false
showPageScrollbar: true, // if you don't like the "page jump" when the scrollbar disappears, set this to "true"
useKeyboardControls: true // The left and right keyboard arrows will cycle through the items. up/down will toggle thumbs
});
});
jQuery(window).load(function () {
// run code
});
jQuery(window).scroll(function()
{
});
jQuery(window).resize(function() {
wh=jQuery(window).height();
ww=jQuery(window).width();
wh=wh-30;
brh=jQuery('#pdp_blog_reader').height();
brw=jQuery('#pdp_blog_reader').width();
if(brh > wh)
{
brf=wh-64;
brf=brf+"px";
brh=(wh-10)+"px";
jQuery('#pdp_blog_reader').css('height',brh);
jQuery('#br_cont').css('height',brf);
}
if(brw > ww)
{
brww=(ww-40)+"px";
jQuery('#pdp_blog_reader').css('width',brww);
jQuery('#br_cont').css('width',"100%");
}
});
</script>
{/literal}
<div id="mo_profile" onmouseout="hl_profile_out();" onmouseover="hl_profile_keep_open();">
<div id="profile_name" onmouseover="hl_profile_keep_open();"></div>
<div id="rl_profile" onmouseover="hl_profile_keep_open();" style="clear:both;">
</div>
<div style="height:1px;overflow:hidden;">&nbsp;</div>
</div> <!-- end profile flyout //-->
<script type="text/javascript">
{literal}
var thumpclosetimer=window.setInterval(function(){thump(major,minor,frevision,frevisionstr,userid,pagename); parameter = null},thumpimeout);
var reconnect = false;
window.onfocus = function () {
if (reconnect) {
reconnect = false;
// alert("Perform an auto-login here!");
}
};
window.onbeforeunload = function () {
//logout();
window.clearInterval(thumpclosetimer);
reconnect = true;
};
{/literal}
</script>
<script src="/mini-upload-form/assets/js/jquery.knob.js"></script>
<script src="/mini-upload-form/assets/js/jquery.ui.widget.js"></script>
<script src="/mini-upload-form/assets/js/jquery.iframe-transport.js"></script>
<script src="/mini-upload-form/assets/js/jquery.fileupload.js"></script>
<script src="/mini-upload-form/assets/js/script_halloween.js"></script>
<div style="clear:both;">&nbsp;</div>
</div> <!-- end halloween page //-->
{else}
<div style="width:100%;background:#000;"></div>
{/if}
{include file='footer.tpl'}