
Code:
- <script type="text/javascript">
- <!--
- /*
- Guest Friendly Message by Dwight
- Copyright© 2008 Infinity Codes
- http://icodes.vforums.co.uk
- Do not Repost
- */
-
- //Edit Below
-
- var wtp = 2; //0 = above banner, 1 = above menu buttons, 2 = below menu buttons
-
- var message = ['We hope you enjoy your visit.<br /><br /><br />You re currently viewing the our forum as a guest. This mean you are limited to certain areas of the board and there are some features you can not use. If you join our community, you ll be able to access the member-only sections, and use many member-only features such as customizing your profile, sending private messages, and voting in polls. Registration is simple, fast, and completely free.<br /><br /><br /><font color="#FF6600">Join our community! <a href=/action/register>Register Now!</a></font><br /><br /><br />If you are already a member please login to your account to access all the features:']; // Do not use 's, they will cause the code to break.
-
- var form = ['<form action=javascript:void;(0); onsubmit=login();>Username: <input type="text" id="un" size="20"> Password: <input type="password" id="pw" size="20"> <input type="submit" value="Login"></form>'];
-
- //Edit Above
-
- function build(){
- var wt = document.getElementByI00;("welcome_table");
- var nRow=wt.insertRow(wtp);
- var nCell=nRow.insertCell(0);
- nCell.className="window1";
- nCell.innerHTML = message + "<br />" + form;
- }
- function login(){
- get('username','name')[0].value = get('un','id').value;<span><wbr /></span>
- get('password','name')[0].value = get('pw','id').value;<span><wbr /></span>
- get('loginForm','name').submit();
- }
- if(location.href.match(/.co.uk($|\/$)/) && vf_username == 'guest'){
- build();
- }
- //-->
- </script>