The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Smilies Box next to the quick reply space

View previous topic View next topic Go down

Smilies Box next to the quick reply space

Post by YoshiGM on March 31st 2012, 6:17 pm

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

YoshiGM
Forumember

Male Posts : 533
Reputation : 80
Language : Spanish & English
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 April 1st 2012, 1:25 am

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...
}

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
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 April 1st 2012, 3:56 am

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


YoshiGM
Forumember

Male Posts : 533
Reputation : 80
Language : Spanish & English
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 April 3rd 2012, 12:25 am

bump

YoshiGM
Forumember

Male Posts : 533
Reputation : 80
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

View previous topic View next topic Back to top


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