You have to add the smilies in your template_images_language_emoticons
for example /template/default_ex/images/german/emoticons
Put them in all emoticons folders you have (english/emoticons, yourlanguage/emoticons)and in default template AND default_ex.
IMPORTANT: only *.gif files and no animated. Maybe the width and height of smileys is restricted too, i don't know, test it.
Let say, you have added a smiley named nono.gif.
So, now, you must add code into some files.
smile.class.php: search:
Code:
<input type = "radio" name = "topic_emoticon" value = "7"<?php echo $selected==7?" checked=\"checked\" ":"";?>/>
<img src = "<?php echo KUNENA_URLEMOTIONSPATH ;?>smile.gif" alt = "" border = "0" />
and add this strict below:
Code:
<input type = "radio" name = "topic_emoticon" value = "8"<?php echo $selected==7?" checked=\"checked\" ":"";?>/>
<img src = "<?php echo KUNENA_URLEMOTIONSPATH ;?>nono.gif" alt = "" border = "0" />
Look at value! and the name of the Gif-file. That is, what you must do: value="8" or value[8] (look at code) for nono.gif, value="9" or value[9] for nextnew.gif
Next code you have to add
Code:
$topic_emoticons[8] = KUNENA_URLEMOTIONSPATH . 'nono.gif';
under the lists of existing smileys.
I have searched and quoted here as exmaple the exclam.gif, with the files you must edit - so you can find the lists easier:
[/components/com_kunena/template/default/flat.php]
Line 32 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default/plugin/fbprofile/forummsg.php]
Line 68 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default/plugin/myprofile/myprofile_msg.php]
Line 66 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default/plugin/recentposts/recentposts.php]
Line 63 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default/thread.php]
Line 36 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default_ex/flat.php]
Line 52 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
[/components/com_kunena/template/default_ex/thread.php]
Line 36 : $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif';
At least you can fill your new smiley into *.xml in alphabeticle order, but i think, this xml is for install only.
[/administrator/components/com_kunena/kunena.xml]
Line 208 : <filename>template/default/images/english/emoticons/exclam.gif</filename>
Line 736 : <filename>template/default_ex/images/english/emoticons/exclam.gif</filename>
After that you can choose your new smiley nono.gif and it looks as on pictures below: