Comments |
Re: Sudoku Images For Dark Styles
|
Moved for you
|
DWho [ Mon 25 May, 2009 14:49 ]
|
|
Re: Sudoku Images For Dark Styles
|
Black on white is a lot clearer.
Demo:
h**p://***.icyphoenix.com/viewtopic.php?p=25837#p25837
Download:
h**p://***.icyphoenix.com/viewtopic.php?p=25784#p25784
|
Inactive User [ Mon 25 May, 2009 15:50 ]
|
|
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
|
spydie [ Mon 25 May, 2009 19:03 ]
|
|
Re: Sudoku Images For Dark Styles
|
A lot of things depend on people's point of view.
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:
// 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
The same process can be used for "other" colours also - even polka-dotted ones.
|
Inactive User [ Tue 26 May, 2009 01:51 ]
|
|
Re: Sudoku Images For Dark Styles
|
You are on a roll my man! Good job and yes I'm using this!
Thanks Limun!
|
Chaotic [ Tue 26 May, 2009 02:48 ]
|
|
Re: Sudoku Images For Dark Styles
|
Chaotic wrote: [View Post] Good job and yes I'm using this!
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!
|
Inactive User [ Tue 26 May, 2009 03:13 ]
|
|
Re: Sudoku Images For Dark Styles
|
Good job and yes I'm using this!
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!
sorry but i dont understand your point
i use default.cfg as individual in all my styles and it work correctly
|
Limun [ Tue 26 May, 2009 10:30 ]
|
|
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.
|
Inactive User [ Tue 26 May, 2009 11:41 ]
|
|
Re: Sudoku Images For Dark Styles
|
Sheesh! How many .cfg's in this post.
i shoud calll this topic .CFG-s
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" he didnt told "exept default. cfg
so if gona made some change in default. cfg i will him a leg
kidding
if he gona made some changes in default. cfg i will add them to my styles for users also
Thanks Lop
|
Limun [ Tue 26 May, 2009 18:05 ]
|
|
Re: Sudoku Images For Dark Styles
|
Limun wrote: [View Post]
if he gonna made some changes in default.cfg i will add them to my styles for users also
Thanks Lop
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.
|
Inactive User [ Wed 27 May, 2009 00:37 ]
|
|
Re: Sudoku Images For Dark Styles
|
MG told me to answer...
You do not need to edit default.cfg
For example, for prosilver it is enough doing that
OPEN prosilver_ip/prosilver_ip.cfg
FIND
include(IP_ROOT_PATH . 'templates/default/default.cfg');
AFTER ADD
// 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
No need to edit default.cfg, just define the images AFTER the include
|
TheSteffen [ Thu 28 May, 2009 00:30 ]
|
|
Re: Sudoku Images For Dark Styles
|
MG told me to answer...
You do not need to edit default.cfg
For example, for prosilver it is enough doing that
OPEN prosilver_ip/prosilver_ip.cfg
FIND
include(IP_ROOT_PATH . 'templates/default/default.cfg');
No need to edit default.cfg, just define the images AFTER the include
ha ..this is what Lopalong meaned
so all what i add affter AFTER the include
even for example
// 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;
it will read this one not that one from defaul.cfg? right ?
|
Limun [ Thu 28 May, 2009 00:38 ]
|
|
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 prosilver_ip.cfg
And I hope this helps to give you a wider outlook on how to add extra's or change things for a single style.
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';
And to put it in another way:
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.
|
Inactive User [ Thu 28 May, 2009 02:05 ]
|
|
Re: Sudoku Images For Dark Styles
|
Yes, you both are right
This is a nice way to work with.
Didn't read Lopalongs post carefully enough
|
TheSteffen [ Thu 28 May, 2009 08:04 ]
|
|
|