PDA

View Full Version : [fixed] Get .png files when adding smilies (and icons)



Smoothie
Fri 21st Dec '01, 12:47am
Can it be done? I have a bunch of new smilies I made, and want to add them. Someone tell me it can be done, please?

Thanks,

Smoothie

Sinecure
Fri 21st Dec '01, 12:53am
yes it can :)
http://vbulletin.com/manual/smilies.html

Smoothie
Fri 21st Dec '01, 12:58am
I tried once to use .png for smiles, and it didn't seem to work. I uploaded them, but they didn't show up in the cp. Have you done this before?

Sinecure
Fri 21st Dec '01, 1:06am
Just add new smilie, and instead of using the .gif format change it to .png, should be that simple :)

Smoothie
Fri 21st Dec '01, 1:37am
I uploaded several smilies that were in .png format, and they don't show up in the add smilies cp

Chen
Fri 21st Dec '01, 8:45am
vBulletin doesn't look for .png files when adding smilies.

To fix this, replace this line in smilie.php:

if ($fileext==".gif" or $fileext==".bmp" or $fileext==".jpg" or $fileext=="jpeg") {
with this:

if ($fileext==".gif" or $fileext==".bmp" or $fileext==".jpg" or $fileext=="jpeg" or $fileext==".png") {

[moving to bugs...]

Smoothie
Fri 21st Dec '01, 9:45pm
Thanks FireFly!