MyBB Community Forums

Full Version: Smiles on shoutbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
this is your sb input id
Quote:<input type="text" id="dvz_shoutbox_input" class="text" placeholder="Remember,be nice" maxlength="150" autocomplete="off">
It should be the same with the script

Quote:<script>
    $('.smilie_dvz').click(function() {
        var smilie = $(this).attr("alt"),
            inputValue = $('#dvz_input').val();
        $('#dvz_input').val(inputValue + smilie);
    });
</script>

so
replace this dvz_shoutbox_input with this dvz_input
^ should be done in reverse manner !

i.e. in the jquery code segment
use dvz_shoutbox_input instead of dvz_input
Yeah, i also thought about it, let me try and update you.


(2020-03-21, 02:42 PM).m. Wrote: [ -> ]^ should be done in reverse manner !

i.e. in the jquery code segment
use dvz_shoutbox_input instead of dvz_input
It is working, thanks.

And many thanks for this tutorial and for your time @Master!


Sadly, i have to update this thread with three problems Sad

First one, the smilies are shown correctly, when i click on them but parsed as default smilies on shoutbox.

Here are the screenshots:

[attachment=42681]

[attachment=42682]

Second, i am having problems using mention me plugin on shoutbox now, because when i use the code @username on shoutbox, the popup is seen on the middle of the screen and not as before.

[attachment=42683]

Third, when you click on enter to send the message on shoutbox, the pop up appears without any reason, i know you are aware of this one, may be someone else can help us here.
For the popup smiles box
in your global.css find this
.popupsmilesbyanonshare .show {
    visibility: visible;

    -webkit-animation: fadeIn 1s;

    animation: fadeIn 1s;


}
and add this 

 left: -52px;

and about metionme problem
find this (Idont know where do you have it)

Quote:<div class="mentionme_popup" style="/* left: 139.547px; *//* top: 473px; */height: 156px;width: 225px;">
<div class="mentionme_spinner" style="display: none;">

and remove this
left: 38.0469px;
    top: 473px;

Quote:... parsed as default smilies on shoutbox
smilies codes in smilies_box div should be replaced with your required set of smilies.
[attachment=42684]

I took care of this already.

Sadly, it doesn't work.
What doesnt work?
Did you upload those smiles to your image folder?
Did you add those smiles to your forum?
I uploaded them to /images/smilies/New.

The uploaded smilies aren't showing on shoutbox, when i parse them but the default ones.

Check the screenshots here
are those new smilies working for forum posts ?
are they listed on regular "get more" smilies popup list ?
No, only the default ones are working there, i didn't activate these on forum posts. I need them only on SB.

Yes, they are listed on the get more smilies pop up but when i click on one of them and then hit enter, i see a default one parsed not the facebook type smiley.
Pages: 1 2 3