MyBB Community Forums

Full Version: Turning the advance quick reply (into less)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is anyone fimilar with vB's or IPB's quick reply?

I was wondering if anyone could assist me by turning the "Advanced Quick Reply" into something less feature packed but slick and simple. I'm not sure how hard this would be but any help would be greatly appreciated, basically I'm just after adding the "Font, Text size, Text Colour, and the icons below" to the quick reply.

Here's the code...

///////////////////////////////////////////////////////////////////////

Advanced Quick Reply

works on MyBB 1.0 RC 3

ELY M.

/////////////////////////////////////////////////////////////////////////
files edited:
showthread.php 


find this: 
$templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,showthread_multipage,postbit_reputation,postbit_quickdelete,postbit_attachments,thumbnails_thumbnail,postbit_attachments_attachment,postbit_attachments,postbit_attachments_thumbnails,postbit_attachments_images_image,postbit_attachments_images,postbit_posturl";


ADD THIS AFTER: 

$templatelist .= "newreply,previewpost,error_invalidforum,error_invalidthread,redirect_threadposted,loginbox,changeuserbox,posticons,newreply_threadreview,forumrules,attachments,newreply_threadreview_post";



######################

find this: 


// Password protected forums ......... yhummmmy!
checkpwforum($forum['fid'], $forum['password']);


ADD THIS AFTER: 


if($forum['allowmycode'] != "no")
{
	$codebuttons = makebbcodeinsert();
}
if($forum['allowsmilies'] != "no")
{
	$smilieinserter = makesmilieinsert();
}
if($forum['allowpicons'] != "no")
{
	$posticons = getposticons();
}


#############
THEN

go to your control admin panel 
go into your templates
expand showthread

click to edit showthread_quickreply 

when it come up with edit box. 

highlight everything and delete it 

then 

REPLACE with this: 

<br>
<table width="$theme[tablewidth]" border="0" align="center">
<tr>
<td valign="bottom" align="left"><b><a href="index.php">$settings[bbname]</a> &raquo; $breadcrumb &raquo; <a href="showthread.php?tid=$tid">$thread[subject]</a> &raquo; Post Reply</b></td>
</tr>
</table>
<br />
$preview
$maximageserror
$attacherror
<form action="newreply.php" method="post" enctype="multipart/form-data" name="input" onsubmit="return checkForm();">
<table cellspacing="0" cellpadding="0" border="0" width="$theme[tablewidth]" align="center">
<tr><td class="tborder">
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" width="100%">
<tr>
<td class="thead" colspan="2"><b>Post a new Reply</b></td>
</tr>
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><b>Reply to thread: $thread[subject]</b></span></td>
</tr>
$loginbox
<tr>
<td class="trow2" width="20%"><b>Post Subject:</b></td>
<td class="trow2"><input type="text" name="subject" size="40" maxlength="85" value="$subject" tabindex="1"></td>
</tr>
$posticons
<tr>
<td class="trow2" valign="top"><b>Your Message:</b><br /><span class="smalltext">Please see below for the forum rules for this forum.</span><p align="center">$smilieinserter</p></td>
<td class="trow2">
<table cellspacing="0" cellpadding="0" border="0">
$codebuttons
<tr>
<td colspan="2">
<textarea name="message" rows="20" cols="70" style="width: 98%;" wrap="virtual" tabindex="3">$message</textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow1" valign="top"><b>Options:</b></td>
<td class="trow1"><span class="smalltext">
<input type="checkbox" name="postoptions[signature]" value="yes" tabindex="6" $postoptionschecked[signature]> <b>Signature:</b> include your signature. (registered users only)<br />
<input type="checkbox" name="postoptions[emailnotify]" value="yes" tabindex="7" $postoptionschecked[emailnotify]> <b>Email Notification:</b> receive an email whenever there is a new reply. (registered users only)<br />
<input type="checkbox" name="postoptions[disablesmilies]" value="yes" tabindex="9" $postoptionschecked[disablesmilies]> <b>Disable Smilies:</b> disable smilies from showing in this post.
</span></td>
</tr>
$attachbox
$modoptions
</table>
</td></tr></table>
<br />
<center><input type="submit" name="submit" value="Post Reply" tabindex="3">  <input type="submit" name="previewpost" value="Preview" tabindex="4">  <input type="reset" name="reset" value="Clear Fields" tabindex="5"></center>
<input type="hidden" name="action" value="do_newreply">
<input type="hidden" name="tid" value="$tid">
<input type="hidden" name="replyto" value="$pid">
<input type="hidden" name="posthash" value="$posthash">
<input type="hidden" name="removeattachment" value="">
</form>
$forumrules
$threadreview
$footer
</body>
</html>



##############################

ELY has done a wonderful job here, just looking for something a little simple. ~kerrang!