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 6 of 6
  1. #1
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default Exploding artist?

    Dawn of the Dude - Set Us Free

    How can I explode that into just Dawn of the Dude?

    Not just for that any band.. like

    Kiss - Strutter
    or Boys like girls - Dance hall drug?

  2. #2
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    I just tested this, it worked

    PHP Code:
    <?php
    $name 
    $_GET['name'];
    $name explode(" - "$name);
    echo 
    $name[0];
    ?>
    http://thomas.uk.to/name.php?name=The Fratellis - Henrietta
    Last edited by ZAG; 16-02-2007 at 04:56 PM.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  3. #3
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    I see that you listened to what I said



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  4. #4
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Done got it lol.

    For normal radio stats include this in the page:

    PHP Code:
    <?
    $name 
    explode(" - "$song[0]);
    $artist $name[0];
    $url "album.php?artist=$artist";
    $url eregi_replace(" ""+"$url);
    $thing file_get_contents($url);
    echo 
    "<img src=$thing>";
    ?>
    Save this as album.php:

    PHP Code:
    <?php
    header
    ("Content-Type: image/gif");
    $artist $_GET['artist'];

    $artist urldecode($artist);

    $url "http://www.last.fm/music/" $artist "/";
    $url eregi_replace(" ""+"$url);

    $data file_get_contents($url);

    $image1start explode('<div class="imgHolder">'$data);
    $image1end explode('</div>'$image1start[1]);
    $image1 trim($image1end[0]);

    $imagestart explode('<img src="'$image1);
    $imageend explode('" alt'$imagestart[1]);
    $image trim($imageend[0]);
    echo 
    $image;

    ?>

  5. #5
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Nice script.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  6. #6
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    http://www.skylightlobby.com/site/ - See it in action there.

Posting Permissions

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