Author Topic: I dont want requiresd field,comment_headline  (Read 11351 times)

0 Members and 1 Guest are viewing this topic.

anantchai

  • Guest
I dont want requiresd field,comment_headline
« on: September 23, 2002, 06:04:23 AM »
How to define the headline in comment form to not-required? :wink:
Thank in advance.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
I dont want requiresd field,comment_headline
« Reply #1 on: September 23, 2002, 10:03:36 AM »
Just delete this part from details.php:

Code: [Select]
   if ($comment_headline == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;
    }


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Re: I dont want requiresd field,comment_headline
« Reply #2 on: January 31, 2006, 09:44:14 PM »
Also, it will be useful for admins, to remove the code from admin/comments.php

Code: [Select]
if ($comment_headline == "") {
   $error['comment_headline'] = 1;
}
Digital Photo Gallery: http://gallery.imagemaster.ru

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: I dont want requiresd field,comment_headline
« Reply #3 on: January 31, 2006, 09:51:19 PM »
Also, it will be useful for admins, to remove the code from admin/comments.php

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


"Or" uncomment it. ;)

This is a very old topic but the last input is useful. ;)

Offline vitara

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: I dont want requiresd field,comment_headline
« Reply #4 on: February 19, 2006, 05:05:50 PM »
Ich habe das alles so gemacht.
comment_bit.html
comment_form.html
details.php

Aber es kommt immer noch die Meldung :

Das Feld Überschrift muss ausgefüllt werden!

Was mach ich da Falsch?

Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: I dont want requiresd field,comment_headline
« Reply #5 on: June 20, 2007, 07:15:56 PM »
great! works on 1.7.4 FYI :)