We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Redirect new members to your board's rules; By Paper
Topic Started: Jan 25 2010, 09:14 AM (131 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Paper
[CODE
 
Redirect new members to your board's rules]This code will redirect your members to your board rules when they first sign up.

Preview: http://s7.invisionfree.com/Paper_Preview/index.php

Simply add this to your footer:
Code:
 
<script language="javascript" type="text/javascript">
<!--
/*
Automatic Welcome PM
Editted to to be an Automatic rule viewer instead
Originally by MKII, edited by Paper
*/

if(document.forms['REG'])
document.forms['REG'].onsubmit = function()
{
if(!Validate())
return false;
document.cookie = "newMember=1; expires=" + new Date("1/1/2010").toGMTString();
return true;
}

if(document.getElementById("userlinks").innerHTML.match("Logged in")&&document.cookie.match("newMember=1"))
{
document.cookie = "newMember=0; expires=" + new Date().toGMTString();
document.location.href="PUT YOUR ADDRESS TO YOUR BOARD RULES HERE";
}

//-->
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply