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!


Results 1 to 3 of 3

Thread: Php help

  1. #1

    Default Php help

    PHP Code:
    <?php
    //SigStat.com MOD API
    //Customize Output messages from the javascript feed
    //Created by Adam Davis 2006

    //your msn id here

    $id '(hidden for reasons lol)';

    //get the contents of the above source 

    $source file_get_contents($id);

    $backgroundImage "http://tomlol3.100webspace.net/tommo/sigbg.png";

    //run a serious of checks and echo out the message which links with the users status

    if (stristr($sourceOnline) == TRUE) {
    echo 
    "Msn Status: Online <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourceBusy) == TRUE) {
    echo 
    "Msn Status: Busy <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourceAway) == TRUE) {
    echo 
    "Msn Status: Away <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourceBRB) == TRUE) {
    echo 
    "Msn Status: Be Right Back <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourcePHN) == TRUE) {
    echo 
    "Msn Status: In A Call <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourceLUN) == TRUE) {
    echo 
    "Msn Status: Out To Lunch <br /> Powered by SigStat.com";
    }
    elseif  (
    stristr($sourceOffline) == TRUE) {
    echo 
    "Msn Status: Offline <br /> Powered by SigStat.com";

    //there must have been a error somewhere, couldent get the status

    } else {
    echo 
    "Unable to get your status at this time - SigStat.com";
    }
        
    ?>
    I added in the "$backgroundImage = "http://tomlol3.100webspace.net/tommo/sigbg.png";


    Just wondering how to make the "Msn Status: Online" onto the image?

    Cheers/
    [IMG]http://www.****************/uploads/3035e165d8.png[/IMG]

  2. #2
    Join Date
    May 2006
    Location
    Wakefield, West Yorkshire
    Posts
    1,118
    Tokens
    0

    Latest Awards:

    Default

    use GD or ImageMagic

    600th post!
    Last edited by uber; 04-10-2006 at 07:03 PM.

  3. #3

    Default

    I'm not that good at php. I know basic, not gd.
    [IMG]http://www.****************/uploads/3035e165d8.png[/IMG]

Posting Permissions

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