https://www.icyphoenix.com/viewtopic.php?f=36&t=5894&p=39937#p39937
-----------------------------------
Lopalong
Thu 28 May, 2009 17:01

Re: Sudoku Images For Dark Styles
-----------------------------------
Don't worry about the sudoku topic, by the time the Mods clean it up; they can make three topics out of it.  :mrviolet: 

Now your problem:

Try this to kill the image vars before the replacement strings are called.


In your style.cfg

[code linenumbers=false]Find:

?>

Before Add:

$images['menu_sep'] = '';
$images['nav_menu_sep'] = '';

$images['menu_sep'] = $xmas_images . 'menu_sep.png';
$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';
$images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png';[/code]

Also, why so much stuff in the style.cfg ? From what I can see and understand what you are trying to do, maybe this is all you need after the include string. I could be wrong, but you don't need to include whole blocks of variables unless they are an array. So you only need to actually include the single lines that you want to change.

[code linenumbers=false]$img_fade = ''; 
$img_fade_nm = ''; 

$images['menu_sep'] = '';
$images['nav_menu_sep'] = '';

$images['menu_sep'] = $xmas_images . 'menu_sep.png';
$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';
$images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png';

// 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 [/code]

I also think MG needs to look at why he has one var [b]$images['menu_sep'][/b] trying to do two functions.  :?:

Btw, I have found myself at times making changes in a "Backup" theme instead of the working one, and wondering why the hell the changes were not being effected.

It CAN happen!  :mryellow:


