How to remove subject field from comments?
error 232
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: How to remove subject field from comments?
Philipp Esselbach
From: -
Editor
0From: -
The easiest way to doing this is turning the comment subject field into a hidden field
news_story_comment_form
news_story_comment_edit_form
news_story_comment_form
<!-- Template: news_story_comment_form -->
<h1>Post New Comment</h1>
<div class="content">
<form action="contentteller.php" method="post" id="commentform">
{$insert['newsstory_anon']}
{$insert['newsstory_icon']}
<strong>Message:</strong><br />
<textarea cols="65" name="input_message" rows="10">{$insert['input_message']}</textarea><br />
{$insert['newsstory_securitycode']}
{$insert['newsstory_signature']}
<input name="input_smilies" type="checkbox" value="1" {$insert['input_smilies_checked']} />
Disable smilies in this post.<br />
<input name="input_bcode" type="checkbox" value="1" {$insert['input_bcode_checked']} />
Disable block tag code.<br />
<input name="input_url" type="checkbox" value="1" checked="checked" />
Add [url] tag at URLs.<br />
<input type="hidden" name="input_security_hash" value="{$insert['news_security_hash']}" />
<input type="hidden" name="faction" value="news_docomment" />
<input type="hidden" name="input_newsstory_id" value="{$insert['newsstory_id']}" />
<input type="hidden" name="input_subject" value="Comment" />
<input type="submit" name="input_preview" value="Preview" />
<input type="submit" value="Post New Comment" />
</form>
</div>
<br />
news_story_comment_edit_form
<!-- Template: news_story_comment_edit_form -->
<form action="contentteller.php" method="post" id="commentform">
<h1>Edit Comment</h1>
<div class="content">
{$insert['newsstory_icon']}
<strong>Message:</strong><br />
<textarea cols="65" name="input_message" rows="10">{$insert['input_message']}</textarea><br />
<input name="input_signature" type="checkbox" value="1" {$insert['input_signature_checked']} />
Include my profile signature.<br />
<input name="input_smilies" type="checkbox" value="1" {$insert['input_smilies_checked']} />
Disable smilies in this post.<br />
<input name="input_bcode" type="checkbox" value="1" {$insert['input_bcode_checked']} />
Disable block tag code.<br />
<input name="input_url" type="checkbox" value="1" checked="checked" />
Add [url] tag at URLs.<br />
<input type="hidden" name="input_security_hash" value="{$insert['news_security_hash']}" />
<input type="hidden" name="faction" value="news_doeditcomment" />
<input type="hidden" name="input_comment_id" value="{$insert['newscomment_id']}" />
<input type="hidden" name="input_subject" value="Comment" />
<input type="submit" name="input_preview" value="Preview" />
<input type="submit" value="Edit Comment" />
</div>
</form>
<br />
How to remove subject field from comments?