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 4 of 4
  1. #1
    Join Date
    Feb 2008
    Location
    Derby
    Posts
    305
    Tokens
    0

    Default DJ Says Help Please

    I have installed Kristall Panel 2 but im stuck with the coding to display the DJ says on my homepage. +Rep if you can help mabe a rare from our sites prize vault. Thanks
    Win rares and lots more on this thread http://www.habboxforum.com/showthread.php?t=479892
    www.habbo-hc.com -LOOKING FOR STAFF

  2. #2
    Join Date
    Jul 2005
    Location
    Cymru! :o Bahh
    Posts
    571
    Tokens
    0

    Default

    Assuming your using php && assuming you've got a config file, if I was you i'd use this code;
    <?php
    include 'config.php';

    $query = "SELECT rownamehere FROM tablenamehere";
    $result = mysql_query($query);

    while($row = mysql_fetch_assoc($result))
    {
    echo "Current DJ Says:{$row['rownamehere']}";
    }
    ?>
    If your not sure how to do a config file for it just use this code and put it on a file called 'config.php' be sure to edit it so it fits your details
    <?
    mysql_connect ("localhost", "username", "password");
    mysql_select_db ("database_name_here");
    ?>
    Also rather than using the block of code to display the DJ says you can use a PHP include;
    <?php include("dj_says.php"); ?>
    to use it you'll need to place the first block of code in a file called 'dj_says.php' and your done

    Hope it helps
    Last edited by kreechin; 20-04-2008 at 10:35 PM.

    So A Kiss Is Out Of The Question Then..?

    ♥ My Boy <sinlge> Tbh ♥
    This love isn't good unless it's me and you
    Complicated is the whole point. x

    Theres nothing scarier than getting something you want because then you have something to lose..





  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    DJ Message

    This is a few diffrent ways ..These also refresh themselfs

    Reaplce the path/to/djmessgae with the path to your dj messgae
    e.g site/radio.djsays.php

    -Auto Refresh Only The iFrame-
    <iframe src="path/to/djpanel/djmessage.php" frameborder="0" background-color="transparent" allowtransparency="true" height="20" width="200"></iframe>

    -Auto Refresh Entire Page Without iFrames-
    <?php require('path/to/djpanel/djmessage.php');?>

    -No Reresh Without iFrames-
    <?php require('path/to/djpanel/djmessage2.php');?>

    GD Luk with your site

  4. #4
    Join Date
    Apr 2008
    Location
    North West, UK.
    Posts
    1,007
    Tokens
    529

    Latest Awards:

    Default

    There is a file in the frontend area that will give you a code that you put into a iframe. Thats it basicly.

Posting Permissions

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