How to make a Welcome page (Splash Page) for your Guild Site
Setting up your site
Make a new page
Page Order
Add a new Content Box
The Welcome Screen
The code
<style type="text/css"> #splashBox { margin: 0 auto; text-align: center; color: #fff; } body { background: #333333 url(URL TO YOUR BACKGROUND IMAGE); color: #ffffff; } #PageContainer,.gpWidget,.sectionWrapper,.ContentZone,#bannerTable, .BannerArea,.WfTopMenu,.TabBar,.straightBarWrapper,.InnerTabTable { display: none; } .sectionWrapper { -webkit-box-shadow: 0 0 #000; -moz-box-shadow: 0 0 #000; box-shadow: 0 0 #000; } </style> <div id="splashBox"> <div align=center> <div style="height:200px;"></div> <h1>Welcome $block[username]</h1> <img src="URL TO YOUR LOGO"> <div style="height:100px;"></div> <a href="URL TO YOUR HOME PAGE"> <img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/forums/entersite.gif"> </a> </div> <meta http-equiv="refresh" content="10; url=URL TO YOUR HOME PAGE"> </div> <script type="text/javascript"> $(function() { var w = $('#splashBox').closest('.gpwidget'); // remove the next two lines if you want your box borders to show w.find('.ContentBoxTitle').hide().end() .find('.ContentBox, .ContentBoxTitle, .ContentBoxBody').andSelf().attr('class',''); // remove the above two lines if you want your box borders to show $('#splashBox').parents().show(); }); </script>
Customizing the code
Hiding the Welcome tab
$(document).ready(function(){ $('.straightBarWrapper').find('td:contains("Welcome")').hide(); })
Making your welcome screen public
body { background: #333333 url(URL TO YOUR BACKGROUND IMAGE) no-repeat; color:#ffffff; display:inline; }
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/2Qj8PhxSnhg&hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/2Qj8PhxSnhg&hl=en_US&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
<style type="text/css"> body { display:none; } </style> <div id="splashBox"> <div align=center> <div style="height:200px;"></div> Welcome $block[username] to <br><br> <div id="video"></div> <div style="height:100px;"></div> <a href="URL TO YOUR HOME PAGE"> <img src="http://i201.photobucket.com/albums/aa236/Mottie1/testsite/forums/entersite.gif"> </a> </div> <meta http-equiv="refresh" content="10; url=URL TO YOUR HOME PAGE"> <style type="text/css"> .StateBar, .BannerArea, .TabBar, .PageFooter, div.ContentBoxBody, .ContentBoxTitle, input { display:none; } body { background: #333333 url(URL TO YOUR BACKGROUND IMAGE); color: #ffffff; display: inline; } img, img a { border:0px; } </style> </div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript"> $(document).ready(function() { var a = document.getElementById('splashBox').innerHTML; document.getElementById('ctl00_ContentPlaceHolder1_PageContainer').innerHTML = a; var flashvars = {}, param = {}, attrib = {}; param.movie = 'VIDEO URL'; param.allowFullScreen = true; param.allowscriptaccess = 'always'; swfobject.embedSWF(param.movie, 'video', '640', '385', '9.0.0', flashvars, param, attrib); }); </script>
<style type="text/css"> .tooltip, .preview, .screenshot { cursor:pointer; } #tooltip, #tooltip2, #preview, #screenshot { color:#dddddd; background:#222222; border: 1px solid #333333; padding:5px; display:none; opacity: 0.9; filter: alpha(opacity=90); text-align:left; border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; } </style> <script src="http://www.axiomfiles.com/Files/258012/tooltip.js" type="text/javascript"></script>