MyBB Community Forums

Full Version: on.gif off.gif
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi what do i need to alter in order to use a png image and not a gif image.
i would like this on jus one theme if possible
thanks in advance.
(2010-10-17, 09:28 PM)adbrad Wrote: [ -> ]hi what do i need to alter in order to use a png image and not a gif image.
i would like this on jus one theme if possible
thanks in advance.

Convert the image file to png format using paint or photoshop. then add picturename.png to the place where you want to display in the theme using the img tag

<img src="http://www.yourdomain.com/imagefolder/imagename.png" />
Just goto your forum display templates and change on.gif and off.gif to on.png and off.png, then change the format of the images to PNG
The easiest way is just upload the PNG's then rename to .gif once they're uploaded. If you want to keep them as PNG's then you'll need to edit numerous templates and a javascript file.
i've sorted this now i just edited forumbit_depth2_forum i changed this code
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
i just changed gif to png and it works fine
(2010-10-18, 07:18 AM)adbrad Wrote: [ -> ]i've sorted this now i just edited forumbit_depth2_forum i changed this code
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
i just changed gif to png and it works fine

The Click to mark this forum as read feature won't work unless you also edit ./jscripts/general.js
looking at the file guessing i will need to edit all on.gif off.gif to .png extension
Just change the filename from .png to .gif man, it works fine.
(2010-10-17, 10:24 PM)AJS Wrote: [ -> ]The easiest way is just upload the PNG's then rename to .gif once they're uploaded. If you want to keep them as PNG's then you'll need to edit numerous templates and a javascript file.

(2010-10-18, 01:37 PM)Uncontrol Wrote: [ -> ]Just change the filename from .png to .gif man, it works fine.

but surely that will make the file go back to gif quality and not png quality.
and the png looks better on the darker theme.
(2010-10-18, 02:30 PM)adbrad Wrote: [ -> ]but surely that will make the file go back to gif quality and not png quality.
and the png looks better on the darker theme.

Nope, it's still a PNG. You can't convert it to something else just by changing the extension.
Pages: 1 2