Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 4
Goto page Previous  1, 2, 3, 4  Next
 
Reply with quote Download Post 
Post 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      
 
 
 
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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 ?
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [Hide] [Select]
$images['menu_sep'] = $current_template_buttons . 'menu_sep.png';

 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [Hide] [Select]
$images['menu_sep'] = $xmas_images . 'menu_sep.gif';

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

 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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!  
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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.

 
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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  
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

    
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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  

vB_black.rar
Description:  
Download
Filename: vB_black.rar
Filesize: 1.34 MB
Downloaded: 151 Time(s)

 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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...

vB_black.zip
Description:  
Download
Filename: vB_black.zip
Filesize: 1.54 MB
Downloaded: 144 Time(s)

 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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: [Download] [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: [Download] [Hide] [Select]
$extra_padding = in_array($color, $png_buttons_colors) ? '" style="margin-bottom:2px;' : '';

 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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: [Download] [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: [Download] [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;';


 
 
Last edited by Guest on Fri 29 May, 2009 13:28; edited 3 times in total 
 
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 4
Goto page Previous  1, 2, 3, 4  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron