Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Shoutbox Smilies
#1

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?
#2

MyShoutbox does this already, I don't understand why you keep using spicefuse and asking for features that MyShoutbox has
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

Ah its okay forget it then.

EDIT: Oh because im too lazy to fix the problem I have with mysb lol.
#4

And what's the problem?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

Nvm I figured it out. Now im using yours lol.
#6

Probably was the 1.4.8 compatibility error that MySB 1.2 had.
#7

Yeah I guess it was Tongue
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#8

Nah I had to drop some columns and tables in phpmyadmin since i uninstalled wrong lol
#9

my shoutbox is really awesomeTongue




Users browsing this thread: 1 Guest(s)