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
Age Requirement Code!; Make there be an age requirement.; By ChrisRiess
Topic Started: Jan 23 2010, 12:59 AM (106 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: ChrisRiess
Age Requirement Code!; Make there be an age requirement.
 
Age Requirement Code 1.0
  • Version 2.0 Coming Soon]
Code: Age Requirement Code.

Decription: When someone registers they have to be a certain age. If there not the right age they cannot register.

Preview: Here
[/color]


System Settings > Board Guidelines
Edit whats in red.
Quote:
 
<!--Code written by The Only One of http://z4.invisionfree.com/pyrotechnicmaniacsdex.php?act=idx
-->
<form method="post" action="http://z4.invisionfree.com/pyrotechnicmaniacs/index.php?act=Reg&CODE=01">
<br/>
<input type="radio" value="under" name="age" onclick="javascript:document.getElementById('submitButton').disabled='disabled';"/> I am under the age of 13.<br/>
<br/>
<br/>
<input type="radio" value="over" name="age" onclick="javascript:document.getElementById('submitButton').disabled='';"/> I am over the age of 13.<br/>
<br/>
<br/>
<br/>
<br/>
<input type="submit" value="Register" id="submitButton" disabled="disabled" /><br/>
</form>


Skinning & Styles > Board Wrappers > Top of Footers
Edit whats in red.
Quote:
 
<script>
/*
Make there be an age requirement before registering.
version 1.0
Original by Gamefreak11
Edited by The Only One of http://z4.invisionfree.com/pyrotechnicmani...dex.php?act=idx
*/
var q = document.getElementsByTagName('A')
for (i=0;i<q.length;i++){
if (q.href.indexOf("act=Reg&CODE=00") != -1){
q.href="http://z4.invisionfree.com/pyrotechnicmaniacs/index.php?act=boardrules"
}}
</script>


Any trouble with the code, post below.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply