MyBB Community Forums

Full Version: on.gif icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I am changing the on.gif and off.gf and offlock.gif icons, I have replaced them at the bottom of the forum using the template editor on the adminCP: http://puu.sh/25VBk

But the problem is the new icons I have are .png and I cannot change them to .gif as they loose quality, so how can I change these ones: http://puu.sh/25VCm to the .png files?

Thanks in advance
I don't know the official method but I use a simple trick for that kind of work.

1) Open you theme.XML file in wordpad or notepad++
2) Press Ctrl+F and open Replace Tab.
3) now replace on.gif to on.png [replace all]
4) repeat the same step for other xyz.gif to xyz.png
5) save the theme.XML file.
6) Now go to you adminCP and Import the theme.XML.

Smile
Where would I find the .xml as I am using the default myBB skin & thank you! Smile
You can actually just rename the extension from .png to .gif. It won't lose quality and it'll remain transparent, and it's what most MyBB designers do Smile
or if you don't wanna mess with the file extensions directly in image files:

Go to forumbt_depth2_forum template and find the code at the beginning:

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif"

Change it to:

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.png"
(2013-02-21, 04:18 AM)effone Wrote: [ -> ]or if you don't wanna mess with the file extensions directly in image files:

Go to forumbt_depth2_forum template and find the code at the beginning:

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif"

Change it to:

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.png"

Thank-you, worked perfectly! Smile