How Can I Use .png Buttons.....? »  Show posts from    to     

Icy Phoenix


Old Styles Topics - How Can I Use .png Buttons.....?



Sarken [ Fri 25 Apr, 2008 20:34 ]
Post subject: How Can I Use .png Buttons.....?
Well, I have a problem. I download a pack of buttons, and I can't use them because they're in .png. The template only permits .gif icons.

The icons that I'm talking are this type of icons (new topic, post posted, etc):

http://www.icyphoenix.com/templates...um_nor_read.gif
etc

Note: Examples of this forum theme.

_____

I think that I need to edit a file of Icy Phoenix, but I don't know what archive!:S Anybody knows anything?

Thanks for ready this


Lopalong [ Fri 25 Apr, 2008 23:50 ]
Post subject: Re: How Can I Use .png Buttons.....?
The button ext is controlled in the theme.cfg - But in this case I suggest it may be easier to simply re-name the buttons from .png to .gif.



Sarken [ Sat 26 Apr, 2008 00:06 ]
Post subject: Re: How Can I Use .png Buttons.....?
Thanks for reply.

I changed the extension to .gif, but in the theme it looks really pixelated (transparency problems :S) neverthless, in another type of icons we could use .png image and we compare the result of the .png vs the .gif image and the result was:

.gif image: pixelated
.png image: not pixelated

I don't know the reason of this :S


Lopalong [ Sat 26 Apr, 2008 00:21 ]
Post subject: Re: How Can I Use .png Buttons.....?
Try this:

/templates/mg_themes/mg_themes.cfg

Code: [Hide] [Select]
Find:


if( ($color == 'p_black') || ($color == 'p_blue') )
{
$buttons_extension = 'png';
$extra_padding = '" style="margin-bottom:2px;';
}
else
{
$buttons_extension = 'gif';
}

After Add:

if( ($color == 'ice') )
{
$buttons_extension = 'png';
}
else
{
$buttons_extension = 'gif';
}


Edit: I only assume that you are using "ice" theme, if not change the 'ice' to whatever theme you're using.


Sarken [ Sun 27 Apr, 2008 00:39 ]
Post subject: Re: How Can I Use .png Buttons.....?
Lopalong wrote: [View Post]
Try this:

/templates/mg_themes/mg_themes.cfg

Code: [Hide] [Select]
Find:


if( ($color == 'p_black') || ($color == 'p_blue') )
{
$buttons_extension = 'png';
$extra_padding = '" style="margin-bottom:2px;';
}
else
{
$buttons_extension = 'gif';
}

After Add:

if( ($color == 'ice') )
{
$buttons_extension = 'png';
}
else
{
$buttons_extension = 'gif';
}


Edit: I only assume that you are using "ice" theme, if not change the 'ice' to whatever theme you're using.


It works! Thanks Lopalong, you are a crack




Powered by Icy Phoenix