MyBB Community Forums

Full Version: Mycode in quick reply?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,
Does anybody know if there is a mod for this. If so link maybe?
I wouldn't try it... it's full of bugs and destroyed our forums... I think zaher has a code.. but maybe I'm wrong.
Ah well im not sure if i did before but anyway do the following

open showthread.php

find
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
Above it add
$codebuttons = build_mycode_inserter();

Go to Admin CP > Templates > modify /Delete > expand > Show thread templates > showthread_quickreply

find
<div>
		<textarea style="width: 90%; margin: 0;" rows="8" cols="80" name="message" id="message" tabindex="1"></textarea>
	</div>

replace with
	<div>
		<textarea rows="8" cols="80" name="message" id="message" tabindex="1"></textarea>
		{$codebuttons}
	</div>