Post by Todge on Sept 19, 2009 3:25:29 GMT -8
This is simply a window that is displayed when ever a new member first logs in to your forum.. You can use it as a welcome message, rules and regulations.. Whatever you wish..
To close the window either refresh the page (or navigate away) or simply click on it and the window will not reappear so long as the member does not delete his/her cookies or they use another PC to log-in.. Or they do not log-in for 10 years, but they'd need the message by then anyway..
Put it in your Global Header...
Edit where it says 'Put your info here.... Use HTML coding...'
To close the window either refresh the page (or navigate away) or simply click on it and the window will not reappear so long as the member does not delete his/her cookies or they use another PC to log-in.. Or they do not log-in for 10 years, but they'd need the message by then anyway..
Put it in your Global Header...
<div id="memberpop" style="height: 50%; width: 50%; position: absolute; top: 50px; left: 100px; background-color: #FFFFFF; border: 1px solid black; overflow: auto; display: none;">
Put your info here.... Use HTML coding...
</div>
<script type="text/javascript">
<!--
// Pop up when member first logs in...
// Set cookie function..
function setMemberCookie()
{
var expireDate = new Date();
expireDate.setMonth(expireDate.getYear()+10);
document.cookie = 'beenbefore=yes; expires='+expireDate.toGMTString()+'; path=/';
return;
}
if(pb_username != 'Guest' && !document.cookie.match(/beenbefore/))
{
document.getElementById('memberpop').style.display = '';
if(!navigator.appName.match(/Internet Explorer/))
{
document.getElementById('memberpop').style.position = 'fixed';
document.getElementById('memberpop').style.left = window.innerWidth/4;
document.getElementById('memberpop').style.top = window.innerHeight/4;
}
else
{
document.getElementById('memberpop').style.left = document.body.offsetWidth/4;
document.getElementById('memberpop').style.top = document.body.offsetHeight/4;
}
document.getElementById('memberpop').onclick = function(){this.style.display = 'none';}
setMemberCookie();
}
// -->
</script>
Edit where it says 'Put your info here.... Use HTML coding...'