MyBB-Plugins Forums
Shoutbox Smilies - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.4.x (http://forums.mybb-plugins.com/Forum-MyBB-1-4-x)
+---- Forum: Free Plugins (http://forums.mybb-plugins.com/Forum-Free-Plugins)
+---- Thread: Shoutbox Smilies (/Thread-Shoutbox-Smilies)



Shoutbox Smilies - Evoke - 09-03-2009

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?


RE: Shoutbox Smilies - Diogo Parrinha - 09-03-2009

MyShoutbox does this already, I don't understand why you keep using spicefuse and asking for features that MyShoutbox has


RE: Shoutbox Smilies - Evoke - 09-03-2009

Ah its okay forget it then.

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


RE: Shoutbox Smilies - Diogo Parrinha - 09-03-2009

And what's the problem?


RE: Shoutbox Smilies - Evoke - 09-04-2009

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


RE: Shoutbox Smilies - Shadows - 09-04-2009

Probably was the 1.4.8 compatibility error that MySB 1.2 had.


RE: Shoutbox Smilies - Diogo Parrinha - 09-04-2009

Yeah I guess it was Tongue


RE: Shoutbox Smilies - Evoke - 09-04-2009

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


RE: Shoutbox Smilies - mr. appel - 02-04-2011

my shoutbox is really awesomeTongue