Sudoku Images For Dark Styles


Goto page 1, 2, 3, 4  Next

Subject: Sudoku Images For Dark Styles
For all who want to change numbers for their dark styles !

RC versions
extract and upload sudoku folder to your :
templates\xxx\images\xxx\

Lopalong wrote: [View Post]


Open: Any dark theme folder and in the "style.cfg" (pearl.cfg for example).

Find:

include(IP_ROOT_PATH . 'templates/default/default.cfg');



affter add

Spoiler: [ Show ]


Pic demo
sudokupngdark

Enyoj :wink:

EDIT : O s*** i missed section :roll: .. please move this to Templates And Styles

Last edited by Limun on Thu 28 May, 2009 13:26; edited 1 time in total

sudoku.rar
Description: sudoku png for dark styles 
Download
Filename: sudoku.rar
Filesize: 112.66 KB
Downloaded: 121 Time(s)

Subject: Re: Sudoku Images For Dark Styles
Moved for you

:mrgreen: :mrgreen:

Inactive User
Subject: 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

Subject: 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

Inactive User
Subject: 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: [Download] [Hide] [Select]
// 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. ;)

Subject: Re: Sudoku Images For Dark Styles
You are on a roll my man! Good job and yes I'm using this!

Thanks Limun!

Inactive User
Subject: 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!

Subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]
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!


sorry but i dont understand your point :wink:

i use default.cfg as individual in all my styles and it work correctly

Inactive User
Subject: 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:

Subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]

Sheesh! How many .cfg's in this post. :mricy:


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.cfg :mrviolet:
so if :censored: gona made some change in default.cfg i will :censored: him a leg :mryellow:

kidding :wink:

if he gona made some changes in default.cfg i will add them to my styles for users also :wink:

Thanks Lop

Inactive User
Subject: 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 :wink:

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. ;)

Subject: 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
Code: [Download] [Hide] [Select]
include(IP_ROOT_PATH . 'templates/default/default.cfg');

AFTER ADD
Code: [Download] [Hide] [Select]
// 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 ;-)

Profile PM  
Subject: Re: Sudoku Images For Dark Styles
TheSteffen wrote: [View Post]
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
Code: [Download] [Hide] [Select]
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
Spoiler: [ Show ]


it will read this one not that one from defaul.cfg? right ?

Inactive User
Subject: 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.

:mrblue:

Code: [Download] [Hide] [Select]
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: :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.

Subject: 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:

Profile PM  
Goto page 1, 2, 3, 4  Next

Page 1 of 4


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Design by DiDiDaDo

Generation Time: 0.109s (PHP: 9% SQL: 91%)
SQL queries: 16 - Debug On - GZIP Enabled