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

563 lines
20 KiB
Smarty

{include file='header.tpl'}
{* $Id: home.tpl 288 2010-01-11 20:17:09Z steve $ *}
{if $user->profile_info.profilevalue_29==""|| $user->profile_info.profilevalue_29=="-1"}
<script type="text/javascript">
{literal}
//document.addEventListener('DOMContentLoaded', function()
{
TB_show('Update Your Profile Info', 'countrypopup.php?height=250&width=400&TB_iframe=true&noclose=true', '', '../images/trans.gif');
}
{/literal}
</script>
{/if}
<script type="text/javascript">
var userid="{$user->user_info.user_id}";
var username="{$user->user_info.user_username}";
var userlevel="{$user->user_info.user_level_id}";
var userinvisible="{$user->user_info.user_invisible}";
var userblocklist="{$user->user_info.user_blocklist}";
</script>
{* BEGIN LEFT COLUMN *}
<div id="hp_wrap" style="position:relative">
<div style='float: left; width: 200px;'>
{* SHOW LOGIN FORM IF USER IS NOT LOGGED IN *}
{if !$user->user_exists}
<div class='header'>{lang_print id=659}</div>
<div class='portal_content'>
<form action='login.php' method='post'>
<table cellpadding='0' cellspacing='0' align='center'>
<tr>
<td>
{lang_print id=89}:<br />
<input type='text' class='text' name='email' size='20' maxlength='100' value='{$prev_email}' />
</td>
</tr>
<tr>
<td style='padding-top: 6px;'>
{lang_print id=29}:<br />
<input type='password' class='text' name='password' size='20' maxlength='100' />
</td>
</tr>
{if !empty($setting.setting_login_code)}
<tr>
<td style='padding-top: 6px;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td><input type='text' name='login_secure' class='text' size='6' maxlength='10' />&nbsp;</td>
<td>
<table cellpadding='0' cellspacing='0'>
<tr>
<td align='center'>
<img src='./images/secure.php' id='secure_image' border='0' height='20' width='67' class='signup_code' alt='' /><br />
<a href="javascript:void(0);" onClick="$('secure_image').src = './images/secure.php?' + (new Date()).getTime();">{lang_print id=975}</a>
</td>
<td>{capture assign=tip}{lang_print id=691}{/capture}<!--<img src='./images/icons/tip.gif' border='0' class='Tips1' title='{$tip|escape:quotes}' alt='' />--></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
{/if}
<tr>
<td style='padding-top: 10px;'>
<input type='submit' class='button' value='{lang_print id=30}' />&nbsp;
<input type='checkbox' class='checkbox' name='persistent' value='1' id='rememberme' />
<label for='rememberme'>{lang_print id=660}</label>
</td>
</tr>
</table>
<noscript><input type='hidden' name='javascript_disabled' value='1' /></noscript>
<input type='hidden' name='task' value='dologin' />
<input type='hidden' name='ip' value='{$ip}' />
</form>
</div>
<div class='portal_spacer'></div>
{* SHOW HELLO MESSAGE IF USER IS LOGGED IN *}
{else}
<script type="text/javascript">
var userid="{$user->user_info.user_id}";
var pagename="home";
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}";
</script>
<div class='portal_login'>
<div style='padding-bottom: 5px;'><a href='{$url->url_create("profile",$user->user_info.user_username)}'><img src='{$user->user_photo("./images/nophoto.png",true)}' width='{$misc->photo_size($user->user_photo("./images/nophoto.png"),"90","90","w")}' border='0' class='photo' alt="{lang_sprintf id=509 1=$user->user_info.user_username}" /></a></div>
<div>{lang_sprintf id=510 1=$user->user_displayname_short}</div>
<div>[ <form method="POST" id="user_logout" action="user_logout.php" style="display:inline;margin:0;"><a href='user_logout.php?token={$token}' class='top_menu_item' onclick="$('user_logout').submit(); return false;">{lang_print id=26}</a></form> ]</div>
</div>
<div class='portal_spacer'></div>
{/if}
{* SHOW STATUS *}
{if $user->level_info.level_profile_status != 0}
{lang_javascript ids=773,1113 range=743-747}
{literal}
<script type="text/javascript">
<!--
SocialEngine.Viewer.user_status = '{/literal}{$user->user_info.user_status}{literal}';
//-->
</script>
{/literal}
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='header'>{lang_print id=742}</td>
</tr>
<tr>
<td class='home_box'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td valign='top'><!--<img src='./images/icons/status16.gif' border='0' class='icon2' />-->&nbsp;&nbsp;</td>
<td>
<div id='ajax_status'>
{if $user->user_info.user_status != ""}
{assign var='status_date' value=$datetime->time_since($user->user_info.user_status_date)}
{$user->user_displayname_short} <span id='ajax_currentstatus_value'>{$user->user_info.user_status}</span>
<div style='padding-top: 5px;'>
<div style='float: left; padding-right: 5px;'>[ <a href="javascript:void(0);" onClick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=745}</a> ]</div>
<div class='home_updated'>
{lang_print id=1113}
<span id='ajax_currentstatus_date'>{lang_sprintf id=$status_date[0] 1=$status_date[1]}</span>
</div>
<div style='clear: both; height: 0px;'></div>
</div>
{else}
<div><a href="javascript:void(0);" onclick="SocialEngine.Viewer.userStatusChange(); return false;">{lang_print id=743}</a></div>
{/if}
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class='portal_spacer'></div>
{/if}
{* SHOW RECENT NEWS ANNOUNCEMENTS IF MORE THAN ZERO *}
{if $news|@count > 0}
<div class='header'>{lang_print id=664}</div>
<div style='padding: 10px;margin:0px;background:#000;'>
{section name=news_loop loop=$news max=3}
<div><!--<img src='./images/icons/news16.gif' border='0' class='icon' alt='' />--><b>{$news[news_loop].announcement_subject}</b> - {$news[news_loop].announcement_date}</div>
<div style="margin:0px;padding:5px 0 0 0;">{$news[news_loop].announcement_body}</div>
{/section}
</div>
<div class='portal_spacer'></div>
{/if}
<div id="onlineusers"></div>
{* CUM METER *}
<div id="meter-wrap" style="text-align:center;width:200px;height:542px;">
<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="top:32px;">TOTAL SINCE 10.21.2012</div>
<div id="bm-cclicks" style="top:69px;">&nbsp;</div>
<div id="flashcontainer"> </div>
</div>
{literal}
<script src="/cmeter/cmeter.js" type="text/javascript"></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>";
}
getthemeter(0);
</script>
{/literal}
<div class='portal_spacer'></div>
{* SHOW UPCOMING BIRTHDAYS *}
<div class='header' style="margin-top:5px;">{lang_print id=1176}</div>
<div class='network_content'>
{* rgh - 2010-11-16 - removed year from date format string. Was previously backtickdollarsign setting.setting_dateformat backtick *}
{section name=birthday_loop loop=$birthdays max=20}
<div>
{*
<a href='{$url->url_create("profile", $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a>
- {$datetime->cdate("`$setting.setting_dateformat`", $birthdays[birthday_loop].birthday_date)}
*}
<a href='{$url->url_create("profile", $birthdays[birthday_loop].birthday_user_username)}'>{$birthdays[birthday_loop].birthday_user_displayname}</a>
- {$birthdays[birthday_loop].birthday_date|date_format:"%B %e"}
</div>
{sectionelse}
{lang_print id=1180}
{/section}
</div>
<div class='portal_spacer'> </div>
<div id="recentlogins">Loading...</div>
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *}
{if !$user->user_exists}
<div class='portal_signup_container1'>
<div class='portal_signup'>
<a href='signup.php' class='portal_signup'><span style='font-size: 15px;'><img src='./images/portal_join.gif' border='0' style='margin-right: 3px; vertical-align: middle;' alt='' /></span>{lang_print id=1115}</a>
</div>
</div>
<div class='portal_spacer'></div>
{/if}
<div id="latestevents">Loading...</div>
<div style="background:#000;border-radius:5px;padding-top:5px;padding-bottom:5px;">
<!--
{* VIDCHAT *}
<div style="text-align:center;background:#000;padding:0px 0px 0px 0px;">
<a href="http://bateworld.com/browse_avchat3.php" title="VidChat"><img src="/images/ads/vidchatad2.jpg" width="192" height="366" alt="VidChat" style="border:none;" /></a>
</div>
<div class="postal_spacer" style="height:5px;overflow:hidden;">&nbsp;</div>
//-->
{* TRAVELING BATORS *}
<div style="text-align:center;background:#000;padding:0px 0px 0px 0px;">
<a href="http://bateworld.com/alltravel.php" title="Travel Bators" style="text-decoration:none;"><img src="/images/ad/traveling-bators-1.jpg" width="192" height="288" alt="Traveling Bators" style="border:none;" /></a>
</div>
<div class="postal_spacer" style="height:0px;overflow:hidden;">&nbsp;</div>
</div>
{* FLESHJACK AD - Rotator*}
<hr style="width:90%;margin-top:15px;" />
<div style="text-align:center;">
<div style="background:#000;margin:0px auto;padding-bottom:14px;padding-top:14px;">
{include_php file='/home/thebate/public_html/include/analytics/images/ads/hp_lc_rotator.php'}
</div>
</div>
<div class='portal_spacer' style="height:5px;overflow:hidden;">&nbsp;</div>
{* Joe Gage - Doctors and Dads 3 *}
<hr style="width:90%;margin-top:15px;" />
<div style="text-align:center;">
<div style="background:#000;margin:0px auto;padding-bottom:14px;padding-top:14px;">
<a href="http://pay.raydragonvideo.com/track/MjguMi4zLjQuMC4wLjAuMC4w" title="Joe Gage Doctors and Dads 3" target="_blank" style="text-decoration:none;"><img src="/images/ad/gage-dd3.jpg" width="192" height="220" border="0"></a>
</div>
</div>
<div class='portal_spacer' style="height:5px;overflow:hidden;">&nbsp;</div>
<hr style="margin-top:-1px;margin-bottom:18px;width:90%;" />
{* RYX *}
<div style="text-align:center;background:#000;padding:0px 0px 0px 0px;">
<img src="/images/ads/bateworld_animation.gif" width="192" height="256" alt="Rock Your Cock" />
</div>
</div>
{* SHOW JOIN US TODAY BUTTON IF USER IS NOT LOGGED-IN *}
{if !$user->user_exists}
<div class='portal_signup_container1'>
<div class='portal_signup'>
<a href='signup.php' class='portal_signup'><span style='font-size: 15px;'><img src='./images/portal_join.gif' border='0' style='margin-right: 3px; vertical-align: middle;' alt='' /></span>{lang_print id=1115}</a>
</div>
</div>
<div class='portal_spacer'></div>
{/if}
</div>
{* BEGIN MIDDLE COLUMN *}
<div style='float: left; width: 520px; padding: 0px 10px 0px 10px; margin: 0 10px;'>
{* SHOW RECENT SIGNUPS *}
<div id="latestmembers">Loading...</div>
<div class='portal_spacer'></div>
{* SHOW ACTIVITY FEED BANNER BANNER *}
{if $user->user_info.user_id>0}
{if $ads->ads_display('10') != ""}
{$ads->ads_display('10')}
{else}
<div class='ad_top' style='display: block; visibility: visible;margin:0px;padding:0px 0 2px 0;'>
{include_php file='/home/thebate/public_html/include/analytics/images/ads/hp_zone1_rotator.php'}
</div>
{/if}
{/if}
{* END CONTENT CONTAINER *}
<div class='portal_spacer'></div>
<div id="activities">Loading...</div>
{* JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *}
<div id="latestgroups">
Loading...
</div>
<div class='portal_spacer'></div>
<div id="latestpolls">Loading...</div>
<div id="latestforums">Loading...</div>
<div id="latestblogs">Loading...</div>
{* SHOW PUBLIC VERSION OF ACTIVITY LIST *}
{* JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *}
{literal}
<script type="text/javascript">
<!--
function actionprefs()
{
TB_show('{/literal}{lang_print id=1068}{literal}', '#TB_inline?height=250&width=300&inlineId=actionprefs', '', '../images/trans.gif');
}
//-->
</script>
{/literal}
{* ADS *}
<div style='padding: 5px 10px 0px 0px;' id="home-ad">
{$ads->ads_display('1')}
</div>
</div>
{* BEGIN RIGHT COLUMN CONTENT *}
<div style='float: left; width: 200px;min-height:500px;'>
{* WHAT'S HOT *}
{if !empty($whats_hot)}
<div id="whatshot">
<div id="wh-cont">
{if $showadabove == 'yes'}
<div id="wh_adabove" style="padding-bottom:12px;padding-top:8px;">{$adabove}</div>
{/if}
<div class="header">{lang_print id=9000007}</div>
<div id="wh-wrap">
<div id="whats_hot"></div>
<script>hotgroups();tumblr_recent();</script>
<div style="padding-bottom:12px;"><hr />
<p style="text-align: center !important;margin:0;padding:16px 0 16px 0;"><span style="color: rgb(255, 102, 0);"><span style="font-family: 'arial black','avant garde';">TELL US ALL<br />WHO'S HOT&nbsp;<a _cke_saved_href="http://bateworld.com/forum/topic/293/page/1#1530" target="_blank" href="http://bateworld.com/forum_topic.php?forum_id=5&amp;topic_id=5&amp;p=12">HERE</a></span></span></p>
<hr />
</div>
<div id="adbelow"></div><!-- end adbelow //-->
</div><!-- end whats hot wrap //-->
</div><!-- end whats hot container //-->
</div><!-- end whats hot //-->
<div class='portal_spacer'></div>
<script type="text/javascript" src="jackbox/js/jackbox-packed.min.js"></script>
<script type="text/javascript">
{literal}
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery(".jackbox[data-group]").jackBox("init", {
deepLinking: false, // 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
autoPlayVideo: true, // 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
});
getshow="{/literal}{$smarty.get.show}{literal}";
getmembersonline="{/literal}{$smarty.get.membersonline}{literal}";
jQuery.ajax({
url: "activities1.php?show="+getshow,
cache: false
})
.done(function( html ) {
jQuery( "#activities" ).html( html );
});
jQuery.ajax({
url: "latestmembers.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestmembers" ).html( html );
});
jQuery.ajax({
url: "onlineusers.php?membersonline="+getmembersonline,
cache: false
})
.done(function( html ) {
jQuery( "#onlineusers" ).html( html );
});
jQuery.ajax({
url: "latestgroups.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestgroups" ).html( html );
});
jQuery.ajax({
url: "recentlogins.php",
cache: false
})
.done(function( html ) {
jQuery( "#recentlogins" ).html( html );
});
jQuery.ajax({
url: "latestevents.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestevents" ).html( html );
});
jQuery.ajax({
url: "ajaxpages.php?record=116",
cache: false
})
.done(function( html ) {
jQuery( "#adbelow" ).html( html );
});
jQuery.ajax({
url: "ajaxpages.php?record=115",
cache: false
})
.done(function( html ) {
jQuery( "#whats_hot" ).html( html );
});
jQuery.ajax({
url: "latestpolls.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestpolls" ).html( html );
});
jQuery.ajax({
url: "latestforums.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestforums" ).html( html );
});
jQuery.ajax({
url: "latestblogs.php",
cache: false
})
.done(function( html ) {
jQuery( "#latestblogs" ).html( html );
});
});
{/literal}
</script>
{/if}
</div>
<div id="add_column_c" style="position:absolute;top:0px;right:-193px;">
{if $addcolumnc == 'yes'}
{* Column C *}
<div style="width:160px;background:black;text-align:center;margin:0px 0px 0px 0px;" id="cwh">
<div style="width:140px;text-align:center;margin:0px auto;padding:10px;" id="cwh_wrap">
{$ccolumn}
</div>
</div>
{/if}
</div>
</div>
<div style='clear: both;'></div>
{include file='footer.tpl'}