4images Help / Hilfe > FAQ, Tips

How i can delete Headline field from post comment

(1/1)

Rembrandt:
1.) search in templates/yourTemplates/comment_form.html:

--- Code: ---                <tr>
                  <td width="90"><b>{lang_headline}</b></td>
                  <td><input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" /></td>
                </tr>

--- End code ---
remove it or comment out with <!--  -->

2.) search in templates/yourTemplates/member_editcomment.html:

          <tr> 
            <td class="row2"><b>{lang_headline}</b></td>
            <td class="row2"> 
              <input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" />
            </td>
          </tr

remove it or comment out with <!--  -->

3.) search in details.php:
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;

replace:
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 0;


4.) search in member.php:

  if ($comment_headline == "")  {
    $error = 1;

replace:

  if ($comment_headline == "")  {
    $error = 0;


5.) search and remove the follow lines or comment out with <!--  --> in admin/comments.php:
$comment_headline = trim($HTTP_POST_VARS['comment_headline']);

if ($comment_headline == "") {
    $error['comment_headline'] = 1;
  }

show_input_row($lang['field_headline'], "comment_headline", $comment['comment_headline'], $textinput_size);

mfg Andi

Navigation

[0] Message Index

Go to full version