Welcome Guest ! Please   Login or Register

Check out our latest Premium Themes, Majestic , Majestic - Dark and Musk Themes for MyBB 1.8 Click to Shop Now

Now open for Custom Theme requests : Click to Order Now

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change your Quick Reply editor into an advanced editor

Dropkaz Offline
Junior Member

Posts: 7
Joined: Jun 2013
Likes Received : 1


Mood: None

Points: 29.80Points
Post: #1
Change your Quick Reply editor into an advanced editor

Not my content; Don't come to me because of links not working.

in this tutorial we gonna change our quick editor from:
[Image: AKTlrHX.png]
to this:
[Image: ym9k.png]

1- Locate showthread.php (mybb root) and open it in your favourite text editor (Notepad ++ .... ext)
Look for this pieace of code
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";");
just above it add this code line:
$codebuttons = build_mycode_inserter();
save the file.

[Image: AONZO7W.png]

2- Now we need to edit one template so :
Goto ACP >> Templates >> Your Themes Templates >> Show Thread Templates >> showthread_quickreply
and replace everything 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">
<td colspan="2" class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]"/></div>
<tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
<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="yes" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
<label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="yes" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
<td class="trow1">
<textarea id="message" name="message" rows="10" cols="85" tabindex="2" >{$message}</textarea>

    <script type="text/javascript">document.write('<div class="editor_control_bar" style="width: 90%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote"><span class="smalltext">{$lang->quickreply_multiquote_selected} <a href="javascript:Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}<\/a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}<\/a>.<\/span><\/div>');</script>
<td colspan="2" align="center" class="tfoot"><input type="submit" accesskey="s" tabindex="3" value="Post Reply" name="submit" class="button"> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>

that's it, now we have advanced editor in our quick reply Smile
for any questions, feel free to comment below.
04-10-2014 10:51 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Change Scrollbar in Chrome With CSS mhdbadboy 5 2,060 07-19-2015 04:40 PM
Last Post: Ziombel

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

About Myskins

MySkins Studio is MyBB Themes Resource Website.

At MySkins Studio, We procreate MyBB Themes both custom MyBB Themes and premium Mybb Themes.We believe in quality and assure you the best MyBB themes at a very reasonable price , that suits your taste.

Feel free to drop in a request and get a quote.