April 8th, 2020 at 6:16 PM
Please, please, I'm happy here in detail
Code:
replace in dvz_shoutbox_panel in ACP -> Templates and Styles -> Templates -> Global Templates -> dvz_shoutbox_panel:
This
<input type="text" class="text" placeholder="{$lang->dvz_sb_default}" maxlength="{$maxlength}" autocomplete="off" />
with
<input type="text" id="dvz_input" class="text" placeholder="{$lang->dvz_sb_default}" maxlength="{$maxlength}" autocomplete="off" />
########
next
paste over:
<div class="panel">
this :
<div class="panel">
»
<img src="{$theme['imgdir']}/smilies/smile.png" alt=":)" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/wink.png" alt=";)" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/cool.png" alt=":cool:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/biggrin.png" alt=":D" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/tongue.png" alt=":P" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/rolleyes.png" alt=":rolleyes:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/shy.png" alt=":shy:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/sad.png" alt=":sad:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/at.png" alt=":at:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/angel.png" alt=":angel:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/angry.png" alt=":@" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/blush.png" alt=":blush:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/confused.png" alt=":s" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/dodgy.png" alt=":dodgy:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/exclamation.png" alt=":exclamation:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/heart.png" alt=":heart:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/huh.png" alt=":huh:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/lightbulb.png" alt=":idea:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/sleepy.png" alt=":sleepy:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/undecided.png" alt=":-/" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/cry.png" alt=":cry:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/sick.png" alt=":sick:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/arrow.png" alt=":arrow:" class="smilie_dvz clickable">
<img src="{$theme['imgdir']}/smilies/my.png" alt=":my:" class="smilie_dvz clickable">
</div>
next:
and at the end
<script>
$('.smilie_dvz').click(function() {
var smilie = $(this).attr("alt"),
inputValue = $('#dvz_input').val();
$('#dvz_input').val(inputValue + smilie);
});
</script>