Author Topic: How i can delete Headline field from post comment  (Read 27491 times)

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
How i can delete Headline field from post comment
« 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
« Last Edit: July 21, 2011, 03:01:54 PM by Rembrandt »