653 lines
14 KiB
PHP
653 lines
14 KiB
PHP
{include file='header_community.tpl'}
|
|
|
|
{* $Id: community.tpl 12 2012-08-26 06:04:12Z phil $ *}
|
|
|
|
|
|
|
|
|
|
|
|
{if $user->user_info.user_id>0}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var userid={$user->user_info.user_id};
|
|
|
|
var pagename="community";
|
|
|
|
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}";
|
|
|
|
{literal}
|
|
|
|
{/literal}
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="/js/community.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="community_wrap">
|
|
|
|
<div id="main_left_column">
|
|
|
|
<div id="thewall" class="full-left-column brad-ten">
|
|
|
|
<div class="cheading"><h2>Community Wall{$user->user_info.user_id}</h2></div>
|
|
|
|
<div id="wall">
|
|
|
|
<div id="recent_wall_post"> </div>
|
|
|
|
<div id="wall_posts" style="padding-bottom:100px;"></div>
|
|
|
|
<div id="wall_post_nav"></div>
|
|
|
|
<div id="wall_sub_post">
|
|
|
|
<textarea id="comm_post" name="comm_post" onkeyup="limitText('comm_post','thecount',230);" onfocus="clearcompost();" onblur="clearcompost();">Message</textarea>
|
|
|
|
<input id="comm_post_sub" name="comm_post_sub" type="button" class="redbutton" value="Post" onclick="dothewallpost('{$user->user_info.user_id}','{$user->user_info.user_photo}');" />
|
|
|
|
<input type="hidden" name="userdisplayname" id="userdisplayname" value="{$user->user_displayname_short}" />
|
|
|
|
<div id="thecount">Maximum 230 Characters</div>
|
|
|
|
<div id="wp_emsg">You post has been successfully submitted.</div>
|
|
|
|
<div id="wps_progress" style="position:absolute;display:none;top:8px;left:0px;width:100%;text-align:center;height:40px;">
|
|
|
|
<img src="/images/ajax-loader.gif" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="spacer"> </div>
|
|
|
|
<div id="twitter_cont" style="position:relative;">
|
|
|
|
<div class="cheading"><h2>BateWorld Twitter Feed</h2>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="tweet"></div>
|
|
|
|
<div "id="tweet_follow_widget" style="position:absolute;top:2px;right:0px;">
|
|
|
|
<a href="https://twitter.com/bateworld" class="twitter-follow-button" data-dnt="true">Follow @bateworld</a>
|
|
|
|
{literal}<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>{/literal}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="spacer"> </div>
|
|
|
|
|
|
|
|
<div style="float:left;width:454px;">
|
|
|
|
<div id="tumblr_cont" style="position:relative;">
|
|
|
|
<div class="cheading"><h2>BateWorld Tumblr Blog</h2></div>
|
|
|
|
<div id="tumblr"></div>
|
|
|
|
<div style="padding-bottom:3px;clear:both;text-align:center;"><a href="http://www.tumblr.com/follow/bateworld" target="_community" style="border:none;text-decoration:none;"><img src="/images/community/bateworld_tumblr.png" style="border:none;" /></a></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="spacer"> </div>
|
|
|
|
|
|
|
|
<div id="member_services_container">
|
|
|
|
<div class="cheading"><h2>Member Services</h2></div>
|
|
|
|
<div id="member_services" style="padding-top:10px;padding-bottom:10px;">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="center_right_col" style="float:right;width:266px;background:#600;border-radius:10px 10px 0 0;">
|
|
|
|
|
|
|
|
<div id="youtubechannel">
|
|
|
|
<div class="cheading"><h2>BateWorld's YouTube Channel</h2> {if $user->user_info.user_id==7653||$user->user_info.user_id==8||$user->user_info.user_id==6286||$user->user_info.user_id==21092}<a href="javascript:getyoutubeform('/js/act/youtube_form.php','df_form','Youtube');" onclick="" style="position:absolute;display:block;width:40px;height:16px;right:2px;top:0px;color:#fff;">Edit</a>{/if}
|
|
|
|
</div>
|
|
|
|
<div id="thetubes" style="background:#000;">
|
|
|
|
|
|
|
|
</div><?php // thetubes?>
|
|
|
|
<div style="background:#fff;margin:0px;padding:0px 0px 0px 0px;width:263px;border:1px solid silver;">
|
|
|
|
<iframe src="http://www.youtube.com/subscribe_widget?p=bateworld" style="overflow: hidden; height: 104px; width: 263px; border: 0;margin:0px;padding:0px;" scrolling="no" frameBorder="0"></iframe>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="spacer" style="background:#600;height:20px;overflow:hidden;"> </div>
|
|
|
|
<div id="xtubechannel">
|
|
|
|
<div class="cheading"><h2>BateWorld's XTube Channel</h2> {if $user->user_info.user_id==7653||$user->user_info.user_id==8||$user->user_info.user_id==6286||$user->user_info.user_id==21092}<a href="javascript:getxtubeform('/js/act/xtube_form.php','df_form','Xtube');" onclick="" style="position:absolute;display:block;width:40px;height:16px;right:2px;top:0px;color:#fff;">Edit</a>{/if}</div>
|
|
|
|
<div id="xtubes" style="background:#000;margin:0px auto;">
|
|
|
|
<div style="clear:both;width:100%;padding-top:1px;" id="xtube_wrap">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div style="padding:5px 0 5px 0;clear:both;"><img src="/images/community/xtube_logo_120x50.png" /></div>
|
|
|
|
</div><?php // xtubes?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="spacer" style="background:#600;height:20px;overflow:hidden;"> </div>
|
|
|
|
<div id="bwblog">
|
|
|
|
<div class="cheading"><h2>BateWorld Blog</h2></div>
|
|
|
|
<div id="bwblog-pad">
|
|
|
|
|
|
|
|
</div><?php //blog pad?>
|
|
|
|
</div><?php //bwblog ?>
|
|
|
|
<div class="spacer"> </div>
|
|
|
|
<div style="clear:both;"> </div>
|
|
|
|
</div> <?php //center right;?>
|
|
|
|
|
|
|
|
<div style="clear:both;">
|
|
|
|
<div style="width:454px;">
|
|
|
|
<a href="http://bateworld.com/images/newimages/printcard.png" style="text-align:center;" target="_community">
|
|
|
|
<img src="/images/community/bateworld_business_card.jpg" />
|
|
|
|
<p>Print your own BateWorld.com business cards!</p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <?php // main left?>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="main_right_column" style="float:right;width:210px;margin-left:15px;background:black;margin:0px auto;text-align:center;border-radius:20px 20px 0 0;">
|
|
|
|
|
|
|
|
{* CUM METER *}
|
|
|
|
<div id="meter-wrap" style="text-align:center;width:200px;">
|
|
|
|
<a href="javascript:donot();" onclick="getthemeter(1);" style="border:none;">
|
|
|
|
<img src="/cmeter/meter2.jpg" id="canime" style="margin-top:5px;padding-left:5px;border-radius:10px 10px 0 0;border:none;" /></a>
|
|
|
|
<div id="bm-total-since">TOTAL SINCE 10.2?.2012</div>
|
|
|
|
<div id="bm-cclicks" style=""> </div>
|
|
|
|
</div>
|
|
|
|
<div id="flashcontainer"></div>
|
|
|
|
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
|
|
|
|
<script type="text/javascript" src="/js/jquery.tweet.js"></script>
|
|
|
|
{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);
|
|
|
|
update_state(userid,pagename,username,useremail,userlevel,userinvisible,userphoto);
|
|
|
|
getwall(userid);
|
|
|
|
getyoutube();
|
|
|
|
getxtube();
|
|
|
|
gettumblr();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
recentwalltimer = window.setInterval(checkwall, recentwalltimeout);
|
|
|
|
jQuery.noConflict();
|
|
|
|
jQuery(function(jQuery){
|
|
|
|
jQuery("#tweet").tweet({
|
|
|
|
username: "BateWorld",
|
|
|
|
join_text: "auto",
|
|
|
|
avatar_size: 32,
|
|
|
|
count: 5,
|
|
|
|
auto_join_text_default: "we said,",
|
|
|
|
auto_join_text_ed: "we",
|
|
|
|
auto_join_text_ing: "we were",
|
|
|
|
auto_join_text_reply: "we replied to",
|
|
|
|
auto_join_text_url: "we were checking out",
|
|
|
|
loading_text: "loading tweets...",
|
|
|
|
refresh_interval: 60
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
jQuery(".draggable").draggable({ handle: ".draghandle" });
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="spacer" style="background:#600;"> </div>
|
|
|
|
<div id="bate_blogs_container">
|
|
|
|
<div class="cheading" style="position:relative;"><h2>Bate Blogs</h2>
|
|
|
|
{if $user->user_info.user_id==7653||$user->user_info.user_id==8||$user->user_info.user_id==6286||$user->user_info.user_id==21092}<a href="javascript:gettheform('/js/act/bate_blog_links.php','df_form','Bate Links');" onclick="" style="position:absolute;display:block;width:40px;height:16px;right:2px;top:0px;color:#fff;">Edit</a>{/if}</div>
|
|
|
|
<div id="bate_blogs">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="spacer" style="background:#600;"> </div>
|
|
|
|
|
|
|
|
<div style="padding-top:15px;padding-bottom:15px;background:#600;width:210px;">
|
|
|
|
<div style="width:100%;border-radius:5px;background:#000;padding-top:5px;padding-bottom:5px;">
|
|
|
|
<div id="c_rc_ad" style="border-radius:5px;">
|
|
|
|
<div id="c_ad_top" style="border-radius:5px;"><img src="/images/community/c_ad_top.jpg" /></div>
|
|
|
|
<div id="ad_holder" style="background:url(/images/community/c_ad_center_bg.jpg);padding-top:10px;padding-bottom:8px;">
|
|
|
|
<img src="http://www.fncash.com/rotate/148/skyscraper" width="144" height="720" border="0" style="border:1px solid yellow;">
|
|
|
|
</div>
|
|
|
|
<div id="c_ad_bot"><img src="/images/community/c_ad_bottom.jpg" /></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="spacer" style="background:#600;"> </div>
|
|
|
|
<div id="personnel_container" style="margin:0px auto;text-align:center;display:block;clear:both;background:#600;">
|
|
|
|
<div class="cheading" style="position:relative"><h2>Personnel</h2></div>
|
|
|
|
<div id="personnel" style="background:#000;">
|
|
|
|
<ul>
|
|
|
|
<li style="clear:both;">
|
|
|
|
<ul style="list-style:none;float:left;clear:both;">
|
|
|
|
<li class="c-name"><h3>Peter</h3></li>
|
|
|
|
<li class="c-link"><a href="">PeterRising</a></li>
|
|
|
|
<li class="c-title">Executive Administrator</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li style="clear:both;">
|
|
|
|
<ul style="list-style:none;float:left;clear:both;">
|
|
|
|
<li class="c-name"><h3>David</h3></li>
|
|
|
|
<li class="c-link"><a href="">Cernunnos7</a></li>
|
|
|
|
<li class="c-title">Creative Development</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li style="clear:both;">
|
|
|
|
<ul style="list-style:none;float:left;clear:both;">
|
|
|
|
<li class="c-name"><h3>Wayne</h3></li>
|
|
|
|
<li class="c-link"><a href="">bateworldhelp</a></li>
|
|
|
|
<li class="c-title">Administrative Director</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li style="clear:both;">
|
|
|
|
<ul style="list-style:none;float:left;clear:both;">
|
|
|
|
<li class="c-name"><h3>Sean</h3></li>
|
|
|
|
<li class="c-title">Senior Programmer</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li style="clear:both;">
|
|
|
|
<ul style="list-style:none;float:left;clear:both;">
|
|
|
|
<li class="c-name"><h3>Phil</h3></li>
|
|
|
|
<li class="c-link"><a href="">philipp</a></li>
|
|
|
|
<li class="c-title">Editor</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><?php // main right?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
|
|
|
|
|
|
|
</div><?php // community wrap ?>
|
|
|
|
<?php //fixed position draggable ?>
|
|
|
|
<div id="tube_container" class="draggable" style="display:none;z-index:9999999999;">
|
|
|
|
<div id="tc_heading" style="width:316px;height:30px;background:red;border-radius:20px 20px 0 0;position:relative;"><span><img src="/images/youtube_58x24.png" style="margin:3px 0 0 10px;"/></span><a href="javascript:hideyoutube();" style="position:absolute;top:3px;width:20px;height:20px;right:-24px;font-size:18px;color:#000;">x</a></div>
|
|
|
|
<div id="youtube_pad" style="background:red;width:320px;padding:0px 10px 10px 10px;">
|
|
|
|
<iframe width="320" height="180" src="" frameborder="0" id="ytframe"></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><?php //outer wrap ?>
|
|
|
|
</div><!--end youtube //-->
|
|
|
|
|
|
|
|
<div id="xtube_container" class="draggable" style="display:none;">
|
|
|
|
<div id="xtc_heading" style="width:340px;height:30px;background:#333;border-radius:20px 20px 0 0;position:relative;"><span><img src="/images/xtube_58x24.png" style="margin:3px 0 0 10px;"/></span><a href="javascript:hidextube();" style="position:absolute;top:3px;width:20px;height:20px;right:0px;font-size:18px;">x</a></div>
|
|
|
|
<div id="xyoutube_pad" style="background:#000;width:320px;padding:0px 10px 10px 10px;">
|
|
|
|
<iframe width="320" height="210" src="" frameborder="0" id="xtframe"></iframe>
|
|
|
|
|
|
|
|
</div><?php //outer wrap ?>
|
|
|
|
</div><!--end youtube //-->
|
|
|
|
|
|
|
|
|
|
|
|
<div id="draggable_forms" class="draggable">
|
|
|
|
<div id="df_heading" class="draghandle" style="background:red;color:#fff;height:24px;position:relative;"><span id="theformname" style="padding-left:10px;line-height:24px;"></span><a href="javascript:hidetheform('draggable_forms');" style="position:absolute;width:20px;top:3px;right:-3px;color:#fff;">x</a></div>
|
|
|
|
<div id="df_pad">
|
|
|
|
<div id="df_form">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">getwall(userid);</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
getmemberservices();
|
|
|
|
getbatelinks();
|
|
|
|
getadholder();
|
|
|
|
getbwblog();
|
|
|
|
//update_state();
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
jQuery(function() {
|
|
|
|
|
|
|
|
jQuery( "#tube_container" ).draggable({ containment: "parent", scroll: false });
|
|
|
|
jQuery("#xtube_container" ).draggable({ handle: "#xtc_heading" });
|
|
|
|
|
|
|
|
});
|
|
|
|
{/literal}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{else}
|
|
|
|
<div style="width:100%;background:#000;"></div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{include file='footer.tpl'} |