MyBB Community Forums

Full Version: Change forum status img to a .png
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How do that. Since they are always a .gif when you have you forum images (which are the images left of the forum link. I need to be able to change it where it excepts a .png) So for example on.png offlock.png off.png how would i go about doing this?
Bump guys. Please help me out.
Bump please guys i really need the help.
Isn't this just a matter of changing the appropriate template?
For instance:
<img src="{$theme['imgdir']}/pixel.gif" would become <img src="{$theme['imgdir']}/pixel.png"...

Of course, a lot of them are in $lang->XXX format, and I'm not sure yet where those get edited. I'm assuming in the appropriate lang file?
No nothing to do with that. I checked the templates it would be in already.
I know who to ask. PM Goggalor. She is a professional theme/template creator and knows custom graphics inside and out.
Wouldn't it it be on forumbit_depth1_cat?
That was my guess.
Just make the name of the images "on.gif.png" "off.gif.png" and "offlock.gif.png" and add .png to the end of the img src, problem averted. This is how I changed the collapse images on my forum to .pngs
Why would you do that when you can just change the .gif in the img src to be .png? Stop trying to do things the hard way Wink
(2009-10-25, 06:47 AM)ralgith Wrote: [ -> ]Why would you do that when you can just change the .gif in the img src to be .png? Stop trying to do things the hard way Wink

I didn't realize it was like that, I thought it was like the collapse image, like so:
Status Icon img tag:
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
collapse img tag:
<img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" />

I put the .png to use the famfamfam plus and minus icons for my expand and collapse images.
Yeah some you could do that way to bypass code changes, so I get that point. But others, like in your first example you have a:
{$lightbulb['folder']}.gif
Which you can just change the extension on. Some are, some aren't. I'm sure 1.6 will have a little more standardization Wink

Still, aren't those variables for the images all just set in the language files? So you could change it there to .png if you want.

Of course, you can always replace:
{$theme['imgdir']}/{$expcolimage}
with
{$theme['imgdir']}/colimg.png
too Wink
simpler is always better
Pages: 1 2