News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

move smiley bar - how/where?

Started by nixlike, December 19, 2011, 01:54:37 PM

Previous topic - Next topic

nixlike

Hello valued SMF-Supporters,

I found this code in Post.template.php

// What about smileys?
if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup']))
echo '
<div id="smileyBox_message"></div>';

echo '
', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');


and now I am thinking of a way to move the smiley bar to a different place on the forum. If I just copy and paste the smileyBox_message div, it doesnt really do much. copying and pasting the template_control_richedit code doesnt work out if I like to put the smiley bar to a different place than Post.template.php and furthermore Im afraid that that line will also "copy" the entire richedit box.

nevertheless: what code is important and required if I like to move the smiley bar to a different template php file to make it work (display + clickable)?

edit: only smileys need to be transferred to somewhere else, no richedit messagebox or anything like that.

nixlike

How to add only the smileys bar with the More Smileys option to Display.template.php? thanks!

Illori

nixlike please do not bump within 24 hours we are all volunteers and reply if and when we know the answer

nixlike

Of course not, I added information about where I plan to have the smileys bar (Display.template.php). I'll wait for an answer ;)

Kays

Hi, one of the problems with smileys is that they need to be defined first. Something which they're not in Display.php.

If you wish to code it yourself, look for an enhanced quick replay mod for 2.0. And see how it's done there.

If you're just looking to make the quick reply more functional. There's also this mod.

http://custom.simplemachines.org/mods/index.php?mod=3246

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

nixlike

Thank you, that was what I was looking for. More than I wanted though, but absolutely doing the job! :)

Kays

Cool. Maybe a bit more than you're looking for. But it does take up less space than a row of smileys.  :)

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: