themes

Michal Čihař edited this page May 16, 2016 · 4 revisions
Clone this wiki locally

phpMyAdmin look can be customised using themes, see FAQ 2.7 how to use them.

Here is a little tutorial how to set up themes per server. I'm not sure if this is the right way to go but works for me. As an Example take an phpMyAdmin Installation that has three server configured in config.inc.php

$i=0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$_COOKIE['pma_theme-' . $i] = 'big_green';

$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.2';
$_COOKIE['pma_theme-' . $i] = 'big_blue';

$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.3';
$_COOKIE['pma_theme-' . $i] = 'big_red';
# Needed for server base theme
$cfg['ThemePerServer'] = true;

All that is need to get to see the themes is to create the themes directory see FAQ 2.7 or read on. I just copied themes/original and made some changes to the background color

cd themes cp ./original ./big_green vi ./big_green/css/theme_right.css.php vi ./big_green/css/theme_left.css.php

Now delete the cookies in your browser and login to phpMyAdmin

Category:Feature