MyBB Community Forums

Full Version: Add smilies inserter in quickreply area
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Go to: ACP > Templates > Your theme's templates > Showthread Templates > showthread_quickreply > and add the following code where ever you want to show smilies;

<span style="float: right; font-weight: bold" class="smilie_css"><a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');"><img src="images/smilies/smile.gif" title="Insert Smilies."></a></span><br />{$codebuttons}

Now Go to: ACP > Themes > Your Theme > global.css > Edit in Advanced Mode > and add the following css at the bottom of stylesheet;

.smilie_css {
     border-color: #FFBE7D;
	border: 1px solid #FFBE7D;
     color: #000000;
    padding: 2px;
	background: #FFE6CC;
        -moz-border-radius: 3px;
	-webkit-border-radius:3px;

    }

Now Open ./showthread.php file and find;
		eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
and Change it to;
		$codebuttons = build_mycode_inserter();
		eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");

It would look like this;
[Image: attachment.php?aid=285]
Just tried this and when clicking on the image nothing happens and i have done all the steps in the above post.
thats only a smiliey
There is a plugin existing for this:
http://mods.mybb.com/reviews/advanced-quick-reply-form
(2011-05-26, 03:04 PM)bestblackhatforum.com Wrote: [ -> ]There is a plugin existing for this:
http://mods.mybb.com/reviews/advanced-quick-reply-form

Yes, but I heard many issues coming after the use of that plugin. But may be I'm wrong.
Hello
this solution does it work with MyBB 1.6.3. because I can not find the same codes to replace?
thank you

This solution does not apply to the plugin Advanced Quick Reply
(2011-07-03, 12:35 AM)bidouille Wrote: [ -> ]Hello
this solution does it work with MyBB 1.6.3. because I can not find the same codes to replace?
If you don't find the same code then I'll blame your theme not this code.

(2011-07-03, 12:35 AM)bidouille Wrote: [ -> ]This solution does not apply to the plugin Advanced Quick Reply

Why not ?
This modification works on any theme, you just have to be a webmaster and take the time to find the correct code.
sorry, I did the changes indicated without success.
I use the 1.6.3 version of MyBB.
but there is no smilies smilies to access.
It's not cool to mock.
the solution would be funny
(2011-07-04, 06:24 PM)Sama34 Wrote: [ -> ]This modification works on any theme, you just have to be a webmaster and take the time to find the correct code.

What do you mean?
First post is not correct?
Pages: 1 2 3