Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default Simple DJ Says. If you just want a DJ Says without the whole panel!

    Yeah well basically. Theres a load of Dj Panels flying about but what if you just want something to display a message from a DJ..

    Also, this method doesnt use Cutenews. Cutenews sucks. Period.

    Since i havent used this forum in months i saw this uitable as something nice to post for people to use. I wrote the script with reference to a few tutorials (Im new to PHP)

    This uses a basic function where the current text in the box is added into a text document, but when the text in the box is changed, it also changes in the Text document.

    Play about with it a bit, just so long as you give me credit for it. A live verison on it can be seen at:

    Dj Says - Write and update the text to be displayed.

    Dj Says - The current text in the .txt file. To be displayed where you wish the Dj Says to be

    And last but not least. The source code.

    Create a file named djsays.php and djsays.txt.

    In the djsays.php, paste this code:

    Code:
    <?php 
            if($_POST['update']) { 
            $newmsg = stripslashes($_POST['message']); 
            $file = fopen("djsays.txt","r+"); 
            ftruncate($file,0); 
            $writedate = fwrite($file,$newmsg); 
            fclose($file); 
            } 
            $messages = fopen("djsays.txt","r+"); 
            $message = fread($messages,100000); 
            fclose($messages); 
    
    
    ?> 
    
            
    <html>
    <head>
    <title>Dj Says Ver 1.07 - By Sam (HxF)</title>
    <style type="text/css">
    
    body {
    Font-family: Tahoma;
    Font-size: 9px;
    color: #FFFFFF;
    Background-color: #000000;
    }
    </style>
    </head>
    <body>
    <div align="center"><br>
    <b>Dj Says Ver 1.07<b><br>
    <p>
    Enter in the text you wish to be displayed below and hit Update! Simple as!<br>
    <p>
    Oh, but dont forget, You must use a PHP include function on the 'Djsays.txt' file if you want it displayed on a page. Also, if you are using iframes, just set the iframe src to Djsays.txt.<br>
    <p>
    You may remove this text and edit the CSS<br>
    <p>
    - Sam
    
    
    
    <form action="<? $php_self ?>" method="post"> 
            <textarea name="message" rows="8" cols="50"><?=$message?> 
            </textarea> <br><p>
            <input type="submit" name="update" value="Update" /> 
    </form> <br>
    
    <p>
    Suggested Addons:<br>
    <p>
    Turn DJsays.txt into a html file, add a refresh.<br>
    Password protect this file<br>
    Save the .php file.

    Instrucions are in the actual file. Once you've ran it, open djsays.php and read the text.

    Have Fun

    - Sam

  2. #2
    Join Date
    Dec 2006
    Location
    da hood.
    Posts
    274
    Tokens
    0

    Default

    Thats pretty friggen dope.

    9 Dj Says out of 10


    Cool people: Spaceinvader, Xeoro, RNelson, -1., Redtom, Sam, Tomm, snail.


  3. #3
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    In English ?

    Rofl..

    Its like.. My second PHP Script.

    My first was a Login system

  4. #4
    Join Date
    Dec 2006
    Location
    da hood.
    Posts
    274
    Tokens
    0

    Default

    Oh english sorry.

    Jene hubsch Fregatte betauben.

    Dj Sagt auber 10

    Edited by L&#181;ke (Forum Moderator): Please do not post in another language.
    Last edited by Lµke; 14-01-2007 at 10:50 AM.


    Cool people: Spaceinvader, Xeoro, RNelson, -1., Redtom, Sam, Tomm, snail.


  5. #5
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Or.. You could just write it in English and not German o.o

  6. #6
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Dj Says Ver 1.07 - By Sam (HxF)
    Version 1.07 for such a simple script?
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  7. #7
    Join Date
    Dec 2006
    Posts
    28
    Tokens
    0

    Default

    Quote Originally Posted by MrChaz View Post
    Oh english sorry.

    Jene hubsch Fregatte betauben.

    Dj Sagt auber 10
    lol thats funny

    Edited by L&#181;ke (Forum Moderator): Please do not post pointlessly.
    Last edited by Lµke; 14-01-2007 at 10:49 AM.

  8. #8
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Rofl i just made up a ver name because im bored..

    It might be added into the CMS im making atm..


    As an extra or something. And my CMS isnt just like one of those nooby cms's pls


  9. #9
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Sam View Post
    Rofl i just made up a ver name because im bored..

    It might be added into the CMS im making atm..


    As an extra or something. And my CMS isnt just like one of those nooby cms's pls

    People use Joomla! to escape dodgy, hole-filled, noob-created cms'.

    No offence, but...
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  10. #10
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Rofl it wont be a noob CMS. I have pro PHP coders helping me

    Im also good at everything else required such as (I might use CSS?) CSS, Graphics etc.. Im going to make a template for the actual panel.

    The basis of the system has already been tested and seems to be working fine.. Im going to also try and see about preventing SQL Injections etc.

Page 1 of 2 12 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
  •