MyBB Community Forums

Full Version: minioff, minion gifs to png?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

Is it possible to change the default Subforum minioff.gif and minion.gif files to PNG? I use a dark theme and the noise around the edges from using .gif's is not pleasing to the eye Toungue

Example:
[Image: aR50L.png]
edit your forumbit_depth2_forum

Find:
{$lightbulb['folder']}.gif

Replace with:
{$lightbulb['folder']}.png
I'm actually already using that:

<tr>
<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>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

Any ideas?
(2011-05-21, 07:54 PM)xomp Wrote: [ -> ]Hi,

Is it possible to change the default Subforum minioff.gif and minion.gif files to PNG? I use a dark theme and the noise around the edges from using .gif's is not pleasing to the eye Toungue

Example:
[Image: aR50L.png]

It is possible. All you have to do is go to your forums directory. Then find the "images" folder. Click on that & then find the images folder for your theme. Click on the theme folder & find the minion.gif & minioff.gif & replace them with png version.

Also it could be find right here: your forums directory, then click on admin, then click on style, your theme and change the images there. Then Edit the template from ACP & find out where the two pictures are used and replace the .gif with .png

If you can't find it then download the theme & edit the .xml file & change the gif to png and then upload the theme. Big Grin
(2011-05-21, 08:03 PM)XxSky DreamerxX Wrote: [ -> ]
(2011-05-21, 07:54 PM)xomp Wrote: [ -> ]Hi,

Is it possible to change the default Subforum minioff.gif and minion.gif files to PNG? I use a dark theme and the noise around the edges from using .gif's is not pleasing to the eye Toungue

Example:
[Image: aR50L.png]

It is possible. All you have to do is go to your forums directory. Then find the "images" folder. Click on that & then find the images folder, find your theme folder. Click on the theme folder & find the minion.gif & minioff.gif & replace them with png version.

Also it could be find right here: your forums directory, then click on admin, then click on style, your theme and change the images there. Then Edit the template from ACP & find out where the two pictures are used and replace the .gif with .png

If you can't find it then download the theme & edit the .xml file & change the gif to png and then upload the theme. Big Grin

Heh, putting the PNG's in place of the .gif's will not force MyBB to start using the PNG's I'm afraid. .Gif's are specified some where in one of the templates I'm sure (I've done this for other icons) just not sure which template is responsible.
(2011-05-21, 08:07 PM)xomp Wrote: [ -> ]
(2011-05-21, 08:03 PM)XxSky DreamerxX Wrote: [ -> ]
(2011-05-21, 07:54 PM)xomp Wrote: [ -> ]Hi,

Is it possible to change the default Subforum minioff.gif and minion.gif files to PNG? I use a dark theme and the noise around the edges from using .gif's is not pleasing to the eye Toungue

Example:
[Image: aR50L.png]

It is possible. All you have to do is go to your forums directory. Then find the "images" folder. Click on that & then find the images folder, find your theme folder. Click on the theme folder & find the minion.gif & minioff.gif & replace them with png version.

Also it could be find right here: your forums directory, then click on admin, then click on style, your theme and change the images there. Then Edit the template from ACP & find out where the two pictures are used and replace the .gif with .png

If you can't find it then download the theme & edit the .xml file & change the gif to png and then upload the theme. Big Grin

Heh, putting the PNG's in place of the .gif's will not force MyBB to start using the PNG's I'm afraid. .Gif's are specified some where in one of the templates I'm sure (I've done this for other icons) just not sure which template is responsible.

If you actually look carefully, In the last line I have said that download the theme and edit the .xml file. There you can find the images and replace them with the png images. Also, upload your images folder and then re re-upload your theme.
1. Upload png images to your web server.

2. Delete the gif images.

3. Rename the png images from minioff.png and minion.png to minioff.gif and minion.gif, using a program like FileZilla.

This way you can avoid having to update all the locations where the image is called. The quality is kept but it acts as a gif.
{$theme['imgdir']}, change your theme image directory images.

And obviously, use png transparent images,not just rename files.

PD: Or use faviouz idea.
(2011-05-21, 08:12 PM)Sama34 Wrote: [ -> ]{$theme['imgdir']}, change your theme image directory images.

And obviously, use png transparent images,not just rename files.

PD: Or use faviouz idea.

My "images" folder on the webserver is named "images". Sorry, I don't know what you're suggesting here Sad
Actually folks I just found it Smile It was in the forumbit_depth3_statusicon template.
If your theme image directory is name "something" then upload your .png transparent images to that directory, as your code uses "{$theme['imgdir']}/" to call these on, off and offlock images.
Pages: 1 2