Posts: 274 Location: U.S.A.
Sun 20 Apr, 2008 20:12
Luca being kind enough to listen to my request, asked me to post this in General Support:
First for those who can help, here are my server settings:
Quote:
Version of Icy Phoenix: 1.2.0.27 Version of phpBB: 2.0.23
Version of PHP: 5.2.3 Version of MySQL: 5.0.24a-standard-log
Board started: May 22 2007, 07:02
PM
My question is: How many files do I need to alter and call out the file name, etc, of my new colorized template to make it work as a separate template file so my users can switch basically to another template file.
I have 2 Black Pearl "Colorized" templates which I want to make them individual selectable templates for my users. I know I am right on the verge of making this happen, but maybe didn't do the final step somewhere.
What I have done so far is:
1. Upload the colorized files in the mg_themes folder, using of course a different name. i.e, "p_black_green"
2. Added the name to the file mg_themes.cfg. like this:
// Valid Colors - BEGIN
$colors = array(
'black',
'black_yellow',
'blue',
'cis',
'cyan',
'dark_blue',
'dark_green',
'dark_red',
'gray',
'green',
'ice',
'lite_blue',
'm_blue',
'm_green',
'm_red',
'orange',
'p_black',
'p_blue',
'sblue',
'sgreen',
'silver',
'text',
'violet',
'white',
'yellow',
'p_black_green',
);
// Valid Colors - END
And in these 2 places:
// Table Headers Colors - BEGIN
$squared_colors = array(
'gray',
'ice',
'p_black',
'p_blue',
'white',
'p_black_green',
);
$morpheus_colors = array(
'm_blue',
'm_green',
'm_red',
);
// Table Headers Colors - END
// TPL (overall_header and overall_footer suffix) Colors - BEGIN
$tpl_colors_extension = array(
'blue' => '_mg',
'dark_blue' => '_sc',
'green' => '_mg',
'm_blue' => '_mx',
'm_green' => '_mx',
'm_red' => '_mx',
'orange' => '_mg',
'p_black' => '_bl',
'p_blue' => '_bl',
'silver' => '_ss',
'yellow' => '_mg',
'p_black_green' => '_mg',
);
// TPL (overall_header and overall_footer suffix) Colors - END
I also added the filenames to the theme_info.cfg file as follows:
if (file_exists('../templates/mg_themes/images/p_black'))
{
$tc++;
$mg_themes[$tc]['template_name'] = 'mg_themes';
$mg_themes[$tc]['style_name'] = 'p_black_green';
$mg_themes[$tc]['head_stylesheet'] = 'style_p_black_green.css';
$mg_themes[$tc]['body_background'] = 'p_black';
$mg_themes[$tc]['body_bgcolor'] = '';
$mg_themes[$tc]['body_text'] = '';
$mg_themes[$tc]['body_link'] = '';
$mg_themes[$tc]['body_vlink'] = '';
$mg_themes[$tc]['body_alink'] = '';
$mg_themes[$tc]['body_hlink'] = '';
$mg_themes[$tc]['tr_color1'] = '';
$mg_themes[$tc]['tr_color2'] = '';
$mg_themes[$tc]['tr_color3'] = '';
$mg_themes[$tc]['tr_class1'] = '';
$mg_themes[$tc]['tr_class2'] = '';
$mg_themes[$tc]['tr_class3'] = '';
$mg_themes[$tc]['th_color1'] = '';
$mg_themes[$tc]['th_color2'] = '';
$mg_themes[$tc]['th_color3'] = '';
$mg_themes[$tc]['th_class1'] = '';
$mg_themes[$tc]['th_class2'] = '';
$mg_themes[$tc]['th_class3'] = '';
$mg_themes[$tc]['td_color1'] = '';
$mg_themes[$tc]['td_color2'] = '';
$mg_themes[$tc]['td_color3'] = '';
$mg_themes[$tc]['td_class1'] = 'row1';
$mg_themes[$tc]['td_class2'] = 'row2';
$mg_themes[$tc]['td_class3'] = 'row3';
$mg_themes[$tc]['fontface1'] = '';
$mg_themes[$tc]['fontface2'] = '';
$mg_themes[$tc]['fontface3'] = '';
$mg_themes[$tc]['fontsize1'] = '10';
$mg_themes[$tc]['fontsize2'] = '11';
$mg_themes[$tc]['fontsize3'] = '12';
$mg_themes[$tc]['fontcolor1'] = '';
$mg_themes[$tc]['fontcolor2'] = 'AF23BA';
$mg_themes[$tc]['fontcolor3'] = 'B925DA';
$mg_themes[$tc]['span_class1'] = '';
$mg_themes[$tc]['span_class2'] = '';
$mg_themes[$tc]['span_class3'] = '';
$mg_themes[$tc]['img_size_poll'] = '0';
$mg_themes[$tc]['img_size_privmsg'] = '0';
}
Maybe my mistake is not to alter the font color 2 and three? Or another file needs updating?
Thanks in advance
