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 13
  1. #1
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default Rare Values System

    Hello,

    I recently downloaded a copy of Project Rare vaules by NintendoNews and I have noticed that the rare vaules are displayed downwards. I would like the rare vaules displayed across the page if possible. Just so people don't have to go though files, here is the default style and test.php files.

    This is the Style CSS.

    PHP Code:
    body {
     
    background-color#6699FF;
     
    margin-top10px;
    }
    #main {
     
    margin-leftauto;
     
    width500px;
     
    background-color#FFFFFF;
     
    margin-rightauto;
     
    font-familyVerdanaArialHelveticasans-serif;
     
    font-size10px;
     
    padding0px;
     
    padding-bottom3px;
     
    padding-top0px;
     
    overflowhidden;
     
    }
    #navigator {
     
    width150px;
     
    floatleft;
     
    padding5px;
     
    margin-right5px;
    }
    #content {
     
    width320px;
     
    floatright;
     
    padding5px;


    This is in the Test.php

    PHP Code:
    <?php
    require("functions.inc.php");
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <?php
    displayRares
    ("rare""150");
    ?>
    </body>
    </html>

    If anybody could possible help me with the code to display it across ways, I'll be happy

    Thanks,
    Rob.


  2. #2
    Join Date
    Apr 2006
    Location
    UK
    Posts
    4,830
    Tokens
    0

    Latest Awards:

    Default

    Have you got a link where you installed it?

    So i can see what you mean

    Need a domain but dont have paypal... not to worry. You can purchase a domain via text or home phone at XeoDomains.mobi.

    (X Moderator)
    AKA Cheekykarl

  3. #3
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    Sure mate.

    *REMOVED*

    Edited by Elkaa (Forum Super Moderator): Please do not link to RETRO hotels.
    Last edited by Elkaa; 30-07-2007 at 03:38 PM.


  4. #4
    Join Date
    Apr 2006
    Location
    UK
    Posts
    4,830
    Tokens
    0

    Latest Awards:

    Default

    So do you want it like Habbox's? Where it is like 5 per row for example?

    Need a domain but dont have paypal... not to worry. You can purchase a domain via text or home phone at XeoDomains.mobi.

    (X Moderator)
    AKA Cheekykarl

  5. #5
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    Yes I would like it like that.
    Last edited by additional; 30-07-2007 at 01:52 PM.


  6. #6
    Join Date
    Apr 2006
    Location
    Salford
    Posts
    2,108
    Tokens
    0

    Latest Awards:

    Default

    If you want it like 4 At the top and 4 down,

    just do 4 then put <br> then do it again?

  7. #7
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    Change it to something like this youd need to find the displayrare function but when you do itll probaly be a loop so:

    PHP Code:
    echo "<table width=\"100%\"><tr>";
    $i 0;
    while(
    QUERYS HERE)

    {

    $i 1;

    echo 
    "Bla the rare stuff";

    if(
    $i == 5) {
    echo 
    "</tr><tr>";
    }

    $i 0;


    Thats off the top of my head so im not sure if itll work

  8. #8
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Erm.. I dno if you can do it with the function in. But i dont have a copy of the script so i wouldnt know how to get round the function. Something like this would work for across the way, but i dont know the structure of the database, so i really dont know.

    PHP Code:
    <?
    require("functions.inc.php");
    $sql mysql_query("select * from rarevalues");
    while(
    $rares mysql_fetch_array($sql);){
    echo(
    "<img src=\"$rares[image]\" alt=\"$rares[updated]\" /><br />$rares[desc]");
    }
    ?>
    and just change the stuff to suit the path to the image (image), the alt will be where it stores last updated (updated) and desc will be the value.

    But its really just a guess
    Coming and going...
    Highers are getting the better of me

  9. #9
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Do something like this:

    PHP Code:
    <?php
    $sql 
    mysql_query"SELECT * FROM `rares`" );
    echo 
    '<table border="0">';
    for( 
    $i 5$i <= mysql_num_rows$sql ); $i++ )
    {
        
    $start $i 5;
        
    $sql mysql_query"SELECT * FROM `rares` LIMIT $start$i);    
        echo 
    "<tr>";
        while( 
    $result mysql_fetch_array$sql )
        {
            echo 
    "<td>" $result["name"] . "</td>";
        }
        echo 
    "</tr>";
    }
    echo 
    "</table";
    ?>
    Just edit the mysql etc etc and it should work

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

    Latest Awards:

    Default

    Speak to Luckyrare, I think he knows how I can't do any coding atm, as I'm on holiday without my code.



    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)


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
  •