MyBB Community Forums

Full Version: Quickreply BB Code editor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I think it would be great to have some basic editor buttons like post link, post image, bold, underline, italic, ect, ect in the Quickreply. It would save so much time compared to typing BB Code or clicking the new post button.

I have tried adding the Editor to quickreply with no luck. If anyone could help me out I would be thankful.
This was suggested for 1.2 nobody then would do it or saw the point. (I'm hoping someone will)

I like the idea, many would use it but will it be done?
~Kerrang!
Ah....found this modificaiton.

You are using 1.4, right?

http://community.mybboard.net/thread-342...#pid229438
i would like it to remain a mod. quick reply is for fast posting if you want the editor click reply.
I was merely requesting a mod or someone to tell me how to do it. Not an actual feature addition. Thank you xiaozhu
I did it manualy for mybb 1.4 since my 1st upgrade..
here is the instoruction if you need it..
open showthread.php find
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
add before
$codebuttons = build_mycode_inserter();

and open your showthread_quickreply template and replace with the following
<br /><form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form"><input type="hidden" name="my_post_key" value="{$mybb->post_code}" /><input type="hidden" name="subject" value="RE: {$thread['subject']}" /><input type="hidden" name="action" value="do_newreply" /><input type="hidden" name="posthash" value="{$posthash}" id="posthash" /><input type="hidden" name="quoted_ids" value="" id="quoted_ids" /><input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" /><input type="hidden" name="from_page" value="{$page}" /><input type="hidden" name="tid" value="{$tid}" /><input type="hidden" name="method" value="quickreply" /><table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><thead><tr><td class="thead" colspan="2"><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div><div><strong>{$lang->quick_reply}</strong></div></td></tr></thead><tbody style="{$collapsed['quickreply_e']}" id="quickreply_e"><tr><td class="trow1" valign="top" width="22%"><strong>{$lang->message}</strong><br /><span class="smalltext">{$lang->message_note}<br /><br /><label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br /><label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span></td><td class="trow1"><div style="width: 95%"><textarea style="width: auto !important; padding: 2px 2px 2px 2px;" rows="12" cols="90" name="message" id="message" tabindex="1"></textarea>{$codebuttons}</div><div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote"><span class="smalltext">{$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.</span></div></td></tr>{$captcha}<tr><td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td></tr></tbody></table></form>

hope that help
thanks again Smile