most .png files loose transparence. I had many problems with this format. And if I add this format I, probably, will have many questions and problems. But if realy want - do next code modifications:
1. Open the file: ow_plugins/smileys/controllers/admin.php
2. Find next code (line number 115):
if( $_FILES['smileys']['type'][$key] != 'image/gif' )
and replace on this
if( !in_array($_FILES['smileys']['type'][$key], array('image/gif', 'image/png')) )
2. Find next code (line nimber 121):
if ( preg_match('/^[[:word:] -]{1,20}.gif$/', $_FILES['smileys']['name'][$key]) === 0 )
and replace on this
if ( preg_match('/^[[:word:] -]{1,20}.(?:gif|png)$/i', $_FILES['smileys']['name'][$key]) === 0 )
At your own risk
most .png files loose transparence. I had many problems with this format. And if I add this format I, probably, will have many questions and problems. But if realy want - do next code modifications:
1. Open the file: ow_plugins/smileys/controllers/admin.php
2. Find next code (line number 115):
if( $_FILES['smileys']['type'][$key] != 'image/gif' )
and replace on this
if( !in_array($_FILES['smileys']['type'][$key], array('image/gif', 'image/png')) )
2. Find next code (line nimber 121):
if ( preg_match('/^[[:word:] -]{1,20}.gif$/', $_FILES['smileys']['name'][$key]) === 0 )
and replace on this
if ( preg_match('/^[[:word:] -]{1,20}.(?:gif|png)$/i', $_FILES['smileys']['name'][$key]) === 0 )
At your own risk