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] Ultimate T.O.S System; By Ryan Fan
Topic Started: Jan 25 2010, 09:22 AM (81 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Ryan Fan
[CODE
 
Ultimate T.O.S System]Mod Name: Ultimate T.O.S System
Description: Adds a page to your User Cp, where you can view the board rules
Preview/Screenshot In Use:

http://s10.invisionfree.com/IFShop/index.php?act=UserCP&TOS

Log in with

Password: test
Username: test


and go into User Cp. After that check the menu at bottom.

CODE

Go into Board Wrappers>Footer:

Paste this code:

Quote:
 
<script type="text/javascript">
<!--
// Ultimate T.O.S System
// created by Ryan Fan
// http://www.ifsz.com , 2005
var x = document.getElementsByTagName('P')
var y = 0
for(y=0;y<x.length;y++)
{
if(x[y].innerHTML.match(/Change Password/i))
{
x[y].innerHTML += "<b><br>·&nbsp;<a href='http://sX.invisionfree.com/Board_Name/index.php?act=UserCP&TOS'>Our Board T.O.S</a></b>"
}}
if(location.href.match('act=UserCP&TOS'))
{
document.getElementById('ucpcontent').innerHTML = "<div style='display:none'>"
document.getElementById('ucpcontent').innerHTML += "<div class='maintitle' width = '80%'>Welcome to your control panel </div><div class='pformstrip'>Our Board TOS</div><table width='100%' class='tableborder'><b><center>Board Terms of Service</b></table><br><table width='100%' class='tableborder'><tr><td border='1' align='center' width='400'>RULES HERE</td></tr></table></center></td>"
}
//-->
</script>



Change the X , to your board server number (s1,s2,s3..)

Change the Board_Name , to your board name , in your url remember to include the "_"s

Change the bold to the Rules/TOS text. If you want to add your own HTML formatting to the text, *Remember:

<br> Turns into linebreaks

Use Single commas only:

Instead of

Code:
 
<font color="red">


Use:

Code:
 
<font color='red'>


or it won't work.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply