4images Forum & Community

4images Help / Hilfe => FAQ, Tips => Topic started by: Rembrandt on July 18, 2011, 05:33:53 AM

Title: How i can delete Headline field from post comment
Post by: Rembrandt on July 18, 2011, 05:33:53 AM
1.) search in templates/yourTemplates/comment_form.html:
Code: [Select]
               <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>
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