hi guys
i am in need of a room dropper for my website
any idea how i can do it or if you could make me one
there would be pay (habbo furni) involved and +rep
cheers guys

Do you mean something like a flash game where you move your furni onto the room?
Hmm ok here is the basic script.. but first make a file called rooms.txt and CHmod to 777
that should work..PHP Code:<?php
$file = file_get_contents("rooms.txt");
$newfile = str_replace("||", " ", $file);
echo "<marquee>$newfile</marquee><br /><br />";
echo "<form name=\"roomdropper\" action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">
Room Name: <input type=\"text\" name=\"roomname\" /><br />
Owner: <input type=\"text\" name=\"owner\" /><br />
<input type=\"submit\" value=\"Submit\" name=\"submit\" /><br />
</form>";
if(isset($_POST['submit'])) {
$roomname = $_POST['roomname'];
$owner = $_POST['owner'];
if((!$owner) or (!$roomname)) {
if(!$roomname) {
echo "No roomname submitted!<br />";
}
if(!$owner) {
echo "No owner submitted!<br />";
}
}
else {
$roomname = stripslashes(strip_tags(htmlspecialchars($roomname, ENT_QUOTES)));
$owner = stripslashes(strip_tags(htmlspecialchars($owner, ENT_QUOTES)));
$string = "$roomname - $owner||";
$fp = fopen("rooms.txt", "a+");
fputs($fp, $string);
fclose($fp);
echo "Room submitted! Thanks!";
}
}
?>
Last edited by Splinter; 16-05-2006 at 03:34 PM.
no its all in one script at the top it reads the rooms.txt file and sorts the string and displays it in the <marquee></marquee> tags..
Hey
Thats not bad script. "Hmm thinks of someone to make."
its only the real basics since it was free =] and im cba'ed currently..
www.habboattic.co.uk/roomdropper.php thats where it is but i can only get it to display the submit form how do i make it display the marquee
also it only displays one thats submitted i want a submit form on one page and a seperate scrolling marquee all together that displays more than one room
Last edited by -::Mr.Dave::-; 16-05-2006 at 03:47 PM.
Want to hide these adverts? Register an account for free!