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
Guest Only Box; By .Scott
Topic Started: Jan 23 2010, 12:49 AM (91 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: .Scott
Guest Only Box
 
Code Name: Guest Only Box
Description: A box which only Guests can see and will disappear when you log in/register. :D
Preview of it in Use: http://z6.invisionfree.com/GuestOnlyBox/index.php?act=idx
Where it goes: Board Wrappers> under <% NAVIGATION %>
Quote:
 
<script>
//Guest Only Box
//By slayer766 of thecodingzone.com


var boardname = 'Guestboxonly'

if(!document.getElementById('userlinks').innerHTML.match('Logged in as:')){
document.write('<div class="maintitle" align="center" width="40%">Welcome Guest!</div><div class="tablepad" align="center"><br />Welcome to ' +boardname+ '. <br />Please select from the drop down box below to either <span style="color:red">LogIn</span> or <span style="color:red">Register</span>.<br /><ul><li>BLAH BLAH TEST TEST</li><li>PUT MORE INFO STUFF HERE</li></ul><br /><form><select style="font-size: 10px; width: 100px; font-style: normal" onchange="if(( options[selectedIndex].value)!=null) document.location = options[selectedIndex].value"> <option class="boxform selected">Select<option value="'+location.href.split('?')[0]+'?act=Login&CODE=00">Log In</option><option value="'+location.href.split('?')[0]+'?act=Reg&CODE=00">Register</option></select></form></div><br />');
}
</script>


Change the var boardname to the name of your board.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply