Sudoku Images For Dark Styles »  Show posts from    to     

Icy Phoenix


Old Styles Topics - Sudoku Images For Dark Styles



Limun [ Mon 25 May, 2009 14:21 ]
Post 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

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


DWho [ Mon 25 May, 2009 14:49 ]
Post subject: Re: Sudoku Images For Dark Styles
Moved for you



Lopalong [ Mon 25 May, 2009 15:50 ]
Post subject: 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 ]
Post 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


Lopalong [ Tue 26 May, 2009 01:51 ]
Post subject: 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:

Code: [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.


Chaotic [ Tue 26 May, 2009 02:48 ]
Post subject: 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 ]
Post 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!


Limun [ Tue 26 May, 2009 10:30 ]
Post 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

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


Lopalong [ Tue 26 May, 2009 11:41 ]
Post 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.


Limun [ Tue 26 May, 2009 18:05 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]

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


Lopalong [ Wed 27 May, 2009 00:37 ]
Post 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

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.


TheSteffen [ Thu 28 May, 2009 00:30 ]
Post 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: [Hide] [Select]
include(IP_ROOT_PATH . 'templates/default/default.cfg');

AFTER ADD
Code: [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


Limun [ Thu 28 May, 2009 00:38 ]
Post 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: [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 ?


Lopalong [ Thu 28 May, 2009 02:05 ]
Post 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.



Code: [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:

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 ]
Post subject: 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


Lopalong [ Thu 28 May, 2009 09:46 ]
Post subject: Re: Sudoku Images For Dark Styles
TheSteffen wrote: [View Post]
Didn't read Lopalongs post carefully enough


So! who's not guilty of doing the same thing.



I'm glad you echoed the procedure because I think Limun needed a little more convincing that it is the preferred way to do it.



@Limun. Now you can rename the title to Sudoku and Config's


Limun [ Thu 28 May, 2009 13:27 ]
Post subject: Re: Sudoku Images For Dark Styles
i edited my first post
thx guys

now i need to do it with my styles also


and i have one question
how now to remove this from xxx.cfg :
Spoiler: [ Show ]


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 ]
Post subject: 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.


Limun [ Thu 28 May, 2009 14:56 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]
Try adding this to the style.cfg after the include line:

$img_fade = '';
$img_fade_nm = '';


thx it work

only one thing doesnt work and its damn menu sep image
i m using menu_sep.png and style read the default one .gif
even if i have this in my xxx.cfg
Code: [Hide] [Select]
$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';


Lopalong [ Thu 28 May, 2009 15:09 ]
Post subject: 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: [Hide] [Select]
$images['menu_sep'] = $xmas_images . 'menu_sep.gif';

$images['nav_menu_sep'] = $current_template_buttons . 'menu_sep.gif';


Limun [ Thu 28 May, 2009 16:24 ]
Post subject: Re: Sudoku Images For Dark Styles
nop IT still read gif

menusep

even if i think all is ok in mine xxx.cfg

Spoiler: [ Show ]


OMG what we have done of sudoku topic


Lopalong [ Thu 28 May, 2009 17:01 ]
Post subject: 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.

Now your problem:

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


In your style.cfg

Code: [Hide] [Select]
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';


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: [Hide] [Select]
$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


I also think MG needs to look at why he has one var $images['menu_sep'] 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!


Limun [ Thu 28 May, 2009 17:18 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]

Now your problem:

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


In your style.cfg

Spoiler: [ Show ]


still same

Lopalong wrote: [View Post]

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 $images['menu_sep'] trying to do two functions.


its because lot of my buttons are png so i used this
Code: [Hide] [Select]
{
$buttons_extension = 'png';
}


and affter i added buttons which i want to be png

well few lines i dont need there but only few

EDIT :
Lopalong wrote: [View Post]

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!

i checked also this but unfortunaly i m in right one cfg


Lopalong [ Fri 29 May, 2009 01:53 ]
Post subject: 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: [Hide] [Select]
$images_extension = in_array($color, $png_colors) ? 'png' : 'gif';
$buttons_extension = in_array($color, $png_buttons_colors) ? 'png' : 'gif';



So there should be no need to make this change -

Code: [Hide] [Select]
{
$buttons_extension = 'png';
}

- unless you have such a mixture of buttons / images extensions that you would also need to rearrange the order of them.



Limun [ Fri 29 May, 2009 02:15 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]
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.

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
menusep2

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

thanks for your time Lop


Lopalong [ Fri 29 May, 2009 02:22 ]
Post subject: Re: Sudoku Images For Dark Styles
Limun wrote: [View Post]
maybe its time that i convert this image to gif i m loosing my mind


Welcome to the club.

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 Config Mysteries!



Limun [ Fri 29 May, 2009 02:33 ]
Post subject: Re: Sudoku Images For Dark Styles
here style



Lopalong wrote: [View Post]

Maybe also a good idea to cut the first post to a new sudoku thread and rename this one to Config Mysteries!


yes ...it be good that they cut from some 5,6 reply i dunno


Lopalong [ Fri 29 May, 2009 02:37 ]
Post subject: 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: [ Show ]


Now the style.cfg (In this case vB_black.cfg - Using .png buttons and images)

Spoiler: [ Show ]


@Limun: You had some extra button padding in the old .cfg, you can modify this line to re-add it.

Code: [Hide] [Select]
$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';


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: [Hide] [Select]
/* 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 */


Question for MG: 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 ]
Post subject: Re: Sudoku Images For Dark Styles
seems that u solved menusep headtouch

however
theme_info was my mistake because i made it time ago (since beta relase) and affter i forghetit about ..


regarding png buttons all trick is in to change 'png' : 'gif'; to 'gif' : 'png'; right ?
(didnt know this)


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: [Hide] [Select]
$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';

but what if there gona be chages in main (defaultone) common.css ?


and last one thing;
so this solved menu sep problem ?
Code: [Hide] [Select]
$template->assign_vars(array(
'IMG_MENU_SEP' => $current_template_buttons . 'menu_sep.png',)
);


Thanks a lot for your time and help

Now i have remade all my 3 other styles




EDIT
Limun wrote: [View Post]
than i dont need to use anymore this
Code: [Hide] [Select]
$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';


no , i need it because of this

nospace

no space betwen buttons ---thats why i need
Code: [Hide] [Select]
$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';


Lopalong [ Fri 29 May, 2009 12:58 ]
Post subject: Re: Sudoku Images For Dark Styles
You're welcome.

Re this: "but what if there gonna be changes in main (default one) common.css ?"

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.



Re the Padding:

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


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: [Hide] [Select]
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;';



Limun [ Fri 29 May, 2009 13:13 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]
You're welcome.

Re this: "but what if there gonna be changes in main (default one) common.css ?"

Yes it could cause some sort of small problems, but at the moment there's no other way to drop the image fade.

man but this your code worked
Code: [Hide] [Select]
$img_fade = '';
$img_fade_nm = '';

without changing common.css


Lopalong wrote: [View Post]

Re the Padding:

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

this doesnt work
but this does
Code: [Hide] [Select]
$extra_padding = '" style="margin-left:2px;';

so i dunno what to do ,as u say "(Which is slightly wrong) "


Lopalong [ Fri 29 May, 2009 13:44 ]
Post subject: Re: Sudoku Images For Dark Styles
Re this:

Code: [Hide] [Select]
$extra_padding = '" style="margin-left:2px;';


I already edited my other post.


Re This:

Code: [Hide] [Select]
$img_fade = '';
$img_fade_nm = '';


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 ]
Post subject: Re: Sudoku Images For Dark Styles
unfortunaly there also missing in nav q links

nomenusep

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 ?


Lopalong [ Fri 29 May, 2009 14:42 ]
Post subject: Re: Sudoku Images For Dark Styles
Limun wrote: [View Post]
At the end isnt better to have default.cfg in own style


It's not what MG planned on doing, but if there's no other alternative ??.

Quote:
anyway we have to see what MG gona say


The way to go Captain Obvious!

Quote:
regarding you : how are you ?


Not too bad - but aren't we getting off-topic here?




Catcha Later.


Limun [ Fri 29 May, 2009 14:57 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]

Not too bad - but aren't we getting off-topic here?

32


Lopalong [ Fri 29 May, 2009 15:16 ]
Post subject: Re: Sudoku Images For Dark Styles
ani_dont_tell


Hehehehe! Thought you might like a BIGGER one.

Edit:

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: [Hide] [Select]
// 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


vB_black.cfg

Spoiler: [ Show ]


Limun [ Sun 31 May, 2009 10:34 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]


Limun, do you want to test this with vB_black?


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

thanks


Lopalong [ Sun 31 May, 2009 11:16 ]
Post subject: 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.

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

PS: When you say Fade is not working, do you mean that fade has been "Killed" or the buttons still have the glow effect.?

i mean this (this is no longer there) buttons are now ok.

fadeie


Lopalong [ Sun 31 May, 2009 11:37 ]
Post subject: Re: Sudoku Images For Dark Styles
You had me worried there for a minute. Thanks for clearing it up.

C'mon MG - It's Your turn!


Mighty Gorgon [ Sun 31 May, 2009 19:41 ]
Post subject: Re: Sudoku Images For Dark Styles
I'm a bit lost in this huge topic...

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.

Code: [Hide] [Select]
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' => '<img src="' . $images['nav_menu_sep'] . '" alt="" title="" />',
)
);


Lopalong [ Sun 31 May, 2009 23:57 ]
Post subject: Re: Sudoku Images For Dark Styles
Mighty Gorgon wrote: [View Post]
I'm a bit lost in this huge topic...


You caused it!

Quote:

If you just need to overlay menu_sep, you can just add menu_sep template declaration at the end of your cfg file.


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: [Hide] [Select]
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');


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 ]
Post subject: 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 ]
Post subject: Re: Sudoku Images For Dark Styles
Mighty Gorgon wrote: [View Post]
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.

so we are here at begining
u want to say that i can use your default.cfg in my folder styles ?


Lopalong [ Mon 01 Jun, 2009 00:47 ]
Post subject: Re: Sudoku Images For Dark Styles
Didn't know you posted ahead of me Limun.

@ 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.



@Limun - Why did you have to make those images .png ?


Limun [ Mon 01 Jun, 2009 01:05 ]
Post subject: Re: Sudoku Images For Dark Styles
Lopalong wrote: [View Post]
Didn't know you posted ahead of me Limun.

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.



@Limun - Why did you have to make those images .png ?

first i learned more than few things in this topic from you ,thats why i created .pngs
(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 ]
Post subject: Re: Sudoku Images For Dark Styles


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 moved 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.




Powered by Icy Phoenix