Foren / Cotonti / Skins / Colour Schemes

More information on colour schemes for themes

Hodges
#37317 27. März 2013, 10:58

Hi Trustmaster,

I cannot seem to get this to work. I've created, say, green.css, blue.css and placed alongside default.css in /themes/MY_SKIN/css/. I've also added those css files to MY_SKIN.php:

<?PHP
/* ====================
[BEGIN_COT_THEME]
Name=MY_SKIN
Schemes=default:Default,blue:Blue,green:Green,monochrome:Monochrome
[END_COT_THEME]
==================== */

defined('COT_CODE') or die('Wrong URL');

?>

Upon selecting it in my profile no change occurs. 'blue.css' does not appear in the header in the source. Is there a magical tag missing somewhere to get this included?

The MY_SKIN.rc.php file seems to have 'default.css' hard-coded. Should there be a line such as:

cot_rc_add_file($cfg['themes_dir'].'/'.$usr['theme'].'/css/'.$usr['scheme'].'.css');

Cheers,
Hodges