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
    Jul 2008
    Posts
    5,289
    Tokens
    0

    Latest Awards:

    Default Radio DJ Panel v3.

    Hey, im trying to figure out how to make a page where it displays the profile pic of the current dj and there slot.

    But im not sure how to define which is the current slot and stuff, can anybody help.

    Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Not sure if it's possible as they encrypted the code.

  3. #3
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Where they've encrypted the code, just change eval to echo.

  4. #4
    Join Date
    Dec 2006
    Location
    Kent, UK
    Posts
    627
    Tokens
    138
    Habbo
    Romanity

    Latest Awards:

    Default

    Im assuming you have a database of the details yeh?

    Right, well on your radio stats page is probably something along the lines of "DJ Name: $dj_name"

    Well find that and use something like this

    PHP Code:
    $dj_details mysql_fetch_array(mysql_query("SELECT * FROM `TABLENAME` WHERE `DJNAME` = '$dj_name'")); 
    Then you can just echo out any information such as profile picture <img src='<? echo $dj_details[profile_picture]; ?>'>

    Obviously you will need to update the query to suit your database.

    Lewis
    Sangreal / Romanity ~ Habbo UK & USA
    [OurHabbo.Net Owner]
    Lewis. (Formerly xRoyal15)

  5. #5
    Join Date
    Jul 2008
    Posts
    5,289
    Tokens
    0

    Latest Awards:

    Default

    Thanks all.

    I'm having problems with defining what is the current slot.

    Like getting the correct time and day and choosing the current slot.

  6. #6
    Join Date
    Dec 2006
    Location
    Kent, UK
    Posts
    627
    Tokens
    138
    Habbo
    Romanity

    Latest Awards:

    Default

    $slot = date("G");
    $day = date("l");

    $s = mysql_fetch_array(mysql_query("SELECT * FROM `timetable` WHERE `day` = '$day'"));

    Then you got the, say Monday, row... now you need the hour from it.... so you would use $s[$slot]; which is the value for the current hour, on the current day.

    Hope that helps
    Sangreal / Romanity ~ Habbo UK & USA
    [OurHabbo.Net Owner]
    Lewis. (Formerly xRoyal15)

Posting Permissions

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