Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PhpMyAdmin - tellytubby fonts!

Discussion in 'Database Discussion' started by Mat-d-rat, May 30, 2006.

  1. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    168
    WOW - Come on today to use PhPMyAdmin and now all the fonts on it are extra large. I have to set IE to smallest font size to make it useable! Any idea what has happened?

    MySQL - 4.0.25-standard
    phpMyAdmin - 2.8.0.2

    Also it says "MySQL client version: 4.1.10" on the right hand side, yet on the lef tit says 4.0.25 standard (not brave enough to upgrade yet, or so I thought!)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    166
    Same here... I hope its not going to stay like this.
     
  3. jough

    jough Well-Known Member

    Joined:
    Aug 17, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Philadelphia, PA
    It's not just you - the fonts are ridiculously large for everyone.

    It looks like it's a mistake in the default font size in the new stylesheet. The Dark Blue / Orange sheet is not affected (although it looks awful too).

    It looks like they removed the old styles for the new version. Hopefully they'll update that soon.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    I've just checked the stylesheet and, oddly, there's no font size set for anything.

    To make this better:

    0. Make a backup first
    Code:
    cp /usr/local/cpanel/base/3rdparty/phpMyAdmin/css/phpmyadmin.css.php /usr/local/cpanel/base/3rdparty/phpMyAdmin/css/phpmyadmin.css.php.old
    1. Open /usr/local/cpanel/base/3rdparty/phpMyAdmin/css/phpmyadmin.css.php

    2. Add

    Code:
    body {
      font-size: 0.8em;
    }
    as indicated:

    Code:
    <?php
    /* $Id: phpmyadmin.css.php,v 2.83 2006/01/14 20:20:13 cybot_tm Exp $ */
    // vim: expandtab sw=4 ts=4 sts=4:
    
    chdir('..');
    define( 'PMA_MINIMUM_COMMON', TRUE );
    require_once('./libraries/common.lib.php');
    require_once('./libraries/sqlparser.lib.php');
    
    if ( $GLOBALS['text_dir'] === 'ltr' ) {
        $right = 'right';
        $left = 'left';
    } else {
        $right = 'left';
        $left = 'right';
    }
    
    // Send correct type:
    header('Content-Type: text/css; charset=ISO-8859-1');
    
    ?>
    !!!HERE!!!
    
    /* @deprecated */
    That, for me at least, sets the font size back to what it was before.

    Perhaps the nightly run of /scripts/upcp will overwrite, perhaps not. We'll see . . .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jough

    jough Well-Known Member

    Joined:
    Aug 17, 2003
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Philadelphia, PA
    It looks like they're using a mostly CSS-based layout now, which certainly wasn't true of previous versions (not sure when they "switched over").

    Yeah, there are some font-sizes mentioned in the default stylesheet, but just percentage values, no default.

    So I guess they're leaving it up to the browser defaults, which are fairly big for most people.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    168
    Hmm, not made any difference to mine...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    You did edit the correct file and force-reload your browser afterwards?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. trhosting.net

    trhosting.net Well-Known Member

    Joined:
    Mar 7, 2006
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Turkey
    it worked for me

    thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    105
    Likes Received:
    2
    Trophy Points:
    168
    Nope, using IE6, pretty sure I have it correct :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Try this. Almost same as webignition's instructions except look for the css.php files in /usr/local/cpanel/base/3rdparty/phpMyAdmin/themes/yourthemename/css/

    Notice there may be a theme_left.css.php and a theme_right.css.php as well. Now you can insert the font em size statement in these as well. These will be overwritten on upgrade, but at least you know where to look. :)

    : edit :
    Oh, and normal theme is 'original', so you would be looking for /usr/local/cpanel/base/3rdparty/phpMyAdmin/themes/original/css/ - HTH!
     
  11. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    I've noticed that the changes I made weren't overwritten by the nightly update.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice