MyBB-Plugins Forums

Full Version: Shoutbox Smilies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im not sure if this is asking too much but how would I make an insertable smilies? Like a popup and when you click it, it puts the code thing into the textbox of the shoutbox.

So far I've gotten the code from editor.js

PHP Code:
    bindSmilieInserter: function(id)
    {
        if(!$(
id))
        {
            return 
false;
        }

        var 
smilies = $(id).select('.smilie');

        if(
smilies.length 0)
        {
            
smilies.each(function(smilie)
            {
                
smilie.onclick this.insertSmilie.bindAsEventListener(this);
                
smilie.style.cursor "pointer";
            }.
bind(this));
        }
    },

    
openGetMoreSmilies: function(editor)
    {
        
MyBB.popupWindow('misc.php?action=smilies&popup=true&editor='+editor'sminsert'240280);
    },

    
insertSmilie: function(e)
    {
        
element Event.element(e);

        if(!
element || !element.alt)
        {
            return 
false;
        }
        
this.performInsert(element.alt""truefalse);
    }, 

I put that code into shoutbox.js. What else must I do? I mean like what shud I put into the shoutbox templates to make it work?
MyShoutbox does this already, I don't understand why you keep using spicefuse and asking for features that MyShoutbox has
Ah its okay forget it then.

EDIT: Oh because im too lazy to fix the problem I have with mysb lol.
And what's the problem?
Nvm I figured it out. Now im using yours lol.
Probably was the 1.4.8 compatibility error that MySB 1.2 had.
Yeah I guess it was Tongue
Nah I had to drop some columns and tables in phpmyadmin since i uninstalled wrong lol
my shoutbox is really awesomeTongue