Smilies Box next to the quick reply space

Go down

Smilies Box next to the quick reply space

Post by YoshiGM on Sat Mar 31, 2012 11:17 am

Is possible to show the full smilies box next to the quick reply box. For example:



I Know is possible editting templates in PunBB or PhpBB2. Is possible on PHPBB3?

Thanks alot
avatar
YoshiGM
Forumember

Male Posts : 724
Reputation : 100
Language : Spanish, English & Italian (16%)
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Re: Smilies Box next to the quick reply space

Post by LGforum on Sat Mar 31, 2012 6:25 pm

Here's a script that will do just that.

Code:

$(function(){
var form = document.getElementById('quick_reply');
var textarea = document.getElementById('textarea_content');
textarea.style.clear = 'none'; textarea.nextSibling.style.clear = 'both';
var x = form.insertBefore(document.createElement('div'),textarea);
var smilies_content = '<div id="sel_smilies_content" align="center">';
for (var smilieid in smilieoptions) {
  smilies_content += "<button onclick=\"emoticonp('" + smilieoptions[smilieid][2] + "');selectWysiwyg(this, 'sel_smilies');return false;\"><img alt=\"" + smilieoptions[smilieid][1] + "\" title=\"" + smilieoptions[smilieid][1] + "\" src=\"" + smilieoptions[smilieid][0] + "\" /></button> ";
}
smilies_content += "</div>";
x.innerHTML = smilies_content;
x.className = 'smileybox';
x.setAttribute('style','float:left;max-width: 250px; max-height:150px;overflow:auto;');
});

Things will need styled yourself though.
You can style it under the className of 'smileybox'
Code:

.smileybox {
  //styling...
}
avatar
LGforum
Hyperactive

Male Posts : 2263
Reputation : 260
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Smilies Box next to the quick reply space

Post by YoshiGM on Sat Mar 31, 2012 8:56 pm

Thanks for your reply but with that JS, the smileys have an bug:

avatar
YoshiGM
Forumember

Male Posts : 724
Reputation : 100
Language : Spanish, English & Italian (16%)
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Re: Smilies Box next to the quick reply space

Post by YoshiGM on Mon Apr 02, 2012 5:25 pm

bump
avatar
YoshiGM
Forumember

Male Posts : 724
Reputation : 100
Language : Spanish, English & Italian (16%)
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum