https://www.icyphoenix.com/viewtopic.php?f=36&t=5894 ----------------------------------- Limun Mon 25 May, 2009 14:21 Sudoku Images For Dark Styles ----------------------------------- For all who want to change numbers for their dark styles ! [b]RC versions[/b] extract and upload sudoku folder to your : templates\xxx\images\xxx\ [quote user="Lopalong" post="39797"] Open: Any dark theme folder and in the "style.cfg" (pearl.cfg for example). Find: include(IP_ROOT_PATH . 'templates/default/default.cfg'); [/quote] affter add [spoiler]// 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[/spoiler] Pic demo [img]http://www.icyphoenix.com/files/images/3336/sudokupngdark.png[/img] Enyoj :wink: EDIT : O s*** i missed section :roll: .. please move this to Templates And Styles ----------------------------------- DWho Mon 25 May, 2009 14:49 Re: Sudoku Images For Dark Styles ----------------------------------- Moved for you :mrgreen: :mrgreen: ----------------------------------- Lopalong Mon 25 May, 2009 15:50 Re: Sudoku Images For Dark Styles ----------------------------------- Black on white is a lot clearer. ;) Demo: http://www.icyphoenix.com/viewtopic.php?p=25837#p25837 Download: http://www.icyphoenix.com/viewtopic.php?p=25784#p25784 ----------------------------------- spydie Mon 25 May, 2009 19:03 Re: Sudoku Images For Dark Styles ----------------------------------- that depends on the like´s of everybody i think, Lopa. Anyway I don´t use Sudoku. I´m probably going to kick it out of script ----------------------------------- Lopalong Tue 26 May, 2009 01:51 Re: Sudoku Images For Dark Styles ----------------------------------- A lot of things depend on people's point of view. :P Even on how to add the extra coloured tiles without having to edit "Global" default configs which can and will more than likely reverse the same problem for light styles. Or not having to add the "new" colours to each and every darkish template either. e.g. Create a folder sudoku-bw (Black & White) and copy the changed tiles to that. Copy the folder sudoku-bw to templates/common/images/sudoku-bw/*.* Open: Any dark theme folder and in the "style.cfg" (pearl.cfg for example). Find: include(IP_ROOT_PATH . 'templates/default/default.cfg'); After Add: [code linenumbers=false]// SUDOKU - BEGIN if (defined('IN_SUDOKU')) { $images['sudoku_x'] = $common_images . 'sudoku-bw/sudoku_blank.gif'; $images['sudoku_1'] = $common_images . 'sudoku-bw/1_given.gif'; $images['sudoku_2'] = $common_images . 'sudoku-bw/2_given.gif'; $images['sudoku_3'] = $common_images . 'sudoku-bw/3_given.gif'; $images['sudoku_4'] = $common_images . 'sudoku-bw/4_given.gif'; $images['sudoku_5'] = $common_images . 'sudoku-bw/5_given.gif'; $images['sudoku_6'] = $common_images . 'sudoku-bw/6_given.gif'; $images['sudoku_7'] = $common_images . 'sudoku-bw/7_given.gif'; $images['sudoku_8'] = $common_images . 'sudoku-bw/8_given.gif'; $images['sudoku_9'] = $common_images . 'sudoku-bw/9_given.gif'; $images['sudoku_11'] = $common_images . 'sudoku-bw/11_given.gif'; $images['sudoku_12'] = $common_images . 'sudoku-bw/12_given.gif'; $images['sudoku_13'] = $common_images . 'sudoku-bw/13_given.gif'; $images['sudoku_14'] = $common_images . 'sudoku-bw/14_given.gif'; $images['sudoku_15'] = $common_images . 'sudoku-bw/15_given.gif'; $images['sudoku_16'] = $common_images . 'sudoku-bw/16_given.gif'; $images['sudoku_17'] = $common_images . 'sudoku-bw/17_given.gif'; $images['sudoku_18'] = $common_images . 'sudoku-bw/18_given.gif'; $images['sudoku_19'] = $common_images . 'sudoku-bw/19_given.gif'; $images['sudoku_21'] = $common_images . 'sudoku-bw/1_ran.gif'; $images['sudoku_22'] = $common_images . 'sudoku-bw/2_ran.gif'; $images['sudoku_23'] = $common_images . 'sudoku-bw/3_ran.gif'; $images['sudoku_24'] = $common_images . 'sudoku-bw/4_ran.gif'; $images['sudoku_25'] = $common_images . 'sudoku-bw/5_ran.gif'; $images['sudoku_26'] = $common_images . 'sudoku-bw/6_ran.gif'; $images['sudoku_27'] = $common_images . 'sudoku-bw/7_ran.gif'; $images['sudoku_28'] = $common_images . 'sudoku-bw/8_ran.gif'; $images['sudoku_29'] = $common_images . 'sudoku-bw/9_ran.gif'; } // SUDOKU - END[/code] The same process can be used for "other" colours also - even polka-dotted ones. ;) ----------------------------------- Chaotic Tue 26 May, 2009 02:48 Re: Sudoku Images For Dark Styles ----------------------------------- You are on a roll my man! Good job and yes I'm using this! Thanks Limun! ----------------------------------- Lopalong Tue 26 May, 2009 03:13 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Chaotic" post="39802"]Good job and yes I'm using this![/quote] Not very helpful! You should be aware that the default.cfg is a "Global" file and does not belong in individual themes as per the instructions. And you need to point these things out and how to make changes to the default.cfg by adding other globals after this line in the style.cfg. include(IP_ROOT_PATH . 'templates/default/default.cfg'); Honest criticism and alternative methods are more beneficial to the user, than the continuous patronising "Good Job" echo! ----------------------------------- Limun Tue 26 May, 2009 10:30 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39809"][quote user="Chaotic" post="39802"]Good job and yes I'm using this![/quote] Not very helpful! You should be aware that the default.cfg is a "Global" file and does not belong in individual themes as per the instructions. And you need to point these things out and how to make changes to the default.cfg by adding other globals after this line in the style.cfg. include(IP_ROOT_PATH . 'templates/default/default.cfg'); Honest criticism and alternative methods are more beneficial to the user, than the continuous patronising "Good Job" echo![/quote] sorry but i dont understand your point :wink: i use default.cfg as individual in all my styles and it work correctly ----------------------------------- Lopalong Tue 26 May, 2009 11:41 Re: Sudoku Images For Dark Styles ----------------------------------- Limun my friend, If you use the default.cfg in your themes and there is an upgrade to the /default/default.cfg your themes won't know about it because you will still have your style.cfg pointing to the default.cfg in your style folder. This may be fine for you, but users who download and install the style could be faced with now having to copy the /default/default.cfg to the style folder to include any new functions that may have been added. And if you have in fact made hard changes to the default.cfg in your style then it will become one hell of a mess for them trying to sort it out as to why any new changes have no effect to the style, and even worse if they overwrite it and remove any changes that you may have made. Also, if a user asks how to change something that is or should be in the /default/default.cfg file then there will be more confusion when the changes are applied and the style doesn't recognise them because it no longer sees the /default/default.cfg. The default.cfg is a "Global" file and really should be left as such and if you want to force changes to it for the benefit of the style, then add the changes as indicated after the line that calls the /default/default.cfg Sheesh! How many .cfg's in this post. :mricy: ----------------------------------- Limun Tue 26 May, 2009 18:05 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39819"] Sheesh! How many .cfg's in this post. :mricy:[/quote] i shoud calll this topic .CFG-s :mrorange: anyway i see your point now and what you mean :? when i asked MG how to call one file from default folder if i need to change it and that this file dont affect other styles , he told me "just put file you need in directory of your style" :nerd: he didnt told "exept default.[b]cfg [/b] :mrviolet: so if :censored: gona made some change in default.[b]cfg [/b] i will :censored: him a leg :mryellow: kidding :wink: if he gona made some changes in default.[b]cfg [/b] i will add them to my styles for users also :wink: Thanks Lop ----------------------------------- Lopalong Wed 27 May, 2009 00:37 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Limun" post="39834"] if he gonna made some changes in default.[b]cfg [/b] i will add them to my styles for users also :wink: Thanks Lop[/quote] You are only making a lot of unnecessary work for yourself by doing it that way, because it means that you will have to baby-sit every theme you make for changes that have been created; not only by MG, but by MOD authors as well who may add "Global" image paths etc to the /default/default.cfg to keep everything as it is meant to be. :) Anyway, this is my last comment on the subject - Maybe MG can convince you not to add the default.cfg to the theme for all the same reasons. ;) ----------------------------------- TheSteffen Thu 28 May, 2009 00:30 Re: Sudoku Images For Dark Styles ----------------------------------- MG told me to answer... You do [b]not[/b] need to edit [b]default.cfg[/b] For example, for prosilver it is enough doing that OPEN [b]prosilver_ip/prosilver_ip.cfg[/b] FIND [codeblock]include(IP_ROOT_PATH . 'templates/default/default.cfg');[/codeblock] AFTER ADD [codeblock]// SUDOKU - BEGIN if (defined('IN_SUDOKU')) { $images['sudoku_x'] = $common_images . 'sudoku-bw/sudoku_blank.gif'; $images['sudoku_1'] = $common_images . 'sudoku-bw/1_given.gif'; $images['sudoku_2'] = $common_images . 'sudoku-bw/2_given.gif'; $images['sudoku_3'] = $common_images . 'sudoku-bw/3_given.gif'; $images['sudoku_4'] = $common_images . 'sudoku-bw/4_given.gif'; $images['sudoku_5'] = $common_images . 'sudoku-bw/5_given.gif'; $images['sudoku_6'] = $common_images . 'sudoku-bw/6_given.gif'; $images['sudoku_7'] = $common_images . 'sudoku-bw/7_given.gif'; $images['sudoku_8'] = $common_images . 'sudoku-bw/8_given.gif'; $images['sudoku_9'] = $common_images . 'sudoku-bw/9_given.gif'; $images['sudoku_11'] = $common_images . 'sudoku-bw/11_given.gif'; $images['sudoku_12'] = $common_images . 'sudoku-bw/12_given.gif'; $images['sudoku_13'] = $common_images . 'sudoku-bw/13_given.gif'; $images['sudoku_14'] = $common_images . 'sudoku-bw/14_given.gif'; $images['sudoku_15'] = $common_images . 'sudoku-bw/15_given.gif'; $images['sudoku_16'] = $common_images . 'sudoku-bw/16_given.gif'; $images['sudoku_17'] = $common_images . 'sudoku-bw/17_given.gif'; $images['sudoku_18'] = $common_images . 'sudoku-bw/18_given.gif'; $images['sudoku_19'] = $common_images . 'sudoku-bw/19_given.gif'; $images['sudoku_21'] = $common_images . 'sudoku-bw/1_ran.gif'; $images['sudoku_22'] = $common_images . 'sudoku-bw/2_ran.gif'; $images['sudoku_23'] = $common_images . 'sudoku-bw/3_ran.gif'; $images['sudoku_24'] = $common_images . 'sudoku-bw/4_ran.gif'; $images['sudoku_25'] = $common_images . 'sudoku-bw/5_ran.gif'; $images['sudoku_26'] = $common_images . 'sudoku-bw/6_ran.gif'; $images['sudoku_27'] = $common_images . 'sudoku-bw/7_ran.gif'; $images['sudoku_28'] = $common_images . 'sudoku-bw/8_ran.gif'; $images['sudoku_29'] = $common_images . 'sudoku-bw/9_ran.gif'; } // SUDOKU - END[/codeblock] No need to edit default.cfg, just define the images AFTER the include ;-) ----------------------------------- Limun Thu 28 May, 2009 00:38 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="TheSteffen" post="39903"]MG told me to answer... You do [b]not[/b] need to edit [b]default.cfg[/b] For example, for prosilver it is enough doing that OPEN [b]prosilver_ip/prosilver_ip.cfg[/b] FIND [codeblock]include(IP_ROOT_PATH . 'templates/default/default.cfg');[/codeblock] No need to edit default.cfg, just define the images AFTER the include ;-)[/quote] ha ..this is what Lopalong meaned so all what i add affter AFTER the include even for example [spoiler]// Squared icons { $images_extension = 'png'; } $images['icon_aim2'] = $current_template_buttons . 'icon_im_aim.' . $images_extension . $img_fade; $images['icon_icq2'] = $current_template_buttons . 'icon_im_icq.' . $images_extension . $img_fade; $images['icon_msnm2'] = $current_template_buttons . 'icon_im_msn.' . $images_extension . $img_fade; $images['icon_skype2'] = $current_template_buttons . 'icon_im_skype.' . $images_extension . $img_fade; $images['icon_yim2'] = $current_template_buttons . 'icon_im_yahoo.' . $images_extension . $img_fade; $images['icon_download2'] = $current_template_buttons . 'icon_topic_download.' . $images_extension . $img_fade; $images['icon_view2'] = $current_template_buttons . 'icon_topic_view.' . $images_extension . $img_fade; $images['icon_ip2'] = $current_template_buttons . 'icon_user_ip.' . $images_extension . $img_fade; $images['icon_online2'] = $current_template_buttons . 'icon_user_online.' . $images_extension . $img_fade; $images['icon_offline2'] = $current_template_buttons . 'icon_user_offline.' . $images_extension . $img_fade; $images['icon_hidden2'] = $current_template_buttons . 'icon_user_hidden.' . $images_extension . $img_fade; $images['icon_profile'] = $current_template_buttons . 'icon_user_profile.' . $images_extension . $img_fade; $images['icon_pm'] = $current_template_buttons . 'icon_user_pm.' . $images_extension . $img_fade; $images['icon_email'] = $current_template_buttons . 'icon_user_email.' . $images_extension . $img_fade; $images['icon_www'] = $current_template_buttons . 'icon_user_www.' . $images_extension . $img_fade; $images['icon_album'] = $current_template_buttons . 'icon_user_album.' . $images_extension . $img_fade;[/spoiler] it will read this one not that one from defaul.cfg? right ? ----------------------------------- Lopalong Thu 28 May, 2009 02:05 Re: Sudoku Images For Dark Styles ----------------------------------- That is corrrect Limun. ;) This other example shows you how I added new vars and new card images suitable for the proSilver style only, by simply adding them to the [b]prosilver_ip.cfg[/b] And I hope this helps to give you a wider outlook on how to add extra's or change things for a single style. :mrblue: [code linenumbers=false]include(IP_ROOT_PATH . 'templates/default/default.cfg'); $template->assign_vars(array( 'IMG_CWL' => $images['tbl_cwl'], 'IMG_CWC' => $images['tbl_cwc'], 'IMG_CWR' => $images['tbl_cwr'], 'IMG_CWT' => $images['tbl_cw_t'], 'IMG_CWB' => $images['tbl_cw_b'], ) ); // Yellow card $images['icon_b_card'] = $current_template_images . 'buttons/card_blue.gif'; $images['icon_g_card'] = $current_template_images . 'buttons/card_green.gif'; $images['icon_bhot_card'] = $current_template_images . 'buttons/card_both.gif'; $images['icon_y_card'] = $current_template_images . 'buttons/card_yellow.gif'; $images['icon_r_card'] = $current_template_images . 'buttons/card_red.gif'; $images['icon_y_cards'] = $current_template_images . 'buttons/cards_yellow.gif'; $images['icon_r_cards'] = $current_template_images . 'buttons/cards_red.gif';[/code] And to put it in another way: :mryellow: IP reads the style.cfg up to the include line -> then reads the default.cfg -> then reads any changes you have made for anything else you may have added or want to include. ----------------------------------- TheSteffen Thu 28 May, 2009 08:04 Re: Sudoku Images For Dark Styles ----------------------------------- Yes, you both are right :mricy: This is a nice way to work with. Didn't read Lopalongs post carefully enough :shock: ----------------------------------- Lopalong Thu 28 May, 2009 09:46 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="TheSteffen" post="39910"]Didn't read Lopalongs post carefully enough :shock:[/quote] [i][b]So! who's not guilty of doing the same thing.[/b][/i] :mricy: I'm glad you echoed the procedure because I think Limun needed a little more convincing that it [b]is[/b] the preferred way to do it. ;) @Limun. Now you can rename the title to [i][b]Sudoku and Config's[/b][/i] :mryellow: :mrgreen: :mrorange: ----------------------------------- Limun Thu 28 May, 2009 13:27 Re: Sudoku Images For Dark Styles ----------------------------------- i edited my first post thx guys now i need to do it with my styles also [hr] and i have one question how now to remove this from xxx.cfg : [spoiler][spoiler]$img_fade = isset($img_fade) ? $img_fade : '" class="imgfade" onmouseover="slowhigh(this)" onmouseout="slowlow(this)'; $img_fade_nm = isset($img_fade_nm) ? $img_fade_nm : '" class="imgfade_nm" onmouseover="slowhigh(this)" onmouseout="slowlow(this)';[/spoiler][/spoiler] i dont want to remove it from default.cfg but i dont want also that my style read this 2 lines ? ----------------------------------- Lopalong Thu 28 May, 2009 13:58 Re: Sudoku Images For Dark Styles ----------------------------------- Try adding this to the style.cfg after the include line: $img_fade = ''; $img_fade_nm = ''; Just remember that they are ' '; and not "; ;) PS: Your first post looks a lot better - But I would have - - - - - - Aw! forget it - Just kidding. :mricy: ----------------------------------- Limun Thu 28 May, 2009 14:56 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39926"]Try adding this to the style.cfg after the include line: $img_fade = ''; $img_fade_nm = ''; [/quote] thx it work :mrblue: only one thing doesnt work and its damn menu sep image :evil: i m using menu_sep.png and style read the default one .gif even if i have this in my xxx.cfg [code linenumbers=false]$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';[/code] ----------------------------------- Lopalong Thu 28 May, 2009 15:09 Re: Sudoku Images For Dark Styles ----------------------------------- I think you may need to look at adding these two also to the style, particularly if both are going to be applied to your new template. Or you may just want to "Change" and add the 'nav_menu_sep' which I think may be your problem. ;) [code linenumbers=false]$images['menu_sep'] = $xmas_images . 'menu_sep.gif'; $images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.gif';[/code] ----------------------------------- Limun Thu 28 May, 2009 16:24 Re: Sudoku Images For Dark Styles ----------------------------------- nop :? IT still read gif [img]http://www.icyphoenix.com/files/images/3336/menusep.png[/img] even if i think all is ok in mine xxx.cfg [spoiler]
'; $images['page_end'] = '
'; } elseif ($color == 'dark_blue') { $images['page_begin'] = '
'; $images['page_end'] = '
'; } else { /* $images['page_begin'] = '
'; $images['page_end'] = '
'; */ $images['page_begin'] = '
'; $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'] = ''; if ($color == 'dark_blue') { $images['tbl_h_l'] = '
'; $images['tbl_h_c'] = ''; $images['tbl_h_r'] = '
'; $images['tbl_f_l'] = ''; $images['tbl_f_c'] = ''; $images['tbl_f_r'] = '
'; } else { $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 == 'apple') { $copyright_link = 'Design by Scott Stubblefield
Edited by Mighty Gorgon'; } else { $copyright_link = 'Design by Limun '; } include(IP_ROOT_PATH . 'templates/default/default.cfg'); $extra_padding = '" style="margin-left:2px;'; $img_fade = ''; $img_fade_nm = ''; [color=red]$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';[/color] $images['cal_down_arrow'] = $buttons_lang_folder . 'calendar3.gif'; { $images_extension = 'png'; } $images['forum_nor_read'] = $current_template_buttons . 'forum_nor_read.' . $images_extension . $img_fade; $images['forum_nor_unread'] = $current_template_buttons . 'forum_nor_unread.' . $images_extension . $img_fade; $images['forum_nor_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade; $images['forum_nor_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade; $images['forum_sub_read'] = $current_template_buttons . 'forum_sub_read.' . $images_extension . $img_fade; $images['forum_sub_unread'] = $current_template_buttons . 'forum_sub_unread.' . $images_extension . $img_fade; $images['forum_sub_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade; $images['forum_sub_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade; $images['forum_link'] = $current_template_buttons . 'forum_link.' . $images_extension . $img_fade; $images['forum_nor_ar'] = $current_template_buttons . 'forum_nor_ar_read.' . $images_extension . $img_fade; $images['forum_sub_ar'] = $current_template_buttons . 'forum_sub_ar_read.' . $images_extension . $img_fade; // Topic icons $icons_types = array('glo', 'ann', 'imp', 'hot', 'nor', 'ar'); $icons_status = array('read', 'read_own', 'unread', 'unread_own', 'locked_read', 'locked_read_own', 'locked_unread', 'locked_unread_own'); for ($l = 0; $l < count($icons_types); $l++) { for ($m = 0; $m < count($icons_status); $m++) { $icons_status[$m] = ($icons_types[$l] == 'ar') ? 'read' : $icons_status[$m]; $images['topic_' . $icons_types[$l] . '_' . $icons_status[$m]] = $current_template_buttons . 'topic_' . $icons_types[$l] . '_' . $icons_status[$m] . '.' . $images_extension . $img_fade; } } unset($icons_types); unset($icons_status); { $buttons_extension = 'png'; } // Large buttons $images['post_new'] = $buttons_lang_folder . 'button_new_topic.' . $buttons_extension . $img_fade; $images['post_locked'] = $buttons_lang_folder . 'button_locked.' . $buttons_extension . $img_fade; $images['reply_new'] = $buttons_lang_folder . 'button_post_reply.' . $buttons_extension . $img_fade; $images['reply_locked'] = $buttons_lang_folder . 'button_locked.' . $buttons_extension . $img_fade; $images['quick_reply'] = $buttons_lang_folder . 'button_quick_reply.' . $buttons_extension . $img_fade; $images['thanks'] = $buttons_lang_folder . 'button_thanks.' . $buttons_extension . $img_fade; $images['pm_replymsg'] = $buttons_lang_folder . 'button_post_reply.' . $buttons_extension . $img_fade; $images['pm_postmsg'] = $buttons_lang_folder . 'button_new_post.' . $buttons_extension . $img_fade; // MOD CP $images['topic_mod_lock'] = $buttons_lang_folder . 'modcp_lock.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_unlock'] = $buttons_lang_folder . 'modcp_unlock.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_copy'] = $buttons_lang_folder . 'modcp_copy.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_split'] = $buttons_lang_folder . 'modcp_split.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_move'] = $buttons_lang_folder . 'modcp_move.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_delete'] = $buttons_lang_folder . 'modcp_delete.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_merge'] = $buttons_lang_folder . 'modcp_merge.' . $buttons_extension . $img_fade . $extra_padding; $images['topic_mod_bin'] = $buttons_lang_folder . 'modcp_bin.' . $buttons_extension . $img_fade . $extra_padding; $images['normal_post'] = $buttons_lang_folder . 'modcp_normal.' . $buttons_extension . $img_fade; $images['sticky_post'] = $buttons_lang_folder . 'modcp_sticky.' . $buttons_extension . $img_fade; $images['announce_post'] = $buttons_lang_folder . 'modcp_announce.' . $buttons_extension . $img_fade; $images['gannounce_post'] = $buttons_lang_folder . 'modcp_global.' . $buttons_extension . $img_fade; // PM folders $images['pm_inbox'] = $current_template_buttons . 'pm_inbox.' . $images_extension; $images['pm_outbox'] = $current_template_buttons . 'pm_outbox.' . $images_extension; $images['pm_savebox'] = $current_template_buttons . 'pm_savebox.' . $images_extension; $images['pm_sentbox'] = $current_template_buttons . 'pm_sentbox.' . $images_extension; // Buttons And Icons $images['icon_edit'] = $buttons_lang_folder . 'icon_post_edit.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_delpost'] = $buttons_lang_folder . 'icon_post_delete.' . $buttons_extension . $img_fade . $extra_padding; $images['pm_quotemsg'] = $buttons_lang_folder . 'icon_post_quote.' . $buttons_extension . $img_fade; $images['pm_editmsg'] = $buttons_lang_folder . 'icon_post_edit.' . $buttons_extension . $img_fade; $images['icon_quote'] = $buttons_lang_folder . 'icon_post_quote.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_quick_quote'] = $buttons_lang_folder . 'icon_post_quick_quote.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_offtopic'] = $buttons_lang_folder . 'icon_post_offtopic.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_view'] = $buttons_lang_folder . 'icon_post_view.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_download'] = $buttons_lang_folder . 'icon_post_download.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_approve'] = $buttons_lang_folder . 'icon_post_approve.' . $buttons_extension . $img_fade; $images['icon_unapprove'] = $buttons_lang_folder . 'icon_post_unapprove.' . $buttons_extension . $img_fade; $images['icon_censor'] = $buttons_lang_folder . 'icon_post_censor.' . $buttons_extension . $img_fade; $images['kb_title'] = $buttons_lang_folder . 'kb.gif' . $img_fade; $images['icon_search'] = $buttons_lang_folder . 'icon_user_search.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_profile'] = $buttons_lang_folder . 'icon_user_profile.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_pm'] = $buttons_lang_folder . 'icon_user_pm.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_email'] = $buttons_lang_folder . 'icon_user_email.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_www'] = $buttons_lang_folder . 'icon_user_www.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_ip'] = $buttons_lang_folder . 'icon_user_ip.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_online'] = $buttons_lang_folder . 'icon_user_online.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_offline'] = $buttons_lang_folder . 'icon_user_offline.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_hidden'] = $buttons_lang_folder . 'icon_user_hidden.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_aim'] = $buttons_lang_folder . 'icon_im_aim.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_icq'] = $buttons_lang_folder . 'icon_im_icq.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_msnm'] = $buttons_lang_folder . 'icon_im_msn.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_skype'] = $buttons_lang_folder . 'icon_im_skype.' . $buttons_extension . $img_fade . $extra_padding; $images['icon_yim'] = $buttons_lang_folder . 'icon_im_yahoo.' . $buttons_extension . $img_fade . $extra_padding; // Squared icons $images['icon_aim2'] = $current_template_buttons . 'icon_im_aim.' . $images_extension . $extra_padding; $images['icon_icq2'] = $current_template_buttons . 'icon_im_icq.' . $images_extension . $extra_padding; $images['icon_msnm2'] = $current_template_buttons . 'icon_im_msn.' . $images_extension . $extra_padding; $images['icon_skype2'] = $current_template_buttons . 'icon_im_skype.' . $images_extension . $extra_padding; $images['icon_yim2'] = $current_template_buttons . 'icon_im_yahoo.' . $images_extension . $extra_padding; $images['icon_download2'] = $current_template_buttons . 'icon_topic_download.' . $images_extension . $extra_padding; $images['icon_view2'] = $current_template_buttons . 'icon_topic_view.' . $images_extension . $extra_padding; $images['icon_ip2'] = $current_template_buttons . 'icon_user_ip.' . $images_extension . $extra_padding; $images['icon_online2'] = $current_template_buttons . 'icon_user_online.' . $images_extension . $extra_padding; $images['icon_offline2'] = $current_template_buttons . 'icon_user_offline.' . $images_extension . $extra_padding; $images['icon_hidden2'] = $current_template_buttons . 'icon_user_hidden.' . $images_extension . $extra_padding; // PM images $images['scroll_pm'] = $current_template_buttons . 'pm_read.gif' . $img_fade; $images['pm_readmsg'] = $current_template_buttons . 'pm_read.gif' . $img_fade; $images['pm_unreadmsg'] = $current_template_buttons . 'pm_unread.gif' . $img_fade; $images['pm_reply'] = $current_template_buttons . 'pm_replied.gif' . $img_fade; $images['pm_new_msg'] = 'pm-new'; $images['pm_no_new_msg'] = 'pm'; // BEGIN Unread Post Information to Database Mod $images['mark_img'] = $current_template_buttons . 'upi2db_mark.' . $images_extension . $img_fade; $images['unmark_img'] = $current_template_buttons . 'upi2db_unmark.' . $images_extension . $img_fade; $images['unread_img'] = $current_template_buttons . 'upi2db_unread.' . $images_extension . $img_fade; // END Unread Post Information to Database Mod // Nav menu and others [color=red]$images['menu_sep'] = $xmas_images . 'menu_sep.png';[/color] $images['maximise'] = $current_template_buttons . 'switch_maximise.gif'; $images['minimise'] = $current_template_buttons . 'switch_minimise.gif'; [color=red]$images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png';[/color] $images['whosonline'] = $default_images_root . 'spacer.gif'; $images['stats_image'] = $current_template_images . 'stats.png'; $images['birthday_image'] = $current_template_images . 'birthday.png'; $images['nav_menu_application'] = $current_template_images . 'application_view_tile.png'; $images['nav_menu_newspaper'] = $current_template_images . 'newspaper.png'; $images['nav_menu_information'] = $current_template_images . 'information.png'; $images['nav_menu_group'] = $current_template_images . 'group.png'; $images['nav_menu_palette'] = $current_template_images . 'palette.png'; $images['nav_menu_world'] = $current_template_images . 'world.png'; $images['nav_menu_random_quote'] = $default_images_root . 'random_quote.png'; $images['nav_menu_sponsor'] = $default_images_root . 'asterisk_orange.png'; $images['nav_menu_feed'] = $current_template_images . 'feed.png'; $images['nav_menu_rss_feed'] = $default_images_root . 'rss.gif'; $images['nav_menu_games'] = $default_images_root . 'games.png'; $images['nav_menu_games_alt'] = $default_images_root . 'games_alt.png'; $images['nav_menu_pm'] = $default_images_root . 'pm.png'; $images['nav_menu_star'] = $default_images_root . 'star.png'; $images['nav_menu_users'] = $current_template_images . 'users.png'; $images['nav_menu_wsettings'] = $default_images_root . 'web_settings.png'; $images['vf_topic_ann'] = $default_images_root . 'topic_ann.png'; $images['vf_topic_cal'] = $default_images_root . 'topic_cal.png'; $images['vf_topic_event'] = $default_images_root . 'topic_event.png'; $images['vf_topic_ga'] = $default_images_root . 'topic_ga.png'; $images['vf_topic_imp'] = $default_images_root . 'topic_imp.png'; $images['vf_topic_news'] = $default_images_root . 'topic_news.png'; $images['vf_topic_nor'] = $default_images_root . 'topic_nor.png'; $images['vf_topic_poll'] = $default_images_root . 'topic_poll.png'; $images['icon_album'] = $buttons_lang_folder . 'icon_user_album.' . $buttons_extension . $img_fade . $extra_padding; // 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 ?>[/spoiler] OMG what we have done of sudoku topic :roll: ----------------------------------- 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: ----------------------------------- Limun Thu 28 May, 2009 17:18 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39937"] Now your problem: Try this to kill the image vars before the replacement strings are called. In your style.cfg [spoiler][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][/spoiler] [/quote] still same :| [quote user="Lopalong" post="39937"] 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. I also think MG needs to look at why he has one var [b]$images['menu_sep'][/b] trying to do two functions. :?:[/quote] its because lot of my buttons are png so i used this [code linenumbers=false]{ $buttons_extension = 'png'; }[/code] and affter i added buttons which i want to be png well few lines i dont need there but only few EDIT : [quote user="Lopalong" post="39937"] 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:[/quote] i checked also this :mrviolet: but unfortunaly i m in right one cfg ----------------------------------- Lopalong Fri 29 May, 2009 01:53 Re: Sudoku Images For Dark Styles ----------------------------------- Ok, :( There isn't much left that can be causing this. Delete the menu_sep.gifs in the style image folder and then clear your browser, templates and main cache in IP. If the images are still there after that, then I would think that they are being called from a different path folder. And if that is the case, then you will probably find that you have a path problem in your style/theme_info.cfg that is calling the wrong "color". Re forcing the extensions to png the way you have: you could do that by reversing in the theme_info.cfg, the png - gif entries in either or both of the two lines below to suit your theme. [code linenumbers=false]$images_extension = in_array($color, $png_colors) ? 'png' : 'gif'; $buttons_extension = in_array($color, $png_buttons_colors) ? 'png' : 'gif';[/code] So there should be no need to make this change - [code linenumbers=false]{ $buttons_extension = 'png'; }[/code] - unless you have such a mixture of buttons / images extensions that you would also need to rearrange the order of them. :mricy: ----------------------------------- Limun Fri 29 May, 2009 02:15 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39959"]Ok, :( There isn't much left that can be causing this. Delete the menu_sep.gifs in the style image folder and then clear your browser, templates and main cache in IP. [/quote] Delete the menu_sep.gifs - done clear your browser, templates and main cache in IP - done menu sep .gif vanished , but no menu_sep .png also [img]http://www.icyphoenix.com/files/images/3336/menusep2.png[/img] maybe its time that i convert this image to gif :? i m loosing my mind its not normal that only one picture made such headtouch :wallb: thanks for your time Lop :wink: ----------------------------------- Lopalong Fri 29 May, 2009 02:22 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Limun" post="39960"]maybe its time that i convert this image to gif :? i m loosing my mind :wallb: [/quote] Welcome to the club. :mricy: Do you want to make a copy of this theme available for me to have a look at, because I would like to know what's causing it. ;) Maybe also a good idea to cut the first post to a new sudoku thread and rename this one to [i][b]Config Mysteries! [/b][/i] :mricy: :mrgreen: :mrblue: ----------------------------------- Limun Fri 29 May, 2009 02:33 Re: Sudoku Images For Dark Styles ----------------------------------- here style [quote user="Lopalong" post="39961"] Maybe also a good idea to cut the first post to a new sudoku thread and rename this one to [i][b]Config Mysteries! [/b][/i] :mricy: :mrgreen: :mrblue:[/quote] yes ...it be good that they cut from some 5,6 reply i dunno :? ----------------------------------- 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... ;) ----------------------------------- Limun Fri 29 May, 2009 12:37 Re: Sudoku Images For Dark Styles ----------------------------------- :mrblue: :mrorange: seems that u solved menusep headtouch :up: however theme_info was my mistake because i made it time ago (since beta relase) and affter i forghetit about .. [hr] regarding png buttons all trick is in to change 'png' : 'gif'; to 'gif' : 'png'; right ? (didnt know this) [hr] regarding image fade its good to remove it from common.css (i dont know how to explian this...) than i dont need to use anymore this [code linenumbers=false]$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';[/code] but what if there gona be chages in main (defaultone) common.css ? [hr] and last one thing; so this solved menu sep problem ? [code linenumbers=false]$template->assign_vars(array( 'IMG_MENU_SEP' => $current_template_buttons . 'menu_sep.png',) );[/code] Thanks a lot for your time and help :wink: [i]Now i have remade all my 3 other styles [/i] [hr][hr] [b]EDIT[/b] [quote user="Limun" post="39975"] than i dont need to use anymore this [code linenumbers=false]$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';[/code] [/quote] no , i need it because of this [img]http://www.icyphoenix.com/files/images/3336/nospace.png[/img] no space betwen buttons ---thats why i need [code linenumbers=false]$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';[/code] ----------------------------------- Lopalong Fri 29 May, 2009 12:58 Re: Sudoku Images For Dark Styles ----------------------------------- You're welcome. ;) Re this: [i][b]"but what if there gonna be changes in main (default one) common.css ?" [/b][/i] Yes it could cause some sort of small problems, but at the moment there's no other way to drop the image fade. :( Lets wait until MG has a look at the problems here (Posted in Bug Tracker) to see why the VAR changes are not being effected after the include line in the style.cfg; before we do anything more dramatic. :mricy: Re the Padding: [code linenumbers=false]You had this in your old cfg after the include line. $extra_padding = '" style="margin-left:2px;'; (Which is slightly wrong) ;) When this option already exists in the style.cfg $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : ''; So just change that to: $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-left:2px;' : ''; or: $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px; margin-left:2px;' : ''; if you have to or want to.[/code] Edit: The padding changes doesn't work even if I change the "apple" array to vbblack, so I don't know what's happening there. Just do this until MG can spend some time here. [code linenumbers=false]Find in the Style.cfg $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : ''; Change to (Your Original String) $extra_padding = '" style="margin-left:2px;';[/code] :( ----------------------------------- Limun Fri 29 May, 2009 13:13 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39976"]You're welcome. ;) Re this: [i][b]"but what if there gonna be changes in main (default one) common.css ?" [/b][/i] Yes it could cause some sort of small problems, but at the moment there's no other way to drop the image fade. :( [/quote] man but this your code worked [code linenumbers=false]$img_fade = ''; $img_fade_nm = '';[/code] without changing common.css [hr] [quote user="Lopalong" post="39976"] Re the Padding: [code linenumbers=false]You had this in your old cfg after the include line. $extra_padding = '" style="margin-left:2px;'; (Which is slightly wrong) ;) When this option already exists in the style.cfg $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : ''; So just change that to: $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-left:2px;' : ''; or: $extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px; margin-left:2px;' : ''; if you have to or want to.[/code][/quote] this doesnt work but this does [code linenumbers=false]$extra_padding = '" style="margin-left:2px;';[/code] so i dunno what to do ,as u say "(Which is slightly wrong) " ----------------------------------- Lopalong Fri 29 May, 2009 13:44 Re: Sudoku Images For Dark Styles ----------------------------------- Re this: [code linenumbers=false]$extra_padding = '" style="margin-left:2px;';[/code] I already edited my other post. Re This: [code linenumbers=false]$img_fade = ''; $img_fade_nm = '';[/code] Mate, there seems to be a problem with the Vars overwriting previous vars unless the default.cfg is in the same folder as the style. And if MG wants to keep the default.cfg in the default folder, he's going to have to come up with some way that the var entries after the include line, actually force the changes to the default config. I think it's better to shut off and wait until he looks at what the heck is happening here. ;) That's why I'm waiting for the final release before creating anything - because the RC's still need some testing. ----------------------------------- Limun Fri 29 May, 2009 13:51 Re: Sudoku Images For Dark Styles ----------------------------------- :( unfortunaly there also missing in nav q links [img]http://www.icyphoenix.com/files/images/3336/nomenusep.png[/img] at the end isnt better to have default.cfg in own style (thats why i used it in my styles , it made me lot troubles when i didnt used it :( in my style ) anyway we have to see what MG gona say regarding you : how are you ? :wink: ----------------------------------- Lopalong Fri 29 May, 2009 14:42 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Limun" post="39980"]At the end isnt better to have default.cfg in own style [/quote] It's not what MG planned on doing, but if there's no other alternative ??. :shock: [quote]anyway we have to see what MG gona say[/quote] The way to go Captain Obvious! :mricy: [quote]regarding you : how are you ? :wink: [/quote] Not too bad - but aren't we getting off-topic here? :rotfl_01: Catcha Later. :mricy: ----------------------------------- Limun Fri 29 May, 2009 14:57 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39989"] Not too bad - but aren't we getting off-topic here? :rotfl_01: [/quote] [img]http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/32.gif[/img] ----------------------------------- Lopalong Fri 29 May, 2009 15:16 Re: Sudoku Images For Dark Styles ----------------------------------- [img]http://www.icyphoenix.com/files/images/3531/ani_dont_tell.gif[/img] Hehehehe! Thought you might like a BIGGER one. :mricy: [b]Edit:[/b] Limun, do you want to test this with vB_black? It should fix the img_fade thing, and just add your changed images .png etc here -> [code linenumbers=false]// Start vB_black specific images $images['menu_sep'] = $current_template_buttons . 'menu_sep.png'; $images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png'; // END vB_black specific images[/code] [b]vB_black.cfg[/b] [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'); // Start vB_black specific images $images['menu_sep'] = $current_template_buttons . 'menu_sep.png'; $images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png'; // END vB_black specific images // 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 // adding custom template variables $template->assign_vars(array( 'FULL_SITE_PATH' => $full_server_url, 'THIS_STYLE_NAME' => $row['style_name'], 'THIS_TEMPLATE_NAME' => $row['template_name'], 'T_TPL_PATH' => $current_template_path . '/', 'T_COMMON_TPL_PATH' => 'templates/common/', 'T_TEMPLATE_PATH' => $template_dir, 'T_IMAGESET_PATH' => $imageset_dir, 'T_IMAGESET_LANG_PATH' => $imageset_dir . 'lang_' . $tpl_lang, 'CURRENT_LANG' => $board_config['default_lang'], 'CURRENT_TPL_LANG' => $tpl_lang, 'IS_XMAS' => $is_xmas, 'S_XMAS_GFX' => (($board_config['xmas_gfx'] == true) ? true : false), 'S_XMAS_FX' => (($board_config['xmas_fx'] == true) ? true : false), 'TPL_COLOR' => $color, 'CSS_COLOR' => $css_color, 'SHOW_HIDE_PADDING' => $show_hide_padding, 'S_LOGGED_IN' => ($userdata['session_logged_in'] ? 1 : 0), 'S_ADMIN' => (($userdata['user_level'] == ADMIN) ? 1 : 0), 'S_MOD' => (($userdata['user_level'] == MOD) ? 1 : 0), 'S_ADMIN_MOD' => ((($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD)) ? 1 : 0), 'S_BOT' => (($userdata['bot_id'] !== false) ? 1 : 0), 'C_PM' => (($userdata['session_logged_in'] && $userdata['user_new_privmsg']) ? (' (' . $userdata['user_new_privmsg'] . ')') : ''), 'S_SID' => $userdata['session_id'], // Mighty Gorgon - Rounded Corners and Global HTML Vars - BEGIN 'EXTRA_CSS_JS' => $extra_css_js, 'PAGE_BEGIN' => $images['page_begin'], 'PAGE_END' => $images['page_end'], 'COPYRIGHT_LINK' => $copyright_link, 'IMG_THL' => $images['tbl_h_l'], 'IMG_THC' => $images['tbl_h_c'], 'IMG_THR' => $images['tbl_h_r'], 'IMG_TBL' => $images['tbl_b_l'], 'IMG_TBC' => $images['tbl_b_c'], 'IMG_TBR' => $images['tbl_b_r'], 'IMG_TFL' => $images['tbl_f_l'], 'IMG_TFC' => $images['tbl_f_c'], 'IMG_TFR' => $images['tbl_f_r'], 'IMG_THL_HOUSE' => $images['tbl_h_l_house'], 'IMG_THL_ALT' => $images['tbl_h_l_alt'], 'IMG_THR_ALT' => $images['tbl_h_r_alt'], // Mighty Gorgon - Rounded Corners and Global HTML Vars - END 'SITELOGO' => $images['sitelogo'], 'SPACER' => $images['spacer'], 'GRAPH_IMAGE' => $images['voting_graphic_body'], 'LEFT_GRAPH_IMAGE' => $images['voting_graphic_left'], 'RIGHT_GRAPH_IMAGE' => $images['voting_graphic_right'], 'R_GRAPH_IMAGE' => $images['voting_graphic_red_body'], 'R_LEFT_GRAPH_IMAGE' => $images['voting_graphic_red_left'], 'R_RIGHT_GRAPH_IMAGE' => $images['voting_graphic_red_right'], 'G_GRAPH_IMAGE' => $images['voting_graphic_green_body'], 'G_LEFT_GRAPH_IMAGE' => $images['voting_graphic_green_left'], 'G_RIGHT_GRAPH_IMAGE' => $images['voting_graphic_green_right'], 'B_GRAPH_IMAGE' => $images['voting_graphic_blue_body'], 'B_LEFT_GRAPH_IMAGE' => $images['voting_graphic_blue_left'], 'B_RIGHT_GRAPH_IMAGE' => $images['voting_graphic_blue_right'], 'IMG_ARROW_UP' => 'up', 'IMG_ARROW_RIGHT' => 'right', 'IMG_ARROW_DOWN' => 'down', 'IMG_ARROW_LEFT' => 'left', 'IMG_MENU_SEP' => $images['menu_sep'], 'IMG_POST_PREV' => $images['icon_post_prev'], 'IMG_POST_NEXT' => $images['icon_post_next'], 'IMG_MAXIMISE' => $images['maximise'], 'IMG_MINIMISE' => $images['minimise'], 'IMG_NAV_MENU_SEP' => '', 'IMG_NAV_MENU_APPLICATION' => $images['nav_menu_application'], 'IMG_NAV_MENU_NEWSPAPER' => $images['nav_menu_newspaper'], 'IMG_NAV_MENU_INFORMATION' => $images['nav_menu_information'], 'IMG_NAV_MENU_GROUP' => $images['nav_menu_group'], 'IMG_NAV_MENU_PALETTE' => $images['nav_menu_palette'], 'IMG_NAV_MENU_WORLD' => $images['nav_menu_world'], 'IMG_NAV_MENU_RANDOM_QUOTE' => $images['nav_menu_random_quote'], 'IMG_NAV_MENU_SPONSOR' => $images['nav_menu_sponsor'], 'IMG_NAV_MENU_FEED' => $images['nav_menu_feed'], 'IMG_NAV_MENU_RSS_FEED' => $images['nav_menu_rss_feed'], 'IMG_NAV_MENU_GAMES' => $images['nav_menu_games'], 'IMG_NAV_MENU_GAMES_ALT' => $images['nav_menu_games_alt'], 'IMG_NAV_MENU_PM' => $images['nav_menu_pm'], 'IMG_NAV_MENU_STAR' => $images['nav_menu_star'], 'IMG_NAV_MENU_USERS' => $images['nav_menu_users'], 'IMG_NAV_MENU_WSETTINGS' => $images['nav_menu_wsettings'], 'RSS_NEWS_HELP' => '' . $lang['Rss_news_help'] . '', 'IMG_CALENDAR' => $images['icon_calendar'], 'IMG_VF_ANN' => $images['vf_topic_ann'], 'IMG_VF_CAL' => $images['vf_topic_cal'], 'IMG_VF_GA' => $images['vf_topic_ga'], 'IMG_VF_IMP' => $images['vf_topic_imp'], 'IMG_VF_NEWS' => $images['vf_topic_news'], 'IMG_VF_NOR' => $images['vf_topic_nor'], 'IMG_VF_POLL' => $images['vf_topic_poll'], ) ); ?>[/code][/spoiler] ----------------------------------- Limun Sun 31 May, 2009 10:34 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="39993"] Limun, do you want to test this with vB_black? [/quote] yes it work ...png in IE are ok now (fade is not working but pngs are normal what i wanted) there also appaered menu_sep in drop down menu :) however i m a bit confused in all that below // SUDOKU - END :shock: thanks :wink: ----------------------------------- Lopalong Sun 31 May, 2009 11:16 Re: Sudoku Images For Dark Styles ----------------------------------- All that below // SUDOKU - END re-establishes the template variables and some of them are probably a bit of overkill. But! - - - - the other alternative is to start adding arguments to the default.cfg for each and every variation to the style. And that is not going to be very useful as it would mean altering the default.cfg for any new style that required changes. Or it would mean selecting different vars to add to the style.cfg (Could get messy) :( I also can't see MG varying the default.cfg, because he would have to change all of his styles also to include the vars array in each style.cfg. Maybe he may decide it's better to have the var array in the style.cfg only, and do it anyway. Who knows? ;) But at the moment, re-establishing the whole var array in the style.cfg takes the guesswork out of which vars to modify for what changes that need be added to it. Now we can wait - wait - wait - for MG to decide, and tell us how he intends or would go about overcoming the problem. :mricy: PS: When you say Fade is not working, do you mean that fade has been "Killed" or the buttons still have the glow effect.? ----------------------------------- Limun Sun 31 May, 2009 11:27 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="40043"] PS: When you say Fade is not working, do you mean that fade has been "Killed" or the buttons still have the glow effect.?[/quote] i mean this (this is no longer there) buttons are now ok. [img]http://www.icyphoenix.com/files/images/3336/fadeie.png[/img] ----------------------------------- Lopalong Sun 31 May, 2009 11:37 Re: Sudoku Images For Dark Styles ----------------------------------- You had me worried there for a minute. Thanks for clearing it up. :P C'mon MG - It's Your turn! :mrorange: ----------------------------------- Mighty Gorgon Sun 31 May, 2009 19:41 Re: Sudoku Images For Dark Styles ----------------------------------- I'm a bit lost in this huge topic... :sad: I've spent ten minutes reading it, but I don't know if I have understood what is still open... Can someone please recap which issues still need to be resolved? Which vars should you need to overlay? If you just need to overlay menu_sep, you can just add menu_sep template declaration at the end of your cfg file. [codeblock] include(IP_ROOT_PATH . 'templates/default/default.cfg'); $images['menu_sep'] = $current_template_buttons . 'menu_sep.png'; $images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png'; $template->assign_vars(array( 'IMG_MENU_SEP' => $images['menu_sep'], 'IMG_NAV_MENU_SEP' => '', ) );[/codeblock] ----------------------------------- Lopalong Sun 31 May, 2009 23:57 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Mighty Gorgon" post="40086"]I'm a bit lost in this huge topic... :sad:[/quote] You caused it! :mrorange: [quote] If you just need to overlay menu_sep, you can just add menu_sep template declaration at the end of your cfg file. [/quote] We already worked that out, but isn't that a BIG ask for a novice theme maker, to start adding vars to re-echo the changes to the strings ? Only a suggestion, but would it not be easier to split the vars array from the default.cfg and do something like this ? [code linenumbers=false]include(IP_ROOT_PATH . 'templates/default/default.cfg'); // Start Put any forced changes to the default.cfg here. $images['menu_sep'] = $current_template_buttons . 'menu_sep.png'; $images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.png'; // END Put any forced changes to the default.cfg here. include(IP_ROOT_PATH . 'templates/default/default_vars.cfg');[/code] Else I'll simply remove all of the unwanted vars from the example I did, and we'll have to use that as the base for modded theme vars for all the images that theme makers may want to change. I honestly don't think that most theme-makers are also programmers, so we'll give them the easiest way to do it, without having to work out what var belongs to what image etc.. ;) ----------------------------------- Mighty Gorgon Mon 01 Jun, 2009 00:19 Re: Sudoku Images For Dark Styles ----------------------------------- I don't think so many designers will need to change the default.cfg... and most important... you can also decide to don't use default.cfg at all!!! I have created a default one for my templates... but it is just a default one! You can add all the vars you need in your CFG and avoid to use the INCLUDE. Unfortunately making complex themes requires some extra editing in CFG... you cannot avoid that. ----------------------------------- Limun Mon 01 Jun, 2009 00:30 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Mighty Gorgon" post="40114"]I don't think so many designers will need to change the default.cfg... and most important... you can also decide to don't use default.cfg at all!!! I have created a default one for my templates... but it is just a default one! You can add all the vars you need in your CFG and avoid to use the INCLUDE. Unfortunately making complex themes requires some extra editing in CFG... you cannot avoid that.[/quote] so we are here at begining :oops: u want to say that i can use your default.cfg in my folder styles ? ----------------------------------- Lopalong Mon 01 Jun, 2009 00:47 Re: Sudoku Images For Dark Styles ----------------------------------- Didn't know you posted ahead of me Limun. :wink: @ MG The only concern with not using and including the default/default.cfg is that should you make any important changes to the default.cfg in the way of upgrades etc, then those upgrades would not be accessible to any style that bypasses the default/default.cfg. :( Ok, so anyone wanting to change image.ext etc, is going to have to learn how to re-define the strings and add them and the vars to the style.cfg. And that's no problem - So long as everyone knows that and does it the same way, then it wont become a headache for those trying to help. :mricy: @Limun - [i][b]Why did you have to make those images .png[/b][/i] ? :mrorange: ----------------------------------- Limun Mon 01 Jun, 2009 01:05 Re: Sudoku Images For Dark Styles ----------------------------------- [quote user="Lopalong" post="40117"]Didn't know you posted ahead of me Limun. :wink: Ok, so anyone wanting to change image.ext etc, is going to have to learn how to re-define the strings and add them and the vars to the style.cfg. And that's no problem - So long as everyone knows that and does it the same way, then it wont become a headache for those trying to help. :mricy: @Limun - [i][b]Why did you have to make those images .png[/b][/i] ? :mrorange:[/quote] first i learned more than few things in this topic from you ,thats why i created .pngs :mrorange: (i like png ... they are more confortable than .gif and we are in 21 century also ... sites are going on transparency ,quality ecc and with .gif you cant take out so much :| ) anyway your last cfg is working so i will probably use it .... but dunno what i will do if some other things came out ... this is only reason why i wont default.cfg ----------------------------------- Lopalong Mon 01 Jun, 2009 01:39 Re: Sudoku Images For Dark Styles ----------------------------------- :mricy: For myself, I intend to remove all the things that will never change from the last config I posted and use that. Because I don't want to be in the position of having to upgrade the /style/(style.cfg and [i][b]moved[/b][/i] default.cfg) if and when MG ever adds another MOD that requires a block of images or anything else that may be added to the /default/default.cfg. Because as far as the end-user of the style is concerned, having to modify the /default/default.cfg for all unmodified styles, and then having to modify the default.cfg that has / may have been added to the modified style - - is all too much. :(