Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Quick mod, How disable Quick Reply?

I have quick question, how i can disable Quick Reply funcsion in forum?
Open viewthread.php and find this (line 468 to 496)

CodeDownload  

if ($can_reply && !$fdata['thread_locked']) {
   require_once INCLUDES."bbcode_include.php";
   opentable($locale['512']);
   echo "<form name='inputform' method='post' action='".FORUM."post.php?action=reply&amp;forum_id=".$fdata['forum_id']."&amp;thread_id=".$_GET['thread_id']."'>\n";
   echo "<table cellpadding='0' cellspacing='1' class='tbl-border center'>\n<tr>\n";
   echo "<td align='center' class='tbl1'><textarea name='message' cols='70' rows='7' class='textbox' style='width:98%'></textarea><br />\n";
   echo display_bbcodes("360px", "message")."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='tbl2'><label><input type='checkbox' name='disable_smileys' value='1' /> ".$locale['513']."</label>";
   if (array_key_exists("user_sig", $userdata) && $userdata['user_sig']) {
      echo "<br />\n<label><input type='checkbox' name='show_sig' value='1' checked='checked' /> ".$locale['513a']."</label>";
   }
   if ($settings['thread_notify']) {
      if (dbcount("(thread_id)", DB_THREAD_NOTIFY, "thread_id='".$_GET['thread_id']."' AND notify_user='".$userdata['user_id']."'")) {
         $notify_checked = " checked='checked'";
      } else {
         $notify_checked = "";
      }
      echo "<br />\n<label><input type='checkbox' name='notify_me' value='1'".$notify_checked." /> ".$locale['513b']."</label>";
   }
   echo "</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='tbl1'>\n";
   echo "<input type='submit' name='previewreply' value='".$locale['514a']."' class='button' />&nbsp;\n";
   echo "<input type='submit' name='postreply' value='".$locale['514']."' class='button' />\n";
   echo "</td>\n";
   echo "</tr>\n</table>\n</form><!--sub_forum_thread-->\n";
   closetable();
}




Replace with this

CodeDownload  

/*if ($can_reply && !$fdata['thread_locked']) {
   require_once INCLUDES."bbcode_include.php";
   opentable($locale['512']);
   echo "<form name='inputform' method='post' action='".FORUM."post.php?action=reply&amp;forum_id=".$fdata['forum_id']."&amp;thread_id=".$_GET['thread_id']."'>\n";
   echo "<table cellpadding='0' cellspacing='1' class='tbl-border center'>\n<tr>\n";
   echo "<td align='center' class='tbl1'><textarea name='message' cols='70' rows='7' class='textbox' style='width:98%'></textarea><br />\n";
   echo display_bbcodes("360px", "message")."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='tbl2'><label><input type='checkbox' name='disable_smileys' value='1' /> ".$locale['513']."</label>";
   if (array_key_exists("user_sig", $userdata) && $userdata['user_sig']) {
      echo "<br />\n<label><input type='checkbox' name='show_sig' value='1' checked='checked' /> ".$locale['513a']."</label>";
   }
   if ($settings['thread_notify']) {
      if (dbcount("(thread_id)", DB_THREAD_NOTIFY, "thread_id='".$_GET['thread_id']."' AND notify_user='".$userdata['user_id']."'")) {
         $notify_checked = " checked='checked'";
      } else {
         $notify_checked = "";
      }
      echo "<br />\n<label><input type='checkbox' name='notify_me' value='1'".$notify_checked." /> ".$locale['513b']."</label>";
   }
   echo "</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='tbl1'>\n";
   echo "<input type='submit' name='previewreply' value='".$locale['514a']."' class='button' />&nbsp;\n";
   echo "<input type='submit' name='postreply' value='".$locale['514']."' class='button' />\n";
   echo "</td>\n";
   echo "</tr>\n</table>\n</form><!--sub_forum_thread-->\n";
   closetable();
}*/

Nice DrunkeN, Thanks!
Thread Information
Author
Replies
3 posts
Views
2,908 times
Last Post
Last updated on 6 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: DrunkeN, Jompsa