You will probably have seen many of the hotels on TheHabbos using this script. It was originally created by me for HabLife which has since closed. Everyone seems to be using it so I thought for ease of use I would post it here.
Screenshots
Do I really need to post one? Everyone knows what it looks like.
Code (It isn't PHP but the PHP tag makes your text nice and colourful )
You can use this for any topsite using the Aardvark Topsites open source script. Simply change the topsites link.
[EDIT] It used to flow so you couldn't really tell there was an iframe but since the "Summer" theme came out on TheHabbos it looks a tad odd.
Screenshots
Do I really need to post one? Everyone knows what it looks like.
Code (It isn't PHP but the PHP tag makes your text nice and colourful )
PHP:
<style>
body{
background:#F2F3E9;
}
</style>
<title>YOURHOTEL</title>
<div style="width:100%; height:50px; background:#eee; position:absolute; top:0px; left:0px;border-bottom:1px solid #bbb;text-align:center;color:#aaa;font-family:Verdana;font-size:11px;"><div style="height:5px;"></div><span style="font-size:20px;font-weight:bold;">YOURHOTEL</span><br/>Please vote below. After filling in the security code and then clicking 'Enter and Vote' button you will be redirected to the hotel!</div>
<div style="height:50px;"></div>
<iframe name="topsite" id="topsite" src="http://thehabbos.org/topsites/index.php?a=in&u=YOURHOTEL" height="350px" width="100%" scrolling="no" frameborder="0" onload="hotelframe()"><a href="/">Click here to proceed to the Hotel!</a></iframe>
</div>
<script type="text/javascript">
var sign = 0;
function hotelframe()
{
sign = sign + 1;
if (sign > 1)
{
//Where to redirect to.
var redirect = "YOURHOTEL";
window.location = redirect;
}
}
</script>
You can use this for any topsite using the Aardvark Topsites open source script. Simply change the topsites link.
[EDIT] It used to flow so you couldn't really tell there was an iframe but since the "Summer" theme came out on TheHabbos it looks a tad odd.