j0nty07 said:Nice hack, and quite amusing. I initially allowed 10 seconds for guests to comply, however, it would appear that 10 seconds is not enough time for the registered users to log into the forum.
<if condition="$show['guest']">
<meta HTTP-EQUIV="REFRESH" content="xx; url=register.php$session[sessionurl_q]">
</if>
<body onLoad="startMsg()">
<if condition="$bbuserinfo['usergroupid'] == 1">
<script>
function startMsg()
{
var t=setTimeout("doMsg()",5000);
}
function doMsg() {
alert("You must register to make any posts on this site! \n You will now be taken to the register page...");
window.location.href = "http://www.gamerx.info/forum/register.php";
}
</script>
</if>
<if condition="THIS_SCRIPT != 'register'">
<if condition="$bbuserinfo['usergroupid'] == 1">
<meta HTTP-EQUIV="REFRESH" content="5; url=http://yourforum.com/forums/register.php">
</if>
</if>