https://www.icyphoenix.com/viewtopic.php?f=36&t=5894&p=39963#p39963 ----------------------------------- Lopalong Fri 29 May, 2009 02:37 Re: Sudoku Images For Dark Styles ----------------------------------- Thanks, I'll have a look at it sometime today when I've got time to explore it properly. ;) Update: Couple of things - Best you forget everything you learned about v27* templates because MG in his wisdom has made a whole lot of changes that wont recognise some of that stuff. I wasn't going to post the fixes here, but I want MG to explain why the image vars are not being overwritten with new functions after the include line in the style .cfg, and I didn't want to post this twice; here and in the bugs. Not only that, it gives everyone the chance to see what is basically only required for a stand-alone theme. First the "RC" theme_info.cfg [spoiler][code linenumbers=false] array('template_name' => 'vB_black', 'style_name' => 'MG'), ); foreach ($styles_array as $k => $v) { if (file_exists('../templates/' . $styles_array[$k]['template_name'] . '/images/' . $k)) { $vB_black[$tc]['template_name'] = $styles_array[$k]['template_name']; $vB_black[$tc]['style_name'] = $styles_array[$k]['style_name']; $vB_black[$tc]['head_stylesheet'] = 'style_' . $k . '.css'; $vB_black[$tc]['body_background'] = $k; $vB_black[$tc]['body_bgcolor'] = ''; $vB_black[$tc]['tr_class1'] = ''; $vB_black[$tc]['tr_class2'] = ''; $vB_black[$tc]['tr_class3'] = ''; $vB_black[$tc]['td_class1'] = 'row1'; $vB_black[$tc]['td_class2'] = 'row2'; $vB_black[$tc]['td_class3'] = 'row3'; $tc++; } } ?>[/code][/spoiler] Now the style.cfg (In this case vB_black.cfg - Using .png buttons and images) [spoiler][code linenumbers=false]
'; $images['page_end'] = '
'; } $images['tbl_b_l'] = ''; $images['tbl_b_c'] = ''; $images['tbl_b_r'] = ''; $images['tbl_f_l'] = ''; $images['tbl_f_c'] = ''; $images['tbl_f_r'] = ''; $images['tbl_h_l'] = '
'; $images['tbl_h_c'] = ''; $images['tbl_h_r'] = '
'; $images['tbl_f_l'] = '
 '; $images['tbl_f_c'] = ''; $images['tbl_f_r'] = '
'; $images['tbl_h_l_house'] = $images['tbl_h_l']; $images['tbl_h_l_alt'] = $images['tbl_h_l']; $images['tbl_h_r_alt'] = $images['tbl_h_r']; $images['tbl_h_l_small_b'] = $images['tbl_h_l']; $images['tbl_h_r_small_b'] = $images['tbl_h_r']; $images['tbl_h_l_small_y'] = $images['tbl_h_l']; $images['tbl_h_r_small_y'] = $images['tbl_h_r']; if ($color == 'vbblack') { $copyright_link = 'Design by Limun '; } include(IP_ROOT_PATH . 'templates/default/default.cfg'); // SUDOKU - BEGIN if (defined('IN_SUDOKU')) { $images['sudoku_x'] = $current_template_images . 'sudoku/sudoku_blank.gif'; $images['sudoku_1'] = $current_template_images . 'sudoku/1_given.png'; $images['sudoku_2'] = $current_template_images . 'sudoku/2_given.png'; $images['sudoku_3'] = $current_template_images . 'sudoku/3_given.png'; $images['sudoku_4'] = $current_template_images . 'sudoku/4_given.png'; $images['sudoku_5'] = $current_template_images . 'sudoku/5_given.png'; $images['sudoku_6'] = $current_template_images . 'sudoku/6_given.png'; $images['sudoku_7'] = $current_template_images . 'sudoku/7_given.png'; $images['sudoku_8'] = $current_template_images . 'sudoku/8_given.png'; $images['sudoku_9'] = $current_template_images . 'sudoku/9_given.png'; $images['sudoku_11'] = $current_template_images . 'sudoku/11_given.png'; $images['sudoku_12'] = $current_template_images . 'sudoku/12_given.png'; $images['sudoku_13'] = $current_template_images . 'sudoku/13_given.png'; $images['sudoku_14'] = $current_template_images . 'sudoku/14_given.png'; $images['sudoku_15'] = $current_template_images . 'sudoku/15_given.png'; $images['sudoku_16'] = $current_template_images . 'sudoku/16_given.png'; $images['sudoku_17'] = $current_template_images . 'sudoku/17_given.png'; $images['sudoku_18'] = $current_template_images . 'sudoku/18_given.png'; $images['sudoku_19'] = $current_template_images . 'sudoku/19_given.png'; $images['sudoku_21'] = $current_template_images . 'sudoku/1_ran.png'; $images['sudoku_22'] = $current_template_images . 'sudoku/2_ran.png'; $images['sudoku_23'] = $current_template_images . 'sudoku/3_ran.png'; $images['sudoku_24'] = $current_template_images . 'sudoku/4_ran.png'; $images['sudoku_25'] = $current_template_images . 'sudoku/5_ran.png'; $images['sudoku_26'] = $current_template_images . 'sudoku/6_ran.png'; $images['sudoku_27'] = $current_template_images . 'sudoku/7_ran.png'; $images['sudoku_28'] = $current_template_images . 'sudoku/8_ran.png'; $images['sudoku_29'] = $current_template_images . 'sudoku/9_ran.png'; } // SUDOKU - END $template->assign_vars(array( 'IMG_MENU_SEP' => $current_template_buttons . 'menu_sep.png',) ); ?>[/code][/spoiler] @Limun: You had some extra button padding in the old .cfg, you can modify this line to re-add it. [code linenumbers=false]$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';[/code] How to remove the image fade, because it doesn't recognise the $image changes in the style.cfg: copy common.css to /style/common.css and change the style_xxxxx.css @import url("../default/common.css"); to @import url("common.css"); Remove from /style/common.css: [code linenumbers=false]/* IMG Fading - BEGIN */ .imgfade{filter: alpha(opacity=80); -moz-opacity: 0.80; margin-left: 3px;} .imgfull{filter: alpha(opacity=100); -moz-opacity: 1; margin-left: 3px;} .imgfade_nm{filter: alpha(opacity=80); -moz-opacity: 0.80;} .imgfull_nm{filter: alpha(opacity=100); -moz-opacity: 1;} /* IMG Fading - END */[/code] [b]Question for MG:[/b] Why is it necessary to re-assign IMG_MENU_SEP as it's currently the only way I can get this image function to change ? For Limun: Attached is the modified theme for you to check over and do your thing etc... ;)