Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Room Dropper

  1. #1
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default Room Dropper

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    anyone?

  3. #3
    Join Date
    Feb 2006
    Location
    Coventry
    Posts
    2,096
    Tokens
    0

    Latest Awards:

    Default

    Do you mean something like a flash game where you move your furni onto the room?

  4. #4
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    no i mean a message line where you submit your message and it appears in a scrolling marquee

  5. #5
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    Hmm ok here is the basic script.. but first make a file called rooms.txt and CHmod to 777
    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($roomnameENT_QUOTES)));
    $owner stripslashes(strip_tags(htmlspecialchars($ownerENT_QUOTES)));
    $string "$roomname - $owner||";
    $fp fopen("rooms.txt""a+");
    fputs($fp$string);
    fclose($fp);
    echo 
    "Room submitted! Thanks!";
    }
    }
    ?>
    that should work..
    Last edited by Splinter; 16-05-2006 at 03:34 PM.

  6. #6
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    ok so that submits it then how do u make the scrollin marquee

  7. #7
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    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..

  8. #8
    Join Date
    Dec 2005
    Location
    England | Brighton
    Posts
    1,378
    Tokens
    0

    Latest Awards:

    Default

    Hey

    Thats not bad script. "Hmm thinks of someone to make."

  9. #9
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    its only the real basics since it was free =] and im cba'ed currently..

  10. #10
    Join Date
    Feb 2006
    Location
    Inside your PC
    Posts
    1,626
    Tokens
    0

    Latest Awards:

    Default

    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.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •