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 12
  1. #1
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default Signature controller

    What I have wrote in this thread may not be correct, and the script might not be very secure. If you use it, your using it at your own risk - and I can't take any responsibility for it.

    Ok I've decided to make a thread explaining how you can create a PHP page which controls the image in your signature.

    For an example I'm going to make a PHP page which changes the image from "I am on Habbo" to "I am not on Habbo", when you type offline or online into a small page- You could use this to tell people that you are on / not on Habbo without having to use your User CP.


    Create a .php page containing this code:
    PHP Code:
    <?php
    //Says that PHP page is a GIF image
    header("Content-type: image/gif");

    //Gives $status the value of status.txt
    $file "status.txt";
    $open fopen($file'r');
    $status fread($openfilesize($file));
    fclose($open);

    //If $status is set to online, the image online.gif is shown
    if
    (
    $status == "online")
    include 
    'online.gif';

    //If it says somthing other than online, offline.gif is shown
    else
    include 
    'offline.gif';

    ?>
    The page which you state if you are online or offline in, save it as .php
    (You might want to password protect it).
    PHP Code:
    <!-- A form to say if you're offline or online in --> 
    <form method='post'>Are you offline or online?<br /> 
    <input type='text' maxlength='30' name='about' ><br /> 
    <input type='submit' value='Go!'> 
    </form> 
    <?php 

    //If offline is entered, it changes status.txt to offline 
    if 
    (
    $about == "offline"
    {
    $open fopen("status.txt""w"); 
    fwrite($open$about); 
    fclose($open); 


    //If online is entered, it changes status.txt to online 
    if 
    (
    $about == "online"
    {
    $open fopen("status.txt""w"); 
    fwrite($open$about); 
    fclose($open); 

    ?>
    You'll now need to create a text file called "status.txt" and chmod it to 777.

    Example:


    Control page:
    http://joshh.co.uk/statusadmin.php

    If any one has spotted any mistakes, pm me :p
    kinda quit.

  2. #2
    Join Date
    Dec 2004
    Posts
    7,327
    Tokens
    1,276
    Habbo
    ---MAD---

    Latest Awards:

    Default

    very interesting
    You could also put sql into this to password protect it
    ---MAD---

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

    Latest Awards:

    Default

    I dont get it Whats it supposed to do? Change the image in your sig? I dont see how it works, Call me dumb if you want

  4. #4
    Join Date
    Aug 2005
    Location
    Webdesign Section
    Posts
    1,032
    Tokens
    0

    Latest Awards:

    Default

    Yes , with an admin cp i tink

  5. #5
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Very good

    - Dan

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

    Latest Awards:

    Default

    Pfffft to be honest im no good at webdesign yet im a habboxlive webdesigner ''/ I resigned anyway, im now a graphics designer

  7. #7
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    I got rejected as a HabboxLive webdesigner :p

    - Dan

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

    Latest Awards:

    Default

    I resigned n reccomended sygon

  9. #9
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Cool, i probably would forget to do something as i'm always soo busy

    - Dan

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

    Latest Awards:

    Default

    N me lmao

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
  •