Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 14 Years, 2 Months, 2 Weeks ago on.gif off.gif
#1
Solved: 14 Years, 2 Months, 2 Weeks ago
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.
#2
Solved: 14 Years, 2 Months, 2 Weeks ago
This user has been denied support. This user has been denied support.
(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" />
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
#3
Solved: 14 Years, 2 Months, 2 Weeks ago
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
#4
Solved: 14 Years, 2 Months, 2 Weeks ago
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.
#5
Solved: 14 Years, 2 Months, 2 Weeks ago
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
#6
Solved: 14 Years, 2 Months, 2 Weeks ago
(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
#7
Solved: 14 Years, 2 Months, 2 Weeks ago
looking at the file guessing i will need to edit all on.gif off.gif to .png extension
#8
Solved: 14 Years, 2 Months, 2 Weeks ago
Just change the filename from .png to .gif man, it works fine.
#9
Solved: 14 Years, 2 Months, 2 Weeks ago
(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.
#10
Solved: 14 Years, 2 Months, 2 Weeks ago
(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.


Forum Jump:


Users browsing this thread: 1 Guest(s)