The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Smilies Box next to the quick reply space

2 posters

Go down

Smilies Box next to the quick reply space Empty Smilies Box next to the quick reply space

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

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

Smilies Box next to the quick reply space 6xICY

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

Thanks alot
YoshiGM
YoshiGM
Active Poster

Male Posts : 1492
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Smilies Box next to the quick reply space Empty Re: Smilies Box next to the quick reply space

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Smilies Box next to the quick reply space Empty Re: Smilies Box next to the quick reply space

Post by YoshiGM April 1st 2012, 3:56 am

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

Smilies Box next to the quick reply space 5kUmq
YoshiGM
YoshiGM
Active Poster

Male Posts : 1492
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Smilies Box next to the quick reply space Empty Re: Smilies Box next to the quick reply space

Post by YoshiGM April 3rd 2012, 12:25 am

bump
YoshiGM
YoshiGM
Active Poster

Male Posts : 1492
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Back to top

- Similar topics

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