Results 1 to 9 of 9

Thread: font size issue

  1. #1
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default font size issue

    Hey

    Im fairly good at HTML etc but i really cant figure this out.

    (http://totalhabbo.com/)

    The stats in the top right. I set the size as the same as the rest, but no matter what i set the size to, it wont change

    Any help? +rep
    no

  2. #2
    Join Date
    May 2008
    Posts
    605
    Tokens
    0

    Default

    Whats the code for your stats?

  3. #3
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    PHP Code:
    <?php
    /***************************************************************************
     *                                stats.php
     *                            -------------------
     *   begin                : Sunday, Aug 21, 2006
     *   owner                : AtomicOxide.co.uk - Dave
     *   email                : [email protected]
     *
     *
     ***************************************************************************/

    /***************************************************************************
     *
     *   This program is a free script; you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation; either version 2 of the License, or
     *   (at your option) any later version.
     *
     ***************************************************************************/
    /////////////////////////////////////////////////////////////////////////////
    # DO NOT EDIT BELOW THIS LIME.                                              #
    /////////////////////////////////////////////////////////////////////////////
    include ("includes/config.php");
    ?>
    <meta http-equiv=refresh content="15; URL=http://totalhabbo.com/stats/index.php">
    <?
    $timeout
    ='6';
    $listenlink='http://'.$radiohost.':'.$radioport.'/listen.pls';
    $radio=fsockopen("$radiohost"$radioport, &$errno, &$errstr$timeout);
    if(!
    $radio){
        
    $success='2'
        echo 
    $radioofflinemsg// Radio is offline, so display message
        
    die();
    }
    //Connect to the server
    if($success!='2'){ //If Connection
        
    fputs($radio,"Get /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //Get 7.HTML
        
    while(!feof($radio)){
            
    $page.=fgets($radio1000);
        }

        
    $page=ereg_replace(".*<body>"""$page);
        
    $page=ereg_replace("</body>.*"","$page);
        
    $numbers=explode(",",$page);
        
    $currentlisteners=$numbers[0];
        
    $connected=$numbers[1];
        
    //Open Connection
        
    $fp=fsockopen("$radiohost"$radioport, &$errno, &$errstr3);
        if(!
    $fp){ //If Connection
            
    $success2='2';
            echo 
    "The Radio Server Is Currently Offline";
        }
        if(
    $success2!='2'){ //If Connected
        
    fputs($fp,"Get /admin.cgi?pass=$radiopassword&mode=viewxml HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); 
        while(!
    feof($fp)){
            
    $page.= fgets($fp1000);
        }
        
    $security=explode(",",$page);
        
    $security=explode("401",$security[7]);
        
    $u='0';
        while(
    $security[$u]!=""){
            if(
    $security[1]!=''){
                die(
    "Incorrect Server Password");
            }
        
    $u++;
    }
    //Array
    $loop=array("AVERAGETIME""SERVERGENRE""SERVERURL""SERVERTITLE""SONGTITLE""SONGURL""IRC""ICQ""AIM""WEBHITS""STREAMHITS""INDEX""LISTEN""PALM7"
    "LOGIN""LOGINFAIL""PLAYED""COOKIE""ADMIN""UPDINFO""KICKSRC""KICKDST""UNBANDST""BANDST""VIEWBAN""UNRIPDST""VIEWRIP""VIEWXML"
    "VIEWLOG""INVALID"); //Define All The Variables To Get (Delete Any Ones You Don't Want)
    $y='0';
    while(
    $loop[$y]!=''){
        
    $pageed=ereg_replace(".*<$loop[$y]>"""$page); //Extract Data
        
    $phpname=strtolower($loop[$y]);
        $
    $phpname=ereg_replace("</$loop[$y]>.*"""$pageed); //Finish Extracting Data
        
    if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
            $
    $phpname=urldecode($$phpname);
            
    $phpname $phpname;
            
    $y++;
        }
    }
    if(
    $connected=='1')
        
    $wordconnected="yes"
    else 
        
    $wordconnected="no"
        
    $peaklisteners=$numbers[2]; 
        
    $maxlisteners=$numbers[3]; 
        
    $reportedlisteners=$numbers[4]; 
        
    $song=$numbers[6];
        
    $bitrate=$numbers[5];
        
    $site=explode(" "$servertitle);
        
    $title=explode("DJ",$servertitle); 
    if(
    $wordconnected=="no" && $connected=="0")
    {
        echo

        <font face=\"Verdana\" size=\"10pt\">
        <b>
        
    $radioofflinemsg
        </b>
        </font>"
    ;
    }else{
        echo
    "
        <font face=\"Verdana\" size=\"10pt\">
        <div align=\"center\">
        <table align=\"center\">
        <tr>
        <td align=\"center\">
        <b>DJ:</b> 
    $servertitle</a>
        </td>
        </tr>
        <tr>
        <td align=\"center\">
        <center><b>Listeners:</b> 
    $reportedlisteners
        </td>
        </tr>
        <tr>
        <td align=\"center\">
        <b>Current Song:</b> 
    $numbers[6]
        </td>
        </tr>
        </table>
        </div>
        </font>
        "
    ;
        
    //Close Connection
        
    fclose($radio);
        }
    }
    /////////////////////////////////////////////////////////////////////////////
    # Atomic Network Productions                                                #
    /////////////////////////////////////////////////////////////////////////////
    ?>
    no

  4. #4
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Try setting the font size in px instead of pt .

  5. #5
    Join Date
    Feb 2007
    Location
    Manchester
    Posts
    7,556
    Tokens
    58

    Latest Awards:

    Default

    Have you set the font in px mate?

  6. #6
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    ok updated code:
    PHP Code:
    <?php
    /***************************************************************************
     *                                stats.php
     *                            -------------------
     *   begin                : Sunday, Aug 21, 2006
     *   owner                : AtomicOxide.co.uk - Dave
     *   email                : [email protected]
     *
     *
     ***************************************************************************/

    /***************************************************************************
     *
     *   This program is a free script; you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation; either version 2 of the License, or
     *   (at your option) any later version.
     *
     ***************************************************************************/
    /////////////////////////////////////////////////////////////////////////////
    # DO NOT EDIT BELOW THIS LIME.                                              #
    /////////////////////////////////////////////////////////////////////////////
    include ("includes/config.php");
    ?>
    <meta http-equiv=refresh content="15; URL=http://totalhabbo.com/stats/index.php">
    <?
    $timeout
    ='6';
    $listenlink='http://'.$radiohost.':'.$radioport.'/listen.pls';
    $radio=fsockopen("$radiohost"$radioport, &$errno, &$errstr$timeout);
    if(!
    $radio){
        
    $success='2'
        echo 
    $radioofflinemsg// Radio is offline, so display message
        
    die();
    }
    //Connect to the server
    if($success!='2'){ //If Connection
        
    fputs($radio,"Get /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //Get 7.HTML
        
    while(!feof($radio)){
            
    $page.=fgets($radio1000);
        }

        
    $page=ereg_replace(".*<body>"""$page);
        
    $page=ereg_replace("</body>.*"","$page);
        
    $numbers=explode(",",$page);
        
    $currentlisteners=$numbers[0];
        
    $connected=$numbers[1];
        
    //Open Connection
        
    $fp=fsockopen("$radiohost"$radioport, &$errno, &$errstr3);
        if(!
    $fp){ //If Connection
            
    $success2='2';
            echo 
    "The Radio Server Is Currently Offline";
        }
        if(
    $success2!='2'){ //If Connected
        
    fputs($fp,"Get /admin.cgi?pass=$radiopassword&mode=viewxml HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); 
        while(!
    feof($fp)){
            
    $page.= fgets($fp1000);
        }
        
    $security=explode(",",$page);
        
    $security=explode("401",$security[7]);
        
    $u='0';
        while(
    $security[$u]!=""){
            if(
    $security[1]!=''){
                die(
    "Incorrect Server Password");
            }
        
    $u++;
    }
    //Array
    $loop=array("AVERAGETIME""SERVERGENRE""SERVERURL""SERVERTITLE""SONGTITLE""SONGURL""IRC""ICQ""AIM""WEBHITS""STREAMHITS""INDEX""LISTEN""PALM7"
    "LOGIN""LOGINFAIL""PLAYED""COOKIE""ADMIN""UPDINFO""KICKSRC""KICKDST""UNBANDST""BANDST""VIEWBAN""UNRIPDST""VIEWRIP""VIEWXML"
    "VIEWLOG""INVALID"); //Define All The Variables To Get (Delete Any Ones You Don't Want)
    $y='0';
    while(
    $loop[$y]!=''){
        
    $pageed=ereg_replace(".*<$loop[$y]>"""$page); //Extract Data
        
    $phpname=strtolower($loop[$y]);
        $
    $phpname=ereg_replace("</$loop[$y]>.*"""$pageed); //Finish Extracting Data
        
    if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
            $
    $phpname=urldecode($$phpname);
            
    $phpname $phpname;
            
    $y++;
        }
    }
    if(
    $connected=='1')
        
    $wordconnected="yes"
    else 
        
    $wordconnected="no"
        
    $peaklisteners=$numbers[2]; 
        
    $maxlisteners=$numbers[3]; 
        
    $reportedlisteners=$numbers[4]; 
        
    $song=$numbers[6];
        
    $bitrate=$numbers[5];
        
    $site=explode(" "$servertitle);
        
    $title=explode("DJ",$servertitle); 
    if(
    $wordconnected=="no" && $connected=="0")
    {
        echo

        <font face=\"Verdana\" size=\"10px\">
        <b>
        
    $radioofflinemsg
        </b>
        </font>"
    ;
    }else{
        echo
    "
        <font face=\"Verdana\" size=\"10px\">
        <div align=\"center\">
        <table align=\"center\">
        <tr>
        <td align=\"center\">
        <b>DJ:</b> 
    $servertitle</a>
        </td>
        </tr>
        <tr>
        <td align=\"center\">
        <center><b>Listeners:</b> 
    $reportedlisteners
        </td>
        </tr>
        <tr>
        <td align=\"center\">
        <b>Current Song:</b> 
    $numbers[6]
        </td>
        </tr>
        </table>
        </div>
        </font>
        "
    ;
        
    //Close Connection
        
    fclose($radio);
        }
    }
    /////////////////////////////////////////////////////////////////////////////
    # Atomic Network Productions                                                #
    /////////////////////////////////////////////////////////////////////////////
    ?>
    No difference
    no

  7. #7
    Join Date
    May 2008
    Posts
    605
    Tokens
    0

    Default

    Hmm maybe set it to just 1?

  8. #8
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    PHP Code:
    <?php
    /***************************************************************************
     *                                stats.php
     *                            -------------------
     *   begin                : Sunday, Aug 21, 2006
     *   owner                : AtomicOxide.co.uk - Dave
     *   email                : [email protected]
     *
     *
     ***************************************************************************/

    /***************************************************************************
     *
     *   This program is a free script; you can redistribute it and/or modify
     *   it under the terms of the GNU General Public License as published by
     *   the Free Software Foundation; either version 2 of the License, or
     *   (at your option) any later version.
     *
     ***************************************************************************/
    /////////////////////////////////////////////////////////////////////////////
    # DO NOT EDIT BELOW THIS LIME.                                              #
    /////////////////////////////////////////////////////////////////////////////
    include ("includes/config.php");
    ?>
    <meta http-equiv=refresh content="15; URL=http://totalhabbo.com/stats/index.php">
    <?
    $timeout
    ='6';
    $listenlink='http://'.$radiohost.':'.$radioport.'/listen.pls';
    $radio=fsockopen("$radiohost"$radioport, &$errno, &$errstr$timeout);
    if(!
    $radio){
        
    $success='2'
        echo 
    $radioofflinemsg// Radio is offline, so display message
        
    die();
    }
    //Connect to the server
    if($success!='2'){ //If Connection
        
    fputs($radio,"Get /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //Get 7.HTML
        
    while(!feof($radio)){
            
    $page.=fgets($radio1000);
        }

        
    $page=ereg_replace(".*<body>"""$page);
        
    $page=ereg_replace("</body>.*"","$page);
        
    $numbers=explode(",",$page);
        
    $currentlisteners=$numbers[0];
        
    $connected=$numbers[1];
        
    //Open Connection
        
    $fp=fsockopen("$radiohost"$radioport, &$errno, &$errstr3);
        if(!
    $fp){ //If Connection
            
    $success2='2';
            echo 
    "The Radio Server Is Currently Offline";
        }
        if(
    $success2!='2'){ //If Connected
        
    fputs($fp,"Get /admin.cgi?pass=$radiopassword&mode=viewxml HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); 
        while(!
    feof($fp)){
            
    $page.= fgets($fp1000);
        }
        
    $security=explode(",",$page);
        
    $security=explode("401",$security[7]);
        
    $u='0';
        while(
    $security[$u]!=""){
            if(
    $security[1]!=''){
                die(
    "Incorrect Server Password");
            }
        
    $u++;
    }
    //Array
    $loop=array("AVERAGETIME""SERVERGENRE""SERVERURL""SERVERTITLE""SONGTITLE""SONGURL""IRC""ICQ""AIM""WEBHITS""STREAMHITS""INDEX""LISTEN""PALM7"
    "LOGIN""LOGINFAIL""PLAYED""COOKIE""ADMIN""UPDINFO""KICKSRC""KICKDST""UNBANDST""BANDST""VIEWBAN""UNRIPDST""VIEWRIP""VIEWXML"
    "VIEWLOG""INVALID"); //Define All The Variables To Get (Delete Any Ones You Don't Want)
    $y='0';
    while(
    $loop[$y]!=''){
        
    $pageed=ereg_replace(".*<$loop[$y]>"""$page); //Extract Data
        
    $phpname=strtolower($loop[$y]);
        $
    $phpname=ereg_replace("</$loop[$y]>.*"""$pageed); //Finish Extracting Data
        
    if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
            $
    $phpname=urldecode($$phpname);
            
    $phpname $phpname;
            
    $y++;
        }
    }
    if(
    $connected=='1')
        
    $wordconnected="yes"
    else 
        
    $wordconnected="no"
        
    $peaklisteners=$numbers[2]; 
        
    $maxlisteners=$numbers[3]; 
        
    $reportedlisteners=$numbers[4]; 
        
    $song=$numbers[6];
        
    $bitrate=$numbers[5];
        
    $site=explode(" "$servertitle);
        
    $title=explode("DJ",$servertitle); 
    if(
    $wordconnected=="no" && $connected=="0")
    {
        echo

        <font face=\"Verdana\" size=\"1px\">
        <b>
        
    $radioofflinemsg
        </b>
        </font>"
    ;
    }else{
        echo
    "
        <div align=\"center\">
        <table align=\"center\">
        <tr>
        <td align=\"center\">
            <font face=\"Verdana\" size=\"1px\">
        <b>DJ:</b> 
    $servertitle    </font>
        </td>
        </tr>
        <tr>
        <td align=\"center\">
            <font face=\"Verdana\" size=\"1px\">
        <center><b>Listeners:</b> 
    $reportedlisteners    </font>
        </td>
        </tr>
        <tr>
        <td align=\"center\">
            <font face=\"Verdana\" size=\"1px\">
        <b>Current Song:</b> 
    $numbers[6]    </font>
        </td>
        </tr>
        </table>
        </div>
        "
    ;
        
    //Close Connection
        
    fclose($radio);
        }
    }
    /////////////////////////////////////////////////////////////////////////////
    # Atomic Network Productions                                                #
    /////////////////////////////////////////////////////////////////////////////
    ?>
    LOL fixed now thanks everyone, if you look, i just put <font face ="dfsdfgd"> etc before each one instead of at the start. +rep all
    no

  9. #9
    Join Date
    Feb 2007
    Location
    Manchester
    Posts
    7,556
    Tokens
    58

    Latest Awards:

    Default

    Looks nice now, well done.

Posting Permissions

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